diff --git a/.env.dev b/.env.dev new file mode 100644 index 0000000000..8f678a6492 --- /dev/null +++ b/.env.dev @@ -0,0 +1,16 @@ +# .env.example + +# Environment Name +NODE_ENV=dev + + + +#for old because jwt token from his tutorail if not then it will showing not authoraized +APP_SECRET='sarvusahitya' + +# Mongo DB + +#MONGODB_URI='mongodb://localhost:27017/sarvusahitya' +MONGODB_URI='mongodb+srv://trushitgadhavi99133:Trushit%40123@cluster0.fs1sl8q.mongodb.net/sarvusahitya' + + diff --git a/.gitignore b/.gitignore index 3c3629e647..fd72422d2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,131 @@ -node_modules +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000000..0f148de5ef --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "esbenp.prettier-vscode" + ] +} \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 90a784b33c..0000000000 --- a/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# starter-express-api - -This is the simplest possible nodejs api using express that responds to any request with: -``` -Yo! -``` - -### Deploy it in 7 seconds: - -[![Deploy to Cyclic](https://deploy.cyclic.app/button.svg)](https://deploy.cyclic.app/) - diff --git a/package-lock.json b/package-lock.json index 04accb1a31..8f865cf99a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,858 +1,5113 @@ { - "name": "starter-express-api", + "name": "sarvusahitya", "version": "1.0.0", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { + "name": "sarvusahitya", "version": "1.0.0", "license": "ISC", "dependencies": { - "express": "^4.17.1" + "aws-sdk": "^2.1354.0", + "axios": "^1.3.3", + "body-parser": "^1.20.2", + "cors": "^2.8.5", + "dotenv": "^16.0.3", + "express": "^4.18.2", + "firebase-admin": "^11.7.0", + "firebase-functions": "^4.3.1", + "mongoose": "^6.9.1", + "node-input-validator": "^4.5.1", + "nodemon": "^2.0.20" } }, - "node_modules/accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "node_modules/@aws-crypto/crc32": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-3.0.0.tgz", + "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==", + "optional": true, "dependencies": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" - }, - "engines": { - "node": ">= 0.6" + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^1.11.1" } }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + "node_modules/@aws-crypto/crc32/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true }, - "node_modules/body-parser": { - "version": "1.19.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", - "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "node_modules/@aws-crypto/ie11-detection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-3.0.0.tgz", + "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", + "optional": true, "dependencies": { - "bytes": "3.1.0", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "~1.1.2", - "http-errors": "1.7.2", - "iconv-lite": "0.4.24", - "on-finished": "~2.3.0", - "qs": "6.7.0", - "raw-body": "2.4.0", - "type-is": "~1.6.17" - }, - "engines": { - "node": ">= 0.8" + "tslib": "^1.11.1" } }, - "node_modules/bytes": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", - "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", - "engines": { - "node": ">= 0.8" - } + "node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true }, - "node_modules/content-disposition": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", - "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "node_modules/@aws-crypto/sha256-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-3.0.0.tgz", + "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", + "optional": true, "dependencies": { - "safe-buffer": "5.1.2" - }, - "engines": { - "node": ">= 0.6" + "@aws-crypto/ie11-detection": "^3.0.0", + "@aws-crypto/sha256-js": "^3.0.0", + "@aws-crypto/supports-web-crypto": "^3.0.0", + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@aws-sdk/util-utf8-browser": "^3.0.0", + "tslib": "^1.11.1" } }, - "node_modules/content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", - "engines": { - "node": ">= 0.6" - } + "node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true }, - "node_modules/cookie": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", - "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", - "engines": { - "node": ">= 0.6" + "node_modules/@aws-crypto/sha256-js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-3.0.0.tgz", + "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", + "optional": true, + "dependencies": { + "@aws-crypto/util": "^3.0.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^1.11.1" } }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + "node_modules/@aws-crypto/sha256-js/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true }, - "node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "node_modules/@aws-crypto/supports-web-crypto": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-3.0.0.tgz", + "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", + "optional": true, "dependencies": { - "ms": "2.0.0" + "tslib": "^1.11.1" } }, - "node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", - "engines": { - "node": ">= 0.6" - } + "node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true }, - "node_modules/destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + "node_modules/@aws-crypto/util": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz", + "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-utf8-browser": "^3.0.0", + "tslib": "^1.11.1" + } }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + "node_modules/@aws-crypto/util/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "optional": true }, - "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "node_modules/@aws-sdk/client-cognito-identity": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.370.0.tgz", + "integrity": "sha512-/dQFXT8y0WUD/731cdLjCrxNxH7Wtg2uZx7PggevTZs9Yr2fdGPSHehIYfvpCvi59yeG9T2Cl8sFnxXL1OEx4A==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/client-sts": "3.370.0", + "@aws-sdk/credential-provider-node": "3.370.0", + "@aws-sdk/middleware-host-header": "3.370.0", + "@aws-sdk/middleware-logger": "3.370.0", + "@aws-sdk/middleware-recursion-detection": "3.370.0", + "@aws-sdk/middleware-signing": "3.370.0", + "@aws-sdk/middleware-user-agent": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@aws-sdk/util-endpoints": "3.370.0", + "@aws-sdk/util-user-agent-browser": "3.370.0", + "@aws-sdk/util-user-agent-node": "3.370.0", + "@smithy/config-resolver": "^1.0.1", + "@smithy/fetch-http-handler": "^1.0.1", + "@smithy/hash-node": "^1.0.1", + "@smithy/invalid-dependency": "^1.0.1", + "@smithy/middleware-content-length": "^1.0.1", + "@smithy/middleware-endpoint": "^1.0.2", + "@smithy/middleware-retry": "^1.0.3", + "@smithy/middleware-serde": "^1.0.1", + "@smithy/middleware-stack": "^1.0.1", + "@smithy/node-config-provider": "^1.0.1", + "@smithy/node-http-handler": "^1.0.2", + "@smithy/protocol-http": "^1.1.0", + "@smithy/smithy-client": "^1.0.3", + "@smithy/types": "^1.1.0", + "@smithy/url-parser": "^1.0.1", + "@smithy/util-base64": "^1.0.1", + "@smithy/util-body-length-browser": "^1.0.1", + "@smithy/util-body-length-node": "^1.0.1", + "@smithy/util-defaults-mode-browser": "^1.0.1", + "@smithy/util-defaults-mode-node": "^1.0.1", + "@smithy/util-retry": "^1.0.3", + "@smithy/util-utf8": "^1.0.1", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.8" + "node": ">=14.0.0" } }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "node_modules/@aws-sdk/client-sso": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.370.0.tgz", + "integrity": "sha512-0Ty1iHuzNxMQtN7nahgkZr4Wcu1XvqGfrQniiGdKKif9jG/4elxsQPiydRuQpFqN6b+bg7wPP7crFP1uTxx2KQ==", + "optional": true, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/middleware-host-header": "3.370.0", + "@aws-sdk/middleware-logger": "3.370.0", + "@aws-sdk/middleware-recursion-detection": "3.370.0", + "@aws-sdk/middleware-user-agent": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@aws-sdk/util-endpoints": "3.370.0", + "@aws-sdk/util-user-agent-browser": "3.370.0", + "@aws-sdk/util-user-agent-node": "3.370.0", + "@smithy/config-resolver": "^1.0.1", + "@smithy/fetch-http-handler": "^1.0.1", + "@smithy/hash-node": "^1.0.1", + "@smithy/invalid-dependency": "^1.0.1", + "@smithy/middleware-content-length": "^1.0.1", + "@smithy/middleware-endpoint": "^1.0.2", + "@smithy/middleware-retry": "^1.0.3", + "@smithy/middleware-serde": "^1.0.1", + "@smithy/middleware-stack": "^1.0.1", + "@smithy/node-config-provider": "^1.0.1", + "@smithy/node-http-handler": "^1.0.2", + "@smithy/protocol-http": "^1.1.0", + "@smithy/smithy-client": "^1.0.3", + "@smithy/types": "^1.1.0", + "@smithy/url-parser": "^1.0.1", + "@smithy/util-base64": "^1.0.1", + "@smithy/util-body-length-browser": "^1.0.1", + "@smithy/util-body-length-node": "^1.0.1", + "@smithy/util-defaults-mode-browser": "^1.0.1", + "@smithy/util-defaults-mode-node": "^1.0.1", + "@smithy/util-retry": "^1.0.3", + "@smithy/util-utf8": "^1.0.1", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/express": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", - "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.370.0.tgz", + "integrity": "sha512-jAYOO74lmVXylQylqkPrjLzxvUnMKw476JCUTvCO6Q8nv3LzCWd76Ihgv/m9Q4M2Tbqi1iP2roVK5bstsXzEjA==", + "optional": true, "dependencies": { - "accepts": "~1.3.7", - "array-flatten": "1.1.1", - "body-parser": "1.19.0", - "content-disposition": "0.5.3", - "content-type": "~1.0.4", - "cookie": "0.4.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "~1.1.2", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "~1.1.2", - "fresh": "0.5.2", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.5", - "qs": "6.7.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.1.2", - "send": "0.17.1", - "serve-static": "1.14.1", - "setprototypeof": "1.1.1", - "statuses": "~1.5.0", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/middleware-host-header": "3.370.0", + "@aws-sdk/middleware-logger": "3.370.0", + "@aws-sdk/middleware-recursion-detection": "3.370.0", + "@aws-sdk/middleware-user-agent": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@aws-sdk/util-endpoints": "3.370.0", + "@aws-sdk/util-user-agent-browser": "3.370.0", + "@aws-sdk/util-user-agent-node": "3.370.0", + "@smithy/config-resolver": "^1.0.1", + "@smithy/fetch-http-handler": "^1.0.1", + "@smithy/hash-node": "^1.0.1", + "@smithy/invalid-dependency": "^1.0.1", + "@smithy/middleware-content-length": "^1.0.1", + "@smithy/middleware-endpoint": "^1.0.2", + "@smithy/middleware-retry": "^1.0.3", + "@smithy/middleware-serde": "^1.0.1", + "@smithy/middleware-stack": "^1.0.1", + "@smithy/node-config-provider": "^1.0.1", + "@smithy/node-http-handler": "^1.0.2", + "@smithy/protocol-http": "^1.1.0", + "@smithy/smithy-client": "^1.0.3", + "@smithy/types": "^1.1.0", + "@smithy/url-parser": "^1.0.1", + "@smithy/util-base64": "^1.0.1", + "@smithy/util-body-length-browser": "^1.0.1", + "@smithy/util-body-length-node": "^1.0.1", + "@smithy/util-defaults-mode-browser": "^1.0.1", + "@smithy/util-defaults-mode-node": "^1.0.1", + "@smithy/util-retry": "^1.0.3", + "@smithy/util-utf8": "^1.0.1", + "tslib": "^2.5.0" }, "engines": { - "node": ">= 0.10.0" + "node": ">=14.0.0" } }, - "node_modules/finalhandler": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "node_modules/@aws-sdk/client-sts": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.370.0.tgz", + "integrity": "sha512-utFxOPWIzbN+3kc415Je2o4J72hOLNhgR2Gt5EnRSggC3yOnkC4GzauxG8n7n5gZGBX45eyubHyPOXLOIyoqQA==", + "optional": true, "dependencies": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "statuses": "~1.5.0", - "unpipe": "~1.0.0" + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/credential-provider-node": "3.370.0", + "@aws-sdk/middleware-host-header": "3.370.0", + "@aws-sdk/middleware-logger": "3.370.0", + "@aws-sdk/middleware-recursion-detection": "3.370.0", + "@aws-sdk/middleware-sdk-sts": "3.370.0", + "@aws-sdk/middleware-signing": "3.370.0", + "@aws-sdk/middleware-user-agent": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@aws-sdk/util-endpoints": "3.370.0", + "@aws-sdk/util-user-agent-browser": "3.370.0", + "@aws-sdk/util-user-agent-node": "3.370.0", + "@smithy/config-resolver": "^1.0.1", + "@smithy/fetch-http-handler": "^1.0.1", + "@smithy/hash-node": "^1.0.1", + "@smithy/invalid-dependency": "^1.0.1", + "@smithy/middleware-content-length": "^1.0.1", + "@smithy/middleware-endpoint": "^1.0.2", + "@smithy/middleware-retry": "^1.0.3", + "@smithy/middleware-serde": "^1.0.1", + "@smithy/middleware-stack": "^1.0.1", + "@smithy/node-config-provider": "^1.0.1", + "@smithy/node-http-handler": "^1.0.2", + "@smithy/protocol-http": "^1.1.0", + "@smithy/smithy-client": "^1.0.3", + "@smithy/types": "^1.1.0", + "@smithy/url-parser": "^1.0.1", + "@smithy/util-base64": "^1.0.1", + "@smithy/util-body-length-browser": "^1.0.1", + "@smithy/util-body-length-node": "^1.0.1", + "@smithy/util-defaults-mode-browser": "^1.0.1", + "@smithy/util-defaults-mode-node": "^1.0.1", + "@smithy/util-retry": "^1.0.3", + "@smithy/util-utf8": "^1.0.1", + "fast-xml-parser": "4.2.5", + "tslib": "^2.5.0" }, "engines": { - "node": ">= 0.8" + "node": ">=14.0.0" } }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "node_modules/@aws-sdk/credential-provider-cognito-identity": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.370.0.tgz", + "integrity": "sha512-OjNAN72+QoyJAmOayi47AlFzpQc4E59LWRE2GKgH0F1pEgr3t34T0/EHusCoxUjOz5mRRXrKjNlHVC7ezOFEcg==", + "optional": true, + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@smithy/property-provider": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.370.0.tgz", + "integrity": "sha512-raR3yP/4GGbKFRPP5hUBNkEmTnzxI9mEc2vJAJrcv4G4J4i/UP6ELiLInQ5eO2/VcV/CeKGZA3t7d1tsJ+jhCg==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.370.0", + "@smithy/property-provider": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/http-errors": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", - "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.370.0.tgz", + "integrity": "sha512-eJyapFKa4NrC9RfTgxlXnXfS9InG/QMEUPPVL+VhG7YS6nKqetC1digOYgivnEeu+XSKE0DJ7uZuXujN2Y7VAQ==", + "optional": true, "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.1", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.0" + "@aws-sdk/credential-provider-env": "3.370.0", + "@aws-sdk/credential-provider-process": "3.370.0", + "@aws-sdk/credential-provider-sso": "3.370.0", + "@aws-sdk/credential-provider-web-identity": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@smithy/credential-provider-imds": "^1.0.1", + "@smithy/property-provider": "^1.0.1", + "@smithy/shared-ini-file-loader": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.370.0.tgz", + "integrity": "sha512-gkFiotBFKE4Fcn8CzQnMeab9TAR06FEAD02T4ZRYW1xGrBJOowmje9dKqdwQFHSPgnWAP+8HoTA8iwbhTLvjNA==", + "optional": true, "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" + "@aws-sdk/credential-provider-env": "3.370.0", + "@aws-sdk/credential-provider-ini": "3.370.0", + "@aws-sdk/credential-provider-process": "3.370.0", + "@aws-sdk/credential-provider-sso": "3.370.0", + "@aws-sdk/credential-provider-web-identity": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@smithy/credential-provider-imds": "^1.0.1", + "@smithy/property-provider": "^1.0.1", + "@smithy/shared-ini-file-loader": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=14.0.0" } }, - "node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "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==", + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.370.0.tgz", + "integrity": "sha512-0BKFFZmUO779Xdw3u7wWnoWhYA4zygxJbgGVSyjkOGBvdkbPSTTcdwT1KFkaQy2kOXYeZPl+usVVRXs+ph4ejg==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.370.0", + "@smithy/property-provider": "^1.0.1", + "@smithy/shared-ini-file-loader": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.10" + "node": ">=14.0.0" } }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.370.0.tgz", + "integrity": "sha512-PFroYm5hcPSfC/jkZnCI34QFL3I7WVKveVk6/F3fud/cnP8hp6YjA9NiTNbqdFSzsyoiN/+e5fZgNKih8vVPTA==", + "optional": true, + "dependencies": { + "@aws-sdk/client-sso": "3.370.0", + "@aws-sdk/token-providers": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@smithy/property-provider": "^1.0.1", + "@smithy/shared-ini-file-loader": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.370.0.tgz", + "integrity": "sha512-CFaBMLRudwhjv1sDzybNV93IaT85IwS+L8Wq6VRMa0mro1q9rrWsIZO811eF+k0NEPfgU1dLH+8Vc2qhw4SARQ==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.370.0", + "@smithy/property-provider": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "bin": { - "mime": "cli.js" + "node_modules/@aws-sdk/credential-providers": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.370.0.tgz", + "integrity": "sha512-K5yUHJPB2QJKWzKoz1YCE2xJDvYL6bvCRyoT0mRPWbITrDjFuWxbe1QXWcMymwQIyzOITAnZq5fvj456KhPATg==", + "optional": true, + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.370.0", + "@aws-sdk/client-sso": "3.370.0", + "@aws-sdk/client-sts": "3.370.0", + "@aws-sdk/credential-provider-cognito-identity": "3.370.0", + "@aws-sdk/credential-provider-env": "3.370.0", + "@aws-sdk/credential-provider-ini": "3.370.0", + "@aws-sdk/credential-provider-node": "3.370.0", + "@aws-sdk/credential-provider-process": "3.370.0", + "@aws-sdk/credential-provider-sso": "3.370.0", + "@aws-sdk/credential-provider-web-identity": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@smithy/credential-provider-imds": "^1.0.1", + "@smithy/property-provider": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" }, "engines": { - "node": ">=4" + "node": ">=14.0.0" } }, - "node_modules/mime-db": { - "version": "1.51.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", + "node_modules/@aws-sdk/middleware-host-header": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.370.0.tgz", + "integrity": "sha512-CPXOm/TnOFC7KyXcJglICC7OiA7Kj6mT3ChvEijr56TFOueNHvJdV4aNIFEQy0vGHOWtY12qOWLNto/wYR1BAQ==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.370.0", + "@smithy/protocol-http": "^1.1.0", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/mime-types": { - "version": "2.1.34", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", - "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", + "node_modules/@aws-sdk/middleware-logger": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.370.0.tgz", + "integrity": "sha512-cQMq9SaZ/ORmTJPCT6VzMML7OxFdQzNkhMAgKpTDl+tdPWynlHF29E5xGoSzROnThHlQPCjogU0NZ8AxI0SWPA==", + "optional": true, "dependencies": { - "mime-db": "1.51.0" + "@aws-sdk/types": "3.370.0", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - }, - "node_modules/negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.370.0.tgz", + "integrity": "sha512-L7ZF/w0lAAY/GK1khT8VdoU0XB7nWHk51rl/ecAg64J70dHnMOAg8n+5FZ9fBu/xH1FwUlHOkwlodJOgzLJjtg==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.370.0", + "@smithy/protocol-http": "^1.1.0", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "node_modules/@aws-sdk/middleware-sdk-sts": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.370.0.tgz", + "integrity": "sha512-ykbsoVy0AJtVbuhAlTAMcaz/tCE3pT8nAp0L7CQQxSoanRCvOux7au0KwMIQVhxgnYid4dWVF6d00SkqU5MXRA==", + "optional": true, "dependencies": { - "ee-first": "1.1.1" + "@aws-sdk/middleware-signing": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" }, "engines": { - "node": ">= 0.8" + "node": ">=14.0.0" } }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "node_modules/@aws-sdk/middleware-signing": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.370.0.tgz", + "integrity": "sha512-Dwr/RTCWOXdm394wCwICGT2VNOTMRe4IGPsBRJAsM24pm+EEqQzSS3Xu/U/zF4exuxqpMta4wec4QpSarPNTxA==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.370.0", + "@smithy/property-provider": "^1.0.1", + "@smithy/protocol-http": "^1.1.0", + "@smithy/signature-v4": "^1.0.1", + "@smithy/types": "^1.1.0", + "@smithy/util-middleware": "^1.0.1", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.8" + "node": ">=14.0.0" } }, - "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.370.0.tgz", + "integrity": "sha512-2+3SB6MtMAq1+gVXhw0Y3ONXuljorh6ijnxgTpv+uQnBW5jHCUiAS8WDYiDEm7i9euJPbvJfM8WUrSMDMU6Cog==", + "optional": true, "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" + "@aws-sdk/types": "3.370.0", + "@aws-sdk/util-endpoints": "3.370.0", + "@smithy/protocol-http": "^1.1.0", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" }, "engines": { - "node": ">= 0.10" + "node": ">=14.0.0" } }, - "node_modules/qs": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", - "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "node_modules/@aws-sdk/token-providers": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.370.0.tgz", + "integrity": "sha512-EyR2ZYr+lJeRiZU2/eLR+mlYU9RXLQvNyGFSAekJKgN13Rpq/h0syzXVFLP/RSod/oZenh/fhVZ2HwlZxuGBtQ==", + "optional": true, + "dependencies": { + "@aws-sdk/client-sso-oidc": "3.370.0", + "@aws-sdk/types": "3.370.0", + "@smithy/property-provider": "^1.0.1", + "@smithy/shared-ini-file-loader": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" + }, "engines": { - "node": ">=0.6" + "node": ">=14.0.0" } }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "node_modules/@aws-sdk/types": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.370.0.tgz", + "integrity": "sha512-8PGMKklSkRKjunFhzM2y5Jm0H2TBu7YRNISdYzXLUHKSP9zlMEYagseKVdmox0zKHf1LXVNuSlUV2b6SRrieCQ==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=14.0.0" } }, - "node_modules/raw-body": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", - "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "node_modules/@aws-sdk/util-endpoints": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.370.0.tgz", + "integrity": "sha512-5ltVAnM79nRlywwzZN5i8Jp4tk245OCGkKwwXbnDU+gq7zT3CIOsct1wNZvmpfZEPGt/bv7/NyRcjP+7XNsX/g==", + "optional": true, "dependencies": { - "bytes": "3.1.0", - "http-errors": "1.7.2", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" + "@aws-sdk/types": "3.370.0", + "tslib": "^2.5.0" }, "engines": { - "node": ">= 0.8" + "node": ">=14.0.0" } }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", - "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "node_modules/@aws-sdk/util-locate-window": { + "version": "3.310.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.310.0.tgz", + "integrity": "sha512-qo2t/vBTnoXpjKxlsC2e1gBrRm80M3bId27r0BRB2VniSSe7bL1mmzM+/HFtujm0iAxtPM+aLEflLJlJeDPg0w==", + "optional": true, "dependencies": { - "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "~1.7.2", - "mime": "1.6.0", - "ms": "2.1.1", - "on-finished": "~2.3.0", - "range-parser": "~1.2.1", - "statuses": "~1.5.0" + "tslib": "^2.5.0" }, "engines": { - "node": ">= 0.8.0" + "node": ">=14.0.0" } }, - "node_modules/send/node_modules/ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + "node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.370.0.tgz", + "integrity": "sha512-028LxYZMQ0DANKhW+AKFQslkScZUeYlPmSphrCIXgdIItRZh6ZJHGzE7J/jDsEntZOrZJsjI4z0zZ5W2idj04w==", + "optional": true, + "dependencies": { + "@aws-sdk/types": "3.370.0", + "@smithy/types": "^1.1.0", + "bowser": "^2.11.0", + "tslib": "^2.5.0" + } }, - "node_modules/serve-static": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", - "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.370.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.370.0.tgz", + "integrity": "sha512-33vxZUp8vxTT/DGYIR3PivQm07sSRGWI+4fCv63Rt7Q++fO24E0kQtmVAlikRY810I10poD6rwILVtITtFSzkg==", + "optional": true, "dependencies": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.17.1" + "@aws-sdk/types": "3.370.0", + "@smithy/node-config-provider": "^1.0.1", + "@smithy/types": "^1.1.0", + "tslib": "^2.5.0" }, "engines": { - "node": ">= 0.8.0" + "node": ">=14.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } } }, - "node_modules/setprototypeof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", - "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" + "node_modules/@aws-sdk/util-utf8-browser": { + "version": "3.259.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz", + "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", + "optional": true, + "dependencies": { + "tslib": "^2.3.1" + } }, - "node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "node_modules/@babel/parser": { + "version": "7.22.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.7.tgz", + "integrity": "sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==", + "optional": true, + "bin": { + "parser": "bin/babel-parser.js" + }, "engines": { - "node": ">= 0.6" + "node": ">=6.0.0" } }, - "node_modules/toidentifier": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "node_modules/@fastify/busboy": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-1.2.1.tgz", + "integrity": "sha512-7PQA7EH43S0CxcOa9OeAnaeA0oQ+e/DHNPZwSQM9CQHW76jle5+OvLdibRp/Aafs9KXbLhxyjOTkRjWUbQEd3Q==", + "dependencies": { + "text-decoding": "^1.0.0" + }, "engines": { - "node": ">=0.6" + "node": ">=14" } }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "node_modules/@firebase/app-types": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.0.tgz", + "integrity": "sha512-AeweANOIo0Mb8GiYm3xhTEBVCmPwTYAu9Hcd2qSkLuga/6+j9b1Jskl5bpiSQWy9eJ/j5pavxj6eYogmnuzm+Q==" + }, + "node_modules/@firebase/auth-interop-types": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@firebase/auth-interop-types/-/auth-interop-types-0.2.1.tgz", + "integrity": "sha512-VOaGzKp65MY6P5FI84TfYKBXEPi6LmOCSMMzys6o2BN2LOsqy7pCuZCup7NYnfbk5OkkQKzvIfHOzTm0UDpkyg==" + }, + "node_modules/@firebase/component": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/@firebase/component/-/component-0.6.4.tgz", + "integrity": "sha512-rLMyrXuO9jcAUCaQXCMjCMUsWrba5fzHlNK24xz5j2W6A/SRmK8mZJ/hn7V0fViLbxC0lPMtrK1eYzk6Fg03jA==", + "dependencies": { + "@firebase/util": "1.9.3", + "tslib": "^2.1.0" + } + }, + "node_modules/@firebase/database": { + "version": "0.14.4", + "resolved": "https://registry.npmjs.org/@firebase/database/-/database-0.14.4.tgz", + "integrity": "sha512-+Ea/IKGwh42jwdjCyzTmeZeLM3oy1h0mFPsTy6OqCWzcu/KFqRAr5Tt1HRCOBlNOdbh84JPZC47WLU18n2VbxQ==", + "dependencies": { + "@firebase/auth-interop-types": "0.2.1", + "@firebase/component": "0.6.4", + "@firebase/logger": "0.4.0", + "@firebase/util": "1.9.3", + "faye-websocket": "0.11.4", + "tslib": "^2.1.0" + } + }, + "node_modules/@firebase/database-compat": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-0.3.4.tgz", + "integrity": "sha512-kuAW+l+sLMUKBThnvxvUZ+Q1ZrF/vFJ58iUY9kAcbX48U03nVzIF6Tmkf0p3WVQwMqiXguSgtOPIB6ZCeF+5Gg==", + "dependencies": { + "@firebase/component": "0.6.4", + "@firebase/database": "0.14.4", + "@firebase/database-types": "0.10.4", + "@firebase/logger": "0.4.0", + "@firebase/util": "1.9.3", + "tslib": "^2.1.0" + } + }, + "node_modules/@firebase/database-types": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/@firebase/database-types/-/database-types-0.10.4.tgz", + "integrity": "sha512-dPySn0vJ/89ZeBac70T+2tWWPiJXWbmRygYv0smT5TfE3hDrQ09eKMF3Y+vMlTdrMWq7mUdYW5REWPSGH4kAZQ==", + "dependencies": { + "@firebase/app-types": "0.9.0", + "@firebase/util": "1.9.3" + } + }, + "node_modules/@firebase/logger": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@firebase/logger/-/logger-0.4.0.tgz", + "integrity": "sha512-eRKSeykumZ5+cJPdxxJRgAC3G5NknY2GwEbKfymdnXtnT0Ucm4pspfR6GT4MUQEDuJwRVbVcSx85kgJulMoFFA==", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@firebase/util": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/@firebase/util/-/util-1.9.3.tgz", + "integrity": "sha512-DY02CRhOZwpzO36fHpuVysz6JZrscPiBXD0fXp6qSrL9oNOx5KWICKdR95C0lSITzxp0TZosVyHqzatE8JbcjA==", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@google-cloud/firestore": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/@google-cloud/firestore/-/firestore-6.6.1.tgz", + "integrity": "sha512-Z41j2h0mrgBH9qNIVmbRLqGKc6XmdJtWipeKwdnGa/bPTP1gn2SGTrYyWnpfsLMEtzKSYieHPSkAFp5kduF2RA==", + "optional": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "functional-red-black-tree": "^1.0.1", + "google-gax": "^3.5.7", + "protobufjs": "^7.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@google-cloud/paginator": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@google-cloud/paginator/-/paginator-3.0.7.tgz", + "integrity": "sha512-jJNutk0arIQhmpUUQJPJErsojqo834KcyB6X7a1mxuic8i1tKXxde8E69IZxNZawRIlZdIK2QY4WALvlK5MzYQ==", + "optional": true, + "dependencies": { + "arrify": "^2.0.0", + "extend": "^3.0.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@google-cloud/projectify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-3.0.0.tgz", + "integrity": "sha512-HRkZsNmjScY6Li8/kb70wjGlDDyLkVk3KvoEo9uIoxSjYLJasGiCch9+PqRVDOCGUFvEIqyogl+BeqILL4OJHA==", + "optional": true, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@google-cloud/promisify": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@google-cloud/promisify/-/promisify-3.0.1.tgz", + "integrity": "sha512-z1CjRjtQyBOYL+5Qr9DdYIfrdLBe746jRTYfaYU6MeXkqp7UfYs/jX16lFFVzZ7PGEJvqZNqYUEtb1mvDww4pA==", + "optional": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/@google-cloud/storage": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-6.12.0.tgz", + "integrity": "sha512-78nNAY7iiZ4O/BouWMWTD/oSF2YtYgYB3GZirn0To6eBOugjXVoK+GXgUXOl+HlqbAOyHxAVXOlsj3snfbQ1dw==", + "optional": true, + "dependencies": { + "@google-cloud/paginator": "^3.0.7", + "@google-cloud/projectify": "^3.0.0", + "@google-cloud/promisify": "^3.0.0", + "abort-controller": "^3.0.0", + "async-retry": "^1.3.3", + "compressible": "^2.0.12", + "duplexify": "^4.0.0", + "ent": "^2.2.0", + "extend": "^3.0.2", + "fast-xml-parser": "^4.2.2", + "gaxios": "^5.0.0", + "google-auth-library": "^8.0.1", + "mime": "^3.0.0", + "mime-types": "^2.0.8", + "p-limit": "^3.0.1", + "retry-request": "^5.0.0", + "teeny-request": "^8.0.0", + "uuid": "^8.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.8.18", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.18.tgz", + "integrity": "sha512-2uWPtxhsXmVgd8WzDhfamSjHpZDXfMjMDciY6VRTq4Sn7rFzazyf0LLDa0oav+61UHIoEZb4KKaAV6S7NuJFbQ==", + "optional": true, + "dependencies": { + "@grpc/proto-loader": "^0.7.0", + "@types/node": ">=12.12.47" + }, + "engines": { + "node": "^8.13.0 || >=10.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.8.tgz", + "integrity": "sha512-GU12e2c8dmdXb7XUlOgYWZ2o2i+z9/VeACkxTA/zzAe2IjclC5PnVL0lpgjhrqfpDYHzM8B1TF6pqWegMYAzlA==", + "optional": true, + "dependencies": { + "@types/long": "^4.0.1", + "lodash.camelcase": "^4.3.0", + "long": "^4.0.0", + "protobufjs": "^7.2.4", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@jsdoc/salty": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.5.tgz", + "integrity": "sha512-TfRP53RqunNe2HBobVBJ0VLhK1HbfvBYeTC1ahnN64PWvyYyGebmMiPkuwvD9fpw2ZbkoPb8Q7mwy0aR8Z9rvw==", + "optional": true, + "dependencies": { + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=v12.0.0" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@smithy/abort-controller": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-1.0.2.tgz", + "integrity": "sha512-tb2h0b+JvMee+eAxTmhnyqyNk51UXIK949HnE14lFeezKsVJTB30maan+CO2IMwnig2wVYQH84B5qk6ylmKCuA==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/config-resolver": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-1.0.2.tgz", + "integrity": "sha512-8Bk7CgnVKg1dn5TgnjwPz2ebhxeR7CjGs5yhVYH3S8x0q8yPZZVWwpRIglwXaf5AZBzJlNO1lh+lUhMf2e73zQ==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "@smithy/util-config-provider": "^1.0.2", + "@smithy/util-middleware": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/credential-provider-imds": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-1.0.2.tgz", + "integrity": "sha512-fLjCya+JOu2gPJpCiwSUyoLvT8JdNJmOaTOkKYBZoGf7CzqR6lluSyI+eboZnl/V0xqcfcqBG4tgqCISmWS3/w==", + "optional": true, + "dependencies": { + "@smithy/node-config-provider": "^1.0.2", + "@smithy/property-provider": "^1.0.2", + "@smithy/types": "^1.1.1", + "@smithy/url-parser": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/eventstream-codec": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-1.0.2.tgz", + "integrity": "sha512-eW/XPiLauR1VAgHKxhVvgvHzLROUgTtqat2lgljztbH8uIYWugv7Nz+SgCavB+hWRazv2iYgqrSy74GvxXq/rg==", + "optional": true, + "dependencies": { + "@aws-crypto/crc32": "3.0.0", + "@smithy/types": "^1.1.1", + "@smithy/util-hex-encoding": "^1.0.2", + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/fetch-http-handler": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-1.0.2.tgz", + "integrity": "sha512-kynyofLf62LvR8yYphPPdyHb8fWG3LepFinM/vWUTG2Q1pVpmPCM530ppagp3+q2p+7Ox0UvSqldbKqV/d1BpA==", + "optional": true, + "dependencies": { + "@smithy/protocol-http": "^1.1.1", + "@smithy/querystring-builder": "^1.0.2", + "@smithy/types": "^1.1.1", + "@smithy/util-base64": "^1.0.2", + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/hash-node": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-1.0.2.tgz", + "integrity": "sha512-K6PKhcUNrJXtcesyzhIvNlU7drfIU7u+EMQuGmPw6RQDAg/ufUcfKHz4EcUhFAodUmN+rrejhRG9U6wxjeBOQA==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "@smithy/util-buffer-from": "^1.0.2", + "@smithy/util-utf8": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/invalid-dependency": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-1.0.2.tgz", + "integrity": "sha512-B1Y3Tsa6dfC+Vvb+BJMhTHOfFieeYzY9jWQSTR1vMwKkxsymD0OIAnEw8rD/RiDj/4E4RPGFdx9Mdgnyd6Bv5Q==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/is-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-1.0.2.tgz", + "integrity": "sha512-pkyBnsBRpe+c/6ASavqIMRBdRtZNJEVJOEzhpxZ9JoAXiZYbkfaSMRA/O1dUxGdJ653GHONunnZ4xMo/LJ7utQ==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-content-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-1.0.2.tgz", + "integrity": "sha512-pa1/SgGIrSmnEr2c9Apw7CdU4l/HW0fK3+LKFCPDYJrzM0JdYpqjQzgxi31P00eAkL0EFBccpus/p1n2GF9urw==", + "optional": true, + "dependencies": { + "@smithy/protocol-http": "^1.1.1", + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-endpoint": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-1.0.3.tgz", + "integrity": "sha512-GsWvTXMFjSgl617PCE2km//kIjjtvMRrR2GAuRDIS9sHiLwmkS46VWaVYy+XE7ubEsEtzZ5yK2e8TKDR6Qr5Lw==", + "optional": true, + "dependencies": { + "@smithy/middleware-serde": "^1.0.2", + "@smithy/types": "^1.1.1", + "@smithy/url-parser": "^1.0.2", + "@smithy/util-middleware": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-retry": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-1.0.4.tgz", + "integrity": "sha512-G7uRXGFL8c3F7APnoIMTtNAHH8vT4F2qVnAWGAZaervjupaUQuRRHYBLYubK0dWzOZz86BtAXKieJ5p+Ni2Xpg==", + "optional": true, + "dependencies": { + "@smithy/protocol-http": "^1.1.1", + "@smithy/service-error-classification": "^1.0.3", + "@smithy/types": "^1.1.1", + "@smithy/util-middleware": "^1.0.2", + "@smithy/util-retry": "^1.0.4", + "tslib": "^2.5.0", + "uuid": "^8.3.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-retry/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@smithy/middleware-serde": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-1.0.2.tgz", + "integrity": "sha512-T4PcdMZF4xme6koUNfjmSZ1MLi7eoFeYCtodQNQpBNsS77TuJt1A6kt5kP/qxrTvfZHyFlj0AubACoaUqgzPeg==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/middleware-stack": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-1.0.2.tgz", + "integrity": "sha512-H7/uAQEcmO+eDqweEFMJ5YrIpsBwmrXSP6HIIbtxKJSQpAcMGY7KrR2FZgZBi1FMnSUOh+rQrbOyj5HQmSeUBA==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/node-config-provider": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-1.0.2.tgz", + "integrity": "sha512-HU7afWpTToU0wL6KseGDR2zojeyjECQfr8LpjAIeHCYIW7r360ABFf4EaplaJRMVoC3hD9FeltgI3/NtShOqCg==", + "optional": true, + "dependencies": { + "@smithy/property-provider": "^1.0.2", + "@smithy/shared-ini-file-loader": "^1.0.2", + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/node-http-handler": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-1.0.3.tgz", + "integrity": "sha512-PcPUSzTbIb60VCJCiH0PU0E6bwIekttsIEf5Aoo/M0oTfiqsxHTn0Rcij6QoH6qJy6piGKXzLSegspXg5+Kq6g==", + "optional": true, + "dependencies": { + "@smithy/abort-controller": "^1.0.2", + "@smithy/protocol-http": "^1.1.1", + "@smithy/querystring-builder": "^1.0.2", + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/property-provider": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-1.0.2.tgz", + "integrity": "sha512-pXDPyzKX8opzt38B205kDgaxda6LHcTfPvTYQZnwP6BAPp1o9puiCPjeUtkKck7Z6IbpXCPUmUQnzkUzWTA42Q==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/protocol-http": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-1.1.1.tgz", + "integrity": "sha512-mFLFa2sSvlUxm55U7B4YCIsJJIMkA6lHxwwqOaBkral1qxFz97rGffP/mmd4JDuin1EnygiO5eNJGgudiUgmDQ==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/querystring-builder": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-1.0.2.tgz", + "integrity": "sha512-6P/xANWrtJhMzTPUR87AbXwSBuz1SDHIfL44TFd/GT3hj6rA+IEv7rftEpPjayUiWRocaNnrCPLvmP31mobOyA==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "@smithy/util-uri-escape": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/querystring-parser": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-1.0.2.tgz", + "integrity": "sha512-IWxwxjn+KHWRRRB+K2Ngl+plTwo2WSgc2w+DvLy0DQZJh9UGOpw40d6q97/63GBlXIt4TEt5NbcFrO30CKlrsA==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/service-error-classification": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-1.0.3.tgz", + "integrity": "sha512-2eglIYqrtcUnuI71yweu7rSfCgt6kVvRVf0C72VUqrd0LrV1M0BM0eYN+nitp2CHPSdmMI96pi+dU9U/UqAMSA==", + "optional": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/shared-ini-file-loader": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-1.0.2.tgz", + "integrity": "sha512-bdQj95VN+lCXki+P3EsDyrkpeLn8xDYiOISBGnUG/AGPYJXN8dmp4EhRRR7XOoLoSs8anZHR4UcGEOzFv2jwGw==", + "optional": true, + "dependencies": { + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/signature-v4": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-1.0.2.tgz", + "integrity": "sha512-rpKUhmCuPmpV5dloUkOb9w1oBnJatvKQEjIHGmkjRGZnC3437MTdzWej9TxkagcZ8NRRJavYnEUixzxM1amFig==", + "optional": true, + "dependencies": { + "@smithy/eventstream-codec": "^1.0.2", + "@smithy/is-array-buffer": "^1.0.2", + "@smithy/types": "^1.1.1", + "@smithy/util-hex-encoding": "^1.0.2", + "@smithy/util-middleware": "^1.0.2", + "@smithy/util-uri-escape": "^1.0.2", + "@smithy/util-utf8": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/smithy-client": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-1.0.4.tgz", + "integrity": "sha512-gpo0Xl5Nyp9sgymEfpt7oa9P2q/GlM3VmQIdm+FeH0QEdYOQx3OtvwVmBYAMv2FIPWxkMZlsPYRTnEiBTK5TYg==", + "optional": true, + "dependencies": { + "@smithy/middleware-stack": "^1.0.2", + "@smithy/types": "^1.1.1", + "@smithy/util-stream": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/types": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-1.1.1.tgz", + "integrity": "sha512-tMpkreknl2gRrniHeBtdgQwaOlo39df8RxSrwsHVNIGXULy5XP6KqgScUw2m12D15wnJCKWxVhCX+wbrBW/y7g==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/url-parser": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-1.0.2.tgz", + "integrity": "sha512-0JRsDMQe53F6EHRWksdcavKDRjyqp8vrjakg8EcCUOa7PaFRRB1SO/xGZdzSlW1RSTWQDEksFMTCEcVEKmAoqA==", + "optional": true, + "dependencies": { + "@smithy/querystring-parser": "^1.0.2", + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/util-base64": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-1.0.2.tgz", + "integrity": "sha512-BCm15WILJ3SL93nusoxvJGMVfAMWHZhdeDZPtpAaskozuexd0eF6szdz4kbXaKp38bFCSenA6bkUHqaE3KK0dA==", + "optional": true, + "dependencies": { + "@smithy/util-buffer-from": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-body-length-browser": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-1.0.2.tgz", + "integrity": "sha512-Xh8L06H2anF5BHjSYTg8hx+Itcbf4SQZnVMl4PIkCOsKtneMJoGjPRLy17lEzfoh/GOaa0QxgCP6lRMQWzNl4w==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + } + }, + "node_modules/@smithy/util-body-length-node": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-1.0.2.tgz", + "integrity": "sha512-nXHbZsUtvZeyfL4Ceds9nmy2Uh2AhWXohG4vWHyjSdmT8cXZlJdmJgnH6SJKDjyUecbu+BpKeVvSrA4cWPSOPA==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-buffer-from": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-1.0.2.tgz", + "integrity": "sha512-lHAYIyrBO9RANrPvccnPjU03MJnWZ66wWuC5GjWWQVfsmPwU6m00aakZkzHdUT6tGCkGacXSgArP5wgTgA+oCw==", + "optional": true, + "dependencies": { + "@smithy/is-array-buffer": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-config-provider": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-1.0.2.tgz", + "integrity": "sha512-HOdmDm+3HUbuYPBABLLHtn8ittuRyy+BSjKOA169H+EMc+IozipvXDydf+gKBRAxUa4dtKQkLraypwppzi+PRw==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-defaults-mode-browser": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-1.0.2.tgz", + "integrity": "sha512-J1u2PO235zxY7dg0+ZqaG96tFg4ehJZ7isGK1pCBEA072qxNPwIpDzUVGnLJkHZvjWEGA8rxIauDtXfB0qxeAg==", + "optional": true, + "dependencies": { + "@smithy/property-provider": "^1.0.2", + "@smithy/types": "^1.1.1", + "bowser": "^2.11.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@smithy/util-defaults-mode-node": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-1.0.2.tgz", + "integrity": "sha512-9/BN63rlIsFStvI+AvljMh873Xw6bbI6b19b+PVYXyycQ2DDQImWcjnzRlHW7eP65CCUNGQ6otDLNdBQCgMXqg==", + "optional": true, + "dependencies": { + "@smithy/config-resolver": "^1.0.2", + "@smithy/credential-provider-imds": "^1.0.2", + "@smithy/node-config-provider": "^1.0.2", + "@smithy/property-provider": "^1.0.2", + "@smithy/types": "^1.1.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@smithy/util-hex-encoding": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-1.0.2.tgz", + "integrity": "sha512-Bxydb5rMJorMV6AuDDMOxro3BMDdIwtbQKHpwvQFASkmr52BnpDsWlxgpJi8Iq7nk1Bt4E40oE1Isy/7ubHGzg==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-middleware": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-1.0.2.tgz", + "integrity": "sha512-vtXK7GOR2BoseCX8NCGe9SaiZrm9M2lm/RVexFGyPuafTtry9Vyv7hq/vw8ifd/G/pSJ+msByfJVb1642oQHKw==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-retry": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-1.0.4.tgz", + "integrity": "sha512-RnZPVFvRoqdj2EbroDo3OsnnQU8eQ4AlnZTOGusbYKybH3269CFdrZfZJloe60AQjX7di3J6t/79PjwCLO5Khw==", + "optional": true, + "dependencies": { + "@smithy/service-error-classification": "^1.0.3", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@smithy/util-stream": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-1.0.2.tgz", + "integrity": "sha512-qyN2M9QFMTz4UCHi6GnBfLOGYKxQZD01Ga6nzaXFFC51HP/QmArU72e4kY50Z/EtW8binPxspP2TAsGbwy9l3A==", + "optional": true, + "dependencies": { + "@smithy/fetch-http-handler": "^1.0.2", + "@smithy/node-http-handler": "^1.0.3", + "@smithy/types": "^1.1.1", + "@smithy/util-base64": "^1.0.2", + "@smithy/util-buffer-from": "^1.0.2", + "@smithy/util-hex-encoding": "^1.0.2", + "@smithy/util-utf8": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-uri-escape": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-1.0.2.tgz", + "integrity": "sha512-k8C0BFNS9HpBMHSgUDnWb1JlCQcFG+PPlVBq9keP4Nfwv6a9Q0yAfASWqUCtzjuMj1hXeLhn/5ADP6JxnID1Pg==", + "optional": true, + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/util-utf8": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-1.0.2.tgz", + "integrity": "sha512-V4cyjKfJlARui0dMBfWJMQAmJzoW77i4N3EjkH/bwnE2Ngbl4tqD2Y0C/xzpzY/J1BdxeCKxAebVFk8aFCaSCw==", + "optional": true, + "dependencies": { + "@smithy/util-buffer-from": "^1.0.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==" + }, + "node_modules/@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "optional": true, + "engines": { + "node": ">= 10" + } + }, + "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==", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", + "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/cors": { + "version": "2.8.13", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.13.tgz", + "integrity": "sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/express": { + "version": "4.17.3", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.3.tgz", + "integrity": "sha512-I8cGRJj3pyOLs/HndoP+25vOqhqWkAZsWMEmq1qXy/b/M3ppufecUwaK2/TVDVxcV61/iSdhykUjQQ2DLSrTdg==", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.17.35", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", + "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==", + "optional": true, + "dependencies": { + "@types/minimatch": "^5.1.2", + "@types/node": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-/K3ds8TRAfBvi5vfjuz8y6+GiAYBZ0x4tXv1Av6CWBWn0IlADc+ZX9pMq7oU0fNQPnBwIZl3rmeLp6SBApbxSQ==" + }, + "node_modules/@types/jsonwebtoken": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", + "integrity": "sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/linkify-it": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.2.tgz", + "integrity": "sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==", + "optional": true + }, + "node_modules/@types/long": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==", + "optional": true + }, + "node_modules/@types/markdown-it": { + "version": "12.2.3", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz", + "integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==", + "optional": true, + "dependencies": { + "@types/linkify-it": "*", + "@types/mdurl": "*" + } + }, + "node_modules/@types/mdurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.2.tgz", + "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", + "optional": true + }, + "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==" + }, + "node_modules/@types/minimatch": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", + "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", + "optional": true + }, + "node_modules/@types/node": { + "version": "20.4.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.2.tgz", + "integrity": "sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==" + }, + "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==" + }, + "node_modules/@types/range-parser": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", + "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" + }, + "node_modules/@types/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==", + "optional": true, + "dependencies": { + "@types/glob": "*", + "@types/node": "*" + } + }, + "node_modules/@types/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", + "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.2.tgz", + "integrity": "sha512-J2LqtvFYCzaj8pVYKw8klQXrLLk7TBZmQ4ShlcdkELFKGwGMfevMLneMMRkMgZxotOD9wg497LpC7O8PcvAmfw==", + "dependencies": { + "@types/http-errors": "*", + "@types/mime": "*", + "@types/node": "*" + } + }, + "node_modules/@types/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog==" + }, + "node_modules/@types/whatwg-url": { + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", + "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", + "dependencies": { + "@types/node": "*", + "@types/webidl-conversions": "*" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "optional": true, + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "optional": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "optional": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "optional": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agent-base/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/agent-base/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "optional": true + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "optional": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "optional": true + }, + "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/arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/async-retry": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz", + "integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==", + "optional": true, + "dependencies": { + "retry": "0.13.1" + } + }, + "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/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/aws-sdk": { + "version": "2.1415.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1415.0.tgz", + "integrity": "sha512-tJneWCa1IZnw+pn3AwjE+3u8oGSlMMk6mCkA/7BOqe+n9shLLymwPfmxeCxtArBmBzg8m74vkoEYh5tm8Eo/gw==", + "dependencies": { + "buffer": "4.9.2", + "events": "1.1.1", + "ieee754": "1.1.13", + "jmespath": "0.16.0", + "querystring": "0.2.0", + "sax": "1.2.1", + "url": "0.10.3", + "util": "^0.12.4", + "uuid": "8.0.0", + "xml2js": "0.5.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/axios": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", + "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bignumber.js": { + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", + "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", + "optional": true, + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "optional": true + }, + "node_modules/body-parser": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", + "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", + "optional": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/bson": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/bson/-/bson-4.7.2.tgz", + "integrity": "sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==", + "dependencies": { + "buffer": "^5.6.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/bson/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" + }, + "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/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/catharsis": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", + "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", + "optional": true, + "dependencies": { + "lodash": "^4.17.15" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "optional": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "optional": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "optional": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "optional": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "optional": 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" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "optional": true, + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "optional": true + }, + "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", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, + "node_modules/duplexify": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz", + "integrity": "sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==", + "optional": true, + "dependencies": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.0" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "optional": true + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "optional": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/ent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", + "integrity": "sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==", + "optional": true + }, + "node_modules/entities": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", + "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", + "optional": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "optional": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=4.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/escodegen/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "optional": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "optional": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "optional": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "optional": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "optional": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", + "integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==", + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/express/node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "optional": true + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "optional": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "optional": true + }, + "node_modules/fast-text-encoding": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz", + "integrity": "sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==", + "optional": true + }, + "node_modules/fast-xml-parser": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", + "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + }, + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "optional": true, + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/file-type": { + "version": "16.5.4", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-16.5.4.tgz", + "integrity": "sha512-/yFHK0aGjFEgDJjEKP0pWCplsPFPhwyfwevf/pVxiN0tmE4L9LmwWxWukdJSHdoCli4VgQLehjJtwQBnqmsKcw==", + "dependencies": { + "readable-web-to-node-stream": "^3.0.0", + "strtok3": "^6.2.4", + "token-types": "^4.1.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/firebase-admin": { + "version": "11.10.1", + "resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-11.10.1.tgz", + "integrity": "sha512-atv1E6GbuvcvWaD3eHwrjeP5dAVs+EaHEJhu9CThMzPY6In8QYDiUR6tq5SwGl4SdA/GcAU0nhwWc/FSJsAzfQ==", + "dependencies": { + "@fastify/busboy": "^1.2.1", + "@firebase/database-compat": "^0.3.4", + "@firebase/database-types": "^0.10.4", + "@types/node": ">=12.12.47", + "jsonwebtoken": "^9.0.0", + "jwks-rsa": "^3.0.1", + "node-forge": "^1.3.1", + "uuid": "^9.0.0" + }, + "engines": { + "node": ">=14" + }, + "optionalDependencies": { + "@google-cloud/firestore": "^6.6.0", + "@google-cloud/storage": "^6.9.5" + } + }, + "node_modules/firebase-admin/node_modules/uuid": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/firebase-functions": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/firebase-functions/-/firebase-functions-4.4.1.tgz", + "integrity": "sha512-3no53Lg12ToNlPSgLZtAFLQAz6si7ilHvzO8NC3/2EybyUwegpj5YhHwNiCw839lmAWp3znjATJDTvADFiZMrg==", + "dependencies": { + "@types/cors": "^2.8.5", + "@types/express": "4.17.3", + "cors": "^2.8.5", + "express": "^4.17.1", + "node-fetch": "^2.6.7", + "protobufjs": "^7.2.2" + }, + "bin": { + "firebase-functions": "lib/bin/firebase-functions.js" + }, + "engines": { + "node": ">=14.10.0" + }, + "peerDependencies": { + "firebase-admin": "^10.0.0 || ^11.0.0" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "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", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "optional": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "optional": true + }, + "node_modules/gaxios": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-5.1.3.tgz", + "integrity": "sha512-95hVgBRgEIRQQQHIbnxBXeHbW4TqFk4ZDJW7wmVtvYar72FdhRIo1UGOLS2eRAKCPEdPBWu+M7+A33D9CdX9rA==", + "optional": true, + "dependencies": { + "extend": "^3.0.2", + "https-proxy-agent": "^5.0.0", + "is-stream": "^2.0.0", + "node-fetch": "^2.6.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/gcp-metadata": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-5.3.0.tgz", + "integrity": "sha512-FNTkdNEnBdlqF2oatizolQqNANMrcqJt6AAYt99B3y1aLLC8Hc5IOBb+ZnnzllodEEf6xMBp6wRcBbc16fa65w==", + "optional": true, + "dependencies": { + "gaxios": "^5.0.0", + "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "optional": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "optional": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "optional": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "optional": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/google-auth-library": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-8.9.0.tgz", + "integrity": "sha512-f7aQCJODJFmYWN6PeNKzgvy9LI2tYmXnzpNDHEjG5sDNPgGb2FXQyTBnXeSH+PAtpKESFD+LmHw3Ox3mN7e1Fg==", + "optional": true, + "dependencies": { + "arrify": "^2.0.0", + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "fast-text-encoding": "^1.0.0", + "gaxios": "^5.0.0", + "gcp-metadata": "^5.3.0", + "gtoken": "^6.1.0", + "jws": "^4.0.0", + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/google-gax": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-3.6.1.tgz", + "integrity": "sha512-g/lcUjGcB6DSw2HxgEmCDOrI/CByOwqRvsuUvNalHUK2iPPPlmAIpbMbl62u0YufGMr8zgE3JL7th6dCb1Ry+w==", + "optional": true, + "dependencies": { + "@grpc/grpc-js": "~1.8.0", + "@grpc/proto-loader": "^0.7.0", + "@types/long": "^4.0.0", + "@types/rimraf": "^3.0.2", + "abort-controller": "^3.0.0", + "duplexify": "^4.0.0", + "fast-text-encoding": "^1.0.3", + "google-auth-library": "^8.0.2", + "is-stream-ended": "^0.1.4", + "node-fetch": "^2.6.1", + "object-hash": "^3.0.0", + "proto3-json-serializer": "^1.0.0", + "protobufjs": "7.2.4", + "protobufjs-cli": "1.1.1", + "retry-request": "^5.0.0" + }, + "bin": { + "compileProtos": "build/tools/compileProtos.js", + "minifyProtoJson": "build/tools/minify.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/google-p12-pem": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-4.0.1.tgz", + "integrity": "sha512-WPkN4yGtz05WZ5EhtlxNDWPhC4JIic6G8ePitwUWy4l+XPVYec+a0j0Ts47PDtW59y3RwAhUd9/h9ZZ63px6RQ==", + "optional": true, + "dependencies": { + "node-forge": "^1.3.1" + }, + "bin": { + "gp12-pem": "build/src/bin/gp12-pem.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "optional": true + }, + "node_modules/gtoken": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-6.1.2.tgz", + "integrity": "sha512-4ccGpzz7YAr7lxrT2neugmXQ3hP9ho2gcaityLVkiUecAiwiy60Ii8gRbZeOsXV19fYaRjgBSshs8kXw+NKCPQ==", + "optional": true, + "dependencies": { + "gaxios": "^5.0.1", + "google-p12-pem": "^4.0.0", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-parser-js": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", + "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" + }, + "node_modules/http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "optional": true, + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-proxy-agent/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/http-proxy-agent/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "optional": true + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "optional": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "optional": true + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==" + }, + "node_modules/image-size": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.8.3.tgz", + "integrity": "sha512-SMtq1AJ+aqHB45c3FsB4ERK0UCiA2d3H1uq8s+8T0Pf8A3W4teyBQyaFaktH6xvZqh+npwlKU7i4fJo0r7TYTg==", + "dependencies": { + "queue": "6.0.1" + }, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "optional": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==" + }, + "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/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "optional": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-stream-ended": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz", + "integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==", + "optional": true + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/jmespath": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", + "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/jose": { + "version": "4.14.4", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.14.4.tgz", + "integrity": "sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/js2xmlparser": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", + "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", + "optional": true, + "dependencies": { + "xmlcreate": "^2.0.4" + } + }, + "node_modules/jsdoc": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.2.tgz", + "integrity": "sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg==", + "optional": true, + "dependencies": { + "@babel/parser": "^7.20.15", + "@jsdoc/salty": "^0.2.1", + "@types/markdown-it": "^12.2.3", + "bluebird": "^3.7.2", + "catharsis": "^0.9.0", + "escape-string-regexp": "^2.0.0", + "js2xmlparser": "^4.0.2", + "klaw": "^3.0.0", + "markdown-it": "^12.3.2", + "markdown-it-anchor": "^8.4.1", + "marked": "^4.0.10", + "mkdirp": "^1.0.4", + "requizzle": "^0.2.3", + "strip-json-comments": "^3.1.0", + "underscore": "~1.13.2" + }, + "bin": { + "jsdoc": "jsdoc.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "optional": true, + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/jsonwebtoken": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.1.tgz", + "integrity": "sha512-K8wx7eJ5TPvEjuiVSkv167EVboBDv9PZdDoF7BgeQnBLVvZWW9clr2PsQHVJDTKaEIH5JBIwHujGcHp7GgI2eg==", + "dependencies": { + "jws": "^3.2.2", + "lodash": "^4.17.21", + "ms": "^2.1.1", + "semver": "^7.3.8" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jsonwebtoken/node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jsonwebtoken/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "optional": true, + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jwks-rsa": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/jwks-rsa/-/jwks-rsa-3.0.1.tgz", + "integrity": "sha512-UUOZ0CVReK1QVU3rbi9bC7N5/le8ziUj0A2ef1Q0M7OPD2KvjEYizptqIxGIo6fSLYDkqBrazILS18tYuRc8gw==", + "dependencies": { + "@types/express": "^4.17.14", + "@types/jsonwebtoken": "^9.0.0", + "debug": "^4.3.4", + "jose": "^4.10.4", + "limiter": "^1.1.5", + "lru-memoizer": "^2.1.4" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/jwks-rsa/node_modules/@types/express": { + "version": "4.17.17", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", + "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/jwks-rsa/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/jwks-rsa/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "optional": true, + "dependencies": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/kareem": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.5.1.tgz", + "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/klaw": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", + "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", + "optional": true, + "dependencies": { + "graceful-fs": "^4.1.9" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "optional": true, + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/limiter": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.5.tgz", + "integrity": "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA==" + }, + "node_modules/linkify-it": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", + "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", + "optional": true, + "dependencies": { + "uc.micro": "^1.0.1" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "optional": true + }, + "node_modules/lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==" + }, + "node_modules/lodash.has": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/lodash.has/-/lodash.has-4.5.2.tgz", + "integrity": "sha512-rnYUdIo6xRCJnQmbVFEwcxF144erlD+M3YcJUVesflU9paQaE8p+fJDcIQrlMYbxoANFL+AB9hZrzSBBk5PL+g==" + }, + "node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", + "optional": true + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/lru-memoizer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/lru-memoizer/-/lru-memoizer-2.2.0.tgz", + "integrity": "sha512-QfOZ6jNkxCcM/BkIPnFsqDhtrazLRsghi9mBwFAzol5GCvj4EkFT899Za3+QwikCg5sRX8JstioBDwOxEyzaNw==", + "dependencies": { + "lodash.clonedeep": "^4.5.0", + "lru-cache": "~4.0.0" + } + }, + "node_modules/lru-memoizer/node_modules/lru-cache": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.2.tgz", + "integrity": "sha512-uQw9OqphAGiZhkuPlpFGmdTU2tEuhxTourM/19qGJrxBPHAr/f8BT1a0i/lOclESnGatdJG/UCkP9kZB/Lh1iw==", + "dependencies": { + "pseudomap": "^1.0.1", + "yallist": "^2.0.0" + } + }, + "node_modules/lru-memoizer/node_modules/yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==" + }, + "node_modules/markdown-it": { + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", + "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", + "optional": true, + "dependencies": { + "argparse": "^2.0.1", + "entities": "~2.1.0", + "linkify-it": "^3.0.1", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + }, + "bin": { + "markdown-it": "bin/markdown-it.js" + } + }, + "node_modules/markdown-it-anchor": { + "version": "8.6.7", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", + "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", + "optional": true, + "peerDependencies": { + "@types/markdown-it": "*", + "markdown-it": "*" + } + }, + "node_modules/marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "optional": true, + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", + "optional": true + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memory-pager": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", + "optional": true + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", + "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", + "optional": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "optional": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "optional": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/moment": { + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", + "engines": { + "node": "*" + } + }, + "node_modules/mongodb": { + "version": "4.16.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.16.0.tgz", + "integrity": "sha512-0EB113Fsucaq1wsY0dOhi1fmZOwFtLOtteQkiqOXGklvWMnSH3g2QS53f0KTP+/6qOkuoXE2JksubSZNmxeI+g==", + "dependencies": { + "bson": "^4.7.2", + "mongodb-connection-string-url": "^2.5.4", + "socks": "^2.7.1" + }, + "engines": { + "node": ">=12.9.0" + }, + "optionalDependencies": { + "@aws-sdk/credential-providers": "^3.186.0", + "saslprep": "^1.0.3" + } + }, + "node_modules/mongodb-connection-string-url": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", + "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", + "dependencies": { + "@types/whatwg-url": "^8.2.1", + "whatwg-url": "^11.0.0" + } + }, + "node_modules/mongoose": { + "version": "6.11.3", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.11.3.tgz", + "integrity": "sha512-M1Y5PjttgV51YDa30u7GVMVypQSlNZF/jUhlzTBAmaz5C9FvOr8eih/VLhhO7xtTSlcVTFQS1dqlQNMbtfUowQ==", + "dependencies": { + "bson": "^4.7.2", + "kareem": "2.5.1", + "mongodb": "4.16.0", + "mpath": "0.9.0", + "mquery": "4.0.3", + "ms": "2.1.3", + "sift": "16.0.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mongoose" + } + }, + "node_modules/mongoose/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/mpath": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz", + "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mquery": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.3.tgz", + "integrity": "sha512-J5heI+P08I6VJ2Ky3+33IpCdAvlYGTSUjwTPxkAr8i8EoduPMBX2OY/wa3IKZIQl7MU4SbFk8ndgSKyB/cl1zA==", + "dependencies": { + "debug": "4.x" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/mquery/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/mquery/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-fetch": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", + "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-fetch/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/node-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/node-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-input-validator": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/node-input-validator/-/node-input-validator-4.5.1.tgz", + "integrity": "sha512-ZfFk5/AHy6pd3o951BVuj+VOsP37vmwIeDsG/CR+L1Kfw4kGQO7xePVXOeJ8F67Ro2ZeCamI9OYCnBmx1vFOSw==", + "dependencies": { + "file-type": "^16.5.4", + "image-size": "^0.8.3", + "lodash.has": "^4.5.2", + "mime-types": "^2.1.28", + "moment": "^2.29.1", + "read-chunk": "^3.2.0", + "validator": "^13.5.2" + }, + "engines": { + "node": ">=8.16" + } + }, + "node_modules/nodemon": { + "version": "2.0.22", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz", + "integrity": "sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^5.7.1", + "simple-update-notifier": "^1.0.7", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=8.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/nodemon/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "optional": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "optional": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "optional": true, + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "engines": { + "node": ">=4" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "optional": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "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", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "node_modules/peek-readable": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-4.1.0.tgz", + "integrity": "sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg==", + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "engines": { + "node": ">=6" + } + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "optional": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/proto3-json-serializer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-1.1.1.tgz", + "integrity": "sha512-AwAuY4g9nxx0u52DnSMkqqgyLHaW/XaPLtaAo3y/ZCfeaQB/g4YDH4kb8Wc/mWzWvu0YjOznVnfn373MVZZrgw==", + "optional": true, + "dependencies": { + "protobufjs": "^7.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/protobufjs": { + "version": "7.2.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.4.tgz", + "integrity": "sha512-AT+RJgD2sH8phPmCf7OUZR8xGdcJRga4+1cOaXJ64hvcSkVhNcRHOwIxUatPH15+nj59WAGTDv3LSGZPEQbJaQ==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/protobufjs-cli": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.1.tgz", + "integrity": "sha512-VPWMgIcRNyQwWUv8OLPyGQ/0lQY/QTQAVN5fh+XzfDwsVw1FZ2L3DM/bcBf8WPiRz2tNpaov9lPZfNcmNo6LXA==", + "optional": true, + "dependencies": { + "chalk": "^4.0.0", + "escodegen": "^1.13.0", + "espree": "^9.0.0", + "estraverse": "^5.1.0", + "glob": "^8.0.0", + "jsdoc": "^4.0.0", + "minimist": "^1.2.0", + "semver": "^7.1.2", + "tmp": "^0.2.1", + "uglify-js": "^3.7.7" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "protobufjs": "^7.0.0" + } + }, + "node_modules/protobufjs/node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "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/pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==" + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" + }, + "node_modules/punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==" + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", + "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/queue": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.1.tgz", + "integrity": "sha512-AJBQabRCCNr9ANq8v77RJEv73DPbn55cdTb+Giq4X0AVnNVZvMHlYp7XlQiN+1npCZj1DuSmaA2hYVUUDgxFDg==", + "dependencies": { + "inherits": "~2.0.3" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/read-chunk": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/read-chunk/-/read-chunk-3.2.0.tgz", + "integrity": "sha512-CEjy9LCzhmD7nUpJ1oVOE6s/hBkejlcJEgLQHVnQznOSilOPb+kpKktlLfFDK3/WP43+F80xkUTM2VOkYoSYvQ==", + "dependencies": { + "pify": "^4.0.1", + "with-open-file": "^0.1.6" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readable-web-to-node-stream": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz", + "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==", + "dependencies": { + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requizzle": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", + "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", + "optional": true, + "dependencies": { + "lodash": "^4.17.21" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "optional": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/retry-request": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-5.0.2.tgz", + "integrity": "sha512-wfI3pk7EE80lCIXprqh7ym48IHYdwmAAzESdbU8Q9l7pnRCk9LEhpbOTNKjz6FARLm/Bl5m+4F0ABxOkYUujSQ==", + "optional": true, + "dependencies": { + "debug": "^4.1.1", + "extend": "^3.0.2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/retry-request/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/retry-request/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "optional": true + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "optional": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "optional": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/saslprep": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", + "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", + "optional": true, + "dependencies": { + "sparse-bitfield": "^3.0.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sax": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", + "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==" + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sift": { + "version": "16.0.1", + "resolved": "https://registry.npmjs.org/sift/-/sift-16.0.1.tgz", + "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==" + }, + "node_modules/simple-update-notifier": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz", + "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==", + "dependencies": { + "semver": "~7.0.0" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/simple-update-notifier/node_modules/semver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "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==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sparse-bitfield": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", + "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", + "optional": true, + "dependencies": { + "memory-pager": "^1.0.2" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/stream-events": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/stream-events/-/stream-events-1.0.5.tgz", + "integrity": "sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==", + "optional": true, + "dependencies": { + "stubs": "^3.0.0" + } + }, + "node_modules/stream-shift": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", + "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==", + "optional": true + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "optional": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "optional": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "optional": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strnum": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", + "optional": true + }, + "node_modules/strtok3": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-6.3.0.tgz", + "integrity": "sha512-fZtbhtvI9I48xDSywd/somNqgUHl2L2cstmXCCif0itOf96jeW18MBSyrLuNicYQVkvpOxkZtkzujiTJ9LW5Jw==", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "peek-readable": "^4.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/stubs": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz", + "integrity": "sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==", + "optional": true + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" + "has-flag": "^3.0.0" }, "engines": { - "node": ">= 0.6" + "node": ">=4" } }, - "node_modules/unpipe": { + "node_modules/teeny-request": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-8.0.3.tgz", + "integrity": "sha512-jJZpA5He2y52yUhA7pyAGZlgQpcB+xLjcN0eUFxr9c8hP/H7uOXbBNVo/O0C/xVfJLJs680jvkFgVJEEvk9+ww==", + "optional": true, + "dependencies": { + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "node-fetch": "^2.6.1", + "stream-events": "^1.0.5", + "uuid": "^9.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/teeny-request/node_modules/uuid": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==", + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/text-decoding": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "resolved": "https://registry.npmjs.org/text-decoding/-/text-decoding-1.0.0.tgz", + "integrity": "sha512-/0TJD42KDnVwKmDK6jj3xP7E2MG7SHAOG4tyTgyUCRPdHwvkquYNLEQltmdMa3owq3TkddCVcTsoctJI8VQNKA==" + }, + "node_modules/tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "optional": true, + "dependencies": { + "rimraf": "^3.0.0" + }, "engines": { - "node": ">= 0.8" + "node": ">=8.17.0" } }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, "engines": { - "node": ">= 0.4.0" + "node": ">=8.0" } }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "engines": { - "node": ">= 0.8" + "node": ">=0.6" } - } - }, - "dependencies": { - "accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", - "requires": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" - } - }, - "array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" - }, - "body-parser": { - "version": "1.19.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", - "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", - "requires": { - "bytes": "3.1.0", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "~1.1.2", - "http-errors": "1.7.2", - "iconv-lite": "0.4.24", - "on-finished": "~2.3.0", - "qs": "6.7.0", - "raw-body": "2.4.0", - "type-is": "~1.6.17" + }, + "node_modules/token-types": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-4.2.1.tgz", + "integrity": "sha512-6udB24Q737UD/SDsKAHI9FCRP7Bqc9D/MQUV02ORQg5iskjtLJlZJNdN4kKtcdtwCeWIwIHDGaUsTsCCAa8sFQ==", + "dependencies": { + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" } }, - "bytes": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", - "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" + "node_modules/token-types/node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "content-disposition": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", - "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", - "requires": { - "safe-buffer": "5.1.2" + "node_modules/touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dependencies": { + "nopt": "~1.0.10" + }, + "bin": { + "nodetouch": "bin/nodetouch.js" } }, - "content-type": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + "node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } }, - "cookie": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", - "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" + "node_modules/tr46/node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "engines": { + "node": ">=6" + } }, - "cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + "node_modules/tslib": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==" }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "optional": true, + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" } }, - "depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } }, - "destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + "node_modules/uc.micro": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", + "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", + "optional": true }, - "ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + "node_modules/uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } }, - "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==" }, - "escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + "node_modules/underscore": { + "version": "1.13.6", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", + "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", + "optional": true }, - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" - }, - "express": { - "version": "4.17.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", - "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", - "requires": { - "accepts": "~1.3.7", - "array-flatten": "1.1.1", - "body-parser": "1.19.0", - "content-disposition": "0.5.3", - "content-type": "~1.0.4", - "cookie": "0.4.0", - "cookie-signature": "1.0.6", - "debug": "2.6.9", - "depd": "~1.1.2", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "~1.1.2", - "fresh": "0.5.2", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.5", - "qs": "6.7.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.1.2", - "send": "0.17.1", - "serve-static": "1.14.1", - "setprototypeof": "1.1.1", - "statuses": "~1.5.0", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" } }, - "finalhandler": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", - "requires": { - "debug": "2.6.9", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "parseurl": "~1.3.3", - "statuses": "~1.5.0", - "unpipe": "~1.0.0" + "node_modules/url": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", + "integrity": "sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==", + "dependencies": { + "punycode": "1.3.2", + "querystring": "0.2.0" } }, - "forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } }, - "fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "http-errors": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", - "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", - "requires": { - "depd": "~1.1.2", - "inherits": "2.0.3", - "setprototypeof": "1.1.1", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.0" + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" } }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3" + "node_modules/uuid": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", + "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", + "bin": { + "uuid": "dist/bin/uuid" } }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "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==" - }, - "media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" - }, - "merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + "node_modules/validator": { + "version": "13.9.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.9.0.tgz", + "integrity": "sha512-B+dGG8U3fdtM0/aNK4/X8CXq/EcxU2WPrPEkJGslb47qyHsxmbggTWK0yEA4qnYVNF+nxNlN88o14hIcPmSIEA==", + "engines": { + "node": ">= 0.10" + } }, - "methods": { + "node_modules/vary": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" - }, - "mime-db": { - "version": "1.51.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==" + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } }, - "mime-types": { - "version": "2.1.34", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", - "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", - "requires": { - "mime-db": "1.51.0" + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "engines": { + "node": ">=12" } }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + "node_modules/websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } }, - "negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "engines": { + "node": ">=0.8.0" + } }, - "on-finished": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", - "requires": { - "ee-first": "1.1.1" + "node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" } }, - "parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + "node_modules/which-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.10.tgz", + "integrity": "sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "path-to-regexp": { + "node_modules/with-open-file": { "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" - }, - "proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "requires": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" + "resolved": "https://registry.npmjs.org/with-open-file/-/with-open-file-0.1.7.tgz", + "integrity": "sha512-ecJS2/oHtESJ1t3ZfMI3B7KIDKyfN0O16miWxdn30zdh66Yd3LsRFebXZXq6GU4xfxLf6nVxp9kIqElb5fqczA==", + "dependencies": { + "p-finally": "^1.0.0", + "p-try": "^2.1.0", + "pify": "^4.0.1" + }, + "engines": { + "node": ">=6" } }, - "qs": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", - "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" - }, - "range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" - }, - "raw-body": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", - "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", - "requires": { - "bytes": "3.1.0", - "http-errors": "1.7.2", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "optional": true, + "engines": { + "node": ">=0.10.0" } }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "optional": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "optional": true }, - "send": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", - "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", - "requires": { - "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "0.5.2", - "http-errors": "~1.7.2", - "mime": "1.6.0", - "ms": "2.1.1", - "on-finished": "~2.3.0", - "range-parser": "~1.2.1", - "statuses": "~1.5.0" - }, + "node_modules/xml2js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", "dependencies": { - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" - } + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" } }, - "serve-static": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", - "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", - "requires": { - "encodeurl": "~1.0.2", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "0.17.1" + "node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "engines": { + "node": ">=4.0" } }, - "setprototypeof": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", - "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" + "node_modules/xmlcreate": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", + "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", + "optional": true }, - "statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "optional": true, + "engines": { + "node": ">=10" + } }, - "toidentifier": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, - "type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "requires": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "optional": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" } }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" - }, - "utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "optional": true, + "engines": { + "node": ">=12" + } }, - "vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json index 6adca1e493..b6753215d0 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,31 @@ { - "name": "starter-express-api", + "name": "sarvusahitya", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { - "start": "node index.js" + "start": "node src/index.js", + "dev": "NODE_ENV=dev nodemon src/index.js", + "test": "jest" }, "repository": { "type": "git", - "url": "git+https://github.com/cyclic-software/starter-express-api.git" + "url": "git@github.com:trushitgadhavi/Sarvu-Sahitya-Node-js.git" }, + "keywords": [], "author": "", "license": "ISC", - "bugs": { - "url": "https://github.com/cyclic-software/starter-express-api/issues" - }, - "homepage": "https://github.com/cyclic-software/starter-express-api#readme", "dependencies": { - "express": "^4.17.1" + "aws-sdk": "^2.1354.0", + "axios": "^1.3.3", + "body-parser": "^1.20.2", + "cors": "^2.8.5", + "dotenv": "^16.0.3", + "express": "^4.18.2", + "firebase-admin": "^11.7.0", + "firebase-functions": "^4.3.1", + "mongoose": "^6.9.1", + "node-input-validator": "^4.5.1", + "nodemon": "^2.0.20" } } diff --git a/public/uploads/chhand/file-1680839476400.jpg b/public/uploads/chhand/file-1680839476400.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680839476400.jpg differ diff --git a/public/uploads/chhand/file-1680839569127.jpg b/public/uploads/chhand/file-1680839569127.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680839569127.jpg differ diff --git a/public/uploads/chhand/file-1680839718973.jpg b/public/uploads/chhand/file-1680839718973.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680839718973.jpg differ diff --git a/public/uploads/chhand/file-1680839796151.jpg b/public/uploads/chhand/file-1680839796151.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680839796151.jpg differ diff --git a/public/uploads/chhand/file-1680839863934.jpg b/public/uploads/chhand/file-1680839863934.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680839863934.jpg differ diff --git a/public/uploads/chhand/file-1680839938744.jpg b/public/uploads/chhand/file-1680839938744.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680839938744.jpg differ diff --git a/public/uploads/chhand/file-1680840040027.jpg b/public/uploads/chhand/file-1680840040027.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680840040027.jpg differ diff --git a/public/uploads/chhand/file-1680840060086.jpg b/public/uploads/chhand/file-1680840060086.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680840060086.jpg differ diff --git a/public/uploads/chhand/file-1680840202636.jpg b/public/uploads/chhand/file-1680840202636.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680840202636.jpg differ diff --git a/public/uploads/chhand/file-1680840226328.jpg b/public/uploads/chhand/file-1680840226328.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680840226328.jpg differ diff --git a/public/uploads/chhand/file-1680840540012.png b/public/uploads/chhand/file-1680840540012.png new file mode 100644 index 0000000000..38b678e243 Binary files /dev/null and b/public/uploads/chhand/file-1680840540012.png differ diff --git a/public/uploads/chhand/file-1680924095764.jpg b/public/uploads/chhand/file-1680924095764.jpg new file mode 100644 index 0000000000..16dfac2a2a Binary files /dev/null and b/public/uploads/chhand/file-1680924095764.jpg differ diff --git a/public/uploads/chhand/file-1681185741400.png b/public/uploads/chhand/file-1681185741400.png new file mode 100644 index 0000000000..1e5c2527b6 Binary files /dev/null and b/public/uploads/chhand/file-1681185741400.png differ diff --git a/public/uploads/chhand/file-1681186207351.png b/public/uploads/chhand/file-1681186207351.png new file mode 100644 index 0000000000..1e5c2527b6 Binary files /dev/null and b/public/uploads/chhand/file-1681186207351.png differ diff --git a/public/uploads/chhand/file-1681453564839.png b/public/uploads/chhand/file-1681453564839.png new file mode 100644 index 0000000000..d471a77b79 Binary files /dev/null and b/public/uploads/chhand/file-1681453564839.png differ diff --git a/public/uploads/chhand/file-1681453833270.png b/public/uploads/chhand/file-1681453833270.png new file mode 100644 index 0000000000..d471a77b79 Binary files /dev/null and b/public/uploads/chhand/file-1681453833270.png differ diff --git a/public/uploads/chhand/file-1681454926780.png b/public/uploads/chhand/file-1681454926780.png new file mode 100644 index 0000000000..d471a77b79 Binary files /dev/null and b/public/uploads/chhand/file-1681454926780.png differ diff --git a/public/uploads/chhand/file-1681490243757.png b/public/uploads/chhand/file-1681490243757.png new file mode 100644 index 0000000000..d471a77b79 Binary files /dev/null and b/public/uploads/chhand/file-1681490243757.png differ diff --git a/src/api/adminregistry.js b/src/api/adminregistry.js new file mode 100644 index 0000000000..c3c3f599f4 --- /dev/null +++ b/src/api/adminregistry.js @@ -0,0 +1,97 @@ +const AdminregistryService = require("../services/adminregistry-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new AdminregistryService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/adminregistry/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + adminregistry_name: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddAdminregistry(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/adminregistrylogin", async (req, res, next) => { + try { + const v = new Validator(req.body, { + adminregistry_email: "required", + adminregistry_password: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.GetRegistryData(req.body.adminregistry_email,req.body.adminregistry_password); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/adminregistrys", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Adminregistrys(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/adminregistry/:id", async (req, res, next) => { + try { + var data = await service.adminregistryById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/adminregistry/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateAdminregistry(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/adminregistry/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteAdminregistry(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/analytics.js b/src/api/analytics.js new file mode 100644 index 0000000000..3a6669e26d --- /dev/null +++ b/src/api/analytics.js @@ -0,0 +1,96 @@ +const AnalyticsService = require("../services/analytics-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new AnalyticsService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/analytics/post/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + post: "required", + user: "required", + anallytics_type: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + req.body.user_id = req.body.user + req.body.post_id = req.body.post + var data = await service.AddAnalytics(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/analyticss", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Analyticss(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/adminanalyticss", async (req, res, next) => { + try { + + var data = await service.AdminAnalyticss(); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/analytics/:id", async (req, res, next) => { + try { + var data = await service.analyticsById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/analytics/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateAnalytics(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/analytics/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteAnalytics(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + +}; diff --git a/src/api/app-events.js b/src/api/app-events.js new file mode 100644 index 0000000000..baf946560d --- /dev/null +++ b/src/api/app-events.js @@ -0,0 +1,14 @@ +const SmsService = require('../services/sms-service'); + +module.exports = (app) => { + const service = new SmsService(); + app.use('/app-events', async (req, res, next) => { + const { payload } = req.body; + + //handle subscribe events + service.SubscribeEvents(payload); + + console.log('============= Sms ================'); + res.json(payload); + }); +}; diff --git a/src/api/category.js b/src/api/category.js new file mode 100644 index 0000000000..be2e07f806 --- /dev/null +++ b/src/api/category.js @@ -0,0 +1,94 @@ +const CategoryService = require("../services/category-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new CategoryService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/category/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + category_name: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddCategory(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/categorys", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Categorys(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/admincategorys", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.AdminCategorys(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/category/:id", async (req, res, next) => { + try { + var data = await service.categoryById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/category/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateCategory(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/category/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteCategory(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/contactus.js b/src/api/contactus.js new file mode 100644 index 0000000000..5c3591280e --- /dev/null +++ b/src/api/contactus.js @@ -0,0 +1,79 @@ +const ContactusService = require("../services/contactus-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new ContactusService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/contactus/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + contactus_name: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddContactus(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/contactuss", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Contactuss(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/contactus/:id", async (req, res, next) => { + try { + var data = await service.contactusById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/contactus/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateContactus(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/contactus/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteContactus(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/feedback.js b/src/api/feedback.js new file mode 100644 index 0000000000..c7b68137de --- /dev/null +++ b/src/api/feedback.js @@ -0,0 +1,79 @@ +const FeedbackService = require("../services/feedback-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new FeedbackService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/feedback/create", async (req, res, next) => { + try { + // const v = new Validator(req.body, { + // feedback_name: "required", + // }); + // const matched = await v.check(); + // if (!matched) { + // return res.status(400).send(v.errors); + // } + var data = await service.AddFeedback(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/feedbacks", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Feedbacks(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/feedback/:id", async (req, res, next) => { + try { + var data = await service.feedbackById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/feedback/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateFeedback(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/feedback/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteFeedback(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/index.js b/src/api/index.js new file mode 100644 index 0000000000..3ee17326de --- /dev/null +++ b/src/api/index.js @@ -0,0 +1,14 @@ +module.exports = { + slider: require('./slider'), + post: require('./post'), + cagtegory: require('./category'), + poet: require('./poet'), + tag: require('./tag'), + notification: require('./notification'), + adminregistry: require('./adminregistry'), + contactus: require('./contactus'), + feedback: require('./feedback'), + user: require('./user'), + media: require('./media'), + analytics: require('./analytics'), +}; diff --git a/src/api/media.js b/src/api/media.js new file mode 100644 index 0000000000..4e9aa9fd9c --- /dev/null +++ b/src/api/media.js @@ -0,0 +1,107 @@ +const MediaService = require("../services/media-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, + GetUploadFullPath +} = require("../utils"); +const upload = require("./middlewares/upload"); + +const uploadFile = require("./middlewares/upload"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new MediaService(); + // To listen + // SubscribeMessage(channel, service); + + + app.post("/media/create", async (req, res, next) => { + try { + + + // var uploadfile = await uploadFile(req, res); + + // req.body.media_file = req.media_file; + // req.body.full_path = GetUploadFullPath(req.body.folder_name,req.body.media_file); + var data = await service.AddMedia(req.body); + + data = await GetApiResponse(data); + return res.json(data); + + // console.log(update) + res.json(req.file); + + } catch (error) { + next(error); + } + }); + + app.post("/medias", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Medias(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/mediagroupby", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.GroupByMedia(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/media/:id", async (req, res, next) => { + try { + var data = await service.mediaById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/media/:id", async (req, res, next) => { + try { + const id = req.params.id; + var uploadfile = await uploadFile(req, res); + + req.body.media_file = req.media_file; + req.body.full_path = GetUploadFullPath(req.body.folder_name,req.body.media_file); + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateMedia(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/media/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteMedia(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/message.js b/src/api/message.js new file mode 100644 index 0000000000..47bf07190f --- /dev/null +++ b/src/api/message.js @@ -0,0 +1,196 @@ +const MessageService = require("../services/message-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); +const { + WABA_SENT_STATUS, + WABA_READ_STATUS, + WABA_DELIVERED_STATUS, +} = require("../config"); + +const { Validator } = require("node-input-validator"); +const UserAuth = require("./middlewares/auth"); + +module.exports = (app, channel) => { + const service = new MessageService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/message/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + to: "required", + type: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var requiredtypearray = [ + "text", + "template", + "interactive", + "contacts", + "location", + "audio", + "video", + "image", + "document", + "sticker", + ]; + if (requiredtypearray.indexOf(req.body.type) === -1) { + data = await GetApiResponse( + [], + "Enum Data type error Type must be In this " + requiredtypearray, + 400 + ); + return res.status(400).send(data); + } + + var formdata = req.body; + var islast24available = await service.CheckUserSessionActivity( + req.body.to + ); + + if (islast24available || req.body.type == "template") { + var { status, messageresult } = await service.AddMessage(formdata); + + data = await GetApiResponse(messageresult, "", status); + return res.json(data); + } else { + data = []; + message = + "User Session Is Inactive For Last 24 hours You Can Only send Template message"; + statuscode = "400"; + data = await GetApiResponse(data, message, statuscode); + return res.json(data); + } + } catch (error) { + next(error); + } + }); + + app.post("/v1/webhook", async (req, res, next) => { + try { + const body = req.body.body; + if (body) { + const { object, entry } = body; + if (object !== "whatsapp_business_account") { + return res.status(201).json(object); + } + + for (let object of entry) { + const { id: objectID, changes } = object; + for (let change of changes) { + if (change.value.contacts != undefined) { + var data = await service.OnSaveWebhook(change); + } else { + var message_id = change.value.statuses[0].id; + var status = change.value.statuses[0].status; + var formdata = { + message_id: message_id, + status: status, + }; + if (status == WABA_SENT_STATUS) { + formdata["sent"] = change.value.statuses[0]; + } + if (status == WABA_READ_STATUS) { + formdata["read"] = change.value.statuses[0]; + } + if (status == WABA_DELIVERED_STATUS) { + formdata["delivered"] = change.value.statuses[0]; + } + var data = await service.UpdateStatus(formdata); + } + } + } + } + // const wholeresponse = req.body; + + // if (body) { + // const { object, entry } = body; + // if (object !== 'whatsapp_business_account') { + // return res.status(201).json(object); + // } + // for (let object of entry) { + // const { id: objectID, changes } = object; + // var array = []; + // for (let change of changes) { + // const { value, field } = change; + // const { + // messaging_product, + // metadata, + // contacts, + // messages, + // statuses, + // } = value; + // const { display_phone_number, phone_number_id } = metadata; + + // if (field === 'messages') { + // if (messages) { + // for (let message of messages) { + // const { from, id, messageID, timestamp, type } = message; + + // if (type === 'text') { + // await service.WhatsappWebhookSaveData( + // message, + // wholeresponse, + // ); + // } + // } + // } + // } + // array.push(changes); + // } + // } + // return res.status(200).json({ data: 'Webhook Triggered Successfully' }); + // } + return res.json(body); + } catch (error) { + console.log(error); + next(error); + } + }); + app.post("/message", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + + var data = await service.Messages(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/message/:id", UserAuth, async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateMessage(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/message/:id", UserAuth, async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteMessage(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/middlewares/auth.js b/src/api/middlewares/auth.js new file mode 100644 index 0000000000..5b9c1cd789 --- /dev/null +++ b/src/api/middlewares/auth.js @@ -0,0 +1,10 @@ +const { ValidateSignature } = require('../../utils'); + +module.exports = async (req, res, next) => { + const isAuthorized = await ValidateSignature(req); + + // if (isAuthorized) { + // return next(); + // } + // return res.status(401).json({ message: 'Not Authorized' }); +}; diff --git a/src/api/middlewares/upload.js b/src/api/middlewares/upload.js new file mode 100644 index 0000000000..be5c7207ea --- /dev/null +++ b/src/api/middlewares/upload.js @@ -0,0 +1,30 @@ +// const util = require("util"); +// const multer = require("multer"); +// var path = require('path'); +// var fs = require('fs'); + +// const maxSize = 2 * 1024 * 1024; +// let storage = multer.diskStorage({ +// destination: (req, file, cb) => { +// var dir = "./public/uploads/"+req.body.folder_name; +// if (!fs.existsSync(dir)){ +// fs.mkdirSync(dir); +// } +// cb(null, dir ); +// }, +// filename: (req, file, cb) => { +// req.media_file = `${file.fieldname}-${Date.now()}${path.extname(file.originalname)}`; + +// cb(null, `${file.fieldname}-${Date.now()}${path.extname(file.originalname)}`); +// }, +// }); + +// let uploadFile = multer({ +// storage: storage, +// limits: { fileSize: maxSize }, +// }).single("file"); + + +// // create the exported middleware object +// let uploadFileMiddleware = util.promisify(uploadFile); +// module.exports = uploadFileMiddleware; \ No newline at end of file diff --git a/src/api/middlewares/uploadbackup.js b/src/api/middlewares/uploadbackup.js new file mode 100644 index 0000000000..3ba7cb3da3 --- /dev/null +++ b/src/api/middlewares/uploadbackup.js @@ -0,0 +1,30 @@ +const util = require("util"); +const multer = require("multer"); +var path = require('path'); +var fs = require('fs'); + +const maxSize = 2 * 1024 * 1024; +let storage = multer.diskStorage({ + destination: (req, file, cb) => { + var dir = "./public/uploads/"+req.body.folder_name; + if (!fs.existsSync(dir)){ + fs.mkdirSync(dir); + } + cb(null, dir ); + }, + filename: (req, file, cb) => { + req.media_file = `${file.fieldname}-${Date.now()}${path.extname(file.originalname)}`; + + cb(null, `${file.fieldname}-${Date.now()}${path.extname(file.originalname)}`); + }, +}); + +let uploadFile = multer({ + storage: storage, + limits: { fileSize: maxSize }, +}).single("file"); + + + // create the exported middleware object +let uploadFileMiddleware = util.promisify(uploadFile); +module.exports = uploadFileMiddleware; \ No newline at end of file diff --git a/src/api/notification.js b/src/api/notification.js new file mode 100644 index 0000000000..83bb5e70e9 --- /dev/null +++ b/src/api/notification.js @@ -0,0 +1,79 @@ +const NotificationService = require("../services/notification-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new NotificationService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/notification/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + title: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddNotification(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/notifications", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Notifications(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/notification/:id", async (req, res, next) => { + try { + var data = await service.notificationById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/notification/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateNotification(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/notification/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteNotification(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/poet.js b/src/api/poet.js new file mode 100644 index 0000000000..3350520e60 --- /dev/null +++ b/src/api/poet.js @@ -0,0 +1,93 @@ +const PoetService = require("../services/poet-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new PoetService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/poet/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + poet_name: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddPoet(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/poets", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Poets(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/adminpoets", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.AdminPoets(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/poet/:id", async (req, res, next) => { + try { + var data = await service.poetById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/poet/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdatePoet(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/poet/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeletePoet(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/post.js b/src/api/post.js new file mode 100644 index 0000000000..700811359b --- /dev/null +++ b/src/api/post.js @@ -0,0 +1,234 @@ +const PostService = require("../services/post-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new PostService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/post/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + post_name: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddPost(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/posts", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Posts(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + + app.post("/getallreels", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.GetAllReels(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/searchpost", async (req, res, next) => { + try { + const v = new Validator(req.body, { + search: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + + var data = await service.SearchPost(req.body.search,skip,limit); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/adminposts", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.AdminPosts(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/postlike", async (req, res, next) => { + try { + const v = new Validator(req.body, { + user: "required", + post: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddPostLike(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/getallpostlike", async (req, res, next) => { + try { + const v = new Validator(req.body, { + user: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.GetAllPostLikes(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/postwishlist", async (req, res, next) => { + try { + const v = new Validator(req.body, { + user: "required", + post: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddPostWishlist(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/getallwishlits", async (req, res, next) => { + try { + const v = new Validator(req.body, { + user: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.GetAllPostWishlist(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/post/:id", async (req, res, next) => { + try { + var data = await service.postById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/post/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + console.log(formdata) + formdata["id"] = id; + var data = await service.UpdatePost(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/post/:id", async (req, res, next) => { + try { + + var data = await service.DeletePost(req.params.id); + data = await GetApiResponse([]); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/postlikeremove", async (req, res, next) => { + try { + + var data = await service.RemovePostLike(req.body); + data = await GetApiResponse([]); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/postwishlistremove", async (req, res, next) => { + try { + + var data = await service.RemovePostWishlist(req.body); + data = await GetApiResponse([]); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.get("/sentnotificationpost", async (req, res, next) => { + try { + + var data = await service.GetPostsForNotifictaion(); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/script/updatepoetandcategory", async (req, res, next) => { + try { + console.log("Sdsf") + var data = await service.ScriptPOST(); + data = await GetApiResponse([]); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/slider.js b/src/api/slider.js new file mode 100644 index 0000000000..25cd164d68 --- /dev/null +++ b/src/api/slider.js @@ -0,0 +1,79 @@ +const SliderService = require("../services/slider-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new SliderService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/slider/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + slider_name: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddSlider(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/sliders", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Sliders(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/slider/:id", async (req, res, next) => { + try { + var data = await service.sliderById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/slider/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateSlider(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/slider/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteSlider(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/tag.js b/src/api/tag.js new file mode 100644 index 0000000000..414ee15ea5 --- /dev/null +++ b/src/api/tag.js @@ -0,0 +1,79 @@ +const TagService = require("../services/tag-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new TagService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/tag/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + tag_name: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.AddTag(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/tags", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Tags(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/tag/:id", async (req, res, next) => { + try { + var data = await service.tagById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/tag/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.UpdateTag(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/tag/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.DeleteTag(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/api/user.js b/src/api/user.js new file mode 100644 index 0000000000..4e07821507 --- /dev/null +++ b/src/api/user.js @@ -0,0 +1,99 @@ +const UserService = require("../services/user-service"); +const { + SubscribeMessage, + GetApiResponse, + GetPagination, + GetSortByFromRequest, +} = require("../utils"); + +const { Validator } = require("node-input-validator"); + +module.exports = (app) => { + const service = new UserService(); + // To listen + // SubscribeMessage(channel, service); + app.post("/user/create", async (req, res, next) => { + try { + const v = new Validator(req.body, { + user_name: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + console.log(req.body) + var data = await service.AddUser(req.body); + data = data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/user/sendotp", async (req, res, next) => { + try { + const v = new Validator(req.body, { + user_mobile: "required", + }); + const matched = await v.check(); + if (!matched) { + return res.status(400).send(v.errors); + } + var data = await service.CheckUserIfnotThenInsert(req.body); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + + app.post("/users", async (req, res, next) => { + try { + const { limit, skip } = await GetPagination(req.body.page, req.body.size); + var sortarray = await GetSortByFromRequest( + req.body.orderbycolumnname, + req.body.orderby + ); + var data = await service.Users(limit, skip, req.body, sortarray); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.post("/user/:id", async (req, res, next) => { + try { + var data = await service.UserById(req.params.id); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.put("/user/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + console.log(id) + + var data = await service.UpdateUser(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); + app.delete("/user/:id", async (req, res, next) => { + try { + const id = req.params.id; + var formdata = req.body; + formdata["id"] = id; + var data = await service.Deleteuser(formdata); + data = await GetApiResponse(data); + return res.json(data); + } catch (error) { + next(error); + } + }); +}; diff --git a/src/config/index.js b/src/config/index.js new file mode 100644 index 0000000000..b297669a2c --- /dev/null +++ b/src/config/index.js @@ -0,0 +1,22 @@ +const dotEnv = require("dotenv"); + +if (process.env.NODE_ENV !== "prod") { + const configFile = `./.env.${process.env.NODE_ENV}`; + dotEnv.config({ path: configFile }); +} else { + dotEnv.config(); +} + +module.exports = { + PORT: 8086, + DB_URL:process.env.MONGODB_URI, + APP_SECRET: "sarvusahitya", + EXCHANGE_NAME: "SAHITYA", + MSG_QUEUE_URL: + "amqps://nsdqumap:krrTgIUj89n4J4Cg3_uN5PjGiBJiWQQI@puffin.rmq2.cloudamqp.com/nsdqumap", + SAHITYA_SERVICE: "SAHITYA_SERVICE", + AWS_REGION:"eu-north-1", + AWS_ACCESS_KEY_ID:"ASIAZOYC34DWQPLTUW5H", + AWS_SECRET_ACCESS_KEY:"DA+WOFGG/wk3Vibbf3x7rhgeMVGNXdDzETqY6oZf", + AWS_SESSION_TOKEN:"IQoJb3JpZ2luX2VjELT//////////wEaCmFwLXNvdXRoLTEiRjBEAiAk3MU8Uvi3m7t/m7sFRJAj+oUDbLG6xJhoI0QohPQwpwIgHaYDJf+6wN8Isp/wx0mXF1xttxeM5MuH++dQ94/h360qtwIInf//////////ARAAGgw2NTAxNTY2OTU3ODkiDD1e1tLjpkEbABcSNiqLAjMyjNr88O+ffNdJ1Z42VL1JDAJq0uJvrZGc620yy73AT2veu5Wld4m1dabq7gSS6fgI1kOGgOQUTNWQyPMqTYmznplYpG/qdknupoOVmsnx3g5xt2irupIY6j+u9ewF25a4jrqR5iX7z9Ez8LqQPPHUU+ojIgkGC2RI+ah4Ue1qSF+XxzrAjMThKksC68VUSHxw6PFRCfUXkUZxFfNRr3SctnIgdqeusgJKzuFl2MNMphzBOmigIwlR0WJqD+PuDYs8w4OMWTqPcgHorsaf3ENO7KGtGg0cBwmWBXZSks1YxLjr6A5gCHQ4l2lCzVnqguJsESFc90//LRgn8HmYbHPdVE5JEgqdrgpE5jDjsNOhBjqeARPp8LQhU/kmMfxMFbjU7twbce599K3nOD6cDSLfbpaNHUBCRLXRAYvhZc4DztLNLJJQ/pMRcQuTdCSfHKbyo8R28wSZoe5r42l88yP+h6axf5SMMwN1S70/JWgi0odvQcXI1MclKXs6hum35XPY7hjGH5yiTpRM2k7q2g4/G+Cws0PdoG+txfAkdgTx6iqcGl/DYPNSjY+/q3AJQ4ft" +}; diff --git a/src/database/connection.js b/src/database/connection.js new file mode 100644 index 0000000000..ea62b0fc56 --- /dev/null +++ b/src/database/connection.js @@ -0,0 +1,19 @@ +const mongoose = require('mongoose'); +const { DB_URL } = require('../config'); + +module.exports = async () => { + try { + mongoose.set('strictQuery', true); + + await mongoose.connect(DB_URL, { + useNewUrlParser: true, + useUnifiedTopology: true, + // useCreateIndex: true, + }); + + console.log('Db Connected'); + } catch (error) { + console.error('Error ============ ON DB Connection'); + console.log(error); + } +}; diff --git a/src/database/index.js b/src/database/index.js new file mode 100644 index 0000000000..aed01abcb1 --- /dev/null +++ b/src/database/index.js @@ -0,0 +1,16 @@ +// database related modules +module.exports = { + databaseConnection: require('./connection'), + SliderRepository: require('./repository/slider-repository'), + PostRepository: require('./repository/post-repository'), + CategoryRepository: require('./repository/category-repository'), + PoetRepository: require('./repository/poet-repository'), + TagRepository: require('./repository/tag-repository'), + NotificationRepository: require('./repository/notification-repository'), + AdminregistryRepository: require('./repository/adminregistry-repository'), + ContactusRepository: require('./repository/contactus-repository'), + FeedbackRepository: require('./repository/feedback-repository'), + UserRepository: require('./repository/user-repository'), + MediaRepository: require('./repository/media-repository'), + AnalyticsRepository: require('./repository/analytics-repository') +}; diff --git a/src/database/models/adminregistry.js b/src/database/models/adminregistry.js new file mode 100644 index 0000000000..067ecb3617 --- /dev/null +++ b/src/database/models/adminregistry.js @@ -0,0 +1,35 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const AdminregistrySchema = new Schema( + { + adminregistry_name: { type: String, required: true,unique:true }, + adminregistry_email: { type: String, required: true,unique:true }, + adminregistry_mobile: { type: String,unique:true }, + adminregistry_password: { type: String,required: true }, + adminregistry_slug: { type: String, default:'',unique:true}, + adminregistry_description: { type: String,default:'' }, + social_link: {type:Object}, + is_del: { type: Boolean, default: false } + + }, + { + timestamps: true, + }, +); + +AdminregistrySchema.pre('save', function (next) { + // capitalize + this.adminregistry_slug = convertToSlug(this.adminregistry_name); + + next(); +}); +AdminregistrySchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +module.exports = mongoose.model('adminregistry', AdminregistrySchema); diff --git a/src/database/models/analytics.js b/src/database/models/analytics.js new file mode 100644 index 0000000000..82e5041a3c --- /dev/null +++ b/src/database/models/analytics.js @@ -0,0 +1,78 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const AnalyticsSchema = new Schema( + { + poet_id : { type: mongoose.Schema.Types.ObjectId, ref: 'poet' }, + poet_name: { type: String ,default:''}, + post_id : { type: mongoose.Schema.Types.ObjectId, ref: 'post' }, + post_name: { type: String ,default:''}, + user_id : { type: mongoose.Schema.Types.ObjectId, ref: 'user' }, + user_name: { type: String ,default:''}, + user_email: { type: String ,default:''}, + user_mobile: { type: String ,default:''}, + category_id : { type: mongoose.Schema.Types.ObjectId, ref: 'category' }, + category_name: { type: String ,default:''}, + anallytics_type:{ type: String ,default:'like'}, + is_del: { type: Boolean, default: false } + + }, + { + timestamps: true, + }, +); + +AnalyticsSchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); +AnalyticsSchema.post('save', async function(like) { + + + var anallytics_type = this.anallytics_type + var poet_id = this.poet_id + var category_id = this.category_id + var post_id = this.post_id + // const postId = like.post; + const count = await mongoose.model('analytics').countDocuments({ anallytics_type: anallytics_type,poet_id:poet_id, user_id:this.user_id}); + var updatedocument = {} + var updatepostdocument = {} + var updatepoetcount = {} + if(anallytics_type == "like"){ + updatedocument.like = count + updatepostdocument.likeCount = count + updatepoetcount.likeCount = count + } + if(anallytics_type == "whishlist"){ + updatedocument.wishlist = count + updatepostdocument.wishlistCount = count + updatepoetcount.wishlistCount = count + } + if(anallytics_type == "view"){ + updatedocument.view = count + updatepostdocument.view = count + updatepoetcount.view = count + } + if(anallytics_type == "download"){ + updatedocument.download = count + updatepostdocument.download = count + updatepoetcount.download = count + } + if(anallytics_type == "share"){ + updatedocument.share = count + updatepostdocument.share = count + updatepoetcount.share = count + } + if(anallytics_type == "copy"){ + updatedocument.copy = count + updatepostdocument.copy = count + updatepoetcount.copy = count + } + await mongoose.model('post').findByIdAndUpdate({_id:mongoose.Types.ObjectId(post_id)}, { $set: updatepostdocument }); + await mongoose.model('poet').findByIdAndUpdate({_id:mongoose.Types.ObjectId(poet_id)}, { $set: updatepoetcount }); + await mongoose.model('category').findByIdAndUpdate({_id:mongoose.Types.ObjectId(category_id)}, { $set: updatedocument }); +}); +module.exports = mongoose.model('analytics', AnalyticsSchema); diff --git a/src/database/models/category.js b/src/database/models/category.js new file mode 100644 index 0000000000..ff782d3805 --- /dev/null +++ b/src/database/models/category.js @@ -0,0 +1,39 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const CategorySchema = new Schema( + { + category_name: { type: String, required: true,unique:true }, + category_english_name: { type: String,default:'' }, + category_slug: { type: String, default:'',unique:true}, + category_description: { type: String,default:'' }, + category_media_url: { type: String,default:'' }, + category_media_id: { type: String,default:'' }, + is_del: { type: Boolean, default: false }, + download:{type:Number,default:0}, + share:{type:Number,default:0}, + like:{type:Number,default:0}, + copy:{type:Number,default:0}, + view:{type:Number,default:0}, + wishlist:{type:Number,default:0}, + }, + { + timestamps: true, + }, +); + +CategorySchema.pre('save', function (next) { + // capitalize + this.category_slug = convertToSlug(this.category_name); + + next(); +}); +CategorySchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +module.exports = mongoose.model('category', CategorySchema); diff --git a/src/database/models/contactus.js b/src/database/models/contactus.js new file mode 100644 index 0000000000..d3d5df8714 --- /dev/null +++ b/src/database/models/contactus.js @@ -0,0 +1,26 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const ContactusSchema = new Schema( + { + contactus_name: { type: String }, + contact_mobile: { type: String,default:'' }, + contact_email: { type: String,default:'' }, + is_del: { type: Boolean, default: false } + + }, + { + timestamps: true, + }, +); + + +ContactusSchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +module.exports = mongoose.model('contactus', ContactusSchema); diff --git a/src/database/models/feedback.js b/src/database/models/feedback.js new file mode 100644 index 0000000000..b4c7945bbf --- /dev/null +++ b/src/database/models/feedback.js @@ -0,0 +1,30 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const FeedbackSchema = new Schema( + { + feedback_text: { type: String, default:'' }, + feeback_name: { type: String, default:'' }, + feeback_mobile: { type: String, default:'' }, + feeback_email: { type: String, default:'' }, + feedback_description: { type: String,default:'' }, + user : { type: mongoose.Schema.Types.ObjectId, ref: 'users' }, + + is_del: { type: Boolean, default: false } + + }, + { + timestamps: true, + }, +); + + +FeedbackSchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +module.exports = mongoose.model('feedback', FeedbackSchema); diff --git a/src/database/models/index.js b/src/database/models/index.js new file mode 100644 index 0000000000..145997abf2 --- /dev/null +++ b/src/database/models/index.js @@ -0,0 +1,16 @@ +module.exports = { + SliderModel: require('./slider'), + PostModel: require('./post'), + PostLikeModel: require('./postlike'), + PostWishlistModel: require('./postwishlist'), + CategoryModel: require('./category'), + PoetModel: require('./poet'), + TagModel: require('./tag'), + NotificationModel: require('./notification'), + AdminregistryModel: require('./adminregistry'), + FeedbackModel: require('./feedback'), + ContactusModel: require('./contactus'), + MediaModel: require('./media'), + UserModel: require('./user'), + AnalyticsModel: require('./analytics'), +}; diff --git a/src/database/models/media.js b/src/database/models/media.js new file mode 100644 index 0000000000..4eaa658380 --- /dev/null +++ b/src/database/models/media.js @@ -0,0 +1,28 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const MediaSchema = new Schema( + { + media_type: { type: String, enum: ['image', 'pdf','video'], default:'image' }, + media_url: { type: String, default:''}, + folder_name: { type: String, default:''}, + is_del: { type: Boolean, default: false }, + }, + { + timestamps: true, + }, +); + + + + +MediaSchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + + +module.exports = mongoose.model('media', MediaSchema); diff --git a/src/database/models/notification.js b/src/database/models/notification.js new file mode 100644 index 0000000000..c9760ba1a3 --- /dev/null +++ b/src/database/models/notification.js @@ -0,0 +1,29 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const NotificationSchema = new Schema( + { + title: { type: String, required: true, }, + body: { type: String,default:'' }, + type: { type: String,default:'General',enum:["Single","General"] }, + media_url: { type: String,default:'' }, + data: { type: Object }, + user_id_list: [ String], + user_fcm_token_list: [ String], + is_del: { type: Boolean, default: false } + + }, + { + timestamps: true, + }, +); + +NotificationSchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +module.exports = mongoose.model('notification', NotificationSchema); diff --git a/src/database/models/poet.js b/src/database/models/poet.js new file mode 100644 index 0000000000..bb2147925d --- /dev/null +++ b/src/database/models/poet.js @@ -0,0 +1,77 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const galleryschema = new mongoose.Schema({ + + _id: { type: mongoose.Schema.Types.ObjectId }, + media_url:{ type: String,default:''}, + media_type:{ type: String,default:''}, + is_featured:{ type: Boolean,default: false}, + },{timestamps:true}); +const CategorySchema = new Schema( + { + poet_name: { type: String, required: true,unique:true }, + poet_english_name: { type: String,default:'' }, + poet_slug: { type: String, default:'',unique:true}, + poet_description: { type: String,default:'' }, + poet_birthdate: { type: String,default:'' }, + poet_died_date: { type: String,default:'' }, + poet_died_place: { type: String,default:'' }, + poet_birthplace: { type: String,default:'' }, + poet_home_town: { type: String,default:'' }, + poet_ancestary: { type: String,default:'' }, + poet_school_name:{ type: Object }, + poet_address: { type: Object }, + poet_nickname:{ type: String,default:'' }, + poet_hobbies: [String], + poet_books: { type: Object }, + poet_future_books: { type: Object }, + poet_occupations: { type: Object }, + poet_parent: { type: Object }, + poet_languages_known: [String], + poet_nationality: [String], + poet_spouse: { type: Object }, + poet_children: { type: Object }, + category_idlist: [{ type: mongoose.Schema.Types.ObjectId, ref: 'category' }], + category_textlist: [String], + refrences: { type: Object }, + poet_gallery:{ type: Object }, + poet_status: { type: String, enum: ['Draft', 'Published'],default: "Draft" }, + + awards: { type: Object }, + profile_media_url: {type:String}, + is_del: { type: Boolean, default: false }, + is_blue_tick: { type: Boolean, default: false }, + download:{type:Number,default:0}, + share:{type:Number,default:0}, + like:{type:Number,default:0}, + copy:{type:Number,default:0}, + view:{type:Number,default:0}, + wishlist:{type:Number,default:0}, + }, + { + timestamps: true, + }, +); + +CategorySchema.pre('save', function (next) { + // capitalize + this.poet_slug = convertToSlug(this.poet_name); + + next(); +}); +CategorySchema.pre('updateOne', function (next) { + // capitalize + const update = this.getUpdate(); + update.$set.poet_slug = convertToSlug(update.$set.poet_name); + next(); +}); +CategorySchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +module.exports = mongoose.model('poet', CategorySchema); diff --git a/src/database/models/post.js b/src/database/models/post.js new file mode 100644 index 0000000000..1c8eeafcbd --- /dev/null +++ b/src/database/models/post.js @@ -0,0 +1,70 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const PostSchema = new Schema( + { + post_name: { type: String, required: true,unique:true }, + post_slug: { type: String, default:'',unique:true}, + post_action: { type: String, default:''}, + post_type: { type: String,default:'home' }, + post_description: { type: String,default:'' }, + is_post_has_button: { type: Boolean,default:false }, + post_button_text: { type: String,default:'' }, + category_name: { type: String,default:'' }, + category_slug : { type: String,default:'' }, + poet_id : { type: mongoose.Schema.Types.ObjectId, ref: 'poet' }, + category_id : { type: mongoose.Schema.Types.ObjectId, ref: 'post' }, + poet_name: { type: String, default:'' }, + category_english_name: { type: String, default:'' }, + poet_english_name: { type: String, default:'' }, + post_media_url: [String], + post_tags: [String], + is_del: { type: Boolean, default: false }, + is_admin_post: { type: Boolean, default: false }, + post_status: { type: String, enum: ['Draft', 'Published'],default: "Draft" }, + likeCount: { type: Number, default: 0 }, + wishlistCount: { type: Number, default: 0 }, + seo_title: { type: String,default:'' }, + seo_description: { type: String,default:'' }, + seo_media_url: { type: String,default:'' }, + seo_keywords: { type: String,default:'' }, + reel_video_link: { type: String,default:'' }, + is_photo_with_lyrics: { type: Boolean, default: false }, + download:{type:Number,default:0}, + share:{type:Number,default:0}, + copy:{type:Number,default:0}, + view:{type:Number,default:0}, + is_sent_notification: { type: Boolean, default: false }, + + }, + { + timestamps: true, + }, +); + +PostSchema.pre('save', function (next) { + // capitalize + this.post_slug = convertToSlug(this.post_name); + next(); +}); +PostSchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +PostSchema.pre('remove', async function(next) { + const postId = this._id; + await mongoose.model('postlike').deleteMany({ post: postId }); + await mongoose.model('postwishlist').deleteMany({ post: postId }); + next(); +}); + +PostSchema.index({ post_description_text: "text" }); + +// PostSchema.index({ post_description_text: 1 }); // Single field index + + +module.exports = mongoose.model('post', PostSchema); diff --git a/src/database/models/postlike.js b/src/database/models/postlike.js new file mode 100644 index 0000000000..457a872fc9 --- /dev/null +++ b/src/database/models/postlike.js @@ -0,0 +1,24 @@ +const mongoose = require('mongoose'); +const likeSchema = new mongoose.Schema({ + user: { + type: mongoose.Schema.Types.ObjectId, + ref: 'User', + index: true // add index to user field + }, + post: { + type: mongoose.Schema.Types.ObjectId, + ref: 'Post', + index: true // add index to post field + }, + is_del: { type: Boolean, default: false }, + }, + { + timestamps: true, + }, + ); + likeSchema.post('save', async function(like) { + const postId = like.post; + const likeCount = await mongoose.model('postlike').countDocuments({ post: postId }); + await mongoose.model('post').findByIdAndUpdate(postId, { $set: { likeCount: likeCount } }); + }); +module.exports = mongoose.model('postlike', likeSchema); diff --git a/src/database/models/postwishlist.js b/src/database/models/postwishlist.js new file mode 100644 index 0000000000..ec9a06c873 --- /dev/null +++ b/src/database/models/postwishlist.js @@ -0,0 +1,24 @@ +const mongoose = require('mongoose'); +const likeSchema = new mongoose.Schema({ + user: { + type: mongoose.Schema.Types.ObjectId, + ref: 'User', + index: true // add index to user field + }, + post: { + type: mongoose.Schema.Types.ObjectId, + ref: 'Post', + index: true // add index to post field + }, + is_del: { type: Boolean, default: false }, + }, + { + timestamps: true, + }, + ); + likeSchema.post('save', async function(like) { + const postId = like.post; + const likeCount = await mongoose.model('postwishlist').countDocuments({ post: postId }); + await mongoose.model('post').findByIdAndUpdate(postId, { $set: { wishlistCount: likeCount } }); + }); +module.exports = mongoose.model('postwishlist', likeSchema); diff --git a/src/database/models/slider.js b/src/database/models/slider.js new file mode 100644 index 0000000000..9034552b5b --- /dev/null +++ b/src/database/models/slider.js @@ -0,0 +1,35 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const SliderSchema = new Schema( + { + slider_name: { type: String, required: true,unique:true }, + slider_slug: { type: String, default:'',unique:true}, + slider_action: { type: String, default:'post'}, + slider_type: { type: String,default:'home' }, + slider_description: { type: String,default:'' }, + slider_media_url: { type: String,default:'' }, + slider_media_mime_type: { type: String,default:'image' }, + is_slider_has_button: { type: Boolean,default:false }, + slider_button_text: { type: String,default:'' }, + is_del: { type: Boolean, default: false }, + }, + { + timestamps: true, + }, +); + +SliderSchema.pre('save', function (next) { + // capitalize + this.slider_slug = convertToSlug(this.slider_name); + next(); +}); +SliderSchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +module.exports = mongoose.model('slider', SliderSchema); diff --git a/src/database/models/tag.js b/src/database/models/tag.js new file mode 100644 index 0000000000..d0996a540b --- /dev/null +++ b/src/database/models/tag.js @@ -0,0 +1,33 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + +const TagSchema = new Schema( + { + tag_name: { type: String, required: true,unique:true }, + tag_slug: { type: String, default:'',unique:true}, + tag_description: { type: String,default:'' }, + tag_media_url: { type: String,default:'' }, + tag_media_id: { type: String,default:'' }, + is_del: { type: Boolean, default: false } + + }, + { + timestamps: true, + }, +); + +TagSchema.pre('save', function (next) { + // capitalize + this.tag_slug = convertToSlug(this.tag_name); + + next(); +}); +TagSchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +module.exports = mongoose.model('tag', TagSchema); diff --git a/src/database/models/user.js b/src/database/models/user.js new file mode 100644 index 0000000000..200f39f96f --- /dev/null +++ b/src/database/models/user.js @@ -0,0 +1,39 @@ +const mongoose = require('mongoose'); +const { + convertToSlug, +} = require("../../utils"); +const Schema = mongoose.Schema; + + +const UserSchema = new Schema( + { + user_name: { type: String ,default:''}, + // TODO useruniquename: { type: String, required: true }, + user_mobile: { type: String, required: true,unique:true }, + user_email: { type: String ,default:''}, + user_birthdate: { type: String ,default:''}, + user_slug: { type: String, default:''}, + user_media_url: { type: String,default:'' }, + is_user_has_button: { type: Boolean,default:false }, + user_fcm_token: { type: String,default:false }, + user_device_info: { type: Object }, + user_role: { type: String,enum: ['admin', 'author','publisher','editor','poet','creator','public'],default:'public' }, + + is_del: { type: Boolean, default: false }, + }, + { + timestamps: true, + }, +); + +UserSchema.pre('save', function (next) { + // capitalize + this.user_slug = convertToSlug(this.user_name); + next(); +}); +UserSchema.pre('aggregate', function() { + // Add a $match state to the beginning of each pipeline. + this.pipeline().unshift({ $match: { is_del: { $ne: true } } }); +}); + +module.exports = mongoose.model('user', UserSchema); diff --git a/src/database/repository/adminregistry-repository.js b/src/database/repository/adminregistry-repository.js new file mode 100644 index 0000000000..d3fd95c376 --- /dev/null +++ b/src/database/repository/adminregistry-repository.js @@ -0,0 +1,56 @@ +const mongoose = require('mongoose'); +const { AdminregistryModel } = require('../models'); + +//Dealing with data base operations +class AdminregistryRepository { + async CreateAdminregistry(userInputs) { + const tags = new AdminregistryModel(userInputs); + + const tagresult = await tags.save(); + return tagresult; + } + + async GetAdminregistrys(query) { + const tags = await AdminregistryModel.aggregate(query); + return tags; + } + async GetDataWithEmailAndPassword(email,password) { + var query = [ + { + '$match': { + 'adminregistry_email': email, + 'adminregistry_password': password + } + } + ] + const tags = await AdminregistryModel.aggregate(query); + return tags; + } + async FindAdminregistryById(id) { + const tags = await AdminregistryModel.find({ is_del: false, _id: id }); + return tags; + } + async UpdateAdminregistry(formdata) { + const tag = await AdminregistryModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const tagdata = await AdminregistryModel.find({ _id: formdata['id'] }); + return tagdata; + } + async DeleteAdminregistry(formdata) { + const tag = await AdminregistryModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return tag; + } + async SearchAdminregistry(tag_name) { + const tag = await AdminregistryModel.findOne( + { tag_name: tag_name }, + ); + return tag; + } +} + +module.exports = AdminregistryRepository; diff --git a/src/database/repository/analytics-repository.js b/src/database/repository/analytics-repository.js new file mode 100644 index 0000000000..5450fed157 --- /dev/null +++ b/src/database/repository/analytics-repository.js @@ -0,0 +1,226 @@ +const mongoose = require('mongoose'); +const { AnalyticsModel,PostModel ,UserModel,PoetModel,CategoryModel,FeedbackModel,MediaModel} = require('../models'); + +//Dealing with data base operations +class AnalyticsRepository { + async CreateAnalytics(userInputs) { + const analyticss = new AnalyticsModel(userInputs); + + const analyticsresult = await analyticss.save(); + return analyticsresult; + } + + async GetAnalyticss(query) { + // var query = [ + + // { + // '$match': { + // 'post_status': 'Published' + // } + // },{ + // '$group': { + // '_id': '$analytics_id' + // } + // }, { + // '$match': { + // '_id': { + // '$ne': null + // } + // } + // }, { + // '$lookup': { + // 'from': 'categories', + // 'localField': '_id', + // 'foreignField': '_id', + // 'as': 'result' + // } + // }, { + // '$unwind': '$result' + // }, { + // '$replaceRoot': { + // 'newRoot': '$result' + // } + // } + // ]; + var query = [ + { + '$match': { + 'is_del': false + } + }, + ]; + const templates = await AnalyticsModel.aggregate(query); + return templates; + } + async GetAdminAnalyticss() { + + var query = [ + { + '$group': { + '_id': '$anallytics_type', + 'count': { + '$count': {} + } + } + }, { + '$sort': { + 'count': -1 + } + }, { + '$project': { + '_id': 0, + 'label': { + '$toUpper': '$_id' + }, + 'count': 1 + } + } + ] + const templates = await AnalyticsModel.aggregate(query); + var finaldata = []; + var totalusercount = await this.TotalUsersCount(); + var totalpublishedpost = await this.TotalPublishedPOST(); + var totaldraftpost = await this.TotalDraftPOST(); + var totalpoet = await this.TotalPoet(); + var totalcategoy = await this.TotalCagtegory(); + var totalfeedback = await this.TotalFeedback(); + templates.unshift(totalpublishedpost); + templates.unshift(totalpoet); + templates.unshift(totaldraftpost); + templates.unshift(totalusercount); + templates.unshift(totalcategoy); + templates.unshift(totalfeedback); + + templates.sort((a, b) => b.count - a.count); + + return templates; + } + async TotalUsersCount() { + var query = [ + { + '$count': 'usercount' + }, { + '$project': { + 'count': '$usercount', + 'label': 'Total USERS' + } + } + ] + const analyticss = await UserModel.aggregate(query); + return analyticss[0]; + } + async TotalPublishedPOST() { + var query = [ + { + '$match': { + 'post_status': 'Published' + } + }, + { + '$count': 'postcount' + }, { + '$project': { + 'count': '$postcount', + 'label': 'Total Published POST' + } + } + ] + const analyticss = await PostModel.aggregate(query); + return analyticss[0]; + } + async TotalDraftPOST() { + var query = [ + { + '$match': { + 'post_status': 'Draft' + } + }, + { + '$count': 'postcount' + }, { + '$project': { + 'count': '$postcount', + 'label': 'Total Draft POST' + } + } + ] + const analyticss = await PostModel.aggregate(query); + return analyticss[0]; + } + async TotalPoet() { + var query = [ + { + '$match': { + 'poet_status': 'Published' + } + }, + { + '$count': 'postcount' + }, { + '$project': { + 'count': '$postcount', + 'label': 'Total Poet' + } + } + ] + const analyticss = await PoetModel.aggregate(query); + return analyticss[0]; + } + async TotalCagtegory() { + var query = [ + + { + '$count': 'cateogorycount' + }, { + '$project': { + 'count': '$cateogorycount', + 'label': 'Total Category' + } + } + ] + const analyticss = await CategoryModel.aggregate(query); + return analyticss[0]; + } + async TotalFeedback() { + var query = [ + + { + '$count': 'feedback' + }, { + '$project': { + 'count': '$feedback', + 'label': 'Total Feedback' + } + } + ] + const analyticss = await FeedbackModel.aggregate(query); + return analyticss[0]; + } + async FindAnalyticsById(id) { + const analyticss = await AnalyticsModel.find({ is_del: false, _id: id }); + return analyticss; + } + async UpdateAnalytics(formdata) { + const template = await AnalyticsModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const templatedata = await AnalyticsModel.find({ _id: formdata['id'] }); + return templatedata; + } + async DeleteAnalytics(formdata) { + const template = await AnalyticsModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return template; + } + async SearchAnalytics(analytics_name) { + const analytics = await AnalyticsModel.findOne( + { analytics_name: analytics_name }, + ); + return analytics; + } +} + +module.exports = AnalyticsRepository; diff --git a/src/database/repository/category-repository.js b/src/database/repository/category-repository.js new file mode 100644 index 0000000000..00c4a7acab --- /dev/null +++ b/src/database/repository/category-repository.js @@ -0,0 +1,87 @@ +const mongoose = require('mongoose'); +const { CategoryModel,PostModel } = require('../models'); + +//Dealing with data base operations +class CategoryRepository { + async CreateCategory(userInputs) { + const categorys = new CategoryModel(userInputs); + + const categoryresult = await categorys.save(); + return categoryresult; + } + + async GetCategorys(query) { + // var query = [ + + // { + // '$match': { + // 'post_status': 'Published' + // } + // },{ + // '$group': { + // '_id': '$category_id' + // } + // }, { + // '$match': { + // '_id': { + // '$ne': null + // } + // } + // }, { + // '$lookup': { + // 'from': 'categories', + // 'localField': '_id', + // 'foreignField': '_id', + // 'as': 'result' + // } + // }, { + // '$unwind': '$result' + // }, { + // '$replaceRoot': { + // 'newRoot': '$result' + // } + // } + // ]; + var query = [ + { + '$match': { + 'is_del': false + } + }, + ]; + const templates = await CategoryModel.aggregate(query); + return templates; + } + async GetAdminCategorys(query) { + + const templates = await CategoryModel.aggregate(query); + return templates; + } + async FindCategoryById(id) { + const categorys = await CategoryModel.find({ is_del: false, _id: id }); + return categorys; + } + async UpdateCategory(formdata) { + const template = await CategoryModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const templatedata = await CategoryModel.find({ _id: formdata['id'] }); + return templatedata; + } + async DeleteCategory(formdata) { + const template = await CategoryModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return template; + } + async SearchCategory(category_name) { + const category = await CategoryModel.findOne( + { category_name: category_name }, + ); + return category; + } +} + +module.exports = CategoryRepository; diff --git a/src/database/repository/contactus-repository.js b/src/database/repository/contactus-repository.js new file mode 100644 index 0000000000..8c13b48a79 --- /dev/null +++ b/src/database/repository/contactus-repository.js @@ -0,0 +1,44 @@ +const mongoose = require('mongoose'); +const { ContactusModel } = require('../models'); + +//Dealing with data base operations +class ContactusRepository { + async CreateContactus(userInputs) { + const contactuss = new ContactusModel(userInputs); + + const contactusresult = await contactuss.save(); + return contactusresult; + } + + async GetContactuss(query) { + const contactuss = await ContactusModel.aggregate(query); + return contactuss; + } + async FindContactusById(id) { + const contactuss = await ContactusModel.find({ is_del: false, _id: id }); + return contactuss; + } + async UpdateContactus(formdata) { + const contactus = await ContactusModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const contactusdata = await ContactusModel.find({ _id: formdata['id'] }); + return contactusdata; + } + async DeleteContactus(formdata) { + const contactus = await ContactusModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return contactus; + } + async SearchContactus(contactus_name) { + const contactus = await ContactusModel.findOne( + { contactus_name: contactus_name }, + ); + return contactus; + } +} + +module.exports = ContactusRepository; diff --git a/src/database/repository/feedback-repository.js b/src/database/repository/feedback-repository.js new file mode 100644 index 0000000000..0c5a9ee8cd --- /dev/null +++ b/src/database/repository/feedback-repository.js @@ -0,0 +1,44 @@ +const mongoose = require('mongoose'); +const { FeedbackModel } = require('../models'); + +//Dealing with data base operations +class FeedbackRepository { + async CreateFeedback(userInputs) { + const tags = new FeedbackModel(userInputs); + + const tagresult = await tags.save(); + return tagresult; + } + + async GetFeedbacks(query) { + const tags = await FeedbackModel.aggregate(query); + return tags; + } + async FindFeedbackById(id) { + const tags = await FeedbackModel.find({ is_del: false, _id: id }); + return tags; + } + async UpdateFeedback(formdata) { + const tag = await FeedbackModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const tagdata = await FeedbackModel.find({ _id: formdata['id'] }); + return tagdata; + } + async DeleteFeedback(formdata) { + const tag = await FeedbackModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return tag; + } + async SearchFeedback(tag_name) { + const tag = await FeedbackModel.findOne( + { tag_name: tag_name }, + ); + return tag; + } +} + +module.exports = FeedbackRepository; diff --git a/src/database/repository/media-repository.js b/src/database/repository/media-repository.js new file mode 100644 index 0000000000..fbc31ab528 --- /dev/null +++ b/src/database/repository/media-repository.js @@ -0,0 +1,39 @@ +const mongoose = require('mongoose'); +const { MediaModel } = require('../models'); + +//Dealing with data base operations +class MediaRepository { + async CreateMedia(userInputs) { + const medias = new MediaModel(userInputs); + + const mediaresult = await medias.save(); + return mediaresult; + } + + async GetMedias(query) { + const templates = await MediaModel.aggregate(query); + return templates; + } + async FindMediaById(id) { + const medias = await MediaModel.find({ is_del: false, _id: id }); + return medias; + } + async UpdateMedia(formdata) { + + const template = await MediaModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const templatedata = await MediaModel.find({ _id: formdata['id'] }); + return templatedata; + } + async DeleteMedia(formdata) { + const template = await MediaModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return template; + } +} + +module.exports = MediaRepository; diff --git a/src/database/repository/notification-repository.js b/src/database/repository/notification-repository.js new file mode 100644 index 0000000000..8edfe3140b --- /dev/null +++ b/src/database/repository/notification-repository.js @@ -0,0 +1,44 @@ +const mongoose = require('mongoose'); +const { NotificationModel } = require('../models'); + +//Dealing with data base operations +class NotificationRepository { + async CreateNotification(userInputs) { + const tags = new NotificationModel(userInputs); + + const tagresult = await tags.save(); + return tagresult; + } + + async GetNotifications(query) { + const tags = await NotificationModel.aggregate(query); + return tags; + } + async FindNotificationById(id) { + const tags = await NotificationModel.find({ is_del: false, _id: id }); + return tags; + } + async UpdateNotification(formdata) { + const tag = await NotificationModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const tagdata = await NotificationModel.find({ _id: formdata['id'] }); + return tagdata; + } + async DeleteNotification(formdata) { + const tag = await NotificationModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return tag; + } + async SearchNotification(tag_name) { + const tag = await NotificationModel.findOne( + { tag_name: tag_name }, + ); + return tag; + } +} + +module.exports = NotificationRepository; diff --git a/src/database/repository/poet-repository.js b/src/database/repository/poet-repository.js new file mode 100644 index 0000000000..d364f1949c --- /dev/null +++ b/src/database/repository/poet-repository.js @@ -0,0 +1,79 @@ +const mongoose = require('mongoose'); +const { PoetModel,PostModel } = require('../models'); + +//Dealing with data base operations +class PoetRepository { + async CreatePoet(userInputs) { + const poets = new PoetModel(userInputs); + + const poetresult = await poets.save(); + return poetresult; + } + + async GetPoets(query) { + // var query = [ + // { + // '$match': { + // 'post_status': 'Published' + // } + // }, + // { + // '$group': { + // '_id': '$poet_id' + // } + // }, { + // '$match': { + // '_id': { + // '$ne': null + // } + // } + // }, { + // '$lookup': { + // 'from': 'poets', + // 'localField': '_id', + // 'foreignField': '_id', + // 'as': 'result' + // } + // }, { + // '$unwind': '$result' + // }, { + // '$replaceRoot': { + // 'newRoot': '$result' + // } + // } + // ]; + const templates = await PoetModel.aggregate(query); + return templates; + } + async GetAdminPoets(query) { + const templates = await PoetModel.aggregate(query); + return templates; + } + async FindPoetById(id) { + const poets = await PoetModel.find({ is_del: false, _id: id }); + return poets; + } + async UpdatePoet(formdata) { + const template = await PoetModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const templatedata = await PoetModel.find({ _id: formdata['id'] }); + return templatedata; + } + async DeletePoet(formdata) { + const template = await PoetModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return template; + } + async SearchPoet(poet_name) { + const poet = await PoetModel.findOne( + { poet_name: poet_name }, + ); + return poet; + } +} + +module.exports = PoetRepository; diff --git a/src/database/repository/post-repository.js b/src/database/repository/post-repository.js new file mode 100644 index 0000000000..a30e3eaf0d --- /dev/null +++ b/src/database/repository/post-repository.js @@ -0,0 +1,272 @@ +const mongoose = require('mongoose'); +const { PostModel,PostLikeModel,PostWishlistModel } = require('../models'); +const post = require('../models/post'); + +//Dealing with data base operations +class PostRepository { + async CreatePost(userInputs) { + const posts = new PostModel(userInputs); + + const postresult = await posts.save(); + return postresult; + } + async PostLikeAdd(userInputs) { + + const postlike = new PostLikeModel(userInputs); + + const postresult = await postlike.save(); + return postresult; + } + async GetPostWithLikes(userInputs) { + + var query = [ + { + '$sort': { + 'createdAt': -1 + } + }, + { + '$match': { + 'user': mongoose.Types.ObjectId(userInputs.user) + } + }, + { + '$lookup': { + 'from': 'users', + 'localField': 'user', + 'foreignField': '_id', + 'as': 'result' + } + }, { + '$lookup': { + 'from': 'posts', + 'localField': 'post', + 'foreignField': '_id', + 'as': 'posts' + } + }, { + '$replaceRoot': { + 'newRoot': { + '$mergeObjects': [ + { + '$arrayElemAt': [ + '$posts', 0 + ] + }, '$$ROOT' + ] + } + } + }, { + '$replaceRoot': { + 'newRoot': { + '$mergeObjects': [ + { + '$arrayElemAt': [ + '$result', 0 + ] + }, '$$ROOT' + ] + } + } + }, + { + '$match': { + '$or': [ + { + 'reel_video_link': { + '$eq': '' + } + }, { + 'reel_video_link': { + '$eq': null + } + } + ] + } + } + ] + const postresult = await PostLikeModel.aggregate(query); + + // populate the author reference + return postresult; + } + + + async GetLikePostByUserId(user,post) { + const posts = await PostLikeModel.findOne({ user: user,post:post }); + return posts + + } + async GetWishlistostByUserId(user,post) { + const posts = await PostWishlistModel.findOne({ user: user,post:post }); + return posts + + } + async PostWishlistAdd(userInputs) { + + const postwishlist = new PostWishlistModel(userInputs); + + const postresult = await postwishlist.save(); + return postresult; + } + async GetPostWithWishlists(userInputs) { + + var query = [ + { + '$sort': { + 'createdAt': -1 + } + }, + { + '$match': { + 'user': mongoose.Types.ObjectId(userInputs.user) + } + }, { + '$lookup': { + 'from': 'users', + 'localField': 'user', + 'foreignField': '_id', + 'as': 'result' + } + }, { + '$lookup': { + 'from': 'posts', + 'localField': 'post', + 'foreignField': '_id', + 'as': 'posts' + } + }, { + '$replaceRoot': { + 'newRoot': { + '$mergeObjects': [ + { + '$arrayElemAt': [ + '$posts', 0 + ] + }, '$$ROOT' + ] + } + } + }, { + '$replaceRoot': { + 'newRoot': { + '$mergeObjects': [ + { + '$arrayElemAt': [ + '$result', 0 + ] + }, '$$ROOT' + ] + } + } + },{ + '$match': { + '$or': [ + { + 'reel_video_link': { + '$eq': '' + } + }, { + 'reel_video_link': { + '$eq': null + } + } + ] + } + } + ] + const postresult = await PostWishlistModel.aggregate(query); + + + + // populate the author reference + return postresult; + } + + async GetPosts(query) { + const templates = await PostModel.aggregate(query); + return templates; + } + async SearchPosts(search,page,size) { + search= `"${search}"`; + console.log(search) + + const templates = await PostModel.find({ $text: { $search: search }}).skip(page).limit(size) + ; + + return templates; + } + async FindPostById(id) { + const posts = await PostModel.find({ is_del: false, _id: id }); + return posts; + } + async UpdatePost(formdata) { + const template = await PostModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const templatedata = await PostModel.find({ _id: formdata['id'] }); + return templatedata; + } + async DeletePost(id) { + + var d = await PostModel.remove({ _id: id }); + return []; + } + async RemovePostLike(user,post) { + + var d = await PostLikeModel.remove({ user: user,post: post }); + return []; + } + async RemovePostWishlist(user,post) { + + var d = await PostWishlistModel.remove({ user: user,post: post }); + return []; + } + async NotificationGetPost() { + var query = [ + { + '$sort': { + 'createdAt': 1 + } + }, { + '$match': { + 'post_status': 'Published', + '$or': [ + { + 'is_sent_notification': { + '$exists': false + } + }, { + 'is_sent_notification': false + } + ] + } + }, { + '$limit': 1 + } + ]; + const templates = await PostModel.aggregate(query); + return templates; + } + async GetALLPOSTFORScript() { + var query = [ + { + '$limit': 200 + } + ] + + + const templates = await PostModel.aggregate(query); + return templates; + } + async UpdatePostScript(formdata) { + const template = await PostModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + return template; + } +} + +module.exports = PostRepository; diff --git a/src/database/repository/slider-repository.js b/src/database/repository/slider-repository.js new file mode 100644 index 0000000000..234082d989 --- /dev/null +++ b/src/database/repository/slider-repository.js @@ -0,0 +1,38 @@ +const mongoose = require('mongoose'); +const { SliderModel } = require('../models'); + +//Dealing with data base operations +class SliderRepository { + async CreateSlider(userInputs) { + const sliders = new SliderModel(userInputs); + + const sliderresult = await sliders.save(); + return sliderresult; + } + + async GetSliders(query) { + const templates = await SliderModel.aggregate(query); + return templates; + } + async FindSliderById(id) { + const sliders = await SliderModel.find({ is_del: false, _id: id }); + return sliders; + } + async UpdateSlider(formdata) { + const template = await SliderModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const templatedata = await SliderModel.find({ _id: formdata['id'] }); + return templatedata; + } + async DeleteSlider(formdata) { + const template = await SliderModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return template; + } +} + +module.exports = SliderRepository; diff --git a/src/database/repository/tag-repository.js b/src/database/repository/tag-repository.js new file mode 100644 index 0000000000..70d2a37075 --- /dev/null +++ b/src/database/repository/tag-repository.js @@ -0,0 +1,44 @@ +const mongoose = require('mongoose'); +const { TagModel } = require('../models'); + +//Dealing with data base operations +class TagRepository { + async CreateTag(userInputs) { + const tags = new TagModel(userInputs); + + const tagresult = await tags.save(); + return tagresult; + } + + async GetTags(query) { + const tags = await TagModel.aggregate(query); + return tags; + } + async FindTagById(id) { + const tags = await TagModel.find({ is_del: false, _id: id }); + return tags; + } + async UpdateTag(formdata) { + const tag = await TagModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const tagdata = await TagModel.find({ _id: formdata['id'] }); + return tagdata; + } + async DeleteTag(formdata) { + const tag = await TagModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return tag; + } + async SearchTag(tag_name) { + const tag = await TagModel.findOne( + { tag_name: tag_name }, + ); + return tag; + } +} + +module.exports = TagRepository; diff --git a/src/database/repository/user-repository.js b/src/database/repository/user-repository.js new file mode 100644 index 0000000000..cfd54c1458 --- /dev/null +++ b/src/database/repository/user-repository.js @@ -0,0 +1,58 @@ +const mongoose = require('mongoose'); +const { UserModel } = require('../models'); + +//Dealing with data base operations +class UserRepository { + async CreateUser(userInputs) { + const users = new UserModel(userInputs); + + const userresult = await users.save(); + return userresult; + } + + async GetUsers(query) { + const templates = await UserModel.aggregate(query); + return templates; + } + async GetUserFcmtoken(useridlist) { + useridlist = useridlist.map(useridlist => mongoose.Types.ObjectId(useridlist)); // get only 'name' field + const userdata = await UserModel.find({ _id: { $in: useridlist }}).select("user_fcm_token"); + const user_fcm_token_list = userdata.map(doc => doc.user_fcm_token); // get only 'name' field + return user_fcm_token_list; + } + async GetAllFcmToken() { + const userdata = await UserModel.find({is_del: false}).select("user_fcm_token"); + const user_fcm_token_list = userdata.map(doc => doc.user_fcm_token); // get only 'name' field + return user_fcm_token_list; + } + async FindUserById(id) { + const users = await UserModel.find({ is_del: false, _id: id }); + return users; + } + async FindUserByMobile(user_mobile) { + const users = await UserModel.findOne({ is_del: false, user_mobile:user_mobile }); + return users; + } + async UpdateUser(formdata) { + try{ + + const template = await UserModel.updateOne( + { _id: formdata['id'] }, + { $set: formdata }, + ); + const templatedata = await UserModel.find({ _id: formdata['id'] }); + return templatedata; + }catch(error){ + return error; + } + } + async DeleteUser(formdata) { + const template = await UserModel.updateOne( + { _id: formdata['id'] }, + { $set: { is_del: true } }, + ); + return template; + } +} + +module.exports = UserRepository; diff --git a/src/express-app.js b/src/express-app.js new file mode 100644 index 0000000000..e2737772c7 --- /dev/null +++ b/src/express-app.js @@ -0,0 +1,52 @@ +const express = require('express'); +const cors = require('cors'); +const path = require('path'); + +const { + slider, + cagtegory, + tag, + media, + user, + post, + poet, + feedback, + contactus, + adminregistry, + notification, + analytics +} = require('./api'); +const { SubscribeMessage } = require('./utils'); + +module.exports = async (app) => { + try { + + app.use(express.json()); + app.use("/public", express.static(path.join(__dirname, 'public'))); + app.use('/uploads', express.static('uploads')); + app.use(express.static('public')); + app.use('/images', express.static('images')); + + // app.use(express.static(__dirname + '/public')); + app.get("/", async (req, res, next) => { + return res.json({data:"running"}); + + }); + slider(app); + poet(app); + cagtegory(app); + tag(app); + feedback(app); + contactus(app); + media(app); + user(app); + post(app); + adminregistry(app); + notification(app); + analytics(app); + } catch (error) { + console.log(error); + } + + // error handling +}; diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000000..e382757b61 --- /dev/null +++ b/src/index.js @@ -0,0 +1,35 @@ +const express = require('express'); +const { PORT } = require('./config'); +const { databaseConnection } = require('./database'); +const expressApp = require('./express-app'); +const errorHandler = require('./utils/errors'); + +const StartServer = async () => { + const app = express(); + const cors = require('cors'); + app.use(cors({ + origin: '*', + methods: '*', + allowedHeaders: '*' + })); + + await databaseConnection(); + + app.get('/', (req, res) => res.send('Welcome To Sarvu Sahitya')); + + await expressApp(app); + errorHandler(app); + app + .listen(PORT, () => { + console.log(`listening to port ${PORT}`); + }) + .on('error', (err) => { + console.log(err); + process.exit(); + }) + .on('close', () => { + channel.close(); + }); +}; + +StartServer(); diff --git a/src/services/accountkey.json b/src/services/accountkey.json new file mode 100644 index 0000000000..e44b636e6a --- /dev/null +++ b/src/services/accountkey.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "sahitya-dayro", + "private_key_id": "51583ce3323dee70b3235da358bc03e75145c62b", + "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC1d5kcOdTv7jUK\nXaP5va81EkCfRhCiuZGy4lSgnxUukQPJ0iunrX3N/G3iQias7zuMBQQFlv7cisU2\nrc8kFXSW1a7xO0pIeYdg+4A4NCKrWBzBwQQNErFw2g8ZI6Ct1IaOqPI/fORondbB\n9VhcBLhsVVdFCCqOWRJP2ceZ69I5i2bw4LhjA3jObvPRfGKZltWVxYxEGRZlzn6l\nD8C171bkQCcyAm6fH2xaUWCrjdFCkc0Vnjc32boqw5nF8IE0qxvw0snL7J1b+1Gk\nYyMwNtDDO0EnntT8MMhjJILbZfWUhqy8qTq5U8hrbmoOr2ADyKWqgFZ+T9/maAeN\nJXvunqWdAgMBAAECggEAE3ILMWveDk7dlqyFoYGqyHpZ++dPaYyOmRdpP6QEak7G\nU+ZmYKu15zCVWtFBYTcqj5zK+0lcqqfhLbSO1ZxJ987Slg2HLoB9Wg5hRUSK8Yb5\n3+ZNx5PY+VGYnBZGBdKYD6n5eYWp2S8OwA6JJyUnWQ6FEUPogYP4cx+QZMVRK/K+\nVzSDdvaxtyz9ZGv+iZEJNSZXO+hIeAr54TlxoXN3f0e2n4Am2UD4ko5pNJPZ0Gun\nszJRavMFhB/mddcLdfT8zcFCLI0ML50CPP4WiuTCuEWyrQTRTOswX24qY9M9d5UK\nynigyGkOjU5g8T6TE2PYdd52Bk7zx91xDCxGSo/hQQKBgQD3Ii9Nb0svnoWhTp06\nKR1IPdIaAa1zjMbkhXU7kEv9DiXSPRnks1b2OK7IDzMf3ytHHFyV2fFjUN6zxDJQ\nMpAZfeKgMZo8rbVYpU1zWnj3+N7804qwBwfJ0eTyez+KVZpTutMBTn7o6LNo36y+\ntjmcxS53ppErhYfDzWiN+5OmQQKBgQC7+kvMiZTPhWLYSaULWQFrp31TI0enBym0\n5A4UzYcaDYpF93o109cMiQjYpAs2ETDqNNs2KssrRoI+myevN6gjBRy6lUrVFmA5\nY/l/kmbkrpq/yWTGmYSNuRAJLldrVZQShl+khhhW+yoaqzty1fpI6JElx40yv89F\nikSb06tAXQKBgQCI/UILQm4C73RTfihZXQEGUn5sPBHRw29crT3Wzp3QoE8Gwyff\nRiomQjVgYEyOlj5/JJGN30mXK/TG4TKikeSevNEqy1Qb3o5vnPHZx4TWr/WrX/e4\nq6z9ioPGhdsq61iooR7l0oU2xgbtU0+GR6yX4hVn7cT6wwIG343dZl7qAQKBgE5F\nrbRQgYdbuknneHLeL+o8xsGMijRxlhs9buOYpS3i/3Wc0+V//Sa6FNXokMaFqAGN\n2s2WSh0N8gPRpVefbEKQyWKj8ZIDDDQ5fdVyB6gnUEaVvIG5wOkmaxf3lO0bqFmC\nXGbsc0wcr26FaG6rzNj5Bh9eFVxRZCRHq8PbAo79AoGATUwWB2EadCSYh0SuUAyq\ninhnuVzoNFrDRTmLh2FsgkPVtDCJwxpf2SY1W6A/A+oKiUrzAgmIABVmXjaLPbc/\nyfypKHZRs7UHxcyvO8LoL8wJYMGrCiuKisjHyF10jz/TLRXO5xeD/TBQv/xIx/ja\nLDsd2rYXL6Vw3e+Rc51ANTk=\n-----END PRIVATE KEY-----\n", + "client_email": "firebase-adminsdk-ifitt@sahitya-dayro.iam.gserviceaccount.com", + "client_id": "116656898751777591735", + "auth_uri": "https://accounts.google.com/o/oauth2/auth", + "token_uri": "https://oauth2.googleapis.com/token", + "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-ifitt%40sahitya-dayro.iam.gserviceaccount.com" +} diff --git a/src/services/adminregistry-service.js b/src/services/adminregistry-service.js new file mode 100644 index 0000000000..f08192be63 --- /dev/null +++ b/src/services/adminregistry-service.js @@ -0,0 +1,39 @@ +const { AdminregistryRepository } = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class AdminregistryService { + constructor() { + this.repository = new AdminregistryRepository(); + } + + async AddAdminregistry(userInputs) { + const AdminregistryResult = await this.repository.CreateAdminregistry(userInputs); + return AdminregistryResult; + } + async Adminregistrys(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const AdminregistryResult = await this.repository.GetAdminregistrys(q); + return AdminregistryResult; + } + async GetRegistryData(email,password) { + const AdminregistryResult = await this.repository.GetDataWithEmailAndPassword(email,password); + return AdminregistryResult; + } + async AdminregistryById(id) { + const AdminregistryResult = await this.repository.FindAdminregistryById(id); + return AdminregistryResult; + } + async UpdateAdminregistry(formdata) { + + const AdminregistryResult = await this.repository.UpdateAdminregistry(formdata); + return AdminregistryResult; + } + async DeleteAdminregistry(formdata) { + const AdminregistryResult = await this.repository.DeleteAdminregistry(formdata); + var data = this.AdminregistryById(formdata['id']); + return data; + } +} + +module.exports = AdminregistryService; diff --git a/src/services/analytics-service.js b/src/services/analytics-service.js new file mode 100644 index 0000000000..4b6f3944d3 --- /dev/null +++ b/src/services/analytics-service.js @@ -0,0 +1,58 @@ +const { AnalyticsRepository ,PostRepository,UserRepository} = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class AnalyticsService { + constructor() { + this.repository = new AnalyticsRepository(); + this.PostRepository = new PostRepository(); + this.UserRepository = new UserRepository(); + } + + async AddAnalytics(userInputs) { + var postdata = await this.PostRepository.FindPostById(userInputs.post_id) + var userdata = await this.UserRepository.FindUserById(userInputs.user_id) + if(postdata.length != 0){ + + userInputs.post_name = postdata[0].post_name + userInputs.category_name = postdata[0].category_name + userInputs.category_id = postdata[0].category_id + userInputs.poet_name = postdata[0].poet_name + userInputs.poet_id = postdata[0].poet_id + } + if(userdata.length != 0){ + userInputs.user_mobile = userdata[0].user_mobile + userInputs.user_email = userdata[0].user_email + } + + + + const AnalyticsResult = await this.repository.CreateAnalytics(userInputs); + return AnalyticsResult; + } + async Analyticss(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const AnalyticsResult = await this.repository.GetAnalyticss(q); + return AnalyticsResult; + } + async AdminAnalyticss() { + + const AnalyticsResult = await this.repository.GetAdminAnalyticss(); + return AnalyticsResult; + } + async AnalyticsById(id) { + const AnalyticsResult = await this.repository.FindAnalyticsById(id); + return AnalyticsResult; + } + async UpdateAnalytics(formdata) { + const AnalyticsResult = await this.repository.UpdateAnalytics(formdata); + return AnalyticsResult; + } + async DeleteAnalytics(formdata) { + const AnalyticsResult = await this.repository.DeleteAnalytics(formdata); + var data = this.AnalyticsById(formdata['id']); + return data; + } +} + +module.exports = AnalyticsService; diff --git a/src/services/category-service.js b/src/services/category-service.js new file mode 100644 index 0000000000..616999432f --- /dev/null +++ b/src/services/category-service.js @@ -0,0 +1,39 @@ +const { CategoryRepository } = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class CategoryService { + constructor() { + this.repository = new CategoryRepository(); + } + + async AddCategory(userInputs) { + const CategoryResult = await this.repository.CreateCategory(userInputs); + return CategoryResult; + } + async Categorys(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const CategoryResult = await this.repository.GetCategorys(q); + return CategoryResult; + } + async AdminCategorys(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const CategoryResult = await this.repository.GetAdminCategorys(q); + return CategoryResult; + } + async CategoryById(id) { + const CategoryResult = await this.repository.FindCategoryById(id); + return CategoryResult; + } + async UpdateCategory(formdata) { + const CategoryResult = await this.repository.UpdateCategory(formdata); + return CategoryResult; + } + async DeleteCategory(formdata) { + const CategoryResult = await this.repository.DeleteCategory(formdata); + var data = this.CategoryById(formdata['id']); + return data; + } +} + +module.exports = CategoryService; diff --git a/src/services/contactus-service.js b/src/services/contactus-service.js new file mode 100644 index 0000000000..713a03dcd3 --- /dev/null +++ b/src/services/contactus-service.js @@ -0,0 +1,34 @@ +const { ContactusRepository } = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class ContactusService { + constructor() { + this.repository = new ContactusRepository(); + } + + async AddContactus(userInputs) { + const ContactusResult = await this.repository.CreateContactus(userInputs); + return ContactusResult; + } + async Contactuss(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const ContactusResult = await this.repository.GetContactuss(q); + return ContactusResult; + } + async ContactusById(id) { + const ContactusResult = await this.repository.FindContactusById(id); + return ContactusResult; + } + async UpdateContactus(formdata) { + const ContactusResult = await this.repository.UpdateContactus(formdata); + return ContactusResult; + } + async DeleteContactus(formdata) { + const ContactusResult = await this.repository.DeleteContactus(formdata); + var data = this.ContactusById(formdata['id']); + return data; + } +} + +module.exports = ContactusService; diff --git a/src/services/feedback-service.js b/src/services/feedback-service.js new file mode 100644 index 0000000000..3b22ee9267 --- /dev/null +++ b/src/services/feedback-service.js @@ -0,0 +1,34 @@ +const { FeedbackRepository } = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class FeedbackService { + constructor() { + this.repository = new FeedbackRepository(); + } + + async AddFeedback(userInputs) { + const FeedbackResult = await this.repository.CreateFeedback(userInputs); + return FeedbackResult; + } + async Feedbacks(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const FeedbackResult = await this.repository.GetFeedbacks(q); + return FeedbackResult; + } + async FeedbackById(id) { + const FeedbackResult = await this.repository.FindFeedbackById(id); + return FeedbackResult; + } + async UpdateFeedback(formdata) { + const FeedbackResult = await this.repository.UpdateFeedback(formdata); + return FeedbackResult; + } + async DeleteFeedback(formdata) { + const FeedbackResult = await this.repository.DeleteFeedback(formdata); + var data = this.FeedbackById(formdata['id']); + return data; + } +} + +module.exports = FeedbackService; diff --git a/src/services/media-service.js b/src/services/media-service.js new file mode 100644 index 0000000000..3b832b4ae6 --- /dev/null +++ b/src/services/media-service.js @@ -0,0 +1,53 @@ +const { MediaRepository } = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class MediaService { + constructor() { + this.repository = new MediaRepository(); + } + + async AddMedia(userInputs) { + const MediaResult = await this.repository.CreateMedia(userInputs); + // console.log(userInputs) + // MediaResult.full_path = "http://localhost:8086/uploads/"+userInputs.folder_name+'/'+userInputs.media_file + return MediaResult; + } + async Medias(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const MediaResult = await this.repository.GetMedias(q); + return MediaResult; + } + async GroupByMedia() { + var q = [ + { + '$match': { + 'folder_name': { + '$exists': true + } + } + }, { + '$group': { + '_id': '$folder_name' + } + } + ]; + const MediaResult = await this.repository.GetMedias(q); + return MediaResult; + } + async MediaById(id) { + const MediaResult = await this.repository.FindMediaById(id); + return MediaResult; + } + async UpdateMedia(formdata) { + const MediaResult = await this.repository.UpdateMedia(formdata); + return MediaResult; + } + async DeleteMedia(formdata) { + const MediaResult = await this.repository.DeleteMedia(formdata); + var data = this.MediaById(formdata['id']); + return data; + } +} + +module.exports = MediaService; diff --git a/src/services/notification-service.js b/src/services/notification-service.js new file mode 100644 index 0000000000..cca03a022b --- /dev/null +++ b/src/services/notification-service.js @@ -0,0 +1,152 @@ +const { NotificationRepository,UserRepository } = require('../database'); +const { FormateData, paginateResults,FilterNullValuesJsonForNotifiction } = require('../utils'); +const functions = require('firebase-functions'); +const admin = require('firebase-admin'); + +const serviceAccount = require('./accountkey.json'); +admin.initializeApp({ + credential: admin.credential.cert(serviceAccount) + // databaseURL: 'https://your-project-id.firebaseio.com' + }); + +// All Business logic will be here +class NotificationService { + constructor() { + this.repository = new NotificationRepository(); + this.userrepository = new UserRepository(); + } + + async SendNotificationUser(userInputs,user_id_list){ + try{ + + var user_fcm_token_list = await this.userrepository.GetUserFcmtoken(user_id_list) + console.log(user_fcm_token_list) + userInputs.user_fcm_token_list = user_fcm_token_list + + // for Firebase Send All Data Which has string not send boolean data it must be in String + + var message = { + notification: { + title:userInputs.title, + body: userInputs.body, + image: userInputs.media_url, + + }, + data: userInputs.data, + + tokens: user_fcm_token_list + }; + + var data = userInputs.data + + const NotificationResult = this.repository.CreateNotification(userInputs); + userInputs.data = await FilterNullValuesJsonForNotifiction(userInputs.data) + userInputs.data._id = String(data._id) + + var finalmessage = { + notification: { + title:userInputs.title, + body: "", + image: userInputs.media_url, + + }, + data: userInputs.data, + + tokens: user_fcm_token_list + }; + var notifcation = await admin.messaging().sendMulticast(finalmessage) + return NotificationResult + + }catch(error){ + console.log(error) + return false; + } + + } + async SendNotificationToAllUser(userInputs){ + try{ + + var user_fcm_token_list = await this.userrepository.GetAllFcmToken() + userInputs.user_fcm_token_list = user_fcm_token_list + + // for Firebase Send All Data Which has string not send boolean data it must be in String + + var message = { + notification: { + title:userInputs.title, + body: "", + image: userInputs.media_url, + + }, + data: userInputs.data, + + tokens: user_fcm_token_list + }; + var data = userInputs.data + + const NotificationResult = this.repository.CreateNotification(userInputs); + userInputs.data = await FilterNullValuesJsonForNotifiction(userInputs.data) + userInputs.data._id = String(data._id) + var finalmessage = { + notification: { + title:userInputs.title, + body: "", + image: userInputs.media_url, + + }, + data: userInputs.data, + + tokens: user_fcm_token_list + }; + console.log(finalmessage) + var notifcation = await admin.messaging().sendMulticast(finalmessage) + return NotificationResult + + }catch(error){ + console.log(error) + return false; + } + + } + async AddNotification(userInputs) { + + if(userInputs.type == "General" && userInputs.user_id_list.length == 0){ + var NotificationResult = await this.SendNotificationToAllUser(userInputs) + }else{ + console.log("ds") + var NotificationResult = await this.SendNotificationUser(userInputs,userInputs.user_id_list) + } + + return NotificationResult; + } + async Notifications(size, skip, matchdata, sortob) { + try{ + + var sortob = { + "orderby":-1, + "orderbycolumnname":"createdAt" + } + var q = await paginateResults(size, skip, matchdata, sortob); + const NotificationResult = await this.repository.GetNotifications(q); + return NotificationResult; + }catch(error){ + console.log(error) + return error + } + } + async NotificationById(id) { + const NotificationResult = await this.repository.FindNotificationById(id); + return NotificationResult; + } + async UpdateNotification(formdata) { + const NotificationResult = await this.repository.UpdateNotification(formdata); + return NotificationResult; + } + async DeleteNotification(formdata) { + const NotificationResult = await this.repository.DeleteNotification(formdata); + var data = this.NotificationById(formdata['id']); + return data; + } +} + +module.exports = NotificationService; diff --git a/src/services/poet-service.js b/src/services/poet-service.js new file mode 100644 index 0000000000..4d4b4522f7 --- /dev/null +++ b/src/services/poet-service.js @@ -0,0 +1,44 @@ +const { PoetRepository } = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class PoetService { + constructor() { + this.repository = new PoetRepository(); + } + + async AddPoet(userInputs) { + const PoetResult = await this.repository.CreatePoet(userInputs); + return PoetResult; + } + async Poets(size, skip, matchdata, sortob) { + var sortob = { + orderbycolumnname:"like", + orderby:-1 + } + var q = await paginateResults(size, skip, matchdata, sortob); + console.log(q) + const PoetResult = await this.repository.GetPoets(q); + return PoetResult; + } + async AdminPoets(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const PoetResult = await this.repository.GetAdminPoets(q); + return PoetResult; + } + async PoetById(id) { + const PoetResult = await this.repository.FindPoetById(id); + return PoetResult; + } + async UpdatePoet(formdata) { + const PoetResult = await this.repository.UpdatePoet(formdata); + return PoetResult; + } + async DeletePoet(formdata) { + const PoetResult = await this.repository.DeletePoet(formdata); + var data = this.PoetById(formdata['id']); + return data; + } +} + +module.exports = PoetService; diff --git a/src/services/post-service.js b/src/services/post-service.js new file mode 100644 index 0000000000..0fedd60f56 --- /dev/null +++ b/src/services/post-service.js @@ -0,0 +1,422 @@ +const { user } = require('firebase-functions/v1/auth'); +const { PostRepository, TagRepository, CategoryRepository ,PoetRepository} = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +var AnalyticsService = require('./analytics-service'); +var AnalyticsService = new AnalyticsService(); + + +var NotificationService = require('./notification-service'); +var NotificationService = new NotificationService(); + +// All Business logic will be here +class PostService { + constructor() { + this.repository = new PostRepository(); + this.TagRepository = new TagRepository(); + this.CategoryRepository = new CategoryRepository(); + this.PoetRepository = new PoetRepository(); + } + async SaveMasterTag(post_tags) { + if (post_tags.lenth != 0) { + post_tags.forEach(async (element) => { + var posttagdata = await this.TagRepository.SearchTag(element); + if (posttagdata == null) { + var json = { tag_name: element } + var posttagdata = await this.TagRepository.CreateTag(json); + + } + }); + } + return true; + } + async SavePostCategory(postcategroy) { + var postcategorydata = await this.CategoryRepository.SearchCategory(postcategroy); + + if (postcategorydata == null) { + var json = { category_name: postcategroy } + postcategorydata = await this.CategoryRepository.CreateCategory(json); + return postcategorydata + } else { + return postcategorydata + + } + + + } + + async AddPost(userInputs) { + + this.SaveMasterTag(userInputs.post_tags) + var categorydata = await this.SavePostCategory(userInputs.category_name); + userInputs.category_slug = categorydata.category_slug; + const PostResult = await this.repository.CreatePost(userInputs); + return PostResult; + } + async AddPostLike(userInputs) { + var checkexist = await this.CheckPostIsLikedOrNOt(userInputs.user,userInputs.post) + if(checkexist == null){ + + const PostResult = await this.repository.PostLikeAdd(userInputs); + var custjson = { + user_id:userInputs.user, + post_id:userInputs.post, + anallytics_type:"like", + } + + await AnalyticsService.AddAnalytics(custjson) + return PostResult; + }else{ + return checkexist; + } + } + async GetAllPostLikes(userInputs) { + + const PostResult = await this.repository.GetPostWithLikes(userInputs); + return PostResult; + } + async CheckPostIsLikedOrNOt(user,post) { + + const PostResult = await this.repository.GetLikePostByUserId(user,post); + return PostResult; + } + async CheckPostIsWishlistOrNOt(user,post) { + + const PostResult = await this.repository.GetWishlistostByUserId(user,post); + return PostResult; + } + async AddPostWishlist(userInputs) { + try { + + var checkexist = await this.CheckPostIsWishlistOrNOt(userInputs.user,userInputs.post) + if(checkexist == null){ + const PostResult = await this.repository.PostWishlistAdd(userInputs); + var custjson = { + user_id:userInputs.user, + post_id:userInputs.post, + anallytics_type:"wishlist", + } + + await AnalyticsService.AddAnalytics(custjson) + return PostResult; + }else{ + return checkexist; + + } + } catch (error) { + console.log(error) + return error + + } + } + async GetAllPostWishlist(userInputs) { + + const PostResult = await this.repository.GetPostWithWishlists(userInputs); + return PostResult; + } + + + async AdminPosts(size, skip, matchdata, sortob) { + try{ + + var q = await paginateResults(size, skip, matchdata, sortob); + var PostResult = await this.repository.GetPosts(q); + + + return PostResult; + }catch(error){ + console.log(error) + return error + } + } + async Posts(size, skip, matchdata, sortob) { + try{ + + matchdata["post_status"] = "Published"; + // var extra_query = { + // '$match': { + // $or:[ + // {reel_video_link: { $eq: ""}}, + // {reel_video_link: { $eq: null}}, + // {reel_video_link:{$exists:false}} + // ] + // } + // }; + // matchdata["extra_query"] = extra_query + + var q = await paginateResults(size, skip, matchdata, sortob); + + var q2 = { + '$lookup': { + 'from': 'categories', + 'localField': 'category_id', + 'foreignField': '_id', + 'as': 'category_data' + } + } + q.push(q2) + var q3 = { + '$lookup': { + 'from': 'poets', + 'localField': 'poet_id', + 'foreignField': '_id', + 'as': 'poet_data' + } + } + q.push(q3) + + + var PostResult = await this.repository.GetPosts(q); + const myInstance = this; + + async function myFunction(PostResult,user) { + + for (const item of PostResult) { + var is_like = await EveryPostCheckLikedOrNot(item,user,myInstance); + item.is_like =is_like; + var is_wishlist = await EveryPostCheckWishlistOrNot(item,user,myInstance); + item.is_wishlist =is_wishlist; + item.poet_image_url = "" + item.category_media_url = "" + if(item.poet_data.length !=0){ + item.poet_image_url = item.poet_data[0].profile_media_url + item.is_blue_tick = item.poet_data[0].is_blue_tick + } + if(item.category_data.length !=0){ + item.category_media_url = item.category_data[0].category_media_url + } + // if(item.poet_id !="" && item.poet_id !=null ){ + // item.poet_data = await myInstance.PoetRepository.FindPoetById(item.poet_id) + // } + // if(item.category_id !="" && item.category_id !=null ){ + // item.category_data = await myInstance.CategoryRepository.FindCategoryById(item.category_id) + + // } + } + + return PostResult; + } + + async function EveryPostCheckLikedOrNot(item,user,myInstance) { + var checkexist = await myInstance.CheckPostIsLikedOrNOt(user,item._id); + if(checkexist == null){ + return false; + }else{ + return true; + } + // synchronous code here + } + async function EveryPostCheckWishlistOrNot(item,user,myInstance) { + var checkexist = await myInstance.CheckPostIsWishlistOrNOt(user,item._id); + if(checkexist == null){ + return false; + }else{ + return true; + + } + // synchronous code here + } + if(matchdata.user != undefined){ + PostResult = await myFunction(PostResult,matchdata.user); + } + return PostResult; + }catch(error){ + console.log(error) + return error + } + } + async GetAllReels(size, skip, matchdata, sortob) { + try{ + + matchdata["post_status"] = "Published"; + var extra_query = { + '$match': { + '$and': [ + { + 'reel_video_link': { + '$ne': '' + } + }, + { + 'reel_video_link': { + '$ne': null + } + }, { + 'reel_video_link': { + '$exists': true + } + } + ] + } + }; + matchdata["extra_query"] = extra_query + + var q = await paginateResults(size, skip, matchdata, sortob); + var js = { '$sample': { 'size': size } }; + q.push(js) + var q2 = { + '$lookup': { + 'from': 'categories', + 'localField': 'category_id', + 'foreignField': '_id', + 'as': 'category_data' + } + } + q.push(q2) + var q3 = { + '$lookup': { + 'from': 'poets', + 'localField': 'poet_id', + 'foreignField': '_id', + 'as': 'poet_data' + } + } + q.push(q3) + var PostResult = await this.repository.GetPosts(q); + const myInstance = this; + + async function myFunction(PostResult,user) { + + for (const item of PostResult) { + var is_like = await EveryPostCheckLikedOrNot(item,user,myInstance); + item.is_like =is_like; + var is_wishlist = await EveryPostCheckWishlistOrNot(item,user,myInstance); + item.is_wishlist =is_wishlist; + item.poet_image_url = "" + item.category_media_url = "" + if(item.poet_data.length !=0){ + item.poet_image_url = item.poet_data[0].profile_media_url + item.is_blue_tick = item.poet_data[0].is_blue_tick + + } + if(item.category_data.length !=0){ + item.category_media_url = item.category_data[0].category_media_url + } + } + + return PostResult; + } + + async function EveryPostCheckLikedOrNot(item,user,myInstance) { + var checkexist = await myInstance.CheckPostIsLikedOrNOt(user,item._id); + if(checkexist == null){ + return false; + }else{ + return true; + } + // synchronous code here + } + async function EveryPostCheckWishlistOrNot(item,user,myInstance) { + var checkexist = await myInstance.CheckPostIsWishlistOrNOt(user,item._id); + if(checkexist == null){ + return false; + }else{ + return true; + + } + // synchronous code here + } + if(matchdata.user != undefined){ + PostResult = await myFunction(PostResult,matchdata.user); + } + return PostResult; + }catch(error){ + console.log(error) + return error + } + } + async SearchPost(search,page,size) { + + try{ + + + + var PostResult = await this.repository.SearchPosts(search,page,size); + + return PostResult; + }catch(error){ + console.log(error) + return error + } + } + async PostById(id) { + const PostResult = await this.repository.FindPostById(id); + return PostResult; + } + async UpdatePost(formdata) { + this.SaveMasterTag(formdata.post_tags) + var categorydata = await this.SavePostCategory(formdata.category_name); + formdata.category_slug = categorydata.category_slug; + + const PostResult = await this.repository.UpdatePost(formdata); + return PostResult; + } + async DeletePost(id) { + const PostResult = await this.repository.DeletePost(id); + return []; + } + async RemovePostLike(userinputs) { + const PostResult = await this.repository.RemovePostLike(userinputs.user,userinputs.post); + return []; + } + async RemovePostWishlist(userinputs) { + const PostResult = await this.repository.RemovePostWishlist(userinputs.user,userinputs.post); + return []; + } + + + async GetPostsForNotifictaion() { + try{ + + var PostResult = await this.repository.NotificationGetPost(); + var postdata = PostResult[0] + + var userInputs = { + title:postdata.post_name, + body: postdata.post_description, + media_url: postdata.post_media_url[0], + data: postdata, + }; + + + + await NotificationService.SendNotificationToAllUser(userInputs) + var formdata = { + id:postdata._id, + is_sent_notification:true + } + await this.repository.UpdatePost(formdata) + return PostResult; + }catch(error){ + console.log(error) + return error + } + } + async ScriptPOST() { + + try{ + var PostResult = await this.repository.GetALLPOSTFORScript(); + + for (const item of PostResult) { + var categorydata= await this.CategoryRepository.FindCategoryById(item.category_id) + var poetdata= await this.PoetRepository.FindPoetById(item.poet_id) + var poet_english_name = poetdata[0].poet_english_name + var category_english_name = categorydata[0].category_english_name + + var formdata = { + poet_english_name:poet_english_name, + id:item._id, + category_english_name:category_english_name + } + await this.repository.UpdatePostScript(formdata) + } + + return PostResult; + }catch(error){ + console.log(error) + return error + } + } +} + +module.exports = PostService; diff --git a/src/services/slider-service.js b/src/services/slider-service.js new file mode 100644 index 0000000000..0159305dd3 --- /dev/null +++ b/src/services/slider-service.js @@ -0,0 +1,34 @@ +const { SliderRepository } = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class SliderService { + constructor() { + this.repository = new SliderRepository(); + } + + async AddSlider(userInputs) { + const SliderResult = await this.repository.CreateSlider(userInputs); + return SliderResult; + } + async Sliders(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const SliderResult = await this.repository.GetSliders(q); + return SliderResult; + } + async SliderById(id) { + const SliderResult = await this.repository.FindSliderById(id); + return SliderResult; + } + async UpdateSlider(formdata) { + const SliderResult = await this.repository.UpdateSlider(formdata); + return SliderResult; + } + async DeleteSlider(formdata) { + const SliderResult = await this.repository.DeleteSlider(formdata); + var data = this.SliderById(formdata['id']); + return data; + } +} + +module.exports = SliderService; diff --git a/src/services/tag-service.js b/src/services/tag-service.js new file mode 100644 index 0000000000..af9557d5f2 --- /dev/null +++ b/src/services/tag-service.js @@ -0,0 +1,35 @@ +const { TagRepository } = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class TagService { + constructor() { + this.repository = new TagRepository(); + } + + async AddTag(userInputs) { + const TagResult = await this.repository.CreateTag(userInputs); + return TagResult; + } + async Tags(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + console.log(JSON.stringify(q)) + const TagResult = await this.repository.GetTags(q); + return TagResult; + } + async TagById(id) { + const TagResult = await this.repository.FindTagById(id); + return TagResult; + } + async UpdateTag(formdata) { + const TagResult = await this.repository.UpdateTag(formdata); + return TagResult; + } + async DeleteTag(formdata) { + const TagResult = await this.repository.DeleteTag(formdata); + var data = this.TagById(formdata['id']); + return data; + } +} + +module.exports = TagService; diff --git a/src/services/user-service.js b/src/services/user-service.js new file mode 100644 index 0000000000..97156e2bb4 --- /dev/null +++ b/src/services/user-service.js @@ -0,0 +1,47 @@ +const { UserRepository } = require('../database'); +const { FormateData, paginateResults } = require('../utils'); + +// All Business logic will be here +class UserService { + constructor() { + this.repository = new UserRepository(); + } + + async AddUser(userInputs) { + console.log(userInputs) + const UserResult = await this.repository.CreateUser(userInputs); + return UserResult; + } + async Users(size, skip, matchdata, sortob) { + var q = await paginateResults(size, skip, matchdata, sortob); + const UserResult = await this.repository.GetUsers(q); + return UserResult; + } + async UserById(id) { + const UserResult = await this.repository.FindUserById(id); + return UserResult; + } + async UpdateUser(formdata) { + const UserResult = await this.repository.UpdateUser(formdata); + return UserResult; + } + async DeleteUser(formdata) { + const UserResult = await this.repository.DeleteUser(formdata); + var data = this.UserById(formdata['id']); + return data; + } + async CheckUserIfnotThenInsert(userInputs) { + const userdata = await this.repository.FindUserByMobile(userInputs.user_mobile); + if(userdata == null){ + + const UserResult = await this.repository.CreateUser(userInputs); + return UserResult; + }else{ + userInputs.id = userdata._id; + const UserResult = await this.repository.UpdateUser(userInputs); + return userdata; + } + } +} + +module.exports = UserService; diff --git a/src/utils/app-errors.js b/src/utils/app-errors.js new file mode 100644 index 0000000000..0afa002958 --- /dev/null +++ b/src/utils/app-errors.js @@ -0,0 +1,74 @@ +const STATUS_CODES = { + OK: 200, + BAD_REQUEST: 400, + UN_AUTHORISED: 403, + NOT_FOUND: 404, + INTERNAL_ERROR: 500, +}; + +class AppError extends Error { + constructor( + name, + statusCode, + description, + isOperational, + errorStack, + logingErrorResponse, + ) { + super(description); + Object.setPrototypeOf(this, new.target.prototype); + this.name = name; + this.statusCode = statusCode; + this.isOperational = isOperational; + this.errorStack = errorStack; + this.logError = logingErrorResponse; + Error.captureStackTrace(this); + } +} + +//api Specific Errors +class APIError extends AppError { + constructor( + name, + statusCode = STATUS_CODES.INTERNAL_ERROR, + description = 'Internal Server Error', + isOperational = true, + ) { + super(name, statusCode, description, isOperational); + } +} + +//400 +class BadRequestError extends AppError { + constructor(description = 'Bad request', logingErrorResponse) { + super( + 'NOT FOUND', + STATUS_CODES.BAD_REQUEST, + description, + true, + false, + logingErrorResponse, + ); + } +} + +//400 +class ValidationError extends AppError { + constructor(description = 'Validation Error', errorStack) { + super( + 'BAD REQUEST', + STATUS_CODES.BAD_REQUEST, + description, + true, + errorStack, + ); + } +} + +module.exports = { + AppError, + APIError, + BadRequestError, + ValidationError, + STATUS_CODES, +}; diff --git a/src/utils/error-handler.js b/src/utils/error-handler.js new file mode 100644 index 0000000000..1c8a4011d4 --- /dev/null +++ b/src/utils/error-handler.js @@ -0,0 +1,69 @@ +const { createLogger, transports } = require('winston'); +const { AppError } = require('./app-errors'); + +const LogErrors = createLogger({ + transports: [ + new transports.Console(), + new transports.File({ filename: 'app_error.log' }), + ], +}); + +class ErrorLogger { + constructor() {} + async logError(err) { + console.log('==================== Start Error Logger ==============='); + LogErrors.log({ + private: true, + level: 'error', + message: `${new Date()}-${JSON.stringify(err)}`, + }); + console.log('==================== End Error Logger ==============='); + // log error with Logger plugins + + return false; + } + + isTrustError(error) { + if (error instanceof AppError) { + return error.isOperational; + } else { + return false; + } + } +} + +const ErrorHandler = async (err, req, res, next) => { + const errorLogger = new ErrorLogger(); + + process.on('uncaughtException', (reason, promise) => { + console.log(reason, 'UNHANDLED'); + throw reason; // need to take care + }); + + process.on('uncaughtException', (error) => { + errorLogger.logError(error); + if (errorLogger.isTrustError(err)) { + //process exist // need restart + } + }); + + // console.log(err.description, '-------> DESCRIPTION') + // console.log(err.message, '-------> MESSAGE') + // console.log(err.name, '-------> NAME') + if (err) { + await errorLogger.logError(err); + if (errorLogger.isTrustError(err)) { + if (err.errorStack) { + const errorDescription = err.errorStack; + return res.status(err.statusCode).json({ message: errorDescription }); + } + return res.status(err.statusCode).json({ message: err.message }); + } else { + //process exit // terriablly wrong with flow need restart + } + return res.status(err.statusCode).json({ message: err.message }); + } + next(); +}; + +module.exports = ErrorHandler; diff --git a/src/utils/errors/app-errors.js b/src/utils/errors/app-errors.js new file mode 100644 index 0000000000..43f3c93c51 --- /dev/null +++ b/src/utils/errors/app-errors.js @@ -0,0 +1,56 @@ +const STATUS_CODES = { + OK: 200, + BAD_REQUEST: 400, + UN_AUTHORISED: 403, + NOT_FOUND: 404, + INTERNAL_ERROR: 500, +}; + +class BaseError extends Error { + constructor(name, statusCode, description) { + super(description); + Object.setPrototypeOf(this, new.target.prototype); + this.name = name; + this.statusCode = statusCode; + Error.captureStackTrace(this); + } +} + +// 500 Internal Error +class APIError extends BaseError { + constructor(description = 'api error') { + super( + 'api internal server error', + STATUS_CODES.INTERNAL_ERROR, + description, + ); + } +} + +// 400 Validation Error +class ValidationError extends BaseError { + constructor(description = 'bad request') { + super('bad request', STATUS_CODES.BAD_REQUEST, description); + } +} + +// 403 Authorize error +class AuthorizeError extends BaseError { + constructor(description = 'access denied') { + super('access denied', STATUS_CODES.UN_AUTHORISED, description); + } +} + +// 404 Not Found +class NotFoundError extends BaseError { + constructor(description = 'not found') { + super('not found', STATUS_CODES.NOT_FOUND, description); + } +} + +module.exports = { + APIError, + ValidationError, + AuthorizeError, + NotFoundError, +}; diff --git a/src/utils/errors/index.js b/src/utils/errors/index.js new file mode 100644 index 0000000000..3ecabe7abd --- /dev/null +++ b/src/utils/errors/index.js @@ -0,0 +1,31 @@ + +const { + NotFoundError, + ValidationError, + AuthorizeError, +} = require('./app-errors'); +const { GetApiResponse } = require('../index'); + +module.exports = (app) => { + app.use(async (error, req, res, next) => { + let reportError = true; + + // skip common / known errors + [NotFoundError, ValidationError, AuthorizeError].forEach((typeOfError) => { + if (error instanceof typeOfError) { + reportError = false; + } + }); + + if (reportError) { + console.log(error) + // Sentry.captureException(error); + } + const statuscode = error.statusCode || 500; + var data = error.data || error.message; + + data = await GetApiResponse([], data, statuscode); + + return res.status(statuscode).json(data); + }); +}; diff --git a/src/utils/index.js b/src/utils/index.js new file mode 100644 index 0000000000..d3de17d51d --- /dev/null +++ b/src/utils/index.js @@ -0,0 +1,623 @@ +const mongoose = require("mongoose"); +const ObjectId = require("mongoose"); +const moment = require("moment"); + +const Objectid = ObjectId.Types.ObjectId; + + +module.exports.GetPagination = async (page, size) => { + if (page == undefined) { + page = 1; + } else { + page = parseInt(page); + } + if (size == undefined) { + size = 20; + } else { + size = parseInt(size); + } + skip = size * (page - 1); + limit = size; + return { limit, skip }; +}; + +module.exports.GetApiResponse = async ( + data, + message = "", + statuscode = 200, + custom = [] +) => { + try { + if (data.length == 0) { + var data = { + success: true, + message: "No data found", + data: [], + }; + } else { + var data = { + success: true, + message: "Data found", + data: data, + }; + } + + if (message != "") { + data["message"] = message; + } + if (custom.length != 0) { + data["custom"] = custom; + } + if (statuscode != 200) { + data["success"] = false; + } + return await data; + } catch (error) { + return error; + } +}; +//for filter sorting and pagination code +module.exports.paginateResults = async ( + limit = 20, + skip = 0, + matcharray = [], + sortarray = {} +) => { + var pipeline = []; + + if ( + sortarray.hasOwnProperty("orderbycolumnname") && + sortarray.hasOwnProperty("orderby") + ) { + var orderbycolumnname = sortarray.orderbycolumnname; + var orderby = sortarray.orderby; + var sortdata = { $sort: { [orderbycolumnname]: orderby } }; // Use this to sort documents by newest first + pipeline.push(sortdata); + } + + async function matchpiplinedata(matcharray) { + if (matcharray.length != 0) { + if (matcharray.is_del == undefined) { + var deletpipeline = { $match: { is_del: false } }; //for by default it will get all undeleted data + pipeline.push(deletpipeline); + } + var exclude_keysarray = []; + if(matcharray.exclude_keys !=undefined){ + exclude_keysarray = matcharray.exclude_keys; + } + Object.entries(matcharray).forEach(async ([key, value]) => { + + if(key == "extra_query"){ + pipeline.push(value); + } + if ( + key != "page" && + key != "size" && + key != "orderbycolumnname" && + key != "orderby" && + key != "extra_query" + ) { + + if(key != "exclude_keys"){ + if(!exclude_keysarray.includes(key)){ + var checkobjectid = false; + const Objectid = require("mongoose").Types.ObjectId; + if (Objectid.isValid(value)) { + if (String(new Objectid(value)) === value) { + checkobjectid = true; + } + } + if (value == 1 || value == "1" || typeof value == "boolean") { + var js = { [key]: value }; + } else if (checkobjectid) { + var js = { [key]: mongoose.Types.ObjectId(value) }; //for validating object id + } else if (typeof value == "object") { + console.log(value) + var js = { [key]: {$in:value} }; + } else{ + + + value = String(value); + var js = { [key]: { $regex: value, $options: "i" } }; + + } + var matchdata = { $match: js }; // Use this to sort documents by newest first + pipeline.push(matchdata); + } + }} + }); + } + } + await matchpiplinedata(matcharray); + + //this function for above code is async so it will push + async function PushLimiSkipPipline() { + var skipdata = { $skip: skip }; + pipeline.push(skipdata); // always apply 'skip' before 'limit' + var limitdata = { $limit: limit }; // this is your 'page size' + pipeline.push(limitdata); + } + + await PushLimiSkipPipline(); + + return pipeline; +}; +//for sorting columnname and orderby asceding and descending +module.exports.GetSortByFromRequest = async (orderbycolumnname, orderby) => { + try { + if (orderbycolumnname != undefined && orderby != undefined) { + var columnname = orderbycolumnname; + var orderby = orderby; + sortarray = { + [columnname]: orderby, + }; + } else { + orderbycolumnname = "createdAt"; + orderby = -1; + } + + return { orderbycolumnname, orderby }; + } catch (error) { + return error; + } +}; +//TODO All API Request must be with authentication token +module.exports.ApiRequest = async (url, method, headers, data = []) => { + try { + var axios = require("axios"); + // logger.c4c(data); + var config = { + method: method, + url: url, + headers: headers, + data: data, + }; + const response = await axios(config); + var status = 200; + var data = response.data; + return { status, data }; + } catch (error) { + var status = 400; + // var data; + // logger.c4c(error); + + logger.debug(error); + // if (error.hasOwnProperty("response")) { + // data = error.response.data.error.message; + // } else { + // data = error; + // } + return { status, error }; + } +}; + +module.exports.WhatsappApiRequest = async (url, method, headers, data) => { + try { + var axios = require("axios"); + var data = JSON.stringify(data); + + var config = { + method: method, + url: url, + headers: headers, + data: data, + }; + + var response = await axios(config); + var status = response.status; + var data = response.data; + return { status, data }; + } catch (error) { + var status = error.response.status; + var data = error.response.data.error; + return { status, data }; + } +}; + +module.exports.ValidateObjectId = async (id) => { + // validator function + const Objectid = require("mongoose").Types.ObjectId; + if (Objectid.isValid(id)) { + if (String(new Objectid(id)) === id) return true; + return false; + } + return false; +}; + +module.exports.GenerateHeaders = (Token) => { + return { + Authorization: `Bearer ${Token}`, + "Content-Type": "application/json", + }; +}; + +module.exports.ValidatePassword = async ( + enteredPassword, + savedPassword, + salt +) => { + return (await this.GeneratePassword(enteredPassword, salt)) === savedPassword; +}; + +module.exports.GenerateSignature = async (payload) => { + try { + return await jwt.sign(payload, APP_SECRET, { expiresIn: "30d" }); + } catch (error) { + logger.debug(error); + return error; + } +}; + +module.exports.ValidateSignature = async (req) => { + try { + const signature = req.get("Authorization"); + const payload = await jwt.verify(signature.split(" ")[1], APP_SECRET); + req.user = payload; + return true; + } catch (error) { + return false; + } +}; + +module.exports.FormateData = (data) => { + if (data) { + return { data }; + } else { + throw new Error("Data Not found!"); + } +}; + +module.exports.ResponseMessage = (message_type) => { + try { + const messages = { + datafound: "Data Found", + datainsert: "Data Inserted", + databasevalidationerror: "Database Validation Error", + c4cerror: "C4C Error", + datasave: "Data Saved Successfully", + dataexist: "Data Already Exist", + dataupdate: "Data Updated", + nodataupdate: "No Data Updated", + nodatafound: "No Data Found", + followuplist: "Followup List Found", + followuplistnotfound: "Followup List Not Found", + activitylist: "Activity List Found", + activitylistnotfound: "Activity List Not Found", + notelist: "LeadNote List Found", + notelistnotfound: "LeadNote List Not Found", + syncprocess: "data sync process start....", + enumdatatypeerror: "Enum Data type error Type must be In this", + whatsappsessiontimeout: + "User Session Is Inactive For Last 24 hours You Can Only send Template message", + syncdata: "data sync from c4c", + prospectnotfound: "No Prospect Found", + prospectfound: "prospect found", + leadfound: "Lead Found", + datasync: "Sync Successfuly", + pinnedon: "Pinned", + pinnedoff: "UnPinned", + staredon: "Stared Succesfully", + staredoff: "Stared Removed", + invalid: "Invalid Details", + datadelete: "Data Delete Succesfully", + leadnotecreate: "Lead Note Create Succesfully", + leadnotenotcreate: + "C4C Object Id Not Found Try to Create After Some Time", + leadfollowupcreate: "Lead Followup Create Succesfully", + leadfollowupnotcreate: + "C4C Object Id Not Found Try to Create After Some Time", + enterid: "Enter OwnerpartyId or AssignOwnerPartyId", + enterdetail: "Please Enter Details", + }; + return messages[message_type]; + } catch (error) { + return error; + } +}; +//message broker + + +module.exports.PublishMessage = (channel, service, msg) => { + channel.publish(EXCHANGE_NAME, service, Buffer.from(msg)); + logger.debug("Sent: ", msg); +}; + +module.exports.SubscribeMessage = async (channel, service) => { + try { + await channel.assertExchange(EXCHANGE_NAME, "direct", { durable: true }); + const q = await channel.assertQueue("", { exclusive: true }); + logger.debug(` Waiting for messages in queue: ${q.queue}`); + + logger.debug(` Waiting for messages in EXCHANGE_NAME: ${EXCHANGE_NAME}`); + logger.debug(` Waiting for messages in LEAD_SERVICE: ${LEAD_SERVICE}`); + channel.bindQueue(q.queue, EXCHANGE_NAME, LEAD_SERVICE); + channel.prefetch(1); + channel.consume( + q.queue, + (msg) => { + if (msg.content) { + service.SubscribeEvents(msg.content.toString()); + } + channel.ack(msg); + }, + { + noAck: false, + expiration: null, + } + ); + } catch (error) { + return error; + } +}; + +module.exports.RoundRobin = (existingUser) => { + var numberOfRounds = existingUser.length - 1; + for (let i = 0; i < numberOfRounds; i++) { + existingUser.pop(); + } +}; + +module.exports.DateFilter = async (startdate, enddate) => { + if (enddate == undefined) { + const date = new Date(startdate); + const finaldate = date.setDate(date.getDate() + 1); + return finaldate; + } else { + const finaldate = enddate; + return finaldate; + } +}; + +module.exports.AarytoObject = async (arr, formdata) => { + var obj = await arr.reduce((acc, [key, value]) => { + acc[key] = value; + return acc; + }); + + const data = []; + data.push( + "AccountPartyID", + "OwnerPartyID", + "OwnerPartyName", + "AccountPartyName", + "PreferedProject" + ); + for (let keyName in formdata) { + data.push(keyName); + } + + const detail = {}; + + for (let oldKeyName in formdata) { + const newKeyName = "new" + oldKeyName; + detail[newKeyName] = formdata[oldKeyName]; + } + + for (let i = 0; i < data.length; i++) { + const propertyValue = obj[data[i]]; + detail[data[i]] = propertyValue; + } + return detail; +}; + +module.exports.C4CApiRequest = async (url, method, data = []) => { + try { + var headers = { + Accept: "application/json", + "x-csrf-token": "w7HHmSAYZePyum5yIDWauA==", + Authorization: "Basic U29oYW06U29oYW1AMjAyMw==", + "Content-Type": "application/json", + }; + var axios = require("axios"); + var config = { + method: method, + url: url, + headers: headers, + data: data, + }; + const response = await axios(config); + var status = 200; + var data = response.data; + return { status, data }; + } catch (error) { + var status = error.response.status; + var data = error.response.data.error; + return { status, data }; + } +}; + +module.exports.GetAllDates = async (startdate, endingdate) => { + function getDates(startdate, endingdate) { + const dates = []; + + let currentdate = new Date(startdate); + let enddate = new Date(endingdate); + + while (currentdate <= enddate) { + const year = currentdate.getFullYear(); + const month = String(currentdate.getMonth() + 1).padStart(2, "0"); + const date = String(currentdate.getDate()).padStart(2, "0"); + dates.push(`${year}-${month}-${date}`); + currentdate.setDate(currentdate.getDate() + 1); + } + + return dates; + } + const dates = getDates(startdate, endingdate); + return dates; +}; + + +module.exports.containsWhitespace = (str) => { + return /\s/.test(str); +}; + +module.exports.RedisConnections = async () => { + try { + var redisClient = redis.createClient({ + password: "JY1LBKZMvAVhIf9aSChAxcFvjHzLuruT", + socket: REDIS, + }); + + redisClient.connect(redisClient); + redisClient.on("connect", function (err) { + logger.debug("Connected Redis"); + }); + return redisClient; + } catch (error) { + return error; + } +}; + +module.exports.GenerateHeadersTokenAndCookie = async () => { + try { + const { LeadRefactorRepository } = require("../database"); + var repository = new LeadRefactorRepository(); + let url = C4CBASEURL + "/sap/c4c/odata/v1/c4codataapi"; + var method = "get"; + var headers = { + Accept: "application/json", + "x-csrf-token": "fetch", + Authorization: + "Basic " + + new Buffer.from(C4CUSERNAME + ":" + C4CPASSWORD).toString("base64"), + }; + var reqdata = ""; + const { status, data } = await this.ApiRequestHeader( + url, + method, + headers, + reqdata + ); + + // await redisClient.set("x-csrf-token", data["x-csrf-token"]); + // await redisClient.set("cookie", data["set-cookie"][1]); + var requestdata = { + xcsrftoken: data["x-csrf-token"], + cookie: data["set-cookie"][1], + }; + var tokendata = await repository.GetC4CToken(); + if (tokendata == null) { + var tokendata = await repository.SaveToken(requestdata); + } + return true; + } catch (error) { + return error; + } +}; + +module.exports.GetHeaders = async () => { + try { + const { LeadRefactorRepository } = require("../database"); + var repository = new LeadRefactorRepository(); + var data = await repository.GetC4CToken(); + + if (data == null) { + var tokensave = await repository.SaveToken(requestdata); + data = await repository.GetC4CToken(); + } + // this.GenerateHeadersTokenAndCookie(); + var xcsrftoken = data.xcsrftoken; + var cookie = data.cookie; + var headers = { + Accept: "application/json", + "x-csrf-token": xcsrftoken, + Authorization: + "Basic " + + new Buffer.from(C4CUSERNAME + ":" + C4CPASSWORD).toString("base64"), + "Content-Type": "application/json", + Cookie: cookie, + }; + + return headers; + } catch (error) { + logger.error(error); + return error; + } +}; + +module.exports.EpochToISOString = async (epochdata) => { + try { + if (epochdata != "" && epochdata != null && epochdata != "null") { + const date = await new Date( + parseInt(epochdata.match(/\d+/)[0]) + ).toISOString(); + return date; + } else { + return null; + } + } catch (error) { + return error; + } +}; +module.exports.FilterNullValuesJson = async (json) => { + const entries = Object.entries(json); // 1️⃣ + const nonEmptyOrNull = entries.filter( + ([key, val]) => + val != "" && val != null && val != undefined && val != "undefined" + ); // 2️⃣ + const output = Object.fromEntries(nonEmptyOrNull); // 3️⃣ + return output; +}; + +module.exports.FilterNullValuesJsonForNotifiction = async (json) => { + const entries = Object.entries(json); // 1️⃣ + const nonEmptyOrNull = entries.filter( + ([key, val]) => + val != "" && val != null && val != undefined && val != "undefined" && typeof val == "string" + ); // 2️⃣ + const output = Object.fromEntries(nonEmptyOrNull); // 3️⃣ + return output; +}; +module.exports.SortPinnedStared = async (data) => { + data.sort(function (a, b) { + if (a.is_pinned && !b.is_pinned) { + return -1; + } else if (!a.is_pinned && b.is_pinned) { + return 1; + } else { + if (a.is_stared && !b.is_stared) { + return -1; + } else if (!a.is_stared && b.is_stared) { + return 1; + } else { + return 0; + } + } + }); + + return data; +}; + + + +module.exports.GenerateISODateTimeMongoFormate = async (Date1, Time) => { + var newdate = Date1 + "T" + Time; + + var utcDateTime = new Date(newdate).toISOString(); + return utcDateTime; +}; + +module.exports.GetC4CTimestampeFormat = async ( + iscurrenttime = true, + isminustime = 0 +) => { + var timestamp = + moment().subtract(isminustime, "minutes").format("YYYY-MM-DDTHH:mm") + + ":00.0000000Z"; + + return timestamp; +}; +module.exports.CheckCountExist = async (data) => { + if (data.length != 0) { + var count = data[0].count; + } else { + var count = 0; + } + return count; +}; +module.exports.convertToSlug = (text) => { + return text.toLowerCase().replace(text, text).replace(/^-+|-+$/g, '') + .replace(/\s/g, '-').replace(/\-\-+/g, '-'); + +}; \ No newline at end of file