From 630b0c15998e14bbd966e90ce2c0543a55f94ffd Mon Sep 17 00:00:00 2001 From: Kath <55346310+Kathund@users.noreply.github.com> Date: Sun, 18 Feb 2024 15:41:25 +0800 Subject: [PATCH] Start Rewrite --- .eslintrc | 28 + .eslintrc.json | 36 - .github/ISSUE_TEMPLATE/bug_report.md | 28 + .github/ISSUE_TEMPLATE/feature-request.md | 19 + .github/PULL_REQUEST_TEMPLATE.md | 10 + .github/labels.yml | 24 + .github/workflows/ci-cd.yml | 65 + .github/workflows/codeql.yml | 81 + .gitignore | 107 +- .prettierrc | 9 + .travis.yml | 8 - .vscode/extensions.json | 3 + .vscode/settings.json | 3 + LICENSE | 2 +- Procfile | 1 - README.md | 3 +- docs-gen/index.js | 2 +- docs-gen/src/Doc.js | 198 +- docs-gen/src/DocBase.js | 71 +- docs-gen/src/DocClass.js | 26 +- docs-gen/src/DocElement.js | 269 +- docs-gen/src/DocEvent.js | 16 +- docs-gen/src/DocInterface.js | 16 +- docs-gen/src/DocMethod.js | 50 +- docs-gen/src/DocParam.js | 22 +- docs-gen/src/DocProp.js | 20 +- docs-gen/src/DocTypedef.js | 12 +- docs-gen/src/Util.js | 16 +- index.ts | 21 + package-lock.json | 5985 +++++++------------ package.json | 62 +- src/Hypixel.js | 3 - src/commands/Hypixel/bedwars.js | 60 - src/commands/Hypixel/compare.js | 180 - src/commands/Hypixel/duels.js | 89 - src/commands/Hypixel/history.js | 53 - src/commands/Hypixel/incidents.js | 46 - src/commands/Hypixel/murdermystery.js | 56 - src/commands/Hypixel/player.js | 113 - src/commands/Hypixel/skywars.js | 77 - src/commands/Hypixel/status.js | 58 - src/commands/Hypixel/verify.js | 67 - src/commands/Hypixel/wrapper.js | 99 - src/commands/Info/lookup.js | 174 - src/commands/Info/stats.js | 45 - src/commands/Utils/docs.js | 43 - src/commands/Utils/eval.js | 65 - src/commands/Utils/help.js | 52 - src/commands/Utils/ping.js | 29 - src/commands/Utils/reload.js | 46 - src/commands/Utils/tag.js | 107 - src/commands/Utils/uuid.js | 46 - src/commands/docs.ts | 47 + src/events/discord/guildMemberAdd.js | 24 - src/events/discord/raw.js | 33 - src/events/discord/ready.js | 19 - src/events/interactionCreate.ts | 69 + src/events/ready.ts | 12 + src/functions/deployCommands.ts | 32 + src/functions/deployEvents.ts | 23 + src/functions/helper.ts | 109 + src/functions/logger.ts | 134 + src/index.js | 13 - src/structures/client/Client.js | 46 - src/structures/client/EmbedPagesRenderer.js | 50 - src/structures/client/Logger.js | 53 - src/structures/client/Utils.js | 67 - src/structures/discord/GuildMember.js | 19 - src/structures/models/Tag.js | 6 - src/structures/models/User.js | 6 - src/structures/prototypes/String.js | 4 - src/types/main.d.ts | 71 + tsconfig.json | 13 + 73 files changed, 3293 insertions(+), 6278 deletions(-) create mode 100644 .eslintrc delete mode 100644 .eslintrc.json create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/labels.yml create mode 100644 .github/workflows/ci-cd.yml create mode 100644 .github/workflows/codeql.yml create mode 100644 .prettierrc delete mode 100644 .travis.yml create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json delete mode 100644 Procfile create mode 100644 index.ts delete mode 100644 src/Hypixel.js delete mode 100644 src/commands/Hypixel/bedwars.js delete mode 100644 src/commands/Hypixel/compare.js delete mode 100644 src/commands/Hypixel/duels.js delete mode 100644 src/commands/Hypixel/history.js delete mode 100644 src/commands/Hypixel/incidents.js delete mode 100644 src/commands/Hypixel/murdermystery.js delete mode 100644 src/commands/Hypixel/player.js delete mode 100644 src/commands/Hypixel/skywars.js delete mode 100644 src/commands/Hypixel/status.js delete mode 100644 src/commands/Hypixel/verify.js delete mode 100644 src/commands/Hypixel/wrapper.js delete mode 100644 src/commands/Info/lookup.js delete mode 100644 src/commands/Info/stats.js delete mode 100644 src/commands/Utils/docs.js delete mode 100644 src/commands/Utils/eval.js delete mode 100644 src/commands/Utils/help.js delete mode 100644 src/commands/Utils/ping.js delete mode 100644 src/commands/Utils/reload.js delete mode 100644 src/commands/Utils/tag.js delete mode 100644 src/commands/Utils/uuid.js create mode 100644 src/commands/docs.ts delete mode 100644 src/events/discord/guildMemberAdd.js delete mode 100644 src/events/discord/raw.js delete mode 100644 src/events/discord/ready.js create mode 100644 src/events/interactionCreate.ts create mode 100644 src/events/ready.ts create mode 100644 src/functions/deployCommands.ts create mode 100644 src/functions/deployEvents.ts create mode 100644 src/functions/helper.ts create mode 100644 src/functions/logger.ts delete mode 100644 src/index.js delete mode 100644 src/structures/client/Client.js delete mode 100644 src/structures/client/EmbedPagesRenderer.js delete mode 100644 src/structures/client/Logger.js delete mode 100644 src/structures/client/Utils.js delete mode 100644 src/structures/discord/GuildMember.js delete mode 100644 src/structures/models/Tag.js delete mode 100644 src/structures/models/User.js delete mode 100644 src/structures/prototypes/String.js create mode 100644 src/types/main.d.ts create mode 100644 tsconfig.json diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..683dfc4 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,28 @@ +{ + "extends": [ + "plugin:@typescript-eslint/recommended", + "eslint:recommended" + ], + "env": { "commonjs": true, "es2021": true, "node": true }, + "parserOptions": { "ecmaVersion": "latest" }, + "plugins": [ "@typescript-eslint" ], + "overrides": [], + "rules": { + "no-constant-condition": ["error", { "checkLoops": false }], + "curly": [ "error", "multi-line", "consistent" ], + "@typescript-eslint/no-explicit-any": "off", + "no-template-curly-in-string": "error", + "no-use-before-define": "error", + "import/no-unresolved": "off", + "no-duplicate-case": "error", + "no-throw-literal": "error", + "no-self-compare": "error", + "no-unreachable": "error", + "no-unused-vars": "error", + "prefer-const": "error", + "no-console": "error", + "sort-vars": "error", + "no-empty": "error", + "no-undef": "error" + } +} diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 5226b36..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "env": { - "commonjs": true, - "es2021": true, - "node": true - }, - "extends": [ - "google" - ], - "parserOptions": { - "ecmaVersion": 12 - }, - "rules": { - "linebreak-style": "off", - "comma-dangle": [ - "error", - "never" - ], - "valid-jsdoc": "off", - "max-len": "off", - "indent": [ - "error", - 2, - { - "SwitchCase": 1 - } - ], - "object-curly-spacing": "off", - "space-before-function-paren": "off", - "semi": "error", - "no-console": "error", - "no-extra-semi": "error", - "require-jsdoc": "off", - "no-unused-vars": "warn" - } -} \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..fe120a3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,28 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '[BUG]' +labels: bug +assignees: '' +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**Error ID** +Please paste in the error id that was given to you + +**To Reproduce** +Steps to reproduce the behavior: + +1. Do something + 2 . See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 0000000..9223000 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,19 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '[FEAT]' +labels: enhancement +assignees: '' +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..1b79901 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,10 @@ +**Changes** + + + +- [ ] I've added new features +- [ ] I've fixed bug. (_optional_ you can mention a issue if there is one) +- [ ] I've corrected the spelling in README, documentation, etc. +- [ ] I've fixed my eslint errors. (`npm run lint`) +- [ ] I've fixed my formatting. (`npm run prettier`) +- [ ] I've made sure it builds. (`npm run build`) diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..01931a6 --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,24 @@ +XS: + name: size/XS + lines: 0 + color: 3CBF00 +S: + name: size/S + lines: 10 + color: 5D9801 +M: + name: size/M + lines: 50 + color: 7F7203 +L: + name: size/L + lines: 200 + color: A14C05 +XL: + name: size/XL + lines: 1000 + color: C32607 +XXL: + name: size/XXL + lines: 5000 + color: E50009 diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 0000000..b2f600b --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,65 @@ +# This CI Workflow was deployed and configured by WarpWing and Nate. +name: CI/CD + +on: + push: + pull_request: + workflow_dispatch: + +env: + NODE_VERSION: '16.x' + +jobs: + es-lint: + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Install node dependencies + run: npm i + + - name: es-lint + run: npm run lint:check + + prettier: + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Install node dependencies + run: npm i + + - name: prettier + run: npm run prettier:check + + build: + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v4 + + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: Install node dependencies + run: npm i + + - name: Copy Config + run: cp config.example.json config.json + + - name: Test Build + run: npm run build diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..c0167ce --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,81 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: 'CodeQL' + +on: + push: + branches: ['main'] + pull_request: + # The branches below must be a subset of the branches above + branches: ['main'] + schedule: + - cron: '00 0 * * 1' + +jobs: + analyze: + name: Analyze + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners + # Consider using larger runners for possible analysis time improvements. + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ['javascript'] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] + # Use only 'java' to analyze code written in Java, Kotlin or both + # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: '/language:${{matrix.language}}' diff --git a/.gitignore b/.gitignore index bb6fa4d..138838d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,104 +1,5 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-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 +/config.json node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# 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 variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Next.js build output -.next - -# 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 - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port \ No newline at end of file +package-lock.json +logs/ +dist/ \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..2a41f3b --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "bracketSameLine": true, + "arrowParens": "always", + "trailingComma": "es5", + "bracketSpacing": true, + "singleQuote": true, + "printWidth": 100, + "tabWidth": 2 +} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6e1c78a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - 14 -cache: - directories: - - node_modules -script: - - npm run test \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..39c23a6 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["dbaeumer.vscode-eslint", "eamodio.gitlens", "esbenp.prettier-vscode"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..044c256 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "cSpell.words": ["unban", "wynncraft"] +} diff --git a/LICENSE b/LICENSE index f424e83..a214698 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Hypixel API • Reborn +Copyright (c) 2023 Kath Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Procfile b/Procfile deleted file mode 100644 index 35e2043..0000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -worker: npm run run \ No newline at end of file diff --git a/README.md b/README.md index afb9907..8103810 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -# our-awesome-bot +# Hypixel Api Reborn Support + Bot that helps with everything on discord server https://discord.gg/NSEBNMM diff --git a/docs-gen/index.js b/docs-gen/index.js index b23f02a..7d467e4 100644 --- a/docs-gen/index.js +++ b/docs-gen/index.js @@ -1 +1 @@ -module.exports = require('./src/Doc') +module.exports = require('./src/Doc'); diff --git a/docs-gen/src/Doc.js b/docs-gen/src/Doc.js index 91fbf57..3a621b9 100644 --- a/docs-gen/src/Doc.js +++ b/docs-gen/src/Doc.js @@ -1,30 +1,29 @@ -const sources = require('../sources.json') +const sources = require('../sources.json'); -const Fuse = require('fuse.js') -const fetch = require('node-fetch') +const Fuse = require('fuse.js'); +const fetch = require('node-fetch'); -const DocBase = require('./DocBase') -const DocClass = require('./DocClass') -const DocTypedef = require('./DocTypedef') -const DocInterface = require('./DocInterface') +const DocBase = require('./DocBase'); +const DocClass = require('./DocClass'); +const DocTypedef = require('./DocTypedef'); +const DocInterface = require('./DocInterface'); -const docCache = new Map() +const docCache = new Map(); -function dissectURL (url) { - const parts = url.slice(34).split('/') - return [parts[0], parts[1], parts[3].slice(0, -5)] +function dissectURL(url) { + const parts = url.slice(34).split('/'); + return [parts[0], parts[1], parts[3].slice(0, -5)]; } class Doc extends DocBase { - constructor (url, docs) { - super(docs) - this.url = url + constructor(url, docs) { + super(docs); + this.url = url; + [this.project, this.repo, this.branch] = dissectURL(url); - ;[this.project, this.repo, this.branch] = dissectURL(url) - - this.adoptAll(docs.classes, DocClass) - this.adoptAll(docs.typedefs, DocTypedef) - this.adoptAll(docs.interfaces, DocInterface) + this.adoptAll(docs.classes, DocClass); + this.adoptAll(docs.typedefs, DocTypedef); + this.adoptAll(docs.interfaces, DocInterface); this.fuse = new Fuse(this.toFuseFormat(), { shouldSort: true, @@ -34,105 +33,104 @@ class Doc extends DocBase { maxPatternLength: 32, minMatchCharLength: 1, keys: ['name', 'id'], - id: 'id' - }) + id: 'id', + }); } - get repoURL () { - return `https://github.com/${this.project}/${this.repo}/blob/${this.branch}` + get repoURL() { + return `https://github.com/${this.project}/${this.repo}/blob/${this.branch}`; } - get baseURL () { + get baseURL() { return 'https://hypixel-api-reborn.github.io'; } - get baseDocsURL () { - if (!this.baseURL) return null - return `${this.baseURL}/#/docs/main/${this.branch}` + get baseDocsURL() { + if (!this.baseURL) return null; + return `${this.baseURL}/#/docs/main/${this.branch}`; } - get icon () { - if (!this.baseURL) return null - return `${this.baseURL}/static/favicon.png` + get icon() { + if (!this.baseURL) return null; + return `${this.baseURL}/static/favicon.png`; } - get color () { + get color() { return 0xff8c00; } - get (...terms) { - terms = terms - .filter(term => term) - .map(term => term.toLowerCase()) + get(...terms) { + terms = terms.filter((term) => term).map((term) => term.toLowerCase()); - let elem = this.findChild(terms.shift()) - if (!elem || !terms.length) return elem || null + let elem = this.findChild(terms.shift()); + if (!elem || !terms.length) return elem || null; while (terms.length) { - const term = terms.shift() - const child = elem.findChild(term) + const term = terms.shift(); + const child = elem.findChild(term); - if (!child) return null - elem = terms.length && child.typeElement ? child.typeElement : child + if (!child) return null; + elem = terms.length && child.typeElement ? child.typeElement : child; } - return elem + return elem; } - search (query, { excludePrivateElements } = {}) { - const result = this.fuse.search(query) - if (!result.length) return null + search(query, { excludePrivateElements } = {}) { + const result = this.fuse.search(query); + if (!result.length) return null; - const filtered = [] + const filtered = []; while (result.length > 0 && filtered.length < 10) { - const element = this.get(...result.shift().item.id.split('#')) - if (excludePrivateElements && element.access === 'private') continue - filtered.push(element) + const element = this.get(...result.shift().item.id.split('#')); + if (excludePrivateElements && element.access === 'private') continue; + filtered.push(element); } - return filtered + return filtered; } - resolveEmbed (query, options = {}) { - const element = this.get(...query.split(/\.|#/)) - if (element) return element.embed(options) + resolveEmbed(query, options = {}) { + const element = this.get(...query.split(/\.|#/)); + if (element) return element.embed(options); - const searchResults = this.search(query, options) - if (!searchResults) return null + const searchResults = this.search(query, options); + if (!searchResults) return null; const embed = this.baseEmbed(); - embed.title = 'Search results:' - embed.description = searchResults.map(el => `**${el.link}**`).join('\n') - return embed + embed.title = `Search results for **${query}**:`; + embed.description = searchResults.map((el) => `**${el.link}**`).join('\n'); + return embed; } - toFuseFormat () { - const parents = Array.from(this.children.values()) + toFuseFormat() { + const parents = Array.from(this.children.values()); const children = parents - .map(parent => Array.from(parent.children.values())) - .reduce((a, b) => a.concat(b)) + .map((parent) => Array.from(parent.children.values())) + .reduce((a, b) => a.concat(b)); - const formattedParents = parents - .map(({ name }) => ({ id: name, name })) - const formattedChildren = children - .map(({ name, parent }) => ({ id: `${parent.name}#${name}`, name })) + const formattedParents = parents.map(({ name }) => ({ id: name, name })); + const formattedChildren = children.map(({ name, parent }) => ({ + id: `${parent.name}#${name}`, + name, + })); - return formattedParents.concat(formattedChildren) + return formattedParents.concat(formattedChildren); } - toJSON () { - const json = {} + toJSON() { + const json = {}; for (const key of ['classes', 'typedefs', 'interfaces']) { - if (!this[key]) continue - json[key] = this[key].map(item => item.toJSON()) + if (!this[key]) continue; + json[key] = this[key].map((item) => item.toJSON()); } - return json + return json; } - baseEmbed () { + baseEmbed() { const title = 'Hypixel API • Reborn'; return { @@ -140,58 +138,58 @@ class Doc extends DocBase { author: { name: `${title} (${this.branch})`, url: this.baseDocsURL, - icon_url: null - } - } + icon_url: null, + }, + }; } - formatType (types) { + formatType(types) { const typestring = types .map((text, index) => { if (/<|>|\*/.test(text)) { return text .split('') - .map(char => `\\${char}`) - .join('') + .map((char) => `\\${char}`) + .join(''); } - const typeElem = this.findChild(text.toLowerCase()) - const prependOr = index !== 0 && /\w|>/.test(types[index - 1]) && /\w/.test(text) + const typeElem = this.findChild(text.toLowerCase()); + const prependOr = index !== 0 && /\w|>/.test(types[index - 1]) && /\w/.test(text); - return (prependOr ? '|' : '') + (typeElem ? typeElem.link : text) + return (prependOr ? '|' : '') + (typeElem ? typeElem.link : text); }) - .join('') + .join(''); - return `**${typestring}**` + return `**${typestring}**`; } - static getRepoURL (id) { - const [name, branch] = id.split('/') + static getRepoURL(id) { + const [name, branch] = id.split('/'); const project = { main: 'hypixel-api-reborn', - bot: 'our-awesome-bot' - }[name] + bot: 'our-awesome-bot', + }[name]; - return `https://github.com/Hypixel-API-reborn/${project}/blob/${branch}/` + return `https://github.com/Hypixel-API-reborn/${project}/blob/${branch}/`; } - static sources () { - return sources + static sources() { + return sources; } - static async fetch (sourceName = 'master', { force } = {}) { - const url = sources[sourceName] || sourceName - if (!force && docCache.has(url)) return docCache.get(url) + static async fetch(sourceName = 'master', { force } = {}) { + const url = sources[sourceName] || sourceName; + if (!force && docCache.has(url)) return docCache.get(url); try { - const data = await fetch(url).then(res => res.json()) - const doc = new Doc(url, data) - docCache.set(url, doc) - return doc + const data = await axios(url).data; + const doc = new Doc(url, data); + docCache.set(url, doc); + return doc; } catch (err) { - throw new Error('invalid source name or URL.') + throw new Error('invalid source name or URL.'); } } } -module.exports = Doc +module.exports = Doc; diff --git a/docs-gen/src/DocBase.js b/docs-gen/src/DocBase.js index 5090034..201af2b 100644 --- a/docs-gen/src/DocBase.js +++ b/docs-gen/src/DocBase.js @@ -5,74 +5,73 @@ const types = { METHOD: 'method', PARAM: 'param', PROP: 'prop', - TYPEDEF: 'typedef' -} + TYPEDEF: 'typedef', +}; class DocBase { - constructor (json) { - this.originalJSON = json - this.children = new Map() + constructor(json) { + this.originalJSON = json; + this.children = new Map(); } - addChild (child) { - this.children.set(`${child.name.toLowerCase()}-${child.docType}`, child) + addChild(child) { + this.children.set(`${child.name.toLowerCase()}-${child.docType}`, child); } - adoptAll (enumerable, Constructor) { - if (!enumerable) return + adoptAll(enumerable, Constructor) { + if (!enumerable) return; for (const elem of enumerable) { - this.addChild(new Constructor(this, elem)) + this.addChild(new Constructor(this, elem)); } } - childrenOfType (type) { - const filtered = Array.from(this.children.values()) - .filter(child => child.docType === type) + childrenOfType(type) { + const filtered = Array.from(this.children.values()).filter((child) => child.docType === type); - return filtered.length ? filtered : null + return filtered.length ? filtered : null; } - findChild (query) { - query = query.toLowerCase() + findChild(query) { + query = query.toLowerCase(); - return Array.from(this.children.values()).find( - child => query.endsWith('()') + return Array.from(this.children.values()).find((child) => + query.endsWith('()') ? child.name.toLowerCase() === query.slice(0, -2) && child.docType === types.METHOD : child.name.toLowerCase() === query - ) + ); } - get classes () { - return this.childrenOfType(types.CLASS) + get classes() { + return this.childrenOfType(types.CLASS); } - get typedefs () { - return this.childrenOfType(types.TYPEDEF) + get typedefs() { + return this.childrenOfType(types.TYPEDEF); } - get interfaces () { - return this.childrenOfType(types.INTERFACE) + get interfaces() { + return this.childrenOfType(types.INTERFACE); } - get props () { - return this.childrenOfType(types.PROP) + get props() { + return this.childrenOfType(types.PROP); } - get methods () { - return this.childrenOfType(types.METHOD) + get methods() { + return this.childrenOfType(types.METHOD); } - get events () { - return this.childrenOfType(types.EVENT) + get events() { + return this.childrenOfType(types.EVENT); } - get params () { - return this.childrenOfType(types.PARAM) + get params() { + return this.childrenOfType(types.PARAM); } - static get types () { - return types + static get types() { + return types; } } -module.exports = DocBase +module.exports = DocBase; diff --git a/docs-gen/src/DocClass.js b/docs-gen/src/DocClass.js index 7150e8d..8230d41 100644 --- a/docs-gen/src/DocClass.js +++ b/docs-gen/src/DocClass.js @@ -1,19 +1,19 @@ -const DocElement = require('./DocElement') -const DocProp = require('./DocProp') -const DocMethod = require('./DocMethod') -const DocEvent = require('./DocEvent') +const DocElement = require('./DocElement'); +const DocProp = require('./DocProp'); +const DocMethod = require('./DocMethod'); +const DocEvent = require('./DocEvent'); class DocClass extends DocElement { - constructor (doc, data) { - super(doc, DocElement.types.CLASS, data) - this.extends = data.extends || null - this.implements = data.implements || null - this.construct = data.construct + constructor(doc, data) { + super(doc, DocElement.types.CLASS, data); + this.extends = data.extends || null; + this.implements = data.implements || null; + this.construct = data.construct; - this.adoptAll(data.props, DocProp) - this.adoptAll(data.methods, DocMethod) - this.adoptAll(data.events, DocEvent) + this.adoptAll(data.props, DocProp); + this.adoptAll(data.methods, DocMethod); + this.adoptAll(data.events, DocEvent); } } -module.exports = DocClass +module.exports = DocClass; diff --git a/docs-gen/src/DocElement.js b/docs-gen/src/DocElement.js index d72c8d4..6015fed 100644 --- a/docs-gen/src/DocElement.js +++ b/docs-gen/src/DocElement.js @@ -1,241 +1,242 @@ -const DocBase = require('./DocBase') -const { stripIndents } = require('common-tags') -const { flatten } = require('./Util') +const DocBase = require('./DocBase'); +const { stripIndents } = require('common-tags'); +const { flatten } = require('./Util'); -const DESCRIPTION_LIMIT = 1500 +const DESCRIPTION_LIMIT = 1500; class DocElement extends DocBase { - constructor (doc, docType, data, parent) { - super(data) - this.doc = doc - this.docType = docType - this.parent = parent || null + constructor(doc, docType, data, parent) { + super(data); + this.doc = doc; + this.docType = docType; + this.parent = parent || null; - this.name = data.name - this.description = data.description - this.meta = data.meta + this.name = data.name; + this.description = data.description; + this.meta = data.meta; - this.returns = null - this.examples = null - this.type = null - this.nullable = null + this.returns = null; + this.examples = null; + this.type = null; + this.nullable = null; - this.deprecated = data.deprecated || false - this.access = data.access || 'public' + this.deprecated = data.deprecated || false; + this.access = data.access || 'public'; } - get url () { - if (!this.doc.baseDocsURL) return null + get url() { + if (!this.doc.baseDocsURL) return null; const path = this.parent ? `${this.parent.docType}/${this.parent.name}?scrollTo=${this.static ? 's-' : ''}${this.name}` - : `${this.docType}/${this.name}` + : `${this.docType}/${this.name}`; - return `${this.doc.baseDocsURL}/${path}` + return `${this.doc.baseDocsURL}/${path}`; } - get sourceURL () { - if (!this.doc.repoURL) return null + get sourceURL() { + if (!this.doc.repoURL) return null; - const { path, file, line } = this.meta - return `${this.doc.repoURL}/${path}/${file}#L${line}` + const { path, file, line } = this.meta; + return `${this.doc.repoURL}/${path}/${file}#L${line}`; } - get formattedName () { - return this.name + get formattedName() { + return this.name; } - get formattedReturn () { - return this.returns + get formattedReturn() { + return this.returns; } - get formattedType () { - return `${this.nullable ? '?' : ''}${this.doc.formatType(this.type)}` + get formattedType() { + return `${this.nullable ? '?' : ''}${this.doc.formatType(this.type)}`; } - get formattedExtends () { - return `(extends ${this.formatInherits(this.extends)})` + get formattedExtends() { + return `(extends ${this.formatInherits(this.extends)})`; } - get formattedImplements () { - return `(implements ${this.formatInherits(this.implements)})` + get formattedImplements() { + return `(implements ${this.formatInherits(this.implements)})`; } - get link () { - return `[${this.formattedName}](${this.url})` + get link() { + return `[${this.formattedName}](${this.url})`; } - get static () { - return this.scope === 'static' + get static() { + return this.scope === 'static'; } - get typeElement () { - if (!this.type) return null + get typeElement() { + if (!this.type) return null; return this.type - .filter(text => /^\w+$/.test(text)) - .map(text => this.doc.findChild(text.toLowerCase())) - .find(elem => elem) + .filter((text) => /^\w+$/.test(text)) + .map((text) => this.doc.findChild(text.toLowerCase())) + .find((elem) => elem); } - embed (options = {}) { - const embed = this.doc.baseEmbed() - let name = `__**${this.link}**__` + embed(options = {}) { + const embed = this.doc.baseEmbed(); + let name = `__**${this.link}**__`; - if (this.extends) name += ` ${this.formattedExtends}` - if (this.implements) name += ` ${this.formattedImplements}` - if (this.access === 'private') name += ' **PRIVATE**' - if (this.deprecated) name += ' **DEPRECATED**' + if (this.extends) name += ` ${this.formattedExtends}`; + if (this.implements) name += ` ${this.formattedImplements}`; + if (this.access === 'private') name += ' **PRIVATE**'; + if (this.deprecated) name += ' **DEPRECATED**'; - embed.description = `${name}\n${this.formatDescription()}` - embed.url = this.url - embed.fields = [] - this.formatEmbed(embed, options) + embed.description = `${name}\n${this.formatDescription()}`; + embed.url = this.url; + embed.fields = []; + this.formatEmbed(embed, options); embed.fields.push({ name: '\u200b', - value: `[View source](${this.sourceURL})` - }) + value: `[View source](${this.sourceURL})`, + }); - return embed + return embed; } - formatEmbed (embed, options = {}) { - this.attachProps(embed, options) - this.attachMethods(embed, options) - this.attachEvents(embed) - this.attachParams(embed) - this.attachType(embed) - this.attachReturn(embed) - this.attachExamples(embed) + formatEmbed(embed, options = {}) { + this.attachProps(embed, options); + this.attachMethods(embed, options); + this.attachEvents(embed); + this.attachParams(embed); + this.attachType(embed); + this.attachReturn(embed); + this.attachExamples(embed); } - attachProps (embed, { excludePrivateElements } = {}) { - if (!this.props) return + attachProps(embed, { excludePrivateElements } = {}) { + if (!this.props) return; - let props = this.props - if (excludePrivateElements) props = props.filter(prop => prop.access !== 'private') - if (props.length === 0) return + let props = this.props; + if (excludePrivateElements) props = props.filter((prop) => prop.access !== 'private'); + if (props.length === 0) return; embed.fields.push({ name: 'Properties', - value: props.map(prop => `\`${prop.name}\``).join(' ') - }) + value: props.map((prop) => `\`${prop.name}\``).join(' '), + }); } - attachMethods (embed, { excludePrivateElements } = {}) { - if (!this.methods) return + attachMethods(embed, { excludePrivateElements } = {}) { + if (!this.methods) return; - let methods = this.methods - if (excludePrivateElements) methods = methods.filter(prop => prop.access !== 'private') - if (methods.length === 0) return + let methods = this.methods; + if (excludePrivateElements) methods = methods.filter((prop) => prop.access !== 'private'); + if (methods.length === 0) return; embed.fields.push({ name: 'Methods', - value: methods.map(method => `\`${method.name}\``).join(' ') - }) + value: methods.map((method) => `\`${method.name}\``).join(' '), + }); } - attachEvents (embed) { - if (!this.events) return + attachEvents(embed) { + if (!this.events) return; embed.fields.push({ name: 'Events', - value: this.events.map(event => `\`${event.name}\``).join(' ') - }) + value: this.events.map((event) => `\`${event.name}\``).join(' '), + }); } - attachParams (embed) { - if (!this.params) return - const params = this.params.map(param => { + attachParams(embed) { + if (!this.params) return; + const params = this.params.map((param) => { return stripIndents` ${param.formattedName} ${param.formattedType} ${param.description} - ` - }) + `; + }); - const slice = params.splice(0, 5) - embed.fields.push({ name: 'Params', value: slice.join('\n\n') }) + const slice = params.splice(0, 5); + embed.fields.push({ name: 'Params', value: slice.join('\n\n') }); while (params.length > 0) { - const slice = params.splice(0, 5) - embed.fields.push({ name: '\u200b', value: slice.join('\n\n') }) + const slice = params.splice(0, 5); + embed.fields.push({ name: '\u200b', value: slice.join('\n\n') }); } } - attachReturn (embed) { - if (!this.returns) return + attachReturn(embed) { + if (!this.returns) return; embed.fields.push({ name: 'Returns', - value: this.formattedReturn - }) + value: this.formattedReturn, + }); } - attachType (embed) { - if (!this.type) return + attachType(embed) { + if (!this.type) return; embed.fields.push({ name: 'Type', - value: this.formattedType - }) + value: this.formattedType, + }); } - attachExamples (embed) { - if (!this.examples) return + attachExamples(embed) { + if (!this.examples) return; embed.fields.push({ name: 'Examples', - value: this.examples.map(ex => `\`\`\`js\n${ex}\n\`\`\``).join('\n') - }) + value: this.examples.map((ex) => `\`\`\`js\n${ex}\n\`\`\``).join('\n'), + }); } - toJSON () { + toJSON() { const json = { name: this.name, description: this.description, - internal_type: this.docType - } + internal_type: this.docType, + }; - if (this.props) json.props = this.props.map(prop => prop.name) - if (this.parent) json.parent = this.parent.name - if (this.methods) json.methods = this.methods.map(method => method.name) - if (this.events) json.events = this.events.map(event => event.name) - if (this.params) json.params = this.params.map(param => param.toJSON()) - if (this.type) json.type = this.type.join('') - if (this.examples) json.examples = this.examples + if (this.props) json.props = this.props.map((prop) => prop.name); + if (this.parent) json.parent = this.parent.name; + if (this.methods) json.methods = this.methods.map((method) => method.name); + if (this.events) json.events = this.events.map((event) => event.name); + if (this.params) json.params = this.params.map((param) => param.toJSON()); + if (this.type) json.type = this.type.join(''); + if (this.examples) json.examples = this.examples; - return json + return json; } - formatDescription () { - if (!this.description) return '' + formatDescription() { + if (!this.description) return ''; let result = this.description .replace(/\{@link (.+?)\}/g, (match, name) => { - const element = this.doc.get(name) - return element ? element.link : name + const element = this.doc.get(name); + return element ? element.link : name; }) .replace(/(```[^]+?```)|(^[*-].+$)?\n(?![*-])/gm, (match, codeblock, hasListBefore) => { - if (codeblock) return codeblock - if (hasListBefore) return match - return ' ' + if (codeblock) return codeblock; + if (hasListBefore) return match; + return ' '; }) - .replace(/<(info|warn)>([^]+?)<\/(?:\1)>/g, '\n**$2**\n') + .replace(/<(info|warn)>([^]+?)<\/(?:\1)>/g, '\n**$2**\n'); if (result.length > DESCRIPTION_LIMIT) { - result = result.slice(0, DESCRIPTION_LIMIT) + - `...\nDescription truncated. View full description [here](${this.url}).` + result = + result.slice(0, DESCRIPTION_LIMIT) + + `...\nDescription truncated. View full description [here](${this.url}).`; } - return result + return result; } - formatInherits (inherits) { + formatInherits(inherits) { inherits = Array.isArray(inherits[0]) ? inherits.map(flatten) // docgen 0.9.0 format - : inherits.map(baseClass => [baseClass]) // docgen 0.8.0 format + : inherits.map((baseClass) => [baseClass]); // docgen 0.8.0 format - return inherits.map(baseClass => this.doc.formatType(baseClass)).join(' and ') + return inherits.map((baseClass) => this.doc.formatType(baseClass)).join(' and '); } - static get types () { - return DocBase.types + static get types() { + return DocBase.types; } } -module.exports = DocElement +module.exports = DocElement; diff --git a/docs-gen/src/DocEvent.js b/docs-gen/src/DocEvent.js index 48e2749..2009485 100644 --- a/docs-gen/src/DocEvent.js +++ b/docs-gen/src/DocEvent.js @@ -1,15 +1,15 @@ -const DocElement = require('./DocElement') -const DocParam = require('./DocParam') +const DocElement = require('./DocElement'); +const DocParam = require('./DocParam'); class DocEvent extends DocElement { - constructor (parent, data) { - super(parent.doc, DocElement.types.EVENT, data, parent) - this.adoptAll(data.params, DocParam) + constructor(parent, data) { + super(parent.doc, DocElement.types.EVENT, data, parent); + this.adoptAll(data.params, DocParam); } - get formattedName () { - return `${this.parent.name}#${this.name}` + get formattedName() { + return `${this.parent.name}#${this.name}`; } } -module.exports = DocEvent +module.exports = DocEvent; diff --git a/docs-gen/src/DocInterface.js b/docs-gen/src/DocInterface.js index 0fd7208..37d131e 100644 --- a/docs-gen/src/DocInterface.js +++ b/docs-gen/src/DocInterface.js @@ -1,13 +1,13 @@ -const DocElement = require('./DocElement') -const DocProp = require('./DocProp') -const DocMethod = require('./DocMethod') +const DocElement = require('./DocElement'); +const DocProp = require('./DocProp'); +const DocMethod = require('./DocMethod'); class DocInterface extends DocElement { - constructor (doc, data) { - super(doc, DocElement.types.INTERFACE, data) - this.adoptAll(data.props, DocProp) - this.adoptAll(data.methods, DocMethod) + constructor(doc, data) { + super(doc, DocElement.types.INTERFACE, data); + this.adoptAll(data.props, DocProp); + this.adoptAll(data.methods, DocMethod); } } -module.exports = DocInterface +module.exports = DocInterface; diff --git a/docs-gen/src/DocMethod.js b/docs-gen/src/DocMethod.js index d1bc379..f2215a7 100644 --- a/docs-gen/src/DocMethod.js +++ b/docs-gen/src/DocMethod.js @@ -1,46 +1,44 @@ -const DocElement = require('./DocElement') -const DocParam = require('./DocParam') -const { flatten } = require('./Util') +const DocElement = require('./DocElement'); +const DocParam = require('./DocParam'); +const { flatten } = require('./Util'); class DocMethod extends DocElement { - constructor (parent, data) { - super(parent.doc, DocElement.types.METHOD, data, parent) + constructor(parent, data) { + super(parent.doc, DocElement.types.METHOD, data, parent); - this.examples = data.examples || null - this.returns = data.returns - this.scope = data.scope - this.adoptAll(data.params, DocParam) + this.examples = data.examples || null; + this.returns = data.returns; + this.scope = data.scope; + this.adoptAll(data.params, DocParam); } - get formattedName () { - return [this.parent.name, this.static ? '.' : '#', this.name, '()'].join('') + get formattedName() { + return [this.parent.name, this.static ? '.' : '#', this.name, '()'].join(''); } - get flatReturn () { - return flatten(this.returns.types || this.returns) + get flatReturn() { + return flatten(this.returns.types || this.returns); } - get formattedReturn () { - if (!this.returns) return '**Void**' + get formattedReturn() { + if (!this.returns) return '**Void**'; return [this.doc.formatType(this.flatReturn), this.returns.description] - .filter(text => text) - .join('\n') + .filter((text) => text) + .join('\n'); } - toJSON () { - const json = super.toJSON() - const returnType = this.returns - ? flatten(this.returns.types || this.returns).join('') - : 'void' + toJSON() { + const json = super.toJSON(); + const returnType = this.returns ? flatten(this.returns.types || this.returns).join('') : 'void'; - json.returns = { type: returnType } + json.returns = { type: returnType }; if (this.returns && this.returns.description) { - json.returns.description = this.returns.description + json.returns.description = this.returns.description; } - return json + return json; } } -module.exports = DocMethod +module.exports = DocMethod; diff --git a/docs-gen/src/DocParam.js b/docs-gen/src/DocParam.js index 3bbf595..9f664c6 100644 --- a/docs-gen/src/DocParam.js +++ b/docs-gen/src/DocParam.js @@ -1,20 +1,20 @@ -const DocElement = require('./DocElement') -const { flatten } = require('./Util') +const DocElement = require('./DocElement'); +const { flatten } = require('./Util'); class DocParam extends DocElement { - constructor (parent, data) { - super(parent.doc, DocElement.types.PARAM, data, parent) - this.type = flatten(data.type) - this.optional = data.optional + constructor(parent, data) { + super(parent.doc, DocElement.types.PARAM, data, parent); + this.type = flatten(data.type); + this.optional = data.optional; } - get formattedName () { - return this.optional ? `\`[${this.name}]\`` : `\`${this.name}\`` + get formattedName() { + return this.optional ? `\`[${this.name}]\`` : `\`${this.name}\``; } - get url () { - return null + get url() { + return null; } } -module.exports = DocParam +module.exports = DocParam; diff --git a/docs-gen/src/DocProp.js b/docs-gen/src/DocProp.js index 25d0f54..6410af4 100644 --- a/docs-gen/src/DocProp.js +++ b/docs-gen/src/DocProp.js @@ -1,17 +1,17 @@ -const DocElement = require('./DocElement') -const { flatten } = require('./Util') +const DocElement = require('./DocElement'); +const { flatten } = require('./Util'); class DocProp extends DocElement { - constructor (parent, data) { - super(parent.doc, DocElement.types.PROP, data, parent) - this.scope = data.scope - this.type = flatten(data.type) - this.nullable = data.nullable || false + constructor(parent, data) { + super(parent.doc, DocElement.types.PROP, data, parent); + this.scope = data.scope; + this.type = flatten(data.type); + this.nullable = data.nullable || false; } - get formattedName () { - return [this.parent.name, this.static ? '.' : '#', this.name].join('') + get formattedName() { + return [this.parent.name, this.static ? '.' : '#', this.name].join(''); } } -module.exports = DocProp +module.exports = DocProp; diff --git a/docs-gen/src/DocTypedef.js b/docs-gen/src/DocTypedef.js index fbd4e90..aa08ecd 100644 --- a/docs-gen/src/DocTypedef.js +++ b/docs-gen/src/DocTypedef.js @@ -1,11 +1,11 @@ -const DocElement = require('./DocElement') -const { flatten } = require('./Util') +const DocElement = require('./DocElement'); +const { flatten } = require('./Util'); class DocTypedef extends DocElement { - constructor (doc, data) { - super(doc, DocElement.types.TYPEDEF, data) - this.type = flatten(data.type) + constructor(doc, data) { + super(doc, DocElement.types.TYPEDEF, data); + this.type = flatten(data.type); } } -module.exports = DocTypedef +module.exports = DocTypedef; diff --git a/docs-gen/src/Util.js b/docs-gen/src/Util.js index c975fe9..8fac8f9 100644 --- a/docs-gen/src/Util.js +++ b/docs-gen/src/Util.js @@ -1,16 +1,16 @@ class Util { - constructor () { - throw new Error(`The ${this.constructor.name} class may not be instantiated.`) + constructor() { + throw new Error(`The ${this.constructor.name} class may not be instantiated.`); } - static flatten (array, depth = 5) { + static flatten(array, depth = 5) { return depth !== 1 ? array.reduce( - (arr, value) => arr.concat(Array.isArray(value) ? Util.flatten(value, depth - 1) : value), - [] - ) - : array.reduce((arr, value) => arr.concat(value), []) + (arr, value) => arr.concat(Array.isArray(value) ? Util.flatten(value, depth - 1) : value), + [] + ) + : array.reduce((arr, value) => arr.concat(value), []); } } -module.exports = Util +module.exports = Util; diff --git a/index.ts b/index.ts new file mode 100644 index 0000000..1990004 --- /dev/null +++ b/index.ts @@ -0,0 +1,21 @@ +import { deployCommands } from './src/functions/deployCommands'; +import { Client, Events, GatewayIntentBits } from 'discord.js'; +import { execute } from './src/events/ready'; +import { token } from './config.json'; + +const client = new Client({ + intents: [ + GatewayIntentBits.MessageContent, + GatewayIntentBits.GuildMessages, + GatewayIntentBits.GuildMembers, + GatewayIntentBits.Guilds, + ], +}); + +deployCommands(client); + +client.on(Events.ClientReady, () => { + execute(client); +}); + +client.login(token); diff --git a/package-lock.json b/package-lock.json index 1761a4e..47b40b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,379 +1,571 @@ { - "name": "our-awesome-bot", - "version": "2.0.0", - "lockfileVersion": 2, + "name": "support-bot", + "version": "3.0.0", + "lockfileVersion": 3, "requires": true, "packages": { "": { - "version": "2.0.0", + "name": "support-bot", + "version": "3.0.0", "license": "MIT", "dependencies": { - "chalk": "^4.1.1", - "common-tags": "^1.8.0", - "discord-akairo": "^8.1.0", - "discord.js": "^12.5.3", - "dotenv": "^10.0.0", - "fuse.js": "^6.4.6", - "hypixel-api-reborn": "^8.2.0", - "moment": "^2.29.1", - "moment-duration-format": "^2.3.2", - "mongoose": "^5.12.11", - "ms": "^2.1.3", - "node-fetch": "^2.6.1" + "axios": "^1.6.7", + "common-tags": "^1.8.2", + "discord.js": "^14.14.1", + "fuse.js": "^7.0.0", + "node-fetch": "^3.3.2", + "winston": "^3.11.0" }, "devDependencies": { - "eslint": "^7.27.0", - "eslint-config-google": "^0.14.0", - "eslint-plugin-import": "^2.23.3", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^5.1.0" - }, - "engines": { - "node": "14.x" + "@types/node-cron": "^3.0.11", + "@typescript-eslint/eslint-plugin": "^6.20.0", + "eslint": "^8.56.0", + "prettier": "^3.2.4", + "tsx": "^4.7.0", + "typescript": "^5.3.3" } }, - "node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.4" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz", - "integrity": "sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A==", - "dev": true + "node_modules/@colors/colors": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", + "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", + "engines": { + "node": ">=0.1.90" + } }, - "node_modules/@babel/highlight": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.0.tgz", - "integrity": "sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg==", - "dev": true, + "node_modules/@dabh/diagnostics": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz", + "integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==", "dependencies": { - "@babel/helper-validator-identifier": "^7.14.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "colorspace": "1.1.x", + "enabled": "2.0.x", + "kuler": "^2.0.0" } }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, + "node_modules/@discordjs/builders": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.7.0.tgz", + "integrity": "sha512-GDtbKMkg433cOZur8Dv6c25EHxduNIBsxeHrsRoIM8+AwmEZ8r0tEpckx/sHwTLwQPOF3e2JWloZh9ofCaMfAw==", "dependencies": { - "color-convert": "^1.9.0" + "@discordjs/formatters": "^0.3.3", + "@discordjs/util": "^1.0.2", + "@sapphire/shapeshift": "^3.9.3", + "discord-api-types": "0.37.61", + "fast-deep-equal": "^3.1.3", + "ts-mixer": "^6.0.3", + "tslib": "^2.6.2" }, "engines": { - "node": ">=4" + "node": ">=16.11.0" } }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, + "node_modules/@discordjs/collection": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.3.tgz", + "integrity": "sha512-SVb428OMd3WO1paV3rm6tSjM4wC+Kecaa1EUGX7vc6/fddvw/6lg90z4QtCqm21zvVe92vMMDt9+DkIvjXImQQ==", + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/formatters": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@discordjs/formatters/-/formatters-0.3.3.tgz", + "integrity": "sha512-wTcI1Q5cps1eSGhl6+6AzzZkBBlVrBdc9IUhJbijRgVjCNIIIZPgqnUj3ntFODsHrdbGU8BEG9XmDQmgEEYn3w==", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "discord-api-types": "0.37.61" }, "engines": { - "node": ">=4" + "node": ">=16.11.0" } }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, + "node_modules/@discordjs/rest": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.2.0.tgz", + "integrity": "sha512-nXm9wT8oqrYFRMEqTXQx9DUTeEtXUDMmnUKIhZn6O2EeDY9VCdwj23XCPq7fkqMPKdF7ldAfeVKyxxFdbZl59A==", "dependencies": { - "color-name": "1.1.3" + "@discordjs/collection": "^2.0.0", + "@discordjs/util": "^1.0.2", + "@sapphire/async-queue": "^1.5.0", + "@sapphire/snowflake": "^3.5.1", + "@vladfrangu/async_event_emitter": "^2.2.2", + "discord-api-types": "0.37.61", + "magic-bytes.js": "^1.5.0", + "tslib": "^2.6.2", + "undici": "5.27.2" + }, + "engines": { + "node": ">=16.11.0" } }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "node_modules/@discordjs/rest/node_modules/@discordjs/collection": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-2.0.0.tgz", + "integrity": "sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==", + "engines": { + "node": ">=18" + } }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, + "node_modules/@discordjs/util": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-1.0.2.tgz", + "integrity": "sha512-IRNbimrmfb75GMNEjyznqM1tkI7HrZOf14njX7tCAAUetyZM1Pr8hX/EK2lxBCOgWDRmigbp24fD1hdMfQK5lw==", "engines": { - "node": ">=4" + "node": ">=16.11.0" } }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, + "node_modules/@discordjs/ws": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.0.2.tgz", + "integrity": "sha512-+XI82Rm2hKnFwAySXEep4A7Kfoowt6weO6381jgW+wVdTpMS/56qCvoXyFRY0slcv7c/U8My2PwIB2/wEaAh7Q==", "dependencies": { - "has-flag": "^3.0.0" + "@discordjs/collection": "^2.0.0", + "@discordjs/rest": "^2.1.0", + "@discordjs/util": "^1.0.2", + "@sapphire/async-queue": "^1.5.0", + "@types/ws": "^8.5.9", + "@vladfrangu/async_event_emitter": "^2.2.2", + "discord-api-types": "0.37.61", + "tslib": "^2.6.2", + "ws": "^8.14.2" }, "engines": { - "node": ">=4" + "node": ">=16.11.0" } }, - "node_modules/@discordjs/collection": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-0.1.6.tgz", - "integrity": "sha512-utRNxnd9kSS2qhyivo9lMlt5qgAUasH2gb7BEOn6p0efFh24gjGomHzWKMAPn2hEReOPQZCJaRKoURwRotKucQ==" + "node_modules/@discordjs/ws/node_modules/@discordjs/collection": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-2.0.0.tgz", + "integrity": "sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==", + "engines": { + "node": ">=18" + } }, - "node_modules/@discordjs/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@discordjs/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-ZfFsbgEXW71Rw/6EtBdrP5VxBJy4dthyC0tpQKGKmYFImlmmrykO14Za+BiIVduwjte0jXEBlhSKf0MWbFp9Eg==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", + "integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], "engines": { - "node": ">= 6" + "node": ">=12" } }, - "node_modules/@eslint/eslintrc": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", - "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", + "node_modules/@esbuild/android-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz", + "integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==", + "cpu": [ + "arm" + ], "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^12.1.0", - "ignore": "^4.0.6", - "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "strip-json-comments": "^3.1.1" - }, + "optional": true, + "os": [ + "android" + ], "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=12" } }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "node_modules/@esbuild/android-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz", + "integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==", + "cpu": [ + "arm64" + ], "dev": true, - "dependencies": { - "type-fest": "^0.8.1" - }, + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=12" } }, - "node_modules/@types/bson": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/bson/-/bson-4.0.3.tgz", - "integrity": "sha512-mVRvYnTOZJz3ccpxhr3wgxVmSeiYinW+zlzQz3SXWaJmD1DuL05Jeq7nKw3SnbKmbleW5qrLG5vdyWe/A9sXhw==", - "dependencies": { - "@types/node": "*" + "node_modules/@esbuild/android-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz", + "integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" } }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", - "dev": true + "node_modules/@esbuild/darwin-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz", + "integrity": "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } }, - "node_modules/@types/mongodb": { - "version": "3.6.12", - "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.12.tgz", - "integrity": "sha512-49aEzQD5VdHPxyd5dRyQdqEveAg9LanwrH8RQipnMuulwzKmODXIZRp0umtxi1eBUfEusRkoy8AVOMr+kVuFog==", - "dependencies": { - "@types/bson": "*", - "@types/node": "*" + "node_modules/@esbuild/darwin-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz", + "integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" } }, - "node_modules/@types/node": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-15.0.1.tgz", - "integrity": "sha512-TMkXt0Ck1y0KKsGr9gJtWGjttxlZnnvDtphxUOSd0bfaR6Q1jle+sPvrzNR1urqYTWMinoKvjKfXUGsumaO1PA==" + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz", + "integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } }, - "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==", - "dependencies": { - "event-target-shim": "^5.0.0" - }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz", + "integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], "engines": { - "node": ">=6.5" + "node": ">=12" } }, - "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "node_modules/@esbuild/linux-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz", + "integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==", + "cpu": [ + "arm" + ], "dev": true, - "bin": { - "acorn": "bin/acorn" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=0.4.0" + "node": ">=12" } }, - "node_modules/acorn-jsx": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", - "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", + "node_modules/@esbuild/linux-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz", + "integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==", + "cpu": [ + "arm64" + ], "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" } }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "node_modules/@esbuild/linux-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz", + "integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" } }, - "node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "node_modules/@esbuild/linux-loong64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz", + "integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==", + "cpu": [ + "loong64" + ], "dev": true, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=6" + "node": ">=12" } }, - "node_modules/ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "node_modules/@esbuild/linux-mips64el": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz", + "integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz", + "integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==", + "cpu": [ + "ppc64" + ], "dev": true, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=8" + "node": ">=12" } }, - "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==", - "dependencies": { - "color-convert": "^2.0.1" - }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz", + "integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">=8" + "node": ">=12" } }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/@esbuild/linux-s390x": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz", + "integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==", + "cpu": [ + "s390x" + ], "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" } }, - "node_modules/array-includes": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.3.tgz", - "integrity": "sha512-gcem1KlBU7c9rB+Rq8/3PPKsK2kjqeEBa3bD5kkQo4nYlOHQCJqIJFqBXDEfwaRuYTT4E+FxA9xez7Gf/e3Q7A==", + "node_modules/@esbuild/linux-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz", + "integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2", - "get-intrinsic": "^1.1.1", - "is-string": "^1.0.5" - }, + "optional": true, + "os": [ + "linux" + ], "engines": { - "node": ">= 0.4" + "node": ">=12" } }, - "node_modules/array.prototype.flat": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz", - "integrity": "sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg==", + "node_modules/@esbuild/netbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz", + "integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==", + "cpu": [ + "x64" + ], "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.1" - }, + "optional": true, + "os": [ + "netbsd" + ], "engines": { - "node": ">= 0.4" + "node": ">=12" } }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "node_modules/@esbuild/openbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz", + "integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==", + "cpu": [ + "x64" + ], "dev": true, + "optional": true, + "os": [ + "openbsd" + ], "engines": { - "node": ">=8" + "node": ">=12" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + "node_modules/@esbuild/sunos-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz", + "integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } }, - "node_modules/balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "node_modules/@esbuild/win32-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz", + "integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } }, - "node_modules/bl": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz", - "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==", - "dependencies": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" + "node_modules/@esbuild/win32-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz", + "integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" } }, - "node_modules/bl/node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "node_modules/@esbuild/win32-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz", + "integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/bl/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/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } }, - "node_modules/bl/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, "dependencies": { - "safe-buffer": "~5.1.0" + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/bluebird": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" - }, - "node_modules/brace-expansion": { + "node_modules/@eslint/eslintrc/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==", @@ -383,4230 +575,2259 @@ "concat-map": "0.0.1" } }, - "node_modules/bson": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz", - "integrity": "sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==", - "engines": { - "node": ">=0.6.19" - } - }, - "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==", + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "node_modules/@eslint/js": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", "dev": true, "engines": { - "node": ">=6" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, + "node_modules/@fastify/busboy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", + "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", "engines": { - "node": ">=10" + "node": ">=14" } }, - "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==", + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" }, "engines": { - "node": ">=7.0.0" + "node": ">=10.10.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==" + "node_modules/@humanwhocodes/config-array/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==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } }, - "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==", + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, "dependencies": { - "delayed-stream": "~1.0.0" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">= 0.8" + "node": "*" } }, - "node_modules/common-tags": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", - "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==", + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, "engines": { - "node": ">=4.0.0" + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", "dev": true }, - "node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" }, "engines": { "node": ">= 8" } }, - "node_modules/debug": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", - "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, - "dependencies": { - "ms": "2.1.2" - }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "node": ">= 8" } }, - "node_modules/debug/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==", - "dev": true - }, - "node_modules/deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "node_modules/define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "dependencies": { - "object-keys": "^1.0.12" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" }, "engines": { - "node": ">= 0.4" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/denque": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz", - "integrity": "sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ==", - "engines": { - "node": ">=0.10" + "node": ">= 8" } }, - "node_modules/discord-akairo": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/discord-akairo/-/discord-akairo-8.1.0.tgz", - "integrity": "sha512-INWYmHo6NgyYx1ZKGSCmgznVfvkXpWGj4fGCGjO8IPkZ06Bidb9YKr4rXy2lwG0kprCjvqY0qbbhcw6N050abQ==" - }, - "node_modules/discord.js": { - "version": "12.5.3", - "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-12.5.3.tgz", - "integrity": "sha512-D3nkOa/pCkNyn6jLZnAiJApw2N9XrIsXUAdThf01i7yrEuqUmDGc7/CexVWwEcgbQR97XQ+mcnqJpmJ/92B4Aw==", - "dependencies": { - "@discordjs/collection": "^0.1.6", - "@discordjs/form-data": "^3.0.1", - "abort-controller": "^3.0.0", - "node-fetch": "^2.6.1", - "prism-media": "^1.2.9", - "setimmediate": "^1.0.5", - "tweetnacl": "^1.0.3", - "ws": "^7.4.4" - }, + "node_modules/@sapphire/async-queue": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.2.tgz", + "integrity": "sha512-7X7FFAA4DngXUl95+hYbUF19bp1LGiffjJtu7ygrZrbdCSsdDDBaSjB7Akw0ZbOu6k0xpXyljnJ6/RZUvLfRdg==", "engines": { - "node": ">=12.0.0" + "node": ">=v14.0.0", + "npm": ">=7.0.0" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, + "node_modules/@sapphire/shapeshift": { + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.9.6.tgz", + "integrity": "sha512-4+Na/fxu2SEepZRb9z0dbsVh59QtwPuBg/UVaDib3av7ZY14b14+z09z6QVn0P6Dv6eOU2NDTsjIi0mbtgP56g==", "dependencies": { - "esutils": "^2.0.2" + "fast-deep-equal": "^3.1.3", + "lodash": "^4.17.21" }, "engines": { - "node": ">=6.0.0" + "node": ">=v18" } }, - "node_modules/dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "node_modules/@sapphire/snowflake": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.5.1.tgz", + "integrity": "sha512-BxcYGzgEsdlG0dKAyOm0ehLGm2CafIrfQTZGWgkfKYbj+pNNsorZ7EotuZukc2MT70E0UbppVbtpBrqpzVzjNA==", "engines": { - "node": ">=10" + "node": ">=v14.0.0", + "npm": ">=7.0.0" } }, - "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==", + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, + "node_modules/@types/node": { + "version": "20.11.19", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz", + "integrity": "sha512-7xMnVEcZFu0DikYjWOlRq7NTPETrm7teqUT2WkQjrTIkEgUyyGdWsj/Zg8bEJt5TNklzbPD1X3fqfsHw3SpapQ==", "dependencies": { - "ansi-colors": "^4.1.1" - }, - "engines": { - "node": ">=8.6" + "undici-types": "~5.26.4" } }, - "node_modules/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" + "node_modules/@types/node-cron": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/node-cron/-/node-cron-3.0.11.tgz", + "integrity": "sha512-0ikrnug3/IyneSHqCBeslAhlK2aBfYek1fGo4bP4QnZPmiqSGRK+Oy7ZMisLWkesffJvQ1cqAcBnJC+8+nxIAg==", + "dev": true }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, + "node_modules/@types/semver": { + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.7.tgz", + "integrity": "sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg==", + "dev": true + }, + "node_modules/@types/triple-beam": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.5.tgz", + "integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==" + }, + "node_modules/@types/ws": { + "version": "8.5.9", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.9.tgz", + "integrity": "sha512-jbdrY0a8lxfdTp/+r7Z4CkycbOFN8WX+IOchLJr3juT/xzbJ8URyTVSJ/hvNdadTgM1mnedb47n+Y31GsFnQlg==", "dependencies": { - "is-arrayish": "^0.2.1" + "@types/node": "*" } }, - "node_modules/es-abstract": { - "version": "1.18.0-next.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.2.tgz", - "integrity": "sha512-Ih4ZMFHEtZupnUh6497zEL4y2+w8+1ljnCyaTa+adcoafI1GOvMwFlDjBLfWR7y9VLfrjRJe9ocuHY1PSR9jjw==", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz", + "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==", "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.2", - "is-negative-zero": "^2.0.1", - "is-regex": "^1.1.1", - "object-inspect": "^1.9.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.3", - "string.prototype.trimstart": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/type-utils": "6.21.0", + "@typescript-eslint/utils": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz", + "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==", "dev": true, + "peer": true, "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4" }, "engines": { - "node": ">= 0.4" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", + "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0" + }, "engines": { - "node": ">=0.8.0" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/eslint": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", - "integrity": "sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA==", + "node_modules/@typescript-eslint/type-utils": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz", + "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==", "dev": true, "dependencies": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.1", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, - "bin": { - "eslint": "bin/eslint.js" + "@typescript-eslint/typescript-estree": "6.21.0", + "@typescript-eslint/utils": "6.21.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/eslint-config-google": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/eslint-config-google/-/eslint-config-google-0.14.0.tgz", - "integrity": "sha512-WsbX4WbjuMvTdeVL6+J3rK1RGhCTqjsFjX7UMSMgZiyxxaNLkoJENbrGExzERFeoTpGw3F3FypTiWAP9ZXzkEw==", + "node_modules/@typescript-eslint/types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", + "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz", - "integrity": "sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", + "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", "dev": true, "dependencies": { - "debug": "^2.6.9", - "resolve": "^1.13.1" + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/eslint-import-resolver-node/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/@typescript-eslint/utils": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", + "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", "dev": true, "dependencies": { - "ms": "2.0.0" + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/eslint-import-resolver-node/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/eslint-module-utils": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.1.tgz", - "integrity": "sha512-ZXI9B8cxAJIH4nfkhTwcRTEAnrVfobYqwjWy/QMCZ8rHkZHFjf9yO4BzpiF9kCSfNlMG54eKigISHpX0+AaT4A==", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", + "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", "dev": true, "dependencies": { - "debug": "^3.2.7", - "pkg-dir": "^2.0.0" + "@typescript-eslint/types": "6.21.0", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": ">=4" + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/@vladfrangu/async_event_emitter": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/@vladfrangu/async_event_emitter/-/async_event_emitter-2.2.4.tgz", + "integrity": "sha512-ButUPz9E9cXMLgvAW8aLAKKJJsPu1dY1/l/E8xzLFuysowXygs6GBcyunK9rnGC4zTsnIc2mQo71rGw9U+Ykug==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" } }, - "node_modules/eslint-plugin-es": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz", - "integrity": "sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==", + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, - "dependencies": { - "eslint-utils": "^2.0.0", - "regexpp": "^3.0.0" + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": ">=8.10.0" + "node": ">=0.4.0" } }, - "node_modules/eslint-plugin-import": { - "version": "2.23.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.23.3.tgz", - "integrity": "sha512-wDxdYbSB55F7T5CC7ucDjY641VvKmlRwT0Vxh7PkY1mI4rclVRFWYfsrjDgZvwYYDZ5ee0ZtfFKXowWjqvEoRQ==", + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, - "dependencies": { - "array-includes": "^3.1.3", - "array.prototype.flat": "^1.2.4", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.4", - "eslint-module-utils": "^2.6.1", - "find-up": "^2.0.0", - "has": "^1.0.3", - "is-core-module": "^2.4.0", - "minimatch": "^3.0.4", - "object.values": "^1.1.3", - "pkg-up": "^2.0.0", - "read-pkg-up": "^3.0.0", - "resolve": "^1.20.0", - "tsconfig-paths": "^3.9.0" - }, - "engines": { - "node": ">=4" - }, "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0" + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/eslint-plugin-import/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/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, "dependencies": { - "ms": "2.0.0" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/eslint-plugin-import/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/eslint-plugin-node": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz", - "integrity": "sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==", + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "eslint-plugin-es": "^3.0.0", - "eslint-utils": "^2.0.0", - "ignore": "^5.1.1", - "minimatch": "^3.0.4", - "resolve": "^1.10.1", - "semver": "^6.1.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=8.10.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/eslint-plugin-node/node_modules/ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true, "engines": { - "node": ">= 4" + "node": ">=8" } }, - "node_modules/eslint-plugin-node/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } + "node_modules/async": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==" }, - "node_modules/eslint-plugin-promise": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-5.1.0.tgz", - "integrity": "sha512-NGmI6BH5L12pl7ScQHbg7tvtk4wPxxj8yPHH47NvSmMtFneC077PSeY3huFj06ZWZvtbfxSPt3RuOQD5XcR4ng==", - "dev": true, - "engines": { - "node": "^10.12.0 || >=12.0.0" + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "dependencies": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" } }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "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==", "dev": true, "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" + "balanced-match": "^1.0.0" } }, - "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, "dependencies": { - "eslint-visitor-keys": "^1.1.0" + "fill-range": "^7.0.1" }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/eslint-visitor-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz", - "integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", - "dev": true, + "node_modules/color": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", + "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", "dependencies": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "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==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" + "color-convert": "^1.9.3", + "color-string": "^1.6.0" } }, - "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "estraverse": "^5.1.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=0.10" + "node": ">=7.0.0" } }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true, - "engines": { - "node": ">=4.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==" }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" } }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true, - "engines": { - "node": ">=4.0" + "node_modules/color/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" } }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" + "node_modules/color/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/colorspace": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz", + "integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==", + "dependencies": { + "color": "^3.1.3", + "text-hex": "1.0.x" } }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, + "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.10.0" + "node": ">= 0.8" } }, - "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==", + "node_modules/common-tags": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", + "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", "engines": { - "node": ">=6" + "node": ">=4.0.0" } }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, "dependencies": { - "flat-cache": "^3.0.4" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">= 8" } }, - "node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "dependencies": { - "locate-path": "^2.0.0" - }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", "engines": { - "node": ">=4" + "node": ">= 12" } }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" + "ms": "2.1.2" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/flatted": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", - "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", - "dev": true - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "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/debug/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==", "dev": true }, - "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": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, - "node_modules/fuse.js": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-6.4.6.tgz", - "integrity": "sha512-/gYxR/0VpXmWSfZOIPS3rWwU8SHgsRTwWuXhyb2O6s7aRuVtHtxCkR33bNYu3wyLyNx/Wpv0vU7FZy8Vj53VNw==", + "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": ">=10" - } - }, - "node_modules/get-intrinsic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", - "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" + "node": ">=0.4.0" } }, - "node_modules/glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "path-type": "^4.0.0" }, "engines": { - "node": "*" + "node": ">=8" } }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, + "node_modules/discord-api-types": { + "version": "0.37.61", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.61.tgz", + "integrity": "sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw==" + }, + "node_modules/discord.js": { + "version": "14.14.1", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.14.1.tgz", + "integrity": "sha512-/hUVzkIerxKHyRKopJy5xejp4MYKDPTszAnpYxzVVv4qJYf+Tkt+jnT2N29PIPschicaEEpXwF2ARrTYHYwQ5w==", "dependencies": { - "is-glob": "^4.0.1" + "@discordjs/builders": "^1.7.0", + "@discordjs/collection": "1.5.3", + "@discordjs/formatters": "^0.3.3", + "@discordjs/rest": "^2.1.0", + "@discordjs/util": "^1.0.2", + "@discordjs/ws": "^1.0.2", + "@sapphire/snowflake": "3.5.1", + "@types/ws": "8.5.9", + "discord-api-types": "0.37.61", + "fast-deep-equal": "3.1.3", + "lodash.snakecase": "4.1.1", + "tslib": "2.6.2", + "undici": "5.27.2", + "ws": "8.14.2" }, "engines": { - "node": ">= 6" + "node": ">=16.11.0" } }, - "node_modules/globals": { - "version": "13.8.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.8.0.tgz", - "integrity": "sha512-rHtdA6+PDBIjeEvA91rpqzEvk/k3/i7EeNQiryiWuJH0Hw9cpyJMAt2jtbAwUaRdhD+573X4vWw6IcjKPasi9Q==", + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, "dependencies": { - "type-fest": "^0.20.2" + "esutils": "^2.0.2" }, "engines": { - "node": ">=8" - } - }, - "node_modules/globals/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" + "node": ">=6.0.0" } }, - "node_modules/graceful-fs": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", - "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", - "dev": true + "node_modules/enabled": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", + "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==" }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "node_modules/esbuild": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz", + "integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==", "dev": true, - "dependencies": { - "function-bind": "^1.1.1" + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" }, "engines": { - "node": ">= 0.4.0" + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.19.12", + "@esbuild/android-arm": "0.19.12", + "@esbuild/android-arm64": "0.19.12", + "@esbuild/android-x64": "0.19.12", + "@esbuild/darwin-arm64": "0.19.12", + "@esbuild/darwin-x64": "0.19.12", + "@esbuild/freebsd-arm64": "0.19.12", + "@esbuild/freebsd-x64": "0.19.12", + "@esbuild/linux-arm": "0.19.12", + "@esbuild/linux-arm64": "0.19.12", + "@esbuild/linux-ia32": "0.19.12", + "@esbuild/linux-loong64": "0.19.12", + "@esbuild/linux-mips64el": "0.19.12", + "@esbuild/linux-ppc64": "0.19.12", + "@esbuild/linux-riscv64": "0.19.12", + "@esbuild/linux-s390x": "0.19.12", + "@esbuild/linux-x64": "0.19.12", + "@esbuild/netbsd-x64": "0.19.12", + "@esbuild/openbsd-x64": "0.19.12", + "@esbuild/sunos-x64": "0.19.12", + "@esbuild/win32-arm64": "0.19.12", + "@esbuild/win32-ia32": "0.19.12", + "@esbuild/win32-x64": "0.19.12" } }, - "node_modules/has-flag": { + "node_modules/escape-string-regexp": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-symbols": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, "engines": { - "node": ">= 0.4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "node_modules/hypixel-api-reborn": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/hypixel-api-reborn/-/hypixel-api-reborn-8.2.0.tgz", - "integrity": "sha512-Km0WUr/5RmD8z70x0hV2H8GLrfAnuYdnnxV8kUSr4vQ+mPkgKRop19kXYjTopLyAPYDIHjdKbEYkju3G0OR9Bw==", - "dependencies": { - "node-fetch": "^2.6.1", - "object-path": "^0.11.5", - "prismarine-nbt": "^1.5.0", - "rss-parser": "^3.12.0" + "node_modules/eslint": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" }, "engines": { - "node": ">=14.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": 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/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "node_modules/is-callable": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.3.tgz", - "integrity": "sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-core-module": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.4.0.tgz", - "integrity": "sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", - "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", - "integrity": "sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-regex": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.2.tgz", - "integrity": "sha512-axvdhb5pdhEVThqJzYXwMlVuZwC+FF2DpcOhTS+y/8jVq4trxyPgfcwIxIKiyeuLlSQYKkmUaPQJ8ZE4yNKXDg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-symbols": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-string": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", - "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-symbol": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", - "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/kareem": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz", - "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==" - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, - "node_modules/lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", - "dev": true - }, - "node_modules/lodash.get": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lodash.reduce": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz", - "integrity": "sha1-8atrg5KZrUj3hKu/R2WW8DuRTTs=" - }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", - "dev": 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==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "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/mime-db": { - "version": "1.47.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz", - "integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.30", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.30.tgz", - "integrity": "sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg==", - "dependencies": { - "mime-db": "1.47.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, - "node_modules/moment": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", - "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==", - "engines": { - "node": "*" - } - }, - "node_modules/moment-duration-format": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/moment-duration-format/-/moment-duration-format-2.3.2.tgz", - "integrity": "sha512-cBMXjSW+fjOb4tyaVHuaVE/A5TqkukDWiOfxxAjY+PEqmmBQlLwn+8OzwPiG3brouXKY5Un4pBjAeB6UToXHaQ==" - }, - "node_modules/mongodb": { - "version": "3.6.8", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.8.tgz", - "integrity": "sha512-sDjJvI73WjON1vapcbyBD3Ao9/VN3TKYY8/QX9EPbs22KaCSrQ5rXo5ZZd44tWJ3wl3FlnrFZ+KyUtNH6+1ZPQ==", - "dependencies": { - "bl": "^2.2.1", - "bson": "^1.1.4", - "denque": "^1.4.1", - "optional-require": "^1.0.3", - "safe-buffer": "^5.1.2" - }, - "engines": { - "node": ">=4" - }, - "optionalDependencies": { - "saslprep": "^1.0.0" - }, - "peerDependenciesMeta": { - "aws4": { - "optional": true - }, - "bson-ext": { - "optional": true - }, - "kerberos": { - "optional": true - }, - "mongodb-client-encryption": { - "optional": true - }, - "mongodb-extjson": { - "optional": true - }, - "snappy": { - "optional": true - } - } - }, - "node_modules/mongoose": { - "version": "5.12.11", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.12.11.tgz", - "integrity": "sha512-16TVqYhHQdZNR8RTis/8iiTPy+nJPq0UhKyBFTucLLU3PWcDLY2gAGv6aOk0LygTNhEfgNnENgUUHhjVqTuh8w==", - "dependencies": { - "@types/mongodb": "^3.5.27", - "bson": "^1.1.4", - "kareem": "2.3.2", - "mongodb": "3.6.8", - "mongoose-legacy-pluralize": "1.0.2", - "mpath": "0.8.3", - "mquery": "3.2.5", - "ms": "2.1.2", - "regexp-clone": "1.0.0", - "safe-buffer": "5.2.1", - "sift": "13.5.2", - "sliced": "1.0.1" - }, - "engines": { - "node": ">=4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mongoose" - } - }, - "node_modules/mongoose-legacy-pluralize": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz", - "integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ==" - }, - "node_modules/mongoose/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/mpath": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.3.tgz", - "integrity": "sha512-eb9rRvhDltXVNL6Fxd2zM9D4vKBxjVVQNLNijlj7uoXUy19zNDsIif5zR+pWmPCWNKwAtqyo4JveQm4nfD5+eA==", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/mquery": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.5.tgz", - "integrity": "sha512-VjOKHHgU84wij7IUoZzFRU07IAxd5kWJaDmyUzQlbjHjyoeK5TNeeo8ZsFDtTYnSgpW6n/nMNIHvE3u8Lbrf4A==", - "dependencies": { - "bluebird": "3.5.1", - "debug": "3.1.0", - "regexp-clone": "^1.0.0", - "safe-buffer": "5.1.2", - "sliced": "1.0.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/mquery/node_modules/debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/mquery/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - }, - "node_modules/mquery/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/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/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true - }, - "node_modules/node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", - "engines": { - "node": "4.x || >=6.0.0" - } - }, - "node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/normalize-package-data/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/object-inspect": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.9.0.tgz", - "integrity": "sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw==", - "dev": true - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object-path": { - "version": "0.11.5", - "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.5.tgz", - "integrity": "sha512-jgSbThcoR/s+XumvGMTMf81QVBmah+/Q7K7YduKeKVWL7N111unR2d6pZZarSk6kY/caeNxUDyxOvMWyzoU2eg==", - "engines": { - "node": ">= 10.12.0" - } - }, - "node_modules/object.assign": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", - "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "has-symbols": "^1.0.1", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.values": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.3.tgz", - "integrity": "sha512-nkF6PfDB9alkOUxpf1HNm/QlkeW3SReqL5WXeBLpEJJnlPSvRaDQpW3gQTksTN3fgJX4hL42RzKyOin6ff3tyw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2", - "has": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optional-require": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/optional-require/-/optional-require-1.0.3.tgz", - "integrity": "sha512-RV2Zp2MY2aeYK5G+B/Sps8lW5NHAzE5QClbFP15j+PWmP+T9PxlJXBOOLoSAdgwFvS4t0aMR4vpedMkbHfh0nA==", - "engines": { - "node": ">=4" - } - }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "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": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "node_modules/path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "dependencies": { - "find-up": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pkg-up": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz", - "integrity": "sha1-yBmscoBZpGHKscOImivjxJoATX8=", - "dev": true, - "dependencies": { - "find-up": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prism-media": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/prism-media/-/prism-media-1.2.9.tgz", - "integrity": "sha512-UHCYuqHipbTR1ZsXr5eg4JUmHER8Ss4YEb9Azn+9zzJ7/jlTtD1h0lc4g6tNx3eMlB8Mp6bfll0LPMAV4R6r3Q==" - }, - "node_modules/prismarine-nbt": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-1.5.0.tgz", - "integrity": "sha512-8vs0MV94kl6I2YUFE5IG4vOBYEw8nG0J0WaoLV6zP1smle5o6haeHqobn07vmcHJZ8iUz2f8oq6T3Y71DHvYpA==", - "dependencies": { - "protodef": "^1.9.0" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/protodef": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/protodef/-/protodef-1.13.0.tgz", - "integrity": "sha512-N/4Kaha1dPx0qXq99NUiPkreoZ4+ffJAuWLLtGjrZqDVJkwCsRlC+3SWx6gGDEdkdA2pX97ogp3aKO91rzU68Q==", - "dependencies": { - "lodash.get": "^4.4.2", - "lodash.reduce": "^4.6.0", - "protodef-validator": "^1.2.2", - "readable-stream": "^3.0.3" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/protodef-validator": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/protodef-validator/-/protodef-validator-1.2.3.tgz", - "integrity": "sha512-dMcSMYRh8s0z0iQN0PLVlXwJOgN8cgBuM1uWzhMjkLdpKCOASwp+h7wHnTigBTRVhGLywykcb3EKiGSsXX4vvA==", - "dependencies": { - "ajv": "^6.5.4" - }, - "bin": { - "protodef-validator": "cli.js" - } - }, - "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", - "dev": true, - "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", - "dev": true, - "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/regexp-clone": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz", - "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw==" - }, - "node_modules/regexpp": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", - "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", - "dev": true, - "dependencies": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/rss-parser": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/rss-parser/-/rss-parser-3.12.0.tgz", - "integrity": "sha512-aqD3E8iavcCdkhVxNDIdg1nkBI17jgqF+9OqPS1orwNaOgySdpvq6B+DoONLhzjzwV8mWg37sb60e4bmLK117A==", - "dependencies": { - "entities": "^2.0.3", - "xml2js": "^0.4.19" - } - }, - "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==" - }, - "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.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/sift": { - "version": "13.5.2", - "resolved": "https://registry.npmjs.org/sift/-/sift-13.5.2.tgz", - "integrity": "sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA==" - }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/sliced": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz", - "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E=" - }, - "node_modules/sparse-bitfield": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", - "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", - "optional": true, - "dependencies": { - "memory-pager": "^1.0.2" - } - }, - "node_modules/spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.9.tgz", - "integrity": "sha512-Ki212dKK4ogX+xDo4CtOZBVIwhsKBEfsEEcwmJfLQzirgc2jIWdzg40Unxz/HzEUqM1WFzVlQSMF9kZZ2HboLQ==", - "dev": true - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": 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.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz", - "integrity": "sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz", - "integrity": "sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/table": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/table/-/table-6.6.0.tgz", - "integrity": "sha512-iZMtp5tUvcnAdtHpZTWLPF0M7AgiQsURR2DwmxnJwSy8I3+cY+ozzVvYha3BOLG2TB+L0CqjIz+91htuj6yCXg==", - "dev": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/table/node_modules/ajv": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.2.0.tgz", - "integrity": "sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "node_modules/table/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "node_modules/tsconfig-paths": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", - "integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==", - "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.0", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tweetnacl": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", - "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "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==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "node_modules/ws": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.5.tgz", - "integrity": "sha512-xzyu3hFvomRfXKH8vOFMU3OguG6oOvhXMo3xsGy3xWExqaM2dxBbVxuD99O7m3ZUFMvvscsZDqxfgMaRr/Nr1g==", - "engines": { - "node": ">=8.3.0" - } - }, - "node_modules/xml2js": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", - "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "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" - } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz", - "integrity": "sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A==", - "dev": true - }, - "@babel/highlight": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.0.tgz", - "integrity": "sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.14.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "@discordjs/collection": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-0.1.6.tgz", - "integrity": "sha512-utRNxnd9kSS2qhyivo9lMlt5qgAUasH2gb7BEOn6p0efFh24gjGomHzWKMAPn2hEReOPQZCJaRKoURwRotKucQ==" - }, - "@discordjs/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@discordjs/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-ZfFsbgEXW71Rw/6EtBdrP5VxBJy4dthyC0tpQKGKmYFImlmmrykO14Za+BiIVduwjte0jXEBlhSKf0MWbFp9Eg==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "@eslint/eslintrc": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", - "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^12.1.0", - "ignore": "^4.0.6", - "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", - "dev": true, - "requires": { - "type-fest": "^0.8.1" - } - } - } - }, - "@types/bson": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/bson/-/bson-4.0.3.tgz", - "integrity": "sha512-mVRvYnTOZJz3ccpxhr3wgxVmSeiYinW+zlzQz3SXWaJmD1DuL05Jeq7nKw3SnbKmbleW5qrLG5vdyWe/A9sXhw==", - "requires": { - "@types/node": "*" - } - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", - "dev": true - }, - "@types/mongodb": { - "version": "3.6.12", - "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.12.tgz", - "integrity": "sha512-49aEzQD5VdHPxyd5dRyQdqEveAg9LanwrH8RQipnMuulwzKmODXIZRp0umtxi1eBUfEusRkoy8AVOMr+kVuFog==", - "requires": { - "@types/bson": "*", - "@types/node": "*" - } - }, - "@types/node": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-15.0.1.tgz", - "integrity": "sha512-TMkXt0Ck1y0KKsGr9gJtWGjttxlZnnvDtphxUOSd0bfaR6Q1jle+sPvrzNR1urqYTWMinoKvjKfXUGsumaO1PA==" - }, - "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==", - "requires": { - "event-target-shim": "^5.0.0" - } - }, - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", - "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", - "dev": true, - "requires": {} - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true - }, - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "array-includes": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.3.tgz", - "integrity": "sha512-gcem1KlBU7c9rB+Rq8/3PPKsK2kjqeEBa3bD5kkQo4nYlOHQCJqIJFqBXDEfwaRuYTT4E+FxA9xez7Gf/e3Q7A==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2", - "get-intrinsic": "^1.1.1", - "is-string": "^1.0.5" - } - }, - "array.prototype.flat": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz", - "integrity": "sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg==", - "dev": true, - "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.1" - } - }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "bl": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz", - "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==", - "requires": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "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==" - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "bluebird": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "bson": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz", - "integrity": "sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==" - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "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==", - "requires": { - "color-name": "~1.1.4" - } - }, - "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==" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "common-tags": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", - "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "debug": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", - "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", - "dev": true, - "requires": { - "ms": "2.1.2" - }, - "dependencies": { - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, - "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "requires": { - "object-keys": "^1.0.12" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" - }, - "denque": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz", - "integrity": "sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ==" - }, - "discord-akairo": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/discord-akairo/-/discord-akairo-8.1.0.tgz", - "integrity": "sha512-INWYmHo6NgyYx1ZKGSCmgznVfvkXpWGj4fGCGjO8IPkZ06Bidb9YKr4rXy2lwG0kprCjvqY0qbbhcw6N050abQ==" - }, - "discord.js": { - "version": "12.5.3", - "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-12.5.3.tgz", - "integrity": "sha512-D3nkOa/pCkNyn6jLZnAiJApw2N9XrIsXUAdThf01i7yrEuqUmDGc7/CexVWwEcgbQR97XQ+mcnqJpmJ/92B4Aw==", - "requires": { - "@discordjs/collection": "^0.1.6", - "@discordjs/form-data": "^3.0.1", - "abort-controller": "^3.0.0", - "node-fetch": "^2.6.1", - "prism-media": "^1.2.9", - "setimmediate": "^1.0.5", - "tweetnacl": "^1.0.3", - "ws": "^7.4.4" - } - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "requires": { - "ansi-colors": "^4.1.1" - } - }, - "entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.18.0-next.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.2.tgz", - "integrity": "sha512-Ih4ZMFHEtZupnUh6497zEL4y2+w8+1ljnCyaTa+adcoafI1GOvMwFlDjBLfWR7y9VLfrjRJe9ocuHY1PSR9jjw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.2.2", - "is-negative-zero": "^2.0.1", - "is-regex": "^1.1.1", - "object-inspect": "^1.9.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.3", - "string.prototype.trimstart": "^1.0.3" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "eslint": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", - "integrity": "sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA==", - "dev": true, - "requires": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.1", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, - "dependencies": { - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - } - } - }, - "eslint-config-google": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/eslint-config-google/-/eslint-config-google-0.14.0.tgz", - "integrity": "sha512-WsbX4WbjuMvTdeVL6+J3rK1RGhCTqjsFjX7UMSMgZiyxxaNLkoJENbrGExzERFeoTpGw3F3FypTiWAP9ZXzkEw==", - "dev": true - }, - "eslint-import-resolver-node": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz", - "integrity": "sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==", - "dev": true, - "requires": { - "debug": "^2.6.9", - "resolve": "^1.13.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "eslint-module-utils": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.1.tgz", - "integrity": "sha512-ZXI9B8cxAJIH4nfkhTwcRTEAnrVfobYqwjWy/QMCZ8rHkZHFjf9yO4BzpiF9kCSfNlMG54eKigISHpX0+AaT4A==", - "dev": true, - "requires": { - "debug": "^3.2.7", - "pkg-dir": "^2.0.0" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-plugin-es": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz", - "integrity": "sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==", - "dev": true, - "requires": { - "eslint-utils": "^2.0.0", - "regexpp": "^3.0.0" - } - }, - "eslint-plugin-import": { - "version": "2.23.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.23.3.tgz", - "integrity": "sha512-wDxdYbSB55F7T5CC7ucDjY641VvKmlRwT0Vxh7PkY1mI4rclVRFWYfsrjDgZvwYYDZ5ee0ZtfFKXowWjqvEoRQ==", - "dev": true, - "requires": { - "array-includes": "^3.1.3", - "array.prototype.flat": "^1.2.4", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.4", - "eslint-module-utils": "^2.6.1", - "find-up": "^2.0.0", - "has": "^1.0.3", - "is-core-module": "^2.4.0", - "minimatch": "^3.0.4", - "object.values": "^1.1.3", - "pkg-up": "^2.0.0", - "read-pkg-up": "^3.0.0", - "resolve": "^1.20.0", - "tsconfig-paths": "^3.9.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "eslint-plugin-node": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz", - "integrity": "sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==", + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, - "requires": { - "eslint-plugin-es": "^3.0.0", - "eslint-utils": "^2.0.0", - "ignore": "^5.1.1", - "minimatch": "^3.0.4", - "resolve": "^1.10.1", - "semver": "^6.1.0" + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, - "dependencies": { - "ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "funding": { + "url": "https://opencollective.com/eslint" } }, - "eslint-plugin-promise": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-5.1.0.tgz", - "integrity": "sha512-NGmI6BH5L12pl7ScQHbg7tvtk4wPxxj8yPHH47NvSmMtFneC077PSeY3huFj06ZWZvtbfxSPt3RuOQD5XcR4ng==", - "dev": true - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "node_modules/eslint/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==", "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, - "requires": { - "eslint-visitor-keys": "^1.1.0" - }, "dependencies": { - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - } + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, - "eslint-visitor-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz", - "integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==", - "dev": true - }, - "espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "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==", "dev": true, - "requires": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" - }, "dependencies": { - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - } + "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" } }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, - "requires": { + "dependencies": { "estraverse": "^5.1.0" }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } + "engines": { + "node": ">=0.10" } }, - "esrecurse": { + "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, - "requires": { + "dependencies": { "estraverse": "^5.2.0" }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } + "engines": { + "node": ">=4.0" } }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } }, - "esutils": { + "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "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==" + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "fast-deep-equal": { + "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==" }, - "fast-json-stable-stringify": { + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, - "fast-levenshtein": { + "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, - "file-entry-cache": { + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fecha": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", + "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==" + }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, - "requires": { + "dependencies": { "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" } }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "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==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, - "requires": { - "locate-path": "^2.0.0" + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", "dev": true, - "requires": { - "flatted": "^3.1.0", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" } }, - "flatted": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", - "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", - "dev": true + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true + }, + "node_modules/fn.name": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", + "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==" + }, + "node_modules/follow-redirects": { + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "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" + } }, - "fs.realpath": { + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "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": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } }, - "fuse.js": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-6.4.6.tgz", - "integrity": "sha512-/gYxR/0VpXmWSfZOIPS3rWwU8SHgsRTwWuXhyb2O6s7aRuVtHtxCkR33bNYu3wyLyNx/Wpv0vU7FZy8Vj53VNw==" + "node_modules/fuse.js": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.0.0.tgz", + "integrity": "sha512-14F4hBIxqKvD4Zz/XjDc3y94mNZN6pRv3U13Udo0lNLCWRBUsrMv2xwcF/y/Z5sV6+FQW+/ow68cHpm4sunt8Q==", + "engines": { + "node": ">=10" + } }, - "get-intrinsic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", - "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", + "node_modules/get-tsconfig": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.2.tgz", + "integrity": "sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==", "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, - "requires": { + "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, - "requires": { - "is-glob": "^4.0.1" + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" } }, - "globals": { - "version": "13.8.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.8.0.tgz", - "integrity": "sha512-rHtdA6+PDBIjeEvA91rpqzEvk/k3/i7EeNQiryiWuJH0Hw9cpyJMAt2jtbAwUaRdhD+573X4vWw6IcjKPasi9Q==", + "node_modules/glob/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==", "dev": true, - "requires": { - "type-fest": "^0.20.2" - }, "dependencies": { - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "graceful-fs": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", - "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", - "dev": true + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, - "requires": { - "function-bind": "^1.1.1" + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "has-symbols": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, - "hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } }, - "hypixel-api-reborn": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/hypixel-api-reborn/-/hypixel-api-reborn-8.2.0.tgz", - "integrity": "sha512-Km0WUr/5RmD8z70x0hV2H8GLrfAnuYdnnxV8kUSr4vQ+mPkgKRop19kXYjTopLyAPYDIHjdKbEYkju3G0OR9Bw==", - "requires": { - "node-fetch": "^2.6.1", - "object-path": "^0.11.5", - "prismarine-nbt": "^1.5.0", - "rss-parser": "^3.12.0" - } - }, - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true + "node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "dev": true, + "engines": { + "node": ">= 4" + } }, - "import-fresh": { + "node_modules/import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, - "requires": { + "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "imurmurhash": { + "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } }, - "inflight": { + "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dev": true, - "requires": { + "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, - "inherits": { + "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-callable": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.3.tgz", - "integrity": "sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ==", - "dev": true - }, - "is-core-module": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.4.0.tgz", - "integrity": "sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", - "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", - "dev": true + "node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" }, - "is-extglob": { + "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, - "requires": { + "dependencies": { "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "is-negative-zero": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz", - "integrity": "sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==", - "dev": true - }, - "is-regex": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.2.tgz", - "integrity": "sha512-axvdhb5pdhEVThqJzYXwMlVuZwC+FF2DpcOhTS+y/8jVq4trxyPgfcwIxIKiyeuLlSQYKkmUaPQJ8ZE4yNKXDg==", + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-symbols": "^1.0.1" + "engines": { + "node": ">=0.12.0" } }, - "is-string": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", - "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==", - "dev": true - }, - "is-symbol": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", - "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "dev": true, - "requires": { - "has-symbols": "^1.0.1" + "engines": { + "node": ">=8" } }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + "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==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "isexe": { + "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", "dev": true }, - "json-schema-traverse": { + "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true }, - "json-stable-stringify-without-jsonify": { + "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, - "requires": { - "minimist": "^1.2.0" + "dependencies": { + "json-buffer": "3.0.1" } }, - "kareem": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz", - "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==" + "node_modules/kuler": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", + "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==" }, - "levn": { + "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, - "requires": { + "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" } }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, - "lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", - "dev": true - }, - "lodash.get": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, - "lodash.merge": { + "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "lodash.reduce": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz", - "integrity": "sha1-8atrg5KZrUj3hKu/R2WW8DuRTTs=" + "node_modules/lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==" }, - "lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", - "dev": true + "node_modules/logform": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.6.0.tgz", + "integrity": "sha512-1ulHeNPp6k/LD8H91o7VYFBng5i1BDE7HoKxVbZiGFidS1Rj65qcywLxX+pVfAPoQJEjRdvKcusKwOupHCVOVQ==", + "dependencies": { + "@colors/colors": "1.6.0", + "@types/triple-beam": "^1.3.2", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "safe-stable-stringify": "^2.3.1", + "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 12.0.0" + } }, - "lru-cache": { + "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==", "dev": true, - "requires": { + "dependencies": { "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, - "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 - }, - "mime-db": { - "version": "1.47.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz", - "integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw==" + "node_modules/magic-bytes.js": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/magic-bytes.js/-/magic-bytes.js-1.8.0.tgz", + "integrity": "sha512-lyWpfvNGVb5lu8YUAbER0+UMBTdR63w2mcSUlhhBTyVbxJvjgqwyAf3AZD6MprgK0uHuBoWXSDAMWLupX83o3Q==" }, - "mime-types": { - "version": "2.1.30", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.30.tgz", - "integrity": "sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg==", - "requires": { - "mime-db": "1.47.0" + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" } }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, - "requires": { - "brace-expansion": "^1.1.7" + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" } }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true + "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" + } }, - "moment": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", - "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==" - }, - "moment-duration-format": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/moment-duration-format/-/moment-duration-format-2.3.2.tgz", - "integrity": "sha512-cBMXjSW+fjOb4tyaVHuaVE/A5TqkukDWiOfxxAjY+PEqmmBQlLwn+8OzwPiG3brouXKY5Un4pBjAeB6UToXHaQ==" - }, - "mongodb": { - "version": "3.6.8", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.8.tgz", - "integrity": "sha512-sDjJvI73WjON1vapcbyBD3Ao9/VN3TKYY8/QX9EPbs22KaCSrQ5rXo5ZZd44tWJ3wl3FlnrFZ+KyUtNH6+1ZPQ==", - "requires": { - "bl": "^2.2.1", - "bson": "^1.1.4", - "denque": "^1.4.1", - "optional-require": "^1.0.3", - "safe-buffer": "^5.1.2", - "saslprep": "^1.0.0" - } - }, - "mongoose": { - "version": "5.12.11", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.12.11.tgz", - "integrity": "sha512-16TVqYhHQdZNR8RTis/8iiTPy+nJPq0UhKyBFTucLLU3PWcDLY2gAGv6aOk0LygTNhEfgNnENgUUHhjVqTuh8w==", - "requires": { - "@types/mongodb": "^3.5.27", - "bson": "^1.1.4", - "kareem": "2.3.2", - "mongodb": "3.6.8", - "mongoose-legacy-pluralize": "1.0.2", - "mpath": "0.8.3", - "mquery": "3.2.5", - "ms": "2.1.2", - "regexp-clone": "1.0.0", - "safe-buffer": "5.2.1", - "sift": "13.5.2", - "sliced": "1.0.1" - }, + "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": { - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - } + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" } }, - "mongoose-legacy-pluralize": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz", - "integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ==" - }, - "mpath": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.3.tgz", - "integrity": "sha512-eb9rRvhDltXVNL6Fxd2zM9D4vKBxjVVQNLNijlj7uoXUy19zNDsIif5zR+pWmPCWNKwAtqyo4JveQm4nfD5+eA==" - }, - "mquery": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.5.tgz", - "integrity": "sha512-VjOKHHgU84wij7IUoZzFRU07IAxd5kWJaDmyUzQlbjHjyoeK5TNeeo8ZsFDtTYnSgpW6n/nMNIHvE3u8Lbrf4A==", - "requires": { - "bluebird": "3.5.1", - "debug": "3.1.0", - "regexp-clone": "^1.0.0", - "safe-buffer": "5.1.2", - "sliced": "1.0.1" - }, + "node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - }, - "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==" - } + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "ms": { + "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==" }, - "natural-compare": { + "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, - "node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" - }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" } + ], + "engines": { + "node": ">=10.5.0" } }, - "object-inspect": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.9.0.tgz", - "integrity": "sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw==", - "dev": true - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object-path": { - "version": "0.11.5", - "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.5.tgz", - "integrity": "sha512-jgSbThcoR/s+XumvGMTMf81QVBmah+/Q7K7YduKeKVWL7N111unR2d6pZZarSk6kY/caeNxUDyxOvMWyzoU2eg==" - }, - "object.assign": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", - "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "has-symbols": "^1.0.1", - "object-keys": "^1.1.1" - } - }, - "object.values": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.3.tgz", - "integrity": "sha512-nkF6PfDB9alkOUxpf1HNm/QlkeW3SReqL5WXeBLpEJJnlPSvRaDQpW3gQTksTN3fgJX4hL42RzKyOin6ff3tyw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2", - "has": "^1.0.3" + "node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" } }, - "once": { + "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, - "requires": { + "dependencies": { "wrappy": "1" } }, - "optional-require": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/optional-require/-/optional-require-1.0.3.tgz", - "integrity": "sha512-RV2Zp2MY2aeYK5G+B/Sps8lW5NHAzE5QClbFP15j+PWmP+T9PxlJXBOOLoSAdgwFvS4t0aMR4vpedMkbHfh0nA==" + "node_modules/one-time": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", + "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", + "dependencies": { + "fn.name": "1.x.x" + } }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, - "requires": { + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" } }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "requires": { - "p-try": "^1.0.0" + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "requires": { - "p-limit": "^1.1.0" + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "parent-module": { + "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, - "requires": { + "dependencies": { "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "parse-json": { + "node_modules/path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" + "engines": { + "node": ">=8" } }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "path-is-absolute": { + "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": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "path-key": { + "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", "dev": true, - "requires": { - "pify": "^3.0.0" + "engines": { + "node": ">=8" } }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, - "requires": { - "find-up": "^2.1.0" + "engines": { + "node": ">=8" } }, - "pkg-up": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz", - "integrity": "sha1-yBmscoBZpGHKscOImivjxJoATX8=", + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "requires": { - "find-up": "^2.1.0" + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "prelude-ls": { + "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "prism-media": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/prism-media/-/prism-media-1.2.9.tgz", - "integrity": "sha512-UHCYuqHipbTR1ZsXr5eg4JUmHER8Ss4YEb9Azn+9zzJ7/jlTtD1h0lc4g6tNx3eMlB8Mp6bfll0LPMAV4R6r3Q==" - }, - "prismarine-nbt": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-1.5.0.tgz", - "integrity": "sha512-8vs0MV94kl6I2YUFE5IG4vOBYEw8nG0J0WaoLV6zP1smle5o6haeHqobn07vmcHJZ8iUz2f8oq6T3Y71DHvYpA==", - "requires": { - "protodef": "^1.9.0" - } - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" - }, - "progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true - }, - "protodef": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/protodef/-/protodef-1.13.0.tgz", - "integrity": "sha512-N/4Kaha1dPx0qXq99NUiPkreoZ4+ffJAuWLLtGjrZqDVJkwCsRlC+3SWx6gGDEdkdA2pX97ogp3aKO91rzU68Q==", - "requires": { - "lodash.get": "^4.4.2", - "lodash.reduce": "^4.6.0", - "protodef-validator": "^1.2.2", - "readable-stream": "^3.0.3" + "dev": true, + "engines": { + "node": ">= 0.8.0" } }, - "protodef-validator": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/protodef-validator/-/protodef-validator-1.2.3.tgz", - "integrity": "sha512-dMcSMYRh8s0z0iQN0PLVlXwJOgN8cgBuM1uWzhMjkLdpKCOASwp+h7wHnTigBTRVhGLywykcb3EKiGSsXX4vvA==", - "requires": { - "ajv": "^6.5.4" + "node_modules/prettier": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "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==" }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, - "requires": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" + "engines": { + "node": ">=6" } }, - "read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true, - "requires": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" - } + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "requires": { + "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" } }, - "regexp-clone": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz", - "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw==" - }, - "regexpp": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", - "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", - "dev": true - }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } }, - "resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", "dev": true, - "requires": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } }, - "rimraf": { + "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, - "requires": { + "dependencies": { "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "rss-parser": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/rss-parser/-/rss-parser-3.12.0.tgz", - "integrity": "sha512-aqD3E8iavcCdkhVxNDIdg1nkBI17jgqF+9OqPS1orwNaOgySdpvq6B+DoONLhzjzwV8mWg37sb60e4bmLK117A==", - "requires": { - "entities": "^2.0.3", - "xml2js": "^0.4.19" + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "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": { + "queue-microtask": "^1.2.2" } }, - "safe-buffer": { + "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==" + "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" + } + ] }, - "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, - "requires": { - "sparse-bitfield": "^3.0.3" + "node_modules/safe-stable-stringify": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", + "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", + "engines": { + "node": ">=10" } }, - "sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" - }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, - "requires": { + "dependencies": { "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=" - }, - "shebang-command": { + "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "requires": { + "dependencies": { "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "shebang-regex": { + "node_modules/shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "sift": { - "version": "13.5.2", - "resolved": "https://registry.npmjs.org/sift/-/sift-13.5.2.tgz", - "integrity": "sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA==" - }, - "slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "engines": { + "node": ">=8" } }, - "sliced": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz", - "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E=" - }, - "sparse-bitfield": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", - "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", - "optional": true, - "requires": { - "memory-pager": "^1.0.2" + "node_modules/simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "dependencies": { + "is-arrayish": "^0.3.1" } }, - "spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" + "engines": { + "node": ">=8" } }, - "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" + "node_modules/stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", + "engines": { + "node": "*" } }, - "spdx-license-ids": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.9.tgz", - "integrity": "sha512-Ki212dKK4ogX+xDo4CtOZBVIwhsKBEfsEEcwmJfLQzirgc2jIWdzg40Unxz/HzEUqM1WFzVlQSMF9kZZ2HboLQ==", - "dev": true - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "string_decoder": { + "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==", - "requires": { + "dependencies": { "safe-buffer": "~5.2.0" } }, - "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "string.prototype.trimend": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz", - "integrity": "sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==", + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "string.prototype.trimstart": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz", - "integrity": "sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==", + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } + "node_modules/text-hex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", + "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } }, - "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==", - "requires": { - "has-flag": "^4.0.0" + "node_modules/triple-beam": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.4.1.tgz", + "integrity": "sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==", + "engines": { + "node": ">= 14.0.0" } }, - "table": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/table/-/table-6.6.0.tgz", - "integrity": "sha512-iZMtp5tUvcnAdtHpZTWLPF0M7AgiQsURR2DwmxnJwSy8I3+cY+ozzVvYha3BOLG2TB+L0CqjIz+91htuj6yCXg==", + "node_modules/ts-api-utils": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.2.1.tgz", + "integrity": "sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA==", "dev": true, - "requires": { - "ajv": "^8.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.flatten": "^4.4.0", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0" + "engines": { + "node": ">=16" }, - "dependencies": { - "ajv": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.2.0.tgz", - "integrity": "sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - } + "peerDependencies": { + "typescript": ">=4.2.0" } }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true + "node_modules/ts-mixer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.3.tgz", + "integrity": "sha512-k43M7uCG1AkTyxgnmI5MPwKoUvS/bRvLvUb7+Pgpdlmok8AoqmUaZxUUw8zKM5B1lqZrt41GjYgnvAi0fppqgQ==" + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, - "tsconfig-paths": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", - "integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==", + "node_modules/tsx": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.7.1.tgz", + "integrity": "sha512-8d6VuibXHtlN5E3zFkgY8u4DX7Y3Z27zvvPKVmLon/D4AjuKzarkUBTLDBgj9iTQ0hg5xM7c/mYiRVM+HETf0g==", "dev": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.0", - "strip-bom": "^3.0.0" + "dependencies": { + "esbuild": "~0.19.10", + "get-tsconfig": "^4.7.2" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" } }, - "tweetnacl": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", - "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" - }, - "type-check": { + "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, - "requires": { + "dependencies": { "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" } }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici": { + "version": "5.27.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.27.2.tgz", + "integrity": "sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } }, - "uri-js": { + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, + "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "requires": { + "dev": true, + "dependencies": { "punycode": "^2.1.0" } }, - "util-deprecate": { + "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - }, - "v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "engines": { + "node": ">= 8" } }, - "which": { + "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "requires": { + "dependencies": { "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" } }, - "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==", - "dev": true + "node_modules/winston": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.11.0.tgz", + "integrity": "sha512-L3yR6/MzZAOl0DsysUXHVjOwv8mKZ71TrA/41EIduGpOOV5LQVodqN+QdQ6BS6PJ/RdIshZhq84P/fStEZkk7g==", + "dependencies": { + "@colors/colors": "^1.6.0", + "@dabh/diagnostics": "^2.0.2", + "async": "^3.2.3", + "is-stream": "^2.0.0", + "logform": "^2.4.0", + "one-time": "^1.0.0", + "readable-stream": "^3.4.0", + "safe-stable-stringify": "^2.3.1", + "stack-trace": "0.0.x", + "triple-beam": "^1.3.0", + "winston-transport": "^4.5.0" + }, + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/winston-transport": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.7.0.tgz", + "integrity": "sha512-ajBj65K5I7denzer2IYW6+2bNIVqLGDHqDw3Ow8Ohh+vdW+rv4MZ6eiDvHoKhfJFZ2auyN8byXieDDJ96ViONg==", + "dependencies": { + "logform": "^2.3.2", + "readable-stream": "^3.6.0", + "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 12.0.0" + } }, - "wrappy": { + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, - "ws": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.5.tgz", - "integrity": "sha512-xzyu3hFvomRfXKH8vOFMU3OguG6oOvhXMo3xsGy3xWExqaM2dxBbVxuD99O7m3ZUFMvvscsZDqxfgMaRr/Nr1g==" - }, - "xml2js": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", - "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", - "requires": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" + "node_modules/ws": { + "version": "8.14.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", + "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, - "xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==" - }, - "yallist": { + "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json index 02c2ba6..3187677 100644 --- a/package.json +++ b/package.json @@ -1,46 +1,34 @@ { - "name": "our-awesome-bot", - "version": "2.0.0", - "description": "Bot that helps with everything on discord server https://discord.gg/NSEBNMM", - "main": "src/index.js", + "name": "support-bot", + "version": "3.0.0", + "description": "", + "main": "index.ts", + "types": "src/types/main.d.ts", "scripts": { - "test": "eslint src --fix", - "run": "node src/index.js", - "prod": "npm run run --production" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Hypixel-API-Reborn/our-awesome-bot.git" + "start": "npx tsx index.ts", + "lint:check": "npx eslint src/ index.ts", + "lint": "npx eslint src/ index.ts --fix", + "prettier": "npx prettier --write src/ index.ts", + "prettier:check": "npx prettier --check src/ index.ts", + "build": "npx tsc --build" }, "keywords": [], - "author": "StavZDev", + "author": "", "license": "MIT", - "engines": { - "node": "14.x" - }, - "bugs": { - "url": "https://github.com/Hypixel-API-Reborn/our-awesome-bot/issues" + "dependencies": { + "axios": "^1.6.7", + "common-tags": "^1.8.2", + "discord.js": "^14.14.1", + "fuse.js": "^7.0.0", + "node-fetch": "^3.3.2", + "winston": "^3.11.0" }, - "homepage": "https://github.com/Hypixel-API-Reborn/our-awesome-bot#readme", "devDependencies": { - "eslint": "^7.27.0", - "eslint-config-google": "^0.14.0", - "eslint-plugin-import": "^2.23.3", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^5.1.0" - }, - "dependencies": { - "chalk": "^4.1.1", - "common-tags": "^1.8.0", - "discord-akairo": "^8.1.0", - "discord.js": "^12.5.3", - "dotenv": "^10.0.0", - "fuse.js": "^6.4.6", - "hypixel-api-reborn": "^8.2.0", - "moment": "^2.29.1", - "moment-duration-format": "^2.3.2", - "mongoose": "^5.12.11", - "ms": "^2.1.3", - "node-fetch": "^2.6.1" + "@types/node-cron": "^3.0.11", + "@typescript-eslint/eslint-plugin": "^6.20.0", + "eslint": "^8.56.0", + "prettier": "^3.2.4", + "tsx": "^4.7.0", + "typescript": "^5.3.3" } } diff --git a/src/Hypixel.js b/src/Hypixel.js deleted file mode 100644 index 09b66b7..0000000 --- a/src/Hypixel.js +++ /dev/null @@ -1,3 +0,0 @@ -const Hypixel = require('hypixel-api-reborn'); -const hypixel = new Hypixel.Client(process.env.HYPIXEL_KEY, { cache: true }); -module.exports = hypixel; diff --git a/src/commands/Hypixel/bedwars.js b/src/commands/Hypixel/bedwars.js deleted file mode 100644 index 158725b..0000000 --- a/src/commands/Hypixel/bedwars.js +++ /dev/null @@ -1,60 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const hypixel = require('../../Hypixel'); - -class BedwarsCommand extends Command { - constructor () { - super('bedwars', { - aliases: ['bedwars', 'bw'], - description: { - content: 'Player\'s bedwars stats', - usage: 'bedwars [nickname|uuid|@User]', - examples: [ - 'bedwars StavZDev', - 'bedwars Minikloon', - 'bedwars 709c585ef0194127b08f88ce44bfd158' - ] - }, - args: [ - { - id: 'player', - type: (message, phrase) => { - if (phrase.match(/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/gmi) || phrase.match(/^[a-z0-9]{32}/gmi)) { - return phrase; - } - if (phrase.length > 16) return null; - return phrase; - } - } - ] - }); - } - - /** -* @param {Message} message -* @param {{player:string}} args -*/ - async exec (message, args) { - const user = await this.client.getUser(message, args); - if (!user) return message.reply('I need a player nickname'); - user; - hypixel.getPlayer(user).then((player) => { - if (!player.stats || !player.stats.bedwars) return message.channel.send({ embed: { color: this.client.color, description: 'Player has no stats' } }); - const stats = player.stats.bedwars; - const embed = new MessageEmbed() - .setColor(this.client.color) - .setThumbnail(`https://visage.surgeplay.com/face/64/${player.uuid}`) - .setAuthor(`[${stats.level}] ${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname} | BedWars`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.nickname}#BedWars`) - .addField('Overall', `Coins: \`${stats.coins.toLocaleString()}\`\nPrestige: \`${stats.prestige}\`\nKills: \`${stats.kills.toLocaleString()}\`\nDeaths: \`${stats.deaths.toLocaleString()}\`\nWins: \`${stats.wins.toLocaleString()}\`\nLosses: \`${stats.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.KDRatio}\`\nWin/Loss ratio: \`${stats.WLRatio}\`\nFinal K/D ratio: \`${stats.finalKDRatio}\``, true) - .addField('Solo', `Kills: \`${stats.solo.kills.toLocaleString()}\`\nDeaths: \`${stats.solo.deaths.toLocaleString()}\`\nWins: \`${stats.solo.wins.toLocaleString()}\`\nLosses: \`${stats.solo.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.solo.KDRatio}\`\nWin/Loss ratio: \`${stats.solo.WLRatio}\`\nPlayed games: \`${stats.solo.playedGames}\`\nFinal K/D ratio: \`${stats.solo.finalKDRatio}\``, true) - .addField('Doubles', `Kills: \`${stats.doubles.kills.toLocaleString()}\`\nDeaths: \`${stats.doubles.deaths.toLocaleString()}\`\nWins: \`${stats.doubles.wins.toLocaleString()}\`\nLosses: \`${stats.doubles.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.doubles.KDRatio}\`\nWin/Loss ratio: \`${stats.doubles.WLRatio}\`\nPlayed games: \`${stats.doubles.playedGames}\`\nFinal K/D ratio: \`${stats.doubles.finalKDRatio}\``, true) - .addField('3v3v3v3', `Kills: \`${stats.threes.kills.toLocaleString()}\`\nDeaths: \`${stats.threes.deaths.toLocaleString()}\`\nWins: \`${stats.threes.wins.toLocaleString()}\`\nLosses: \`${stats.threes.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.threes.KDRatio}\`\nWin/Loss ratio: \`${stats.threes.WLRatio}\`\nPlayed games: \`${stats.threes.playedGames}\`\nFinal K/D ratio: \`${stats.threes.finalKDRatio}\``, true) - .addField('4v4v4v4', `Kills: \`${stats.fours.kills.toLocaleString()}\`\nDeaths: \`${stats.fours.deaths.toLocaleString()}\`\nWins: \`${stats.fours.wins.toLocaleString()}\`\nLosses: \`${stats.fours.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.fours.KDRatio}\`\nWin/Loss ratio: \`${stats.fours.WLRatio}\`\nPlayed games: \`${stats.fours.playedGames}\`\nFinal K/D ratio: \`${stats.fours.finalKDRatio}\``, true) - .addField('4v4', `Kills: \`${stats['4v4'].kills.toLocaleString()}\`\nDeaths: \`${stats['4v4'].deaths.toLocaleString()}\`\nWins: \`${stats['4v4'].wins.toLocaleString()}\`\nLosses: \`${stats['4v4'].losses.toLocaleString()}\`\nKill/Death ratio: \`${stats['4v4'].KDRatio}\`\nWin/Loss ratio: \`${stats['4v4'].WLRatio}\`\nPlayed games: \`${stats['4v4'].playedGames}\`\nFinal K/D ratio: \`${stats['4v4'].finalKDRatio}\``, true); - message.channel.send(embed); - }).catch((e) => { - return message.reply(`Error: \`${e}\``); - }); - } -} -module.exports = BedwarsCommand; diff --git a/src/commands/Hypixel/compare.js b/src/commands/Hypixel/compare.js deleted file mode 100644 index 343744f..0000000 --- a/src/commands/Hypixel/compare.js +++ /dev/null @@ -1,180 +0,0 @@ -const { Command } = require('discord-akairo'); -const hypixel = require('../../Hypixel'); -const { Message, MessageEmbed } = require('discord.js'); -const { Player } = require('hypixel-api-reborn'); - -class CompareCommand extends Command { - constructor () { - super('compare', { - aliases: ['compare', 'vs'], - description: { - content: 'Compare players stats', - usage: 'compare [player] [player] [mode]', - examples: [ - 'compare StavZDev Plancke sw', - 'compare StavZDev Plancke bw', - 'compare StavZDev Plancke duels', - 'compare StavZDev Plancke mm' - ] - }, - args: [ - { - id: 'firstPlayer', - match: 'phrase', - type: 'string' - }, - { - id: 'secondPlayer', - match: 'phrase', - type: 'string' - }, - { - id: 'minigame', - match: 'phrase', - type: 'string' - } - ] - }); - } - - /** - * - * @param {Message} message - * @param {} args - */ - async exec (message, args) { - const { minigames } = this.client.utils.constants; - if (!args.firstPlayer || !args.secondPlayer || !args.minigame || args.firstPlayer === args.secondPlayer) { - return message.reply(`Usage: \`${this.handler.prefix}${this.description.usage}\``); - } - let minigame; - if (args.minigame) { - minigame = minigames.find((m) => m.aliases.includes(args.minigame.toLowerCase())); - if (!minigame) return message.channel.send({ embed: { color: this.client.color, description: `List of available minigames:\n${minigames.map((m) => m.aliases.sort((a, b) => b.length - a.length).map((a) => `**${a}**`).join(', ')).join('\n')}\nUsage: \`${this.handler.prefix}${this.id} StavZDev Plancke ${minigames[Math.floor(Math.random() * (minigames.length - 1))].name}\`` } }); - } - const firstPlayer = await hypixel.getPlayer(args.firstPlayer); - const secondPlayer = await hypixel.getPlayer(args.secondPlayer); - if (!firstPlayer || !secondPlayer) return message.reply('Provide a valid nickname'); - message.channel.send(this[minigame.name](firstPlayer, secondPlayer)); - } - - /** - * - * @param {number} a - * @param {number} b - */ - compare (a, b) { - a = (a - Math.floor(a)) === 0 ? Math.floor(a) : a; - b = (b - Math.floor(b)) === 0 > 1 ? Math.floor(b) : b; - return `\`${a.toLocaleString()}\` | \`${b.toLocaleString()}\`\n${a > b ? '<:green_triangle:798041899343544350>' : (a === b ? '—' : '<:red_triangle_down:798041931514511372>')} \`${Math.abs(a - b).toLocaleString()}\``; - } - - /** - * @param {Player} first - * @param {Player} second - */ - skywars (first, second) { - const fps = first.stats.skywars; - const sps = second.stats.skywars; - if (!fps || !sps) return { description: 'One of these players has no stats in SkyWars', color: this.client.color }; - const embed = new MessageEmbed() - .setTitle('Overall SkyWars stats compare') - .setColor(this.client.color) - .setThumbnail('https://hypixel.net/styles/hypixel-uix/hypixel/game-icons/Skywars-64.png') - .setDescription(`[${first.rank !== 'Default' ? `[${first.rank}]` : ''} ${first.nickname}](https://plancke.io/hypixel/player/stats/${first.uuid}) **VS** [${second.rank !== 'Default' ? `[${second.rank}]` : ''} ${second.nickname}](https://plancke.io/hypixel/player/stats/${second.uuid})`) - .addField('Level', `${this.compare(Math.floor(fps.level), Math.floor(sps.level))}`, true) - .addField('Coins', `${this.compare(fps.coins, sps.coins)}`, true) - .addField('Winstreak', `${this.compare(fps.winstreak, sps.winstreak)}`, true) - .addField('Souls', `${this.compare(fps.souls, sps.souls)}`, true) - .addField('Shards', `${this.compare(fps.shards, sps.shards)}`, true) - .addField('Heads', `${this.compare(fps.heads, sps.heads)}`, true) - .addField('Wins', `${this.compare(fps.wins, sps.wins)}`, true) - .addField('Losses', `${this.compare(fps.losses, sps.losses)}`, true) - .addField('WL Ratio', `${this.compare(fps.WLRatio, sps.WLRatio)}`, true) - .addField('Kills', `${this.compare(fps.kills, sps.kills)}`, true) - .addField('Deaths', `${this.compare(fps.deaths, sps.deaths)}`, true) - .addField('KD Ratio', `${this.compare(fps.KDRatio, sps.KDRatio)}`, true) - .addField('Total Games', `${this.compare(fps.playedGames, sps.playedGames)}`, true); - return embed; - } - - /** - * @param {Player} first - * @param {Player} second - */ - duels (first, second) { - const fps = first.stats.duels; - const sps = second.stats.duels; - if (!fps || !sps) return { description: 'One of these players has no stats in Duels', color: this.client.color }; - const embed = new MessageEmbed() - .setTitle('Overall Duels stats compare') - .setColor(this.client.color) - .setThumbnail('https://hypixel.net/styles/hypixel-uix/hypixel/game-icons/Duels-64.png') - .setDescription(`[${first.rank !== 'Default' ? `[${first.rank}]` : ''} ${first.nickname}](https://plancke.io/hypixel/player/stats/${first.uuid}) **VS** [${second.rank !== 'Default' ? `[${second.rank}]` : ''} ${second.nickname}](https://plancke.io/hypixel/player/stats/${second.uuid})`) - .addField('Coins', `${this.compare(fps.coins, sps.coins)}`, true) - .addField('Total Games', `${this.compare(fps.playedGames, sps.playedGames)}`, true) - .addField('\u200b', `\u200b`, true) - .addField('Wins', `${this.compare(fps.wins, sps.wins)}`, true) - .addField('Losses', `${this.compare(fps.losses, sps.losses)}`, true) - .addField('WL Ratio', `${this.compare(fps.WLRatio, sps.WLRatio)}`, true) - .addField('Kills', `${this.compare(fps.kills, sps.kills)}`, true) - .addField('Deaths', `${this.compare(fps.deaths, sps.deaths)}`, true) - .addField('KD Ratio', `${this.compare(fps.KDRatio, sps.KDRatio)}`, true); - return embed; - } - - /** - * @param {Player} first - * @param {Player} second - */ - bedwars (first, second) { - const fps = first.stats.bedwars; - const sps = second.stats.bedwars; - if (!fps || !sps) return { description: 'One of these players has no stats in BedWars', color: this.client.color }; - const embed = new MessageEmbed() - .setTitle('Overall BedWars stats compare') - .setColor(this.client.color) - .setThumbnail('https://hypixel.net/styles/hypixel-uix/hypixel/game-icons/BedWars-64.png') - .setDescription(`[${first.rank !== 'Default' ? `[${first.rank}]` : ''} ${first.nickname}](https://plancke.io/hypixel/player/stats/${first.uuid}) **VS** [${second.rank !== 'Default' ? `[${second.rank}]` : ''} ${second.nickname}](https://plancke.io/hypixel/player/stats/${second.uuid})`) - .addField('Level', `${this.compare(Math.floor(fps.level), Math.floor(sps.level))}`, true) - .addField('Coins', `${this.compare(fps.coins, sps.coins)}`, true) - .addField('Winstreak', `${this.compare(fps.winstreak, sps.winstreak)}`, true) - .addField('Wins', `${this.compare(fps.wins, sps.wins)}`, true) - .addField('Losses', `${this.compare(fps.losses, sps.losses)}`, true) - .addField('WL Ratio', `${this.compare(fps.WLRatio, sps.WLRatio)}`, true) - .addField('Kills', `${this.compare(fps.kills, sps.kills)}`, true) - .addField('Deaths', `${this.compare(fps.deaths, sps.deaths)}`, true) - .addField('KD Ratio', `${this.compare(fps.KDRatio, sps.KDRatio)}`, true) - .addField('Beds Broken', `${this.compare(fps.beds.broken, sps.beds.broken)}`, true) - .addField('Beds Lost', `${this.compare(fps.beds.lost, sps.beds.lost)}`, true) - .addField('BBL Ratio', `${this.compare(fps.beds.BLRatio, sps.beds.BLRatio)}`, true) - .addField('Total Games', `${this.compare(fps.playedGames, sps.playedGames)}`, true); - return embed; - } - - /** - * @param {Player} first - * @param {Player} second - */ - murdermystery (first, second) { - const fps = first.stats.murdermystery; - const sps = second.stats.murdermystery; - if (!fps || !sps) return { description: 'One of these players has no stats in Murder Mystery', color: this.client.color }; - const embed = new MessageEmbed() - .setTitle('Overall Murder Mystery stats compare') - .setColor(this.client.color) - .setThumbnail('https://hypixel.net/styles/hypixel-uix/hypixel/game-icons/MurderMystery-64.png') - .setDescription(`[${first.rank !== 'Default' ? `[${first.rank}]` : ''} ${first.nickname}](https://plancke.io/hypixel/player/stats/${first.uuid}) **VS** [${second.rank !== 'Default' ? `[${second.rank}]` : ''} ${second.nickname}](https://plancke.io/hypixel/player/stats/${second.uuid})`) - .addField('Coins', `${this.compare(fps.coins, sps.coins)}`, true) - .addField('Wins', `${this.compare(fps.wins, sps.wins)}`, true) - .addField('Total Games', `${this.compare(fps.playedGames, sps.playedGames)}`, true) - .addField('Kills', `${this.compare(fps.kills, sps.kills)}`, true) - .addField('Deaths', `${this.compare(fps.deaths, sps.deaths)}`, true) - .addField('KD Ratio', `${this.compare(fps.KDRatio, sps.KDRatio)}`, true) - .addField('Wins as Murderer', `${this.compare(fps.winsAsMurderer, sps.winsAsMurderer)}`, true) - .addField('Wins as Detective', `${this.compare(fps.winsAsDetective, sps.winsAsDetective)}`, true) - .addField('\u200b', `\u200b`, true); - return embed; - } -} -module.exports = CompareCommand; diff --git a/src/commands/Hypixel/duels.js b/src/commands/Hypixel/duels.js deleted file mode 100644 index 15280d6..0000000 --- a/src/commands/Hypixel/duels.js +++ /dev/null @@ -1,89 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const hypixel = require('../../Hypixel'); - -class DuelsCommand extends Command { - constructor () { - super('duels', { - aliases: ['duels'], - description: { - content: 'Player\'s duels stats', - usage: 'duels [nickname|uuid|@User]', - examples: [ - 'duels StavZDev', - 'duels Minikloon', - 'duels 709c585ef0194127b08f88ce44bfd158' - ] - }, - args: [ - { - id: 'player', - type: (message, phrase) => { - if (phrase.match(/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/gmi) || phrase.match(/^[a-z0-9]{32}/gmi)) { - return phrase; - } - if (phrase.length > 16) return null; - return phrase; - } - } - ] - }); - } - - /** -* @param {Message} message -* @param {{player:string}} args -*/ - async exec (message, args) { - const user = await this.client.getUser(message, args); - if (!user) return message.reply('I need a player nickname'); - hypixel.getPlayer(user).then((player) => { - if (!player.stats || !player.stats.duels) return message.channel.send({ embed: { color: this.client.color, description: 'Player has no stats' } }); - const stats = player.stats.duels; - const base = new MessageEmbed() - .setColor(this.client.color) - .setThumbnail(`https://visage.surgeplay.com/face/64/${player.uuid}`); - const overall = new MessageEmbed(base) - .setAuthor(`${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname} | Duels`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.nickname}#Duels`) - .addField('Overall', `${stats.title ? `Title: \`${stats.title}\`\n` : ''}Coins: \`${stats.coins.toLocaleString()}\`\nKills: \`${stats.kills.toLocaleString()}\`\nDeaths: \`${stats.deaths.toLocaleString()}\`\nWins: \`${stats.wins.toLocaleString()}\`\nLosses: \`${stats.losses.toLocaleString()}\`\nK/D ratio: \`${stats.KDRatio}\`\nW/L ratio: \`${stats.WLRatio}\``, true) - .addField('Blitz Duel', `Winstreak: \`${stats.blitz.winstreak.toLocaleString()}\`\nKills: \`${stats.blitz.kills.toLocaleString()}\`\nDeaths: \`${stats.blitz.deaths.toLocaleString()}\`\nWins: \`${stats.blitz.wins.toLocaleString()}\`\nLosses: \`${stats.blitz.losses.toLocaleString()}\`\nK/D ratio: \`${stats.blitz.KDRatio}\`\nW/L ratio: \`${stats.blitz.WLRatio}\` Played games: \`${stats.blitz.playedGames}\``, true) - .addField('Bow Duel', `Winstreak: \`${stats.bow.winstreak.toLocaleString()}\`\nKills: \`${stats.bow.kills.toLocaleString()}\`\nDeaths: \`${stats.bow.deaths.toLocaleString()}\`\nWins: \`${stats.bow.wins.toLocaleString()}\`\nLosses: \`${stats.bow.losses.toLocaleString()}\`\nK/D ratio: \`${stats.bow.KDRatio}\`\nW/L ratio: \`${stats.bow.WLRatio}\`\nPlayed games: \`${stats.bow.playedGames}\``, true) - .addField('Classic Duel', `Winstreak: \`${stats.classic.winstreak.toLocaleString()}\`\nKills: \`${stats.classic.kills.toLocaleString()}\`\nDeaths: \`${stats.classic.deaths.toLocaleString()}\`\nWins: \`${stats.classic.wins.toLocaleString()}\`\nLosses: \`${stats.classic.losses.toLocaleString()}\`\nK/D ratio: \`${stats.classic.KDRatio}\`\nW/L ratio: \`${stats.classic.WLRatio}\`\nPlayed games: \`${stats.classic.playedGames}\``, true) - .addField('Combo Duel', `Winstreak: \`${stats.combo.winstreak.toLocaleString()}\`\nKills: \`${stats.combo.kills.toLocaleString()}\`\nDeaths: \`${stats.combo.deaths.toLocaleString()}\`\nWins: \`${stats.combo.wins.toLocaleString()}\`\nLosses: \`${stats.combo.losses.toLocaleString()}\`\nK/D ratio: \`${stats.combo.KDRatio}\`\nW/L ratio: \`${stats.combo.WLRatio}\`\nPlayed games: \`${stats.combo.playedGames}\``, true) - .addField('Sumo Duel', `Winstreak: \`${stats.sumo.winstreak.toLocaleString()}\`\nKills: \`${stats.sumo.kills.toLocaleString()}\`\nDeaths: \`${stats.sumo.deaths.toLocaleString()}\`\nWins: \`${stats.sumo.wins.toLocaleString()}\`\nLosses: \`${stats.sumo.losses.toLocaleString()}\`\nK/D ratio: \`${stats.sumo.KDRatio}\`\nW/L ratio: \`${stats.sumo.WLRatio}\`\nPlayed games: \`${stats.sumo.playedGames}\``, true) - .addField('Megawalls Duel', `Winstreak: \`${stats.megawalls.winstreak.toLocaleString()}\`\nKills: \`${stats.megawalls.kills.toLocaleString()}\`\nDeaths: \`${stats.megawalls.deaths.toLocaleString()}\`\nWins: \`${stats.megawalls.wins.toLocaleString()}\`\nLosses: \`${stats.megawalls.losses.toLocaleString()}\`\nK/D ratio: \`${stats.megawalls.KDRatio}\`\nW/L ratio: \`${stats.megawalls.WLRatio}\`\nPlayed games: \`${stats.megawalls.playedGames}\``, true) - .addField('Blitz Duel', `Winstreak: \`${stats.blitz.winstreak.toLocaleString()}\`\nKills: \`${stats.blitz.kills.toLocaleString()}\`\nDeaths: \`${stats.blitz.deaths.toLocaleString()}\`\nWins: \`${stats.blitz.wins.toLocaleString()}\`\nLosses: \`${stats.blitz.losses.toLocaleString()}\`\nK/D ratio: \`${stats.blitz.KDRatio}\`\nW/L ratio: \`${stats.blitz.WLRatio}\`\nPlayed games: \`${stats.blitz.playedGames}\``, true) - .addField('Nodebuff Duel', `Winstreak: \`${stats.nodebuff.winstreak.toLocaleString()}\`\nKills: \`${stats.nodebuff.kills.toLocaleString()}\`\nDeaths: \`${stats.nodebuff.deaths.toLocaleString()}\`\nWins: \`${stats.nodebuff.wins.toLocaleString()}\`\nLosses: \`${stats.nodebuff.losses.toLocaleString()}\`\nK/D ratio: \`${stats.nodebuff.KDRatio}\`\nW/L ratio: \`${stats.nodebuff.WLRatio}\`\nPlayed games: \`${stats.nodebuff.playedGames}\``, true); - const op = new MessageEmbed(base) - .setAuthor(`${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname} | OP Duels`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.nickname}#Duels`) - .addField('Overall', `Winstreak: \`${stats.op.overall.winstreak.toLocaleString()}\`\nKills: \`${stats.op.overall.kills.toLocaleString()}\`\nDeaths: \`${stats.op.overall.deaths.toLocaleString()}\`\nWins: \`${stats.op.overall.wins.toLocaleString()}\`\nLosses: \`${stats.op.overall.losses.toLocaleString()}\`\nK/D ratio: \`${stats.op.overall.KDRatio}\`\nW/L ratio: \`${stats.op.overall.WLRatio}\`\nPlayed games: \`${stats.op.overall.playedGames}\``, true) - .addField('1v1', `Winstreak: \`${stats.op['1v1'].winstreak.toLocaleString()}\`\nKills: \`${stats.op['1v1'].kills.toLocaleString()}\`\nDeaths: \`${stats.op['1v1'].deaths.toLocaleString()}\`\nWins: \`${stats.op['1v1'].wins.toLocaleString()}\`\nLosses: \`${stats.op['1v1'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.op['1v1'].KDRatio}\`\nW/L ratio: \`${stats.op['1v1'].WLRatio}\`\nPlayed games: \`${stats.op['1v1'].playedGames}\``, true) - .addField('2v2', `Winstreak: \`${stats.op['2v2'].winstreak.toLocaleString()}\`\nKills: \`${stats.op['2v2'].kills.toLocaleString()}\`\nDeaths: \`${stats.op['2v2'].deaths.toLocaleString()}\`\nWins: \`${stats.op['2v2'].wins.toLocaleString()}\`\nLosses: \`${stats.op['2v2'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.op['2v2'].KDRatio}\`\nW/L ratio: \`${stats.op['2v2'].WLRatio}\`\nPlayed games: \`${stats.op['2v2'].playedGames}\``, true); - const bridge = new MessageEmbed(base) - .setAuthor(`${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname} | Bridge Duels`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.nickname}#Duels`) - .addField('Overall', `Winstreak: \`${stats.bridge.overall.winstreak.toLocaleString()}\`\nKills: \`${stats.bridge.overall.kills.toLocaleString()}\`\nDeaths: \`${stats.bridge.overall.deaths.toLocaleString()}\`\nWins: \`${stats.bridge.overall.wins.toLocaleString()}\`\nLosses: \`${stats.bridge.overall.losses.toLocaleString()}\`\nK/D ratio: \`${stats.bridge.overall.KDRatio}\`\nW/L ratio: \`${stats.bridge.overall.WLRatio}\`\nPlayed games: \`${stats.bridge.overall.playedGames}\``, true) - .addField('1v1', `Winstreak: \`${stats.bridge['1v1'].winstreak.toLocaleString()}\`\nKills: \`${stats.bridge['1v1'].kills.toLocaleString()}\`\nDeaths: \`${stats.bridge['1v1'].deaths.toLocaleString()}\`\nWins: \`${stats.bridge['1v1'].wins.toLocaleString()}\`\nLosses: \`${stats.bridge['1v1'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.bridge['1v1'].KDRatio}\`\nW/L ratio: \`${stats.bridge['1v1'].WLRatio}\`\nPlayed games: \`${stats.bridge['1v1'].playedGames}\``, true) - .addField('\u200b', '\u200b', true) - .addField('2v2', `Winstreak: \`${stats.bridge['2v2'].winstreak.toLocaleString()}\`\nKills: \`${stats.bridge['2v2'].kills.toLocaleString()}\`\nDeaths: \`${stats.bridge['2v2'].deaths.toLocaleString()}\`\nWins: \`${stats.bridge['2v2'].wins.toLocaleString()}\`\nLosses: \`${stats.bridge['2v2'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.bridge['2v2'].KDRatio}\`\nW/L ratio: \`${stats.bridge['2v2'].WLRatio}\`\nPlayed games: \`${stats.bridge['2v2'].playedGames}\``, true) - .addField('4v4', `Winstreak: \`${stats.bridge['4v4'].winstreak.toLocaleString()}\`\nKills: \`${stats.bridge['4v4'].kills.toLocaleString()}\`\nDeaths: \`${stats.bridge['4v4'].deaths.toLocaleString()}\`\nWins: \`${stats.bridge['4v4'].wins.toLocaleString()}\`\nLosses: \`${stats.bridge['4v4'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.bridge['4v4'].KDRatio}\`\nW/L ratio: \`${stats.bridge['4v4'].WLRatio}\`\nPlayed games: \`${stats.bridge['4v4'].playedGames}\``, true) - .addField('\u200b', '\u200b', true); - const uhc = new MessageEmbed(base) - .setAuthor(`${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname} | UHC Duels`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.nickname}#Duels`) - .addField('Overall', `Winstreak: \`${stats.uhc.overall.winstreak.toLocaleString()}\`\nKills: \`${stats.uhc.overall.kills.toLocaleString()}\`Deaths: \`${stats.uhc.overall.deaths.toLocaleString()}\`\nWins: \`${stats.uhc.overall.wins.toLocaleString()}\`\nLosses: \`${stats.uhc.overall.losses.toLocaleString()}\`\nK/D ratio: \`${stats.uhc.overall.KDRatio}\`\nW/L ratio: \`${stats.uhc.overall.WLRatio}\`\nPlayed games: \`${stats.uhc.overall.playedGames}\``, true) - .addField('1v1', `Winstreak: \`${stats.uhc['1v1'].winstreak.toLocaleString()}\`\nKills: \`${stats.uhc['1v1'].kills.toLocaleString()}\`\nDeaths: \`${stats.uhc['1v1'].deaths.toLocaleString()}\`\nWins: \`${stats.uhc['1v1'].wins.toLocaleString()}\`\nLosses: \`${stats.uhc['1v1'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.uhc['1v1'].KDRatio}\`\nW/L ratio: \`${stats.uhc['1v1'].WLRatio}\`\nPlayed games: \`${stats.uhc['1v1'].playedGames}\``, true) - .addField('\u200b', '\u200b', true) - .addField('2v2', `Winstreak: \`${stats.uhc['2v2'].winstreak.toLocaleString()}\`\nKills: \`${stats.uhc['2v2'].kills.toLocaleString()}\`\nDeaths: \`${stats.uhc['2v2'].deaths.toLocaleString()}\`\nWins: \`${stats.uhc['2v2'].wins.toLocaleString()}\`\nLosses: \`${stats.uhc['2v2'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.uhc['2v2'].KDRatio}\`\nW/L ratio: \`${stats.uhc['2v2'].WLRatio}\`\nPlayed games: \`${stats.uhc['2v2'].playedGames}\``, true) - .addField('4v4', `Winstreak: \`${stats.uhc['4v4'].winstreak.toLocaleString()}\`\nKills: \`${stats.uhc['4v4'].kills.toLocaleString()}\`\nDeaths: \`${stats.uhc['4v4'].deaths.toLocaleString()}\`\nWins: \`${stats.uhc['4v4'].wins.toLocaleString()}\`\nLosses: \`${stats.uhc['4v4'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.uhc['4v4'].KDRatio}\`\nW/L ratio: \`${stats.uhc['4v4'].WLRatio}\`\nPlayed games: \`${stats.uhc['4v4'].playedGames}\``, true) - .addField('\u200b', '\u200b', true); - const skywars = new MessageEmbed(base) - .setAuthor(`${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname} | SkyWars Duels`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.nickname}#Duels`) - .addField('Overall', `Winstreak: \`${stats.skywars.overall.winstreak.toLocaleString()}\` Kills: \`${stats.skywars.overall.kills.toLocaleString()}\`\nDeaths: \`${stats.skywars.overall.deaths.toLocaleString()}\`\nWins: \`${stats.skywars.overall.wins.toLocaleString()}\`\nLosses: \`${stats.skywars.overall.losses.toLocaleString()}\`\nK/D ratio: \`${stats.skywars.overall.KDRatio}\`\nW/L ratio: \`${stats.skywars.overall.WLRatio}\`\nPlayed games: \`${stats.skywars.overall.playedGames}\``, true) - .addField('1v1', `Winstreak: \`${stats.skywars['1v1'].winstreak.toLocaleString()}\`\nKills: \`${stats.skywars['1v1'].kills.toLocaleString()}\`\nDeaths: \`${stats.skywars['1v1'].deaths.toLocaleString()}\`\nWins: \`${stats.skywars['1v1'].wins.toLocaleString()}\`\nLosses: \`${stats.skywars['1v1'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.skywars['1v1'].KDRatio}\`\nW/L ratio: \`${stats.skywars['1v1'].WLRatio}\`\nPlayed games: \`${stats.skywars['1v1'].playedGames}\``, true) - .addField('2v2', `Winstreak: \`${stats.skywars['2v2'].winstreak.toLocaleString()}\`\nKills: \`${stats.skywars['2v2'].kills.toLocaleString()}\`\nDeaths: \`${stats.skywars['2v2'].deaths.toLocaleString()}\`\nWins: \`${stats.skywars['2v2'].wins.toLocaleString()}\`\nLosses: \`${stats.skywars['2v2'].losses.toLocaleString()}\`\nK/D ratio: \`${stats.skywars['2v2'].KDRatio}\`\nW/L ratio: \`${stats.skywars['2v2'].WLRatio}\`\nPlayed games: \`${stats.skywars['2v2'].playedGames}\``, true); - this.client.embedPages.render(message, [overall, op, bridge, uhc, skywars]); - }).catch((e) => { - return message.reply(`Error: \`${e}\``); - }); - } -} -module.exports = DuelsCommand; diff --git a/src/commands/Hypixel/history.js b/src/commands/Hypixel/history.js deleted file mode 100644 index d47df67..0000000 --- a/src/commands/Hypixel/history.js +++ /dev/null @@ -1,53 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const moment = require('moment'); -const { Utils } = require('hypixel-api-reborn'); -const fetch = require('node-fetch'); - -class HistoryCommand extends Command { - constructor () { - super('history', { - aliases: ['history'], - description: { - content: 'Player\'s name history', - usage: 'history [nickname|uuid|@User]', - examples: [ - 'history StavZDev' - ] - }, - args: [ - { - id: 'player', - type: (message, phrase) => { - if (phrase.match(/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/gmi) || phrase.match(/^[a-z0-9]{32}/gmi)) { - return phrase; - } - if (phrase.length > 16) return null; - return phrase; - } - } - ] - }); - } - - /** - * @param {Message} message - * @param {{player:string}} args - */ - async exec (message, args) { - const user = await this.client.getUser(message, args); - if (!user) return message.reply('I need a player nickname'); - Utils.toUuid(user).then(async (uuid) => { - const history = await fetch(`https://api.mojang.com/user/profiles/${uuid}/names`).then((r) => r.json()); - const embed = new MessageEmbed() - .setColor(this.client.color) - .setAuthor(`${history[history.length - 1].name}'s name history`) - .addField('Nickname', `${history.map((h) => `\`${h.name}\``).join('\n')}`, true) - .addField('Date', `${history.map((h) => `\`${h.changedToAt ? moment(h.changedToAt).calendar() : 'Original'}\``).join('\n')}`, true); - message.channel.send(embed); - }).catch((e) => { - message.reply(`Error: \`${e}\``); - }); - } -} -module.exports = HistoryCommand; diff --git a/src/commands/Hypixel/incidents.js b/src/commands/Hypixel/incidents.js deleted file mode 100644 index c20f1c3..0000000 --- a/src/commands/Hypixel/incidents.js +++ /dev/null @@ -1,46 +0,0 @@ -const { Command } = require('discord-akairo'); -const { MessageEmbed, Message } = require('discord.js'); -const hypixel = require('../../Hypixel'); -const moment = require('moment'); -const { APIIncident } = require('hypixel-api-reborn'); - -class IncidentsCommand extends Command { - constructor () { - super('incidents', { - aliases: ['incidents', 'apiincidents'], - description: { - content: 'Shows Hypixel API incidents', - usage: 'incidents', - examples: [ - 'incidents' - ] - } - }); - } - /** - * @param {Message} message - */ - async exec (message) { - const status = await hypixel.getAPIStatus(); - const embed = new MessageEmbed() - .setColor(this.client.color) - .setAuthor('API Incidents', this.client.user.avatarURL(), 'https://status.hypixel.net/'); - if (status.currentIncidents.length) { - status.currentIncidents.forEach((i) => { - embed.addField('• Current Incident', this.parseIncident(i)); - }); - } - const pastIncident = status.incidents[0]; - embed.addField('Past Incident', this.parseIncident(pastIncident)); - message.channel.send(embed); - } - - /** - * @param {APIIncident} incident - * @return {string} - */ - parseIncident (incident) { - return `Started at: \`${moment(incident.startTimestamp)}\`\n\n${incident.snippet.length > 900 ? incident.snippet.slice(900) + `\n[click here](${incident.link})` : incident.snippet}`; - } -} -module.exports = IncidentsCommand; diff --git a/src/commands/Hypixel/murdermystery.js b/src/commands/Hypixel/murdermystery.js deleted file mode 100644 index b020aa7..0000000 --- a/src/commands/Hypixel/murdermystery.js +++ /dev/null @@ -1,56 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const hypixel = require('../../Hypixel'); - -class MurdermysteryCommand extends Command { - constructor () { - super('murdermystery', { - aliases: ['murdermystery', 'mm'], - description: { - content: 'Player\'s murder mystery stats', - usage: 'murdermystery [nickname|uuid|@User]', - examples: [ - 'murdermystery StavZDev', - 'murdermystery Minikloon', - 'murdermystery 709c585ef0194127b08f88ce44bfd158' - ] - }, - args: [ - { - id: 'player', - type: (message, phrase) => { - if (phrase.match(/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/gmi) || phrase.match(/^[a-z0-9]{32}/gmi)) { - return phrase; - } - if (phrase.length > 16) return null; - return phrase; - } - } - ] - }); - } - - /** -* @param {Message} message -* @param {{player:string}} args -*/ - async exec (message, args) { - const user = await this.client.getUser(message, args); - if (!user) return message.reply('I need a player nickname'); - hypixel.getPlayer(user).then((player) => { - if (!player.stats || !player.stats.murdermystery) return message.channel.send({ embed: { color: this.client.color, description: 'Player has no stats' } }); - const stats = player.stats.murdermystery; - const murdermystery = new MessageEmbed() - .setColor(this.client.color) - .setThumbnail(`https://visage.surgeplay.com/face/64/${player.uuid}`) - .setAuthor(`${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname} | Murder Mystery`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.nickname}#MurderMystery`) - .addField('Overall', `Kills: \`${stats.kills.toLocaleString()}\`\nDeaths: \`${stats.deaths.toLocaleString()}\`\nWins: \`${stats.wins.toLocaleString()}\`\nKill/Death ratio: \`${stats.KDRatio}\`\nWin as Murderer: \`${stats.winsAsMurderer.toLocaleString()}\`\nWin as Detective: \`${stats.winsAsDetective.toLocaleString()}\`\nPlayed games: \`${stats.playedGames}\``, true) - .addField('Double Up', `Kills: \`${stats.doubleUp.kills.toLocaleString()}\`\nDeaths: \`${stats.doubleUp.deaths.toLocaleString()}\`\nWins: \`${stats.doubleUp.wins.toLocaleString()}\`\nKill/Death ratio: \`${stats.doubleUp.KDRatio}\`\nPlayed games: \`${stats.doubleUp.playedGames}\``, true) - .addField('Infection', `Kills: \`${stats.infection.kills.toLocaleString()}\`\nDeaths: \`${stats.infection.deaths.toLocaleString()}\`\nWins: \`${stats.infection.wins.toLocaleString()}\`\nKill/Death ratio: \`${stats.infection.KDRatio}\`\nPlayed games: \`${stats.infection.playedGames}\``, true); - message.channel.send(murdermystery); - }).catch((e) => { - return message.reply(`Error: \`${e}\``); - }); - } -} -module.exports = MurdermysteryCommand; diff --git a/src/commands/Hypixel/player.js b/src/commands/Hypixel/player.js deleted file mode 100644 index d526b88..0000000 --- a/src/commands/Hypixel/player.js +++ /dev/null @@ -1,113 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const hypixel = require('../../Hypixel'); -const moment = require('moment'); -const { options } = require('../../Hypixel'); -require('moment-duration-format'); - -class PlayerCommand extends Command { - constructor () { - super('player', { - aliases: ['player', 'hypixelplayer', 'p'], - description: { - content: 'Player\'s general stats or minigame stats', - usage: 'player [nickname|uuid|@User] [-c] [-m minigame]', - examples: [ - 'player StavZDev -m duels', - 'player Minikloon -c', - 'player 709c585ef0194127b08f88ce44bfd158', - 'player StavZDev -m skywars', - 'player StavZDev -m bw', - 'player StavZDev -m murdermystery' - ] - }, - args: [ - { - id: 'player', - type: (message, phrase) => { - if (phrase.match(/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/gmi) || phrase.match(/^[a-z0-9]{32}/gmi)) { - return phrase; - } - if (phrase.length > 16) return null; - return phrase; - } - }, - { - id: 'minigame', - match: 'option', - flag: '-m' - }, - { - id: 'compact', - match: 'flag', - flag: '-c' - } - ] - }); - } - - /** - * - * @param {Message} message - * @param {{player:string,minigame:string,compact:boolean}} args - */ - async exec (message, args) { - const { minigames } = this.client.utils.constants; - const user = await this.client.getUser(message, args); - if (!user) return message.reply('I need a player nickname'); - let minigame; - if (args.minigame) { - minigame = minigames.find((m) => m.aliases.includes(args.minigame.toLowerCase())); - if (!minigame) { - return message.channel.send({ - embed: { - color: this.client.color, - description: `Invalid usage!\n\nExamples:\n${minigames.map((m) => `\`${this.client.commandHandler.prefix}player StavZDev -m ${m.name}\``).join('\n')}` - } - }); - } - return this.client.commandHandler.runCommand(message, this.client.commandHandler.findCommand(minigame.name), { player: user }); - } - hypixel.getPlayer(user, { guild: true }).then(async (player) => { - if (args.compact) { - const embedCompact = new MessageEmbed() - .setColor(this.client.color) - .setAuthor(`${player.rank !== 'Default' ? `[${player.rank}] ` : ''}${player.nickname}`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.uuid}`) - .setThumbnail(`https://visage.surgeplay.com/face/64/${player.uuid}`) - .addField('Level', `\`${player.level}\``, true); - if (player.guild) { - embedCompact.addField('Guild', `[${player.guild.name}${player.guild.tag ? ` [${player.guild.tag}]` : ''}](${encodeURI(`https://plancke.io/hypixel/guild/name/${player.guild.name}`)})`, true); - } - if (player.isOnline && moment.isDate(player.lastLogin)) { - const elapsed = moment.duration(Date.now() - player.lastLogin).format('D[d] H[h] m[m] s[s]'); - embedCompact.addField('Network status', `\`Online\` (for \`${elapsed}\`)`, true); - } else if (!player.isOnline && moment.isDate(player.lastLogin)) { - embedCompact.addField('Last Login', `\`${moment(player.lastLogin).fromNow()}\``, true); - } - return message.channel.send(embedCompact); - } - const embed = new MessageEmbed() - .setColor(this.client.color) - .setAuthor(`${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname}`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.uuid}`) - .setThumbnail(`https://visage.surgeplay.com/face/64/${player.uuid}`) - .addField('Level', `\`${player.level}\``, true); - if (player.guild) { - embed.addField('Guild', `[${player.guild.name}${player.guild.tag ? ` [${player.guild.tag}]` : ''}](${encodeURI(`https://plancke.io/hypixel/guild/name/${player.guild.name}`)})`, true) - .addField('\u200B', '\u200B', true); - } - embed.addField('Karma', `\`${player.karma.toLocaleString()}\``, true) - .addField('Achievement points', `\`${player.achievementPoints.toLocaleString()}\``, true) - .addField('Social Media', `${player.socialMedia.length ? player.socialMedia.map((m) => `${m.name} - ${m.link.startsWith('http') ? `[click](${m.link})` : `\`${m.link}\``}`).join('\n') : '`None`'}`); - if (player.isOnline && moment.isDate(player.lastLogin)) { - const elapsed = moment.duration(Date.now() - player.lastLoginTimestamp).format('D[d] H[h] m[m] s[s]'); - embed.addField('Network status', `\`Online\` (for \`${elapsed}\`)`); - } else if (!player.isOnline && moment.isDate(player.lastLogin)) { - embed.addField('Last Login', `\`${moment(player.lastLoginTimestamp).fromNow()}\``); - } - message.channel.send(embed); - }).catch((e) => { - return message.reply(`Error: \`${e}\``); - }); - } -} -module.exports = PlayerCommand; diff --git a/src/commands/Hypixel/skywars.js b/src/commands/Hypixel/skywars.js deleted file mode 100644 index a2a059f..0000000 --- a/src/commands/Hypixel/skywars.js +++ /dev/null @@ -1,77 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const hypixel = require('../../Hypixel'); - -class SkywarsCommand extends Command { - constructor () { - super('skywars', { - aliases: ['skywars', 'sw'], - description: { - content: 'Player\'s skywars stats', - usage: 'skywars [nickname|uuid|@User]', - examples: [ - 'skywars StavZDev', - 'skywars Minikloon', - 'skywars 709c585ef0194127b08f88ce44bfd158' - ] - }, - args: [ - { - id: 'player', - type: (message, phrase) => { - if (phrase.match(/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/gmi) || phrase.match(/^[a-z0-9]{32}/gmi)) { - return phrase; - } - if (phrase.length > 16) return null; - return phrase; - } - } - ] - }); - } - - /** -* @param {Message} message -* @param {{player:string}} args -*/ - async exec (message, args) { - const user = await this.client.getUser(message, args); - if (!user) return message.reply('I need a player nickname'); - hypixel.getPlayer(user).then((player) => { - if (!player.stats || !player.stats.skywars) return message.channel.send({ embed: { color: this.client.color, description: 'Player has no stats' } }); - const stats = player.stats.skywars; - const base = new MessageEmbed() - .setColor(this.client.color) - .setThumbnail(`https://visage.surgeplay.com/face/64/${player.uuid}`) - .setAuthor(`[${stats.levelFormatted}] ${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname} | SkyWars`, this.client.utils.constants.rankColors[player.rank === 'MVP++' ? player.rank : player.rank.replace(/\+/g, '')], `https://plancke.io/hypixel/player/stats/${player.nickname}#SkyWars`); - const overall = new MessageEmbed(base) - .addField('Overall', `Kills: \`${stats.kills.toLocaleString()}\`\nDeaths: \`${stats.deaths.toLocaleString()}\`\nWins: \`${stats.wins.toLocaleString()}\`\nLosses: \`${stats.losses.toLocaleString()}\`\nKill/Death Ratio: \`${stats.KDRatio}\`\nWin/Loss Ratio: \`${stats.WLRatio}\`\nPlayed games: \`${stats.playedGames}\``, true) - .addField('Solo', `Kills: \`${stats.solo.overall.kills.toLocaleString()}\`\nDeaths: \`${stats.solo.overall.deaths.toLocaleString()}\`\nWins: \`${stats.solo.overall.wins.toLocaleString()}\`\nLosses: \`${stats.solo.overall.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.solo.overall.KDRatio}\`\nWin/Loss ratio: \`${stats.solo.overall.WLRatio}\`\nPlayed games: \`${stats.solo.overall.playedGames.toLocaleString()}\``, true) - .addField('Team', `Kills: \`${stats.team.overall.kills.toLocaleString()}\`\nDeaths: \`${stats.team.overall.deaths.toLocaleString()}\`\nWins: \`${stats.team.overall.wins.toLocaleString()}\`\nLosses: \`${stats.team.overall.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.team.overall.KDRatio}\`\nWin/Loss ratio: \`${stats.team.overall.WLRatio}\`\nPlayed games: \`${stats.team.overall.playedGames.toLocaleString()}\``, true) - .addField('Ranked', `Kills: \`${stats.ranked.kills.toLocaleString()}\`\nDeaths: \`${stats.ranked.deaths.toLocaleString()}\`\nWins: \`${stats.ranked.wins.toLocaleString()}\`\nLosses: \`${stats.ranked.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.ranked.KDRatio}\`\nWin/Loss ratio: \`${stats.ranked.WLRatio}\`\nPlayed games: \`${stats.ranked.playedGames.toLocaleString()}\``, true) - .addField('Mega', `Kills: \`${stats.mega.overall.kills.toLocaleString()}\`\nDeaths: \`${stats.mega.overall.deaths.toLocaleString()}\`\nWins: \`${stats.mega.overall.wins.toLocaleString()}\`\nLosses: \`${stats.mega.overall.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.mega.overall.KDRatio}\`\nWin/Loss ratio: \`${stats.mega.overall.WLRatio}\``, true) - .addField('Lab', `Kills: \`${stats.lab.kills.toLocaleString()}\`\nDeaths: \`${stats.lab.deaths.toLocaleString()}\`\nWins: \`${stats.lab.wins.toLocaleString()}\`\nLosses: \`${stats.lab.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.lab.KDRatio}\`\nWin/Loss ratio: \`${stats.lab.WLRatio}\`\nPlayed games: \`${stats.ranked.playedGames.toLocaleString()}\``, true) - .addField('Level Progress', `\`${Math.floor(stats.level)} ${this.renderProgressBar(stats.levelProgress)} ${Math.floor(stats.level + 1)}\`\n${stats.levelProgress.currentLevelXp} / ${stats.levelProgress.xpNextLevel} (${Math.round(stats.levelProgress.percent)}%)`); - const soloTeam = new MessageEmbed(base) - .addField('Solo Normal', `Kills: \`${stats.solo.normal.kills.toLocaleString()}\`\nDeaths: \`${stats.solo.normal.deaths.toLocaleString()}\`\nWins: \`${stats.solo.normal.wins.toLocaleString()}\`\nLosses: \`${stats.solo.normal.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.solo.normal.KDRatio}\`\nWin/Loss ratio: \`${stats.solo.normal.WLRatio}\``, true) - .addField('Solo Insane', `Kills: \`${stats.solo.insane.kills.toLocaleString()}\`\nDeaths: \`${stats.solo.insane.deaths.toLocaleString()}\`\nWins: \`${stats.solo.insane.wins.toLocaleString()}\`\nLosses: \`${stats.solo.insane.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.solo.insane.KDRatio}\`\nWin/Loss ratio: \`${stats.solo.insane.WLRatio}\``, true) - .addField('\u200b', '\u200b', true) - .addField('Team Normal', `Kills: \`${stats.team.normal.kills.toLocaleString()}\`\nDeaths: \`${stats.team.normal.deaths.toLocaleString()}\`\nWins: \`${stats.team.normal.wins.toLocaleString()}\`\nLosses: \`${stats.team.normal.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.team.normal.KDRatio}\`\nWin/Loss ratio: \`${stats.team.normal.WLRatio}\``, true) - .addField('Team Insane', `Kills: \`${stats.team.insane.kills.toLocaleString()}\`\nDeaths: \`${stats.team.insane.deaths.toLocaleString()}\`\nWins: \`${stats.team.insane.wins.toLocaleString()}\`\nLosses: \`${stats.team.insane.losses.toLocaleString()}\`\nKill/Death ratio: \`${stats.team.insane.KDRatio}\`\nWin/Loss ratio: \`${stats.team.insane.WLRatio}\``, true) - .addField('\u200b', '\u200b', true); - this.client.embedPages.render(message, [overall, soloTeam]); - }).catch((e) => { - return message.reply(`Error: \`${e}\``); - }); - } - - /** - * @param {*} progress - * @return {string} - */ - renderProgressBar (progress) { - const progressOutOf30 = Math.round((progress.percent / 100) * 30); - return `[${'■'.repeat(progressOutOf30)}${'━'.repeat(30 - progressOutOf30)}]`; - } -} -module.exports = SkywarsCommand; diff --git a/src/commands/Hypixel/status.js b/src/commands/Hypixel/status.js deleted file mode 100644 index 7356be7..0000000 --- a/src/commands/Hypixel/status.js +++ /dev/null @@ -1,58 +0,0 @@ -const { Command } = require('discord-akairo'); -const hypixel = require('../../Hypixel'); -const User = require('../../structures/models/User'); -const moment = require('moment'); -require('moment-duration-format'); -const { MessageEmbed, Message } = require('discord.js'); - -class StatusCommand extends Command { - constructor () { - super('status', { - aliases: ['status'], - description: { - content: 'Player\'s network status', - usage: 'status [player|uuid|@User]', - examples: [ - 'status StavZDev' - ] - }, - args: [ - { - id: 'player', - type: (message, phrase) => { - if (/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/gmi.test(phrase) || /^[a-z0-9]{32}/gmi.test(phrase)) { - return phrase; - } - if (phrase.length > 16) return null; - return phrase; - } - } - ] - }); - } - - /** - * - * @param {Message} message - * @param {{player:string}} args - */ - async exec (message, args) { - const user = await this.client.getUser(message, args); - if (!user) return message.reply('I need a player nickname'); - hypixel.getStatus(user).then(async (status) => { - const player = await hypixel.getPlayer(user, { noCaching: true }); - const embed = new MessageEmbed() - .setColor(this.client.color) - .setAuthor(`${player.rank !== 'Default' ? `[${player.rank}]` : ''} ${player.nickname}`, `https://visage.surgeplay.com/face/64/${player.uuid}`); - if (!status.online) { - embed.setDescription(`**Player is offline**\nLast login: \`${player.lastLoginTimestamp ? moment(player.lastLoginTimestamp).fromNow() : 'unknown'}\``); - return message.channel.send(embed); - } - embed.setDescription(`**Player is online for ${moment.duration(Date.now() - player.lastLogin).format('D[d] H[h] m[m] s[s]')}**\nGame: \`${status.game.toString()}\`\nMode: \`${status.mode}\`${status.map ? `\nMap: \`${status.map}\`` : ''}`); - message.channel.send(embed); - }).catch((e) => { - return message.reply(`Error: \`${e}\``); - }); - } -} -module.exports = StatusCommand; diff --git a/src/commands/Hypixel/verify.js b/src/commands/Hypixel/verify.js deleted file mode 100644 index 864287e..0000000 --- a/src/commands/Hypixel/verify.js +++ /dev/null @@ -1,67 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const User = require('../../structures/models/User'); -const hypixel = require('../../Hypixel'); -const { Errors } = require('hypixel-api-reborn'); - -class VerifyCommand extends Command { - constructor () { - super('verify', { - aliases: ['verify'], - description: { - content: 'Connect your hypixel account to discord.', - usage: 'verify [nickname]', - examples: [ - 'verify StavZDev', - 'verify lifelong' - ] - }, - channel: 'guild', - cooldown: 10000, - args: [ - { - id: 'nickname', - type: (message, phrase) => { - if (phrase.length > 16) return null; - return phrase; - } - } - ] - }); - } - - /** - * - * @param {Message} message - * @param {{nickname:string}} args - */ - async exec (message, args) { - const user = await User.findOne({ id: message.author.id }); - if (user && user.uuid) return message.channel.send({ embed: { color: this.client.color, description: `You already connected your hypixel account to discord.\nUUID: **${user.uuid}**` } }); - if (!args.nickname) { - const start = new MessageEmbed() - .setColor(this.client.color) - .setDescription(`Specify your nickname for verification. e.g. \`${this.handler.prefix}${this.id} StavZDev\`\n\n**You need connected Discord as social media on Hypixel Network.**`); - return message.channel.send(start); - } - hypixel.getPlayer(args.nickname).then(async (player) => { - if (!player.socialMedia.find((s) => s.id === 'DISCORD')) return message.reply('You haven\'t connected Discord to Hypixel Network.'); - if (player.socialMedia.find((s) => s.id === 'DISCORD').link !== message.author.tag) return message.reply('Connected Discord tag doesn\'t match your Discord tag.'); - const user1 = await User.findOne({ uuid: player.uuid }); - if (user1) return message.reply('This account already connected to another.'); - new User({ - id: message.author.id, - uuid: player.uuid - }).save(() => { - message.reply(`Player \`${player.nickname}\` connected to your account.`); - }); - }).catch((e) => { - if (e.message === Errors.PLAYER_DOES_NOT_EXIST) { - message.reply(`Player \`${args.nickname}\` does not exist.`); - } else { - message.reply(`Error occurred: \`${e}\``); - } - }); - } -} -module.exports = VerifyCommand; diff --git a/src/commands/Hypixel/wrapper.js b/src/commands/Hypixel/wrapper.js deleted file mode 100644 index 4dfd2af..0000000 --- a/src/commands/Hypixel/wrapper.js +++ /dev/null @@ -1,99 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const hypixel = require('../../Hypixel'); -const { MessageAttachment } = require('discord.js'); -class WrapperCommand extends Command { - constructor () { - super('wrapper', { - aliases: ['wrapper', 'w'], - description: { - content: 'Return programatically parsed results from the API', - usage: 'wrapper [endpoint] [args]', - examples: [ - 'w player StavZDev', - 'w online', - 'w guild player Sk1er', - 'w player StavZDev > uuid' - ] - }, - cooldown: 15000, - args: [ - { - id: 'method', - type: (message, phrase) => { - // eslint-disable-next-line prefer-const - // eslint-disable-next-line no-var - var { methodAlias } = this.client.utils.constants; - return methodAlias[phrase.toLowerCase()]; - } - }, - { - id: 'args', - match: 'text' - }, - { - id: 'noParse', - match: 'flag', - flag: '-raw' - } - ] - }); - } - - /** - * - * @param {Message} message - * @param {{method:string, args:string, noParse:boolean}} args - */ - async exec (message, args) { - const { methodAlias } = this.client.utils.constants; - if (!args.method) { - const embed = new MessageEmbed() - .setColor(this.client.color) - .setDescription(`I need to know which method to call.\n\nList of methods:\n${Object.keys(methodAlias).map((ma) => `${ma} => \`${methodAlias[ma]}\``).join('\n')}\n\nUsage: \`${this.handler.prefix}${this.id} player StavZDev\``); - return message.channel.send(embed); - } - args.args = args.args.split(/ +/); - const gte = (args.args.indexOf('>') + 1 || args.args.length + 1) - 1; - const query = args.args.slice(0, gte); - const path = args.args.slice(gte).join('').slice(1).split('>').filter((x) => x !== ''); - if (query.length > 2 && args.method !== 'getGuild') return message.channel.send('Too many arguments. Only 1 is allowed, except for getGuild'); - query.shift(); - let result = await hypixel[args.method](...query).catch((e) => { - message.channel.send(`Error occurred: \`${e}\``); - }); - // eslint-disable-next-line no-return-assign - path.forEach((element) => result = result ? result[element] : undefined); - if (result === undefined) return message.channel.send('API Result is undefined. Maybe it is due to an invalid path or simply because the result is undefined.'); - if (args.noParse && result) { - const date = require('moment')().format('MM-DD_HH-mm'); - const attachment = new MessageAttachment(Buffer.from(JSON.stringify(result, null, 4)), `result_${date}.json`); - return message.channel.send('API Result : ', { files: [attachment] }); - } - return message.channel.send(new MessageEmbed() - .addFields(this.format(result)) - .addField('\u200B', 'More results might be hidden') - .setColor(this.client.color) - .setTitle(args.method) - .setTimestamp() - ); - } - - /** - * Parses response from wrapper to an array of fields. - * @param {any} result Response from wrapper - */ - format (result) { - if (Array.isArray(result)) return this.format(result[0]); - if (typeof result === 'object') { - const obj = Object.getOwnPropertyNames(result).reduce((a, b) => { - if (Array.isArray(result[b])) a[b] = result[b].join(', ') || '[ ]'; - else a[b] = typeof result[b] === 'object' ? JSON.stringify(result[b]) : result[b]; - return a; - }, {}); - return Object.keys(obj).map((x) => ({ name: x, value: obj[x].toString().length > 1024 ? obj[x].toString().slice(0, 1024) : obj[x].toString() })).slice(0, 24); - } - return [{ name: 'Response', value: String(result) }]; - } -} -module.exports = WrapperCommand; diff --git a/src/commands/Info/lookup.js b/src/commands/Info/lookup.js deleted file mode 100644 index 93f65a1..0000000 --- a/src/commands/Info/lookup.js +++ /dev/null @@ -1,174 +0,0 @@ -/* eslint-disable camelcase */ -const { Command } = require('discord-akairo'); -const { Message } = require('discord.js'); -const moment = require('moment'); - -class LookupCommand extends Command { - constructor () { - super('lookup', { - aliases: ['lookup', 'user', 'userinfo'], - description: { - content: 'Shows information about you or specified user.', - usage: 'lookup [@User] [-c]', - examples: [ - 'lookup @StavZDev -c', - 'lookup User', - 'lookup 291568379423096832' - ] - }, - channel: 'guild', - args: [ - { - id: 'member', - match: 'content', - type: 'member', - default: (message) => message.member - }, - { - id: 'compact', - match: 'flag', - flag: '-c' - } - ] - }); - this.UIUtils = { - statuses: { - online: '<:online:662583105177255947>', - idle: '<:idle:662583084079644683>', - dnd: '<:dnd:662583053582860308>', - offline: '<:offline:662583096071159808>', - streaming: '<:streaming:662583074860695553>' - }, - statuses1: { - online: 'Online', - idle: 'Idle', - dnd: 'Do Not Disturb', - offline: 'Offline', - streaming: 'Streaming' - }, - status_types: { - PLAYING: 'Playing', - WATCHING: 'Watching', - LISTENING: 'Listening to', - CUSTOM_STATUS: 'CUSTOM_STATUS', - STREAMING: 'Streaming' - }, - flags: { - DISCORD_EMPLOYEE: '<:stuff:662583114995990529>', - DISCORD_PARTNER: '<:partner:720935302641745981>', - BUGHUNTER_LEVEL_1: '<:bughunter:720913706531291156>', - BUGHUNTER_LEVEL_2: '<:bughunter:720913706531291156>', - HYPESQUAD_EVENTS: '<:hypesquadevents:720913735421526087>', - HOUSE_BRAVERY: '<:hsbravery:720913591879991317>', - HOUSE_BRILLIANCE: '<:hsbrilliance:720913633919369256>', - HOUSE_BALANCE: '<:hsbalance:720913643310415913>', - EARLY_SUPPORTER: '<:earlysupporter:720913652991131678>', - TEAM_USER: 'Team User', - SYSTEM: 'System', - VERIFIED_BOT: '<:verifiedbotbadge:720914033800249404>', - VERIFIED_DEVELOPER: '<:botdeveloper:720908077523664936>' - } - }; - } - - /** - * @param {Message} message - * @param {} args - */ - async exec (message, args) { - const status_types = this.UIUtils.status_types; - const statuses = this.UIUtils.statuses1; - const roles = this.getMemberRoles(args.member, message.guild.id); - const status = this.getStatus(args.member.user); - const statusEmoji = this.UIUtils.statuses[status]; - const statusType = this.getStatusType(args.member.user, status_types); - const statusName = statuses[status]; - const flags = this.getUserFlags(args.member.user); - const activities = args.member.presence.activities; - if (args.compact) { - const embed = this.client.util.embed() - .setColor(args.member.displayHexColor === '#000000' ? this.client.color : args.member.displayHexColor) - .setDescription([`**${args.member.user.tag}**`, `\n${args.member.presence.activities[0] ? `${statusEmoji} ${statusType === 'CUSTOM_STATUS' ? '' : status_types[args.member.presence.activities[0].type]} ${statusType === 'CUSTOM_STATUS' ? args.member.presence.activities[0].state == null ? `**${statusName}**` : `**${args.member.presence.activities[0].state}**` : args.member.presence.activities[0].type === 'LISTENING' && args.member.presence.activities[0].syncID ? `**[${args.member.presence.activities[0].details}](https://open.spotify.com/track/${args.member.presence.activities[0].syncID})** by **${args.member.presence.activities[0].state}**` : `**${args.member.presence.activities[0].name}**`}` : `${statusEmoji} **${statusName}**`}`]) - .addField('Registration date', `${moment(args.member.user.createdAt).calendar()} (\`${moment(args.member.user.createdAt).fromNow()}\`)`, true) - .addField('Join Date', `${moment(args.member.joinedAt).calendar()} (\`${moment(args.member.joinedAt).fromNow()}\`)`, true) - .setFooter(`ID: ${args.member.id}`) - .setThumbnail(args.member.user.avatarURL({ dynamic: true })); - message.channel.send(embed); - return; - } - const embed = this.client.util.embed() - .setColor(args.member.displayHexColor === '#000000' ? this.client.color : args.member.displayHexColor) - .setDescription([`**${args.member.user.tag}**`, `\n${args.member.presence.activities[0] ? `${statusEmoji} ${statusType === 'CUSTOM_STATUS' ? '' : status_types[args.member.presence.activities[0].type]} ${statusType === 'CUSTOM_STATUS' ? args.member.presence.activities[0].state == null ? `**${statusName}**` : `**${args.member.presence.activities[0].state}**` : args.member.presence.activities[0].type === 'LISTENING' && args.member.presence.activities[0].syncID ? `**[${args.member.presence.activities[0].details}](https://open.spotify.com/track/${args.member.presence.activities[0].syncID})** by **${args.member.presence.activities[0].state}**` : `**${args.member.presence.activities[0].name}**`}` : `${statusEmoji} **${statusName}**`}`]); - if (activities.length && activities.length > 1) { - activities.splice(0, 1); - embed.addField('Activities', `${activities.map((a) => `• ${a.type === 'CUSTOM_STATUS' ? '' : status_types[a.type]} ${a.type === 'CUSTOM_STATUS' && a.state === null ? '' : a.type === 'LISTENING' && a.syncID ? `**${`[${a.details}](https://open.spotify.com/track/${a.syncID})`}** by **${a.state}**` : a.type === 'CUSTOM_STATUS' ? `**${a.state}**` : `**${a.name}**`}`).join('\n')}`); - } - embed.addField('Join Position', this.joinPosition(args.member.id, message.guild), true) - .addField('\u200B', '\u200B', true) - .addField('\u200B', '\u200B', true) - .addField('Registration date', `${moment(args.member.user.createdAt).calendar()} (\`${moment(args.member.user.createdAt).fromNow()}\`)`, true) - .addField('Join Date', `${moment(args.member.joinedAt).calendar()} (\`${moment(args.member.joinedAt).fromNow()}\`)`, true) - .addField(`Roles [${roles.size == null ? '0' : roles.size}]`, `${roles.size === 0 ? '`None`' : `${roles.roles.join(', ')}`}`); - if (flags) { - embed.addField('User Badges', flags.join('')); - } - embed.setFooter(`ID: ${args.member.id}`) - .setThumbnail(args.member.user.avatarURL({ dynamic: true })); - message.channel.send(embed); - } - - // eslint-disable-next-line camelcase - getStatusType (user, status_types) { - if (user.presence.activities[0] && user.presence.status !== 'offline') { - return status_types[user.presence.activities[0].type]; - } - return null; - } - - getStatus (user) { - if (user.presence.activities[0] && user.presence.activities[0].type === 'STREAMING') { - return 'streaming'; - } - return user.presence.status; - } - - getMemberRoles (member, guildId) { - const first = member.roles.cache.size - 1; - let roles = member.roles.cache.filter((r) => r.id !== guildId).map((r) => r).sort((b, a) => a.position - b.position); - if (!roles.length) { - return { - size: 0, - roles: 'None' - }; - } - if (roles.length > 10) { - const rol = roles.length - 10; - roles = roles.slice(0, 10); - roles.push(`...${rol} more`); - return { - size: first, - roles - }; - } - return { - size: first, - roles - }; - } - - getUserFlags (member) { - if (!member.flags.bitfield) return null; - return member.flags.toArray().map((flag) => this.UIUtils.flags[flag]); - } - - joinPosition (id, guild) { - if (!id) return; - if (!guild) return; - const arr = guild.members.cache.array(); - arr.sort((a, b) => a.joinedAt - b.joinedAt); - for (let index = 0; index < arr.length; index++) { - if (arr[index].id === id) return index + 1; - } - } -} -module.exports = LookupCommand; diff --git a/src/commands/Info/stats.js b/src/commands/Info/stats.js deleted file mode 100644 index 497bb2a..0000000 --- a/src/commands/Info/stats.js +++ /dev/null @@ -1,45 +0,0 @@ -const Akairo = require('discord-akairo'); -const { Message, MessageEmbed, version } = require('discord.js'); -const fetch = require('node-fetch'); -const ms = require('ms'); -const moment = require('moment'); - -class StatsCommand extends Akairo.Command { - constructor () { - super('stats', { - aliases: ['stats'], - description: { - content: 'Shows bot\'s and Hypixel API • Reborn stats', - usage: 'stats', - examples: [ - 'stats' - ] - } - }); - } - - /** - * - * @param {Message} message - */ - async exec (message) { - const downloadsFetch = await fetch('https://api.npmjs.org/downloads/range/2013-08-21:2100-08-21/hypixel-api-reborn').then((r) => r.json()); - let downloads = 0; - for (const item of downloadsFetch.downloads) downloads += item.downloads; - const starsFetch = await fetch('https://api.github.com/repos/hypixel-api-reborn/hypixel-api-reborn').then((r) => r.json()); - const stars = starsFetch.stargazers_count; - const contributorsFetch = await fetch('https://api.github.com/repos/hypixel-api-reborn/hypixel-api-reborn/stats/contributors').then((r) => r.json()); - const contributors = contributorsFetch.length; - const akairoVersion = Akairo.version; - const embed = new MessageEmbed() - .setColor(this.client.color) - .addField('Bot', `Ping: \`${this.client.ws.ping}ms\`\nUptime: \`${ms(this.client.uptime)}\`\nLast reload: \`${moment(this.client.lastReload).fromNow()}\``, true) - .addField('Hypixel API • Reborn', `Downloads: \`${downloads.toLocaleString()}\`\nStars: \`${stars.toLocaleString()}\`\nContributors: \`${contributors.toLocaleString()}\``, true) - .addField('\u200B', '\u200B', true) - .addField('\u200B', `GitHub: [click here](https://github.com/hypixel-api-reborn/our-awesome-bot)\nDiscord.js: \`v${version}\`\nDiscord-akairo: \`v${akairoVersion}\``, true) - .addField('\u200B', 'GitHub: [click here](https://github.com/hypixel-api-reborn/hypixel-api-reborn)\nNPM: [click here](https://www.npmjs.com/package/hypixel-api-reborn)\nDocs: [click here](https://hypixel-api-reborn.stavzdev.xyz)', true) - .addField('\u200B', '\u200B', true); - message.channel.send(embed); - } -} -module.exports = StatsCommand; diff --git a/src/commands/Utils/docs.js b/src/commands/Utils/docs.js deleted file mode 100644 index 8784a25..0000000 --- a/src/commands/Utils/docs.js +++ /dev/null @@ -1,43 +0,0 @@ -const { Command } = require('discord-akairo'); -const { MessageEmbed, Message } = require('discord.js'); -const fetch = require('node-fetch'); - -class DocsCommand extends Command { - constructor () { - super('docs', { - description: { - content: 'Searches Hypixel API • Reborn docs for your query', - usage: 'docs [query]', - examples: [ - 'docs Client', - 'docs Client#getPlayer', - 'docs Client.getGuild' - ] - }, - aliases: ['docs'], - args: [ - { - id: 'query' - } - ] - }); - } - - /** - * - * @param {Message} message - * @param {{query: string[]}} args - */ - async exec (message, args) { - const master = await fetch('https://raw.githubusercontent.com/hypixel-api-reborn/hypixel-api-reborn/docs/master.json').then((r) => r.json()); - const docs = new (require('../../../docs-gen'))('https://raw.githubusercontent.com/hypixel-api-reborn/hypixel-api-reborn/docs/master.json', master); - if (!args.query) { - const embed = new MessageEmbed() - .setColor(this.client.color) - .setDescription(':eyes: Hypixel API • Reborn documentation is [here](https://hypixel-api-reborn.github.io).'); - return message.channel.send(embed); - } - message.channel.send({ embed: docs.resolveEmbed(args.query) }); - } -} -module.exports = DocsCommand; diff --git a/src/commands/Utils/eval.js b/src/commands/Utils/eval.js deleted file mode 100644 index 6a1691e..0000000 --- a/src/commands/Utils/eval.js +++ /dev/null @@ -1,65 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const { inspect } = require('util'); - -class EvalCommand extends Command { - constructor () { - super('eval', { - aliases: ['eval'], - description: { - content: 'Evaluates code', - usage: 'eval [code] [-noeyes]', - examples: [ - 'eval process.exit(1);' - ] - }, - ownerOnly: true, - args: [ - { - id: 'code', - match: 'text' - }, - { - id: 'noeyes', - match: 'flag', - flag: '-noeyes' - } - ] - }); - } - - /** - * @param {Message} message - * @param {{code:string,noeyes:boolean}} args - */ - async exec (message, args) { - if (!args.code) return message.reply('I need code.'); - const embed = new MessageEmbed() - .setColor(this.client.color); - const start = Date.now(); - if (args.code.includes('await')) args.code = `(async () => { ${args.code} })()`; - let result; - try { - // eslint-disable-next-line no-eval - result = await eval(args.code); - } catch (e) { - result = e; - } - if (!args.noeyes) { - // eslint-disable-next-line camelcase - const o_o = RegExp(`${process.env.DISCORD_TOKEN}|${process.env.MONGODB_URI}|${process.env.HYPIXEL_KEY}`); - result = inspect(result, { depth: 1 }).replace(o_o, '[👀]'); - } - const executed = ((Date.now() - start) / 1000).toFixed(2); - if (result.length > 1000) { - embed.addField('📤 Output', `\`\`\`js\n${result.slice(0, 1000) + '\n...'}\n\`\`\``) - .setFooter(`Executed in ${executed}s`); - message.channel.send(embed); - } else { - embed.addField('📤 Output', `\`\`\`js\n${result}\n\`\`\``) - .setFooter(`Executed in ${executed}s`); - message.channel.send(embed); - } - } -} -module.exports = EvalCommand; diff --git a/src/commands/Utils/help.js b/src/commands/Utils/help.js deleted file mode 100644 index 867821c..0000000 --- a/src/commands/Utils/help.js +++ /dev/null @@ -1,52 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); - -class HelpCommand extends Command { - constructor () { - super('help', { - aliases: ['help', 'commands'], - description: { - content: 'List of commands', - usage: 'help [command]', - examples: [ - 'help player', - 'help lookup' - ] - }, - args: [ - { - id: 'command', - type: 'commandAlias', - default: null - } - ] - }); - } - - /** - * @param {Message} message - * @param {{command:Command|null}} args - */ - async exec (message, args) { - const list = new MessageEmbed() - .setColor(this.client.color); - if (!args.command) { - for (const category of this.handler.categories.values()) { - if (category.id) list.addField(`• ${category.id}`, `${category.filter((cmd) => !cmd.ownerOnly).map((cmd) => `\`${cmd.aliases[0]}\``).join(', ')}`); - } - return message.channel.send(list); - } - const command = new MessageEmbed() - .setColor(this.client.color) - .addField('Name', `\`${this.handler.prefix}${args.command.aliases[0]}\``, true) - .addField('Category', `\`${args.command.categoryID}\``, true) - .addField('\u200B', '\u200B', true); - if (args.command.description) { - command.addField('Description', `${args.command.description ? args.command.description.content : 'None'}`) - .addField('Usage', `\`${this.handler.prefix}${args.command.description.usage}\``) - .addField('Examples', `${args.command.description.examples.map((e) => `\`${this.handler.prefix}${e}\``).join('\n')}`); - } - message.channel.send(command); - } -} -module.exports = HelpCommand; diff --git a/src/commands/Utils/ping.js b/src/commands/Utils/ping.js deleted file mode 100644 index 62b1d2e..0000000 --- a/src/commands/Utils/ping.js +++ /dev/null @@ -1,29 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); - -class PingCommand extends Command { - constructor () { - super('ping', { - aliases: ['ping', 'latency'], - description: { - content: 'Shows bot\'s latency', - usage: 'ping', - examples: [ - 'ping' - ] - } - }); - } - - /** - * - * @param {Message} message - */ - async exec (message) { - const embed = new MessageEmbed() - .setColor(this.client.color) - .setDescription(`🏓 Discord: \`${this.client.ws.ping}ms\``); - message.channel.send(embed); - } -} -module.exports = PingCommand; diff --git a/src/commands/Utils/reload.js b/src/commands/Utils/reload.js deleted file mode 100644 index 481336f..0000000 --- a/src/commands/Utils/reload.js +++ /dev/null @@ -1,46 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); - -class ReloadCommand extends Command { - constructor () { - super('reload', { - aliases: ['reload', 'r'], - description: { - content: 'Command reloader', - usage: 'reload [command] [-a]', - examples: [ - 'reload -a', - 'reload player' - ] - }, - ownerOnly: true, - args: [ - { - id: 'command', - type: 'commandAlias' - }, - { - id: 'all', - match: 'flag', - flag: '-a' - } - ] - }); - } - - /** - * - * @param {Message} message - * @param {{command:Command,all:boolean}} args - */ - async exec (message, args) { - if (args.all) { - this.client.commandHandler.reloadAll(); - return message.channel.send({ embed: { color: this.client.color, description: 'All commands are reloaded' } }); - } - if (!args.command) return message.reply('Specify a command.'); - this.client.commandHandler.reload(args.command); - message.channel.send({ embed: { color: this.client.color, description: `Command \`${args.command}\` successfully reloaded` } }); - } -} -module.exports = ReloadCommand; diff --git a/src/commands/Utils/tag.js b/src/commands/Utils/tag.js deleted file mode 100644 index afdf47f..0000000 --- a/src/commands/Utils/tag.js +++ /dev/null @@ -1,107 +0,0 @@ -const { Command } = require('discord-akairo'); -const { Message, MessageEmbed } = require('discord.js'); -const Tag = require('../../structures/models/Tag'); - -class TagCommand extends Command { - constructor () { - super('tag', { - aliases: ['tag'], - description: { - content: 'Tags', - usage: 'tag [tag]', - examples: [ - 'tag links' - ] - }, - args: [ - { - id: 'content', - match: 'content' - } - ] - }); - } - - /** - * - * @param {Message} message - * @param {{content: string}} args1 - */ - async exec (message, args1) { - if (!args1.content) { - const tags = await Tag.find(); - let description = '**List of tags:**\n'; - for (let i = 0; i < tags.length; i++) { - description += `${i + 1}. \`${tags[i].title}\`\n`; - } - const random = Math.floor(Math.random() * (tags.length - 1)); - description += `\nUsage: \`${this.client.commandHandler.prefix}${this.id} ${tags[random].title}\``; - const embed = new MessageEmbed() - .setDescription(description) - .setColor(this.client.color); - return message.channel.send(embed); - } - const args = args1.content.trim().split(' '); - switch (args[0].toLowerCase()) { - case 'add': { - if (!this.client.isOwner(message.author)) return message.reply(':eyes: You are lier'); - if (!args[1]) return message.reply('I need tag title. e.g. `guideline-1`.'); - if (!args.slice(2).join(' ')) return message.reply('I need tag description. e.g. `Never gonna give you up, never gonna let you down`.'); - const newTag = new Tag({ - title: args[1].toLowerCase(), - description: args.slice(2).join(' ') - }); - newTag.save().then(() => { - message.reply(`Tag **${args[1]}** created! Use: \`${this.client.commandHandler.prefix}${this.id} ${args[1]}\``); - }).catch((e) => { - this.client.logger.error(e); - }); - break; - } - case 'edit': { - if (!this.client.isOwner(message.author)) return message.reply(':eyes: You are lier'); - if (!args[1]) return message.reply('I need tag title. e.g. `guideline-1`.'); - const tag = await Tag.findOne({ title: args[1].toLowerCase() }); - if (!tag) return message.reply(`Cannot find tag ${args[1]}`); - if (!args.slice(2).join(' ')) return message.reply('I need tag description to edit. e.g. `Never gonna give you up, never gonna let you down`.'); - tag.description = args.slice(2).join(' '); - tag.save().then(() => { - message.reply(`Tag **${args[1]}** edited! Use: \`${this.client.commandHandler.prefix}${this.id} ${args[1]}\``); - }).catch((e) => { - this.client.logger.error(e); - }); - break; - } - case 'remove': { - if (!this.client.isOwner(message.author)) return message.reply(':eyes: You are lier'); - if (!args[1]) return message.reply('I need tag title. e.g. `guideline-1`.'); - const tag = await Tag.findOne({ title: args[1].toLowerCase() }); - if (!tag) return message.reply(`Cannot find tag ${args[1]}`); - tag.delete(); - message.reply(`Tag **${args[1]}** deleted!`); - break; - } - case 'list': { - const tags = await Tag.find(); - let description = '**List of tags:**\n'; - for (let i = 0; i < tags.length; i++) { - description += `${i + 1}. \`${tags[i].title}\`\n`; - } - const random = Math.floor(Math.random() * (tags.length - 1)); - description += `\nUsage: \`${this.client.commandHandler.prefix}${this.id} ${tags[random].title}\``; - const embed = new MessageEmbed() - .setDescription(description) - .setColor(this.client.color); - message.channel.send(embed); - break; - } - default: { - const tag = await Tag.findOne({ title: args[0].toLowerCase() }); - if (!tag) return message.reply(`Cannot find tag \`${args[0].replace(/`/gm, '')}\``); - message.channel.send(`${tag.description}`); - break; - } - } - } -} -module.exports = TagCommand; diff --git a/src/commands/Utils/uuid.js b/src/commands/Utils/uuid.js deleted file mode 100644 index 7d24f78..0000000 --- a/src/commands/Utils/uuid.js +++ /dev/null @@ -1,46 +0,0 @@ -const { Command, Util } = require('discord-akairo'); -const { Message } = require('discord.js'); -const hypixel = require('../../Hypixel'); - -class UuidCommand extends Command { - constructor () { - super('uuid', { - aliases: ['uuid'], - description: { - content: 'Returns player\'s UUID', - usage: 'uuid [nickname|uuid|@User]', - examples: [ - 'uuid StavZDev' - ] - }, - args: [ - { - id: 'player', - type: (message, phrase) => { - if (phrase.match(/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/gmi) || phrase.match(/^[a-z0-9]{32}/gmi)) { - return phrase; - } - if (phrase.length > 16) return null; - return phrase; - } - } - ] - }); - } - - /** - * @param {Message} message - * @param {{player:string}} args - */ - async exec (message, args) { - const user = await this.client.getUser(message, args); - if (!user) return message.reply('I need a player nickname'); - args.player = user; - hypixel.getPlayer(args.player).then((player) => { - message.channel.send({ embed: { description: `${player.nickname}'s UUID is \`${player.uuid}\`.`, color: this.client.color } }); - }).catch((e) => { - message.reply(`Error: \`${e}\``); - }); - } -} -module.exports = UuidCommand; diff --git a/src/commands/docs.ts b/src/commands/docs.ts new file mode 100644 index 0000000..d2f25b0 --- /dev/null +++ b/src/commands/docs.ts @@ -0,0 +1,47 @@ +import { ChatInputCommandInteraction, SlashCommandBuilder, EmbedBuilder } from 'discord.js'; +import axios from 'axios'; + +export const data = new SlashCommandBuilder() + .setName('docs') + .setDescription('Shows info about the bot') + .addStringOption((option) => + option.setName('query').setDescription('The query to search for').setRequired(false) + ); + +export const execute = async (interaction: ChatInputCommandInteraction) => { + try { + const query = interaction.options.getString('query') || null; + if (!query) { + const embed = new EmbedBuilder() + .setTitle('Hypixel API • Reborn Documentation') + .setDescription( + 'The documentation for Hypixel API • Reborn can be found [here](https://hypixel-api-reborn.github.io).' + ); + return await interaction.reply({ embeds: [embed] }); + } else { + const master = await axios.get( + 'https://raw.githubusercontent.com/hypixel-api-reborn/hypixel-api-reborn/docs/master.json' + ); + // eslint-disable-next-line @typescript-eslint/no-var-requires + const docs = new (require('../../docs-gen'))( + 'https://raw.githubusercontent.com/hypixel-api-reborn/hypixel-api-reborn/docs/master.json', + master.data + ); + return await interaction.reply({ embeds: [docs.resolveEmbed(query)] }); + } + } catch (error) { + // eslint-disable-next-line no-console + console.log(error); + if (interaction.replied || interaction.deferred) { + return await interaction.followUp({ + content: 'Something went wrong. Please try again later.', + ephemeral: true, + }); + } else { + return await interaction.reply({ + content: 'Something went wrong. Please try again later.', + ephemeral: true, + }); + } + } +}; diff --git a/src/events/discord/guildMemberAdd.js b/src/events/discord/guildMemberAdd.js deleted file mode 100644 index 4e8ee4d..0000000 --- a/src/events/discord/guildMemberAdd.js +++ /dev/null @@ -1,24 +0,0 @@ -const { Listener } = require('discord-akairo'); -const { GuildMember } = require('discord.js'); - -class GuildMemberAddListener extends Listener { - constructor () { - super('guildMemberAdd', { - emitter: 'client', - event: 'guildMemberAdd' - }); - } - - /** - * - * @param {GuildMember} member - */ - exec (member) { - if (member.user.bot) { - member.roles.add('660418146133606430'); // Bot - } else { - member.roles.add('671649063808008192'); // User - } - } -} -module.exports = GuildMemberAddListener; diff --git a/src/events/discord/raw.js b/src/events/discord/raw.js deleted file mode 100644 index a14271d..0000000 --- a/src/events/discord/raw.js +++ /dev/null @@ -1,33 +0,0 @@ -const { Listener } = require('discord-akairo'); - -class RawListener extends Listener { - constructor () { - super('raw', { - emitter: 'client', - event: 'raw' - }); - } - - async exec (r) { - if (r.t === 'MESSAGE_REACTION_ADD' || r.t === 'MESSAGE_REACTION_REMOVE') { - if (r.d.message_id === '748872989935796264') { - if (r.d.emoji.name === '❤️') { - const guild = await this.client.guilds.fetch('660416184252104705', true, true); - const member = await guild.members.fetch({ user: r.d.user_id, force: true }); - const subRole = await guild.roles.fetch('748872097484505148', true, true); - switch (r.t) { - case 'MESSAGE_REACTION_ADD': { - member.roles.add(subRole); - break; - } - case 'MESSAGE_REACTION_REMOVE': { - member.roles.remove(subRole); - break; - } - } - } - } - } - } -} -module.exports = RawListener; diff --git a/src/events/discord/ready.js b/src/events/discord/ready.js deleted file mode 100644 index 3e6d8c2..0000000 --- a/src/events/discord/ready.js +++ /dev/null @@ -1,19 +0,0 @@ -const { Listener } = require('discord-akairo'); - -class ReadyListener extends Listener { - constructor () { - super('ready', { - emitter: 'client', - event: 'ready' - }); - } - - async exec () { - this.client.lastReload = Date.now(); - const guild = await this.client.guilds.fetch('660416184252104705', true, true); - const members = await guild.members.fetch({ force: true }); - members.forEach(async (m) => await m.loadCache()); - this.client.user.setActivity({ name: '!help', type: 'LISTENING' }); - } -} -module.exports = ReadyListener; diff --git a/src/events/interactionCreate.ts b/src/events/interactionCreate.ts new file mode 100644 index 0000000..4833d33 --- /dev/null +++ b/src/events/interactionCreate.ts @@ -0,0 +1,69 @@ +/* eslint-disable no-console */ +import { TextChannel, Interaction, Events, Guild } from 'discord.js'; +import { eventMessage } from '../functions/logger'; + +export const name = Events.InteractionCreate; +export const execute = async (interaction: Interaction) => { + try { + if (interaction.isChatInputCommand()) { + const command = interaction.client.commands.get(interaction.commandName); + if (!command) return; + try { + try { + let commandString = interaction.commandName; + if (interaction.options) { + for (const option of interaction.options.data) { + commandString += ` ${option.name}:`; + commandString += `${option.autocomplete ? option.autocomplete : ''}`; + commandString += `${option.value ? option.value : ''}`; + if (option.options) { + for (const subOption of option.options) { + commandString += ` ${subOption.name}:`; + commandString += subOption.autocomplete ? subOption.autocomplete : ''; + commandString += subOption.value ? subOption.value : ''; + if (subOption.options) { + for (const subSubOption of subOption.options) { + commandString += ` ${subSubOption.name}:`; + commandString += subSubOption.autocomplete ? subSubOption.autocomplete : ''; + commandString += subSubOption.value ? subSubOption.value : ''; + commandString += subSubOption.user ? subSubOption.user : ''; + commandString += subSubOption.member ? subSubOption.member : ''; + commandString += subSubOption.channel ? subSubOption.channel : ''; + commandString += subSubOption.role ? subSubOption.role : ''; + commandString += subSubOption.attachment ? subSubOption.attachment : ''; + } + commandString += ` ${subOption.user ? subOption.user : ''}`; + commandString += ` ${subOption.member ? subOption.member : ''}`; + commandString += ` ${subOption.channel ? subOption.channel : ''}`; + commandString += ` ${subOption.role ? subOption.role : ''}`; + commandString += ` ${subOption.attachment ? subOption.attachment : ''}`; + } + commandString += subOption.user ? subOption.user : ''; + commandString += subOption.member ? subOption.member : ''; + commandString += subOption.channel ? subOption.channel : ''; + commandString += subOption.role ? subOption.role : ''; + commandString += subOption.attachment ? subOption.attachment : ''; + } + } + commandString += option.user ? option.user : ''; + commandString += option.member ? option.member : ''; + commandString += option.channel ? option.channel : ''; + commandString += option.role ? option.role : ''; + commandString += option.attachment ? option.attachment : ''; + } + } + eventMessage( + `Interaction Event trigged by ${interaction.user.discriminator == '0' ? interaction.user.username : `${interaction.user.username}#${interaction.user.discriminator}`} (${interaction.user.id}) ran command ${commandString} in ${(interaction.guild as Guild).id} in ${(interaction.channel as TextChannel).id}` + ); + } catch (error: any) { + console.log(error); + } + await command.execute(interaction); + } catch (error: any) { + console.log(error); + } + } + } catch (error: any) { + console.log(error); + } +}; diff --git a/src/events/ready.ts b/src/events/ready.ts new file mode 100644 index 0000000..2e7fa5b --- /dev/null +++ b/src/events/ready.ts @@ -0,0 +1,12 @@ +import { errorMessage, eventMessage } from '../functions/logger'; +import { deployEvents } from '../functions/deployEvents'; +import { Client } from 'discord.js'; + +export const execute = (client: Client) => { + try { + eventMessage(`Logged in as ${client.user?.username} (${client.user?.id})!`); + deployEvents(client); + } catch (error: any) { + errorMessage(error); + } +}; diff --git a/src/functions/deployCommands.ts b/src/functions/deployCommands.ts new file mode 100644 index 0000000..8a8834e --- /dev/null +++ b/src/functions/deployCommands.ts @@ -0,0 +1,32 @@ +import { Client, Collection, REST, Routes } from 'discord.js'; +import { eventMessage, errorMessage } from './logger'; +import { SlashCommand } from '../types/main'; +import { token } from '../../config.json'; +import { readdirSync } from 'fs'; + +export const deployCommands = async (client: Client) => { + try { + client.commands = new Collection(); + const commandFiles = readdirSync('./src/commands'); + const commands = []; + for (const file of commandFiles) { + const command = await import(`../commands/${file}`); + commands.push(command.data.toJSON()); + if (command.data.name) { + client.commands.set(command.data.name, command); + } + } + const rest = new REST({ version: '10' }).setToken(token); + (async () => { + try { + const clientID = Buffer.from(token.split('.')[0], 'base64').toString('ascii'); + await rest.put(Routes.applicationCommands(clientID), { body: commands }); + eventMessage(`Successfully reloaded ${commands.length} application command(s).`); + } catch (error: any) { + errorMessage(error); + } + })(); + } catch (error: any) { + errorMessage(error); + } +}; diff --git a/src/functions/deployEvents.ts b/src/functions/deployEvents.ts new file mode 100644 index 0000000..f1c2048 --- /dev/null +++ b/src/functions/deployEvents.ts @@ -0,0 +1,23 @@ +import { errorMessage, eventMessage } from './logger'; +import { Client } from 'discord.js'; +import { readdirSync } from 'fs'; + +export const deployEvents = async (client: Client) => { + try { + const eventFiles = readdirSync('./src/events/'); + let count = eventFiles.length; + for (const file of eventFiles) { + if (file.toLowerCase().includes('disabled')) { + count--; + continue; + } + const event = await import(`../events/${file}`); + const name = file.split('.')[0]; + client.on(name, event.execute.bind(null)); + eventMessage(`Successfully loaded ${name}`); + } + eventMessage(`Successfully loaded ${count} event(s).`); + } catch (error: any) { + errorMessage(error); + } +}; diff --git a/src/functions/helper.ts b/src/functions/helper.ts new file mode 100644 index 0000000..b07f11e --- /dev/null +++ b/src/functions/helper.ts @@ -0,0 +1,109 @@ +import { other } from '../../config.json'; +import { errorMessage } from './logger'; + +export const generateID = (length: number) => { + try { + let result = ''; + const characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890', + charactersLength = characters.length; + for (let i = 0; i < length; i++) { + result += characters.charAt(Math.floor(Math.random() * charactersLength)); + } + return result; + } catch (error: any) { + errorMessage(error); + } +}; + +export const getCurrentTime = () => { + try { + if (other.timezone === null) { + return new Date().toLocaleString('en-US', { + hour: 'numeric', + minute: 'numeric', + hour12: true, + }); + } else { + return new Date().toLocaleString('en-US', { + hour: 'numeric', + minute: 'numeric', + hour12: true, + timeZone: other.timezone, + }); + } + } catch (error: any) { + const errorId = generateID(other.errorIdLength); + errorMessage(`Error Id - ${errorId}`); + errorMessage(error); + return error; + } +}; + +export const toFixed = (num: any, fixed: number) => { + try { + if (fixed === undefined) fixed = 0; + const response = new RegExp('^-?\\d+(?:\\.\\d{0,' + (fixed || -1) + '})?'); + const result = num.toString().match(response)[0]; + const parts = result.split('.'); + if (parts.length === 1 && fixed > 0) { + parts.push('0'.repeat(fixed)); + } else if (parts.length === 2 && parts[1].length < fixed) { + parts[1] = parts[1] + '0'.repeat(fixed - parts[1].length); + } + return parts.join('.'); + } catch (error: any) { + const errorId = generateID(other.errorIdLength); + errorMessage(`Error Id - ${errorId}`); + errorMessage(error); + return error; + } +}; + +export const cleanMessage = (message: any) => { + return message.toString().replaceAll('Error: ', '').replaceAll('`', '').replaceAll('ez', 'easy'); +}; + +export const convertChannelType = (type: number) => { + if (type === 0) { + return 'GuildText'; + } else if (type === 1) { + return 'DM'; + } else if (type === 2) { + return 'GuildVoice'; + } else if (type === 3) { + return 'GroupDM'; + } else if (type === 4) { + return 'GuildCategory'; + } else if (type === 5) { + return 'GuildAnnouncement'; + } else if (type === 10) { + return 'AnnouncementThread'; + } else if (type === 11) { + return 'PublicThread'; + } else if (type === 12) { + return 'PrivateThread'; + } else if (type === 13) { + return 'GuildStageVoice'; + } else if (type === 14) { + return 'GuildDirectory'; + } else if (type === 15) { + return 'GuildForum'; + } else if (type === 16) { + return 'GuildMedia'; + } else { + return 'Unknown'; + } +}; + +export const removeFromArray = (array: any, id: string) => { + try { + const index = array.findIndex((obj: any) => obj.user === id); + if (index > -1) { + array.splice(index, 1); + return array; + } + } catch (error: any) { + errorMessage(error); + return error; + } +}; diff --git a/src/functions/logger.ts b/src/functions/logger.ts new file mode 100644 index 0000000..24eb25e --- /dev/null +++ b/src/functions/logger.ts @@ -0,0 +1,134 @@ +// Credits https://github.com/DuckySoLucky/hypixel-discord-chat-bridge/blob/f8a8a8e1e1c469127b8fcd03e6553b43f22b8250/src/Logger.js (Edited) +const customLevels = { cache: 0, event: 1, error: 2, script: 3, warn: 4, other: 5, max: 6 }; +import { createLogger, format, transports } from 'winston'; + +const timezone = () => { + return new Date().toLocaleString('en-US', { + year: 'numeric', + month: 'numeric', + day: 'numeric', + hour: 'numeric', + minute: 'numeric', + second: 'numeric', + hour12: false, + }); +}; + +const cacheTransport = new transports.File({ level: 'cache', filename: './logs/cache.log' }); +const eventTransport = new transports.File({ level: 'event', filename: './logs/event.log' }); +const errorTransport = new transports.File({ level: 'error', filename: './logs/error.log' }); +const scriptTransport = new transports.File({ level: 'script', filename: './logs/script.log' }); +const warnTransport = new transports.File({ level: 'warn', filename: './logs/warn.log' }); +const otherTransport = new transports.File({ level: 'other', filename: './logs/other.log' }); +const combinedTransport = new transports.File({ level: 'max', filename: './logs/combined.log' }); +const consoleTransport = new transports.Console({ level: 'max' }); + +const cacheLogger = createLogger({ + level: 'cache', + levels: customLevels, + format: format.combine( + format.timestamp({ format: timezone }), + format.printf(({ timestamp, level, message }) => { + return `[${timestamp}] ${level.toUpperCase()} > ${message}`; + }) + ), + transports: [cacheTransport, combinedTransport, consoleTransport], +}); + +const eventLogger = createLogger({ + level: 'event', + levels: customLevels, + format: format.combine( + format.timestamp({ format: timezone }), + format.printf(({ timestamp, level, message }) => { + return `[${timestamp}] ${level.toUpperCase()} > ${message}`; + }) + ), + transports: [eventTransport, combinedTransport, consoleTransport], +}); + +const errorLogger = createLogger({ + level: 'error', + levels: customLevels, + format: format.combine( + format.timestamp({ format: timezone }), + format.printf(({ timestamp, level, message }) => { + return `[${timestamp}] ${level.toUpperCase()} > ${message}`; + }) + ), + transports: [errorTransport, combinedTransport, consoleTransport], +}); + +const scriptLogger = createLogger({ + level: 'script', + levels: customLevels, + format: format.combine( + format.timestamp({ format: timezone }), + format.printf(({ timestamp, level, message }) => { + return `[${timestamp}] ${level.toUpperCase()} > ${message}`; + }) + ), + transports: [scriptTransport, combinedTransport, consoleTransport], +}); + +const warnLogger = createLogger({ + level: 'warn', + levels: customLevels, + format: format.combine( + format.timestamp({ format: timezone }), + format.printf(({ timestamp, level, message }) => { + return `[${timestamp}] ${level.toUpperCase()} > ${message}`; + }) + ), + transports: [warnTransport, combinedTransport, consoleTransport], +}); + +const otherLogger = createLogger({ + level: 'other', + levels: customLevels, + format: format.combine( + format.timestamp({ format: timezone }), + format.printf(({ timestamp, level, message }) => { + return `[${timestamp}] ${level.toUpperCase()} > ${message}`; + }) + ), + transports: [otherTransport, combinedTransport, consoleTransport], +}); + +const logger = { + cache: (cache: string, message: string) => { + cacheLogger.log('cache', `${cache} | ${message}`); + }, + event: (message: string) => { + eventLogger.log('event', message); + }, + error: (message: string) => { + errorLogger.log('error', message); + }, + script: (message: string) => { + scriptLogger.log('script', message); + }, + warn: (message: string) => { + warnLogger.log('warn', message); + }, + other: (message: string) => { + otherLogger.log('other', message); + }, +}; + +export const updateMessage = () => { + const columns = process.stdout.columns; + const warning = 'IMPORTANT!'; + const message2 = 'Bot has updated, please restart the bot to apply changes!'; + const padding = ' '.repeat(Math.floor((columns - warning.length) / 2)); + const padding2 = ' '.repeat(Math.floor((columns - message2.length) / 2)); + // eslint-disable-next-line no-console + console.log(padding + warning + padding + '\n' + padding2 + message2 + padding2); +}; + +export const cacheMessage = logger.cache; +export const eventMessage = logger.event; +export const errorMessage = logger.error; +export const scriptMessage = logger.script; +export const warnMessage = logger.warn; +export const otherMessage = logger.other; diff --git a/src/index.js b/src/index.js deleted file mode 100644 index 3b0c54a..0000000 --- a/src/index.js +++ /dev/null @@ -1,13 +0,0 @@ -const Client = require('./structures/client/Client'); -const client = new Client(); -client.run(); -process.on('unhandledRejection', (error) => { - client.logger.error(`Rejection: ${error}${error && error.stack ? `\n${error.stack}` : ''}`); -}); -process.on('uncaughtException', (error) => { - client.logger.error(`Uncaught exception: ${error}${error.stack ? `\n${error.stack}` : ''}`); - process.exit(1); -}); -process.on('warning', (error) => { - client.logger.debug(`${error}${error.stack ? `\n${error.stack}` : ''}`); -}); diff --git a/src/structures/client/Client.js b/src/structures/client/Client.js deleted file mode 100644 index 45c4784..0000000 --- a/src/structures/client/Client.js +++ /dev/null @@ -1,46 +0,0 @@ -const { AkairoClient, CommandHandler, ListenerHandler } = require('discord-akairo'); -const mongoose = require('mongoose'); -const dotenv = require('dotenv'); -const EmbedPagesRenderer = require('./EmbedPagesRenderer'); -const User = require('../models/User'); -require('../prototypes/String'); -require('../discord/GuildMember'); -class Client extends AkairoClient { - constructor () { - super({ ownerID: '291568379423096832' }, { partials: ['GUILD_MEMBER', 'MESSAGE', 'REACTION', 'USER'] }); - this.config = dotenv.config().parsed; - this.utils = new (require('./Utils'))(); - this.logger = new (require('./Logger'))(); - this.commandHandler = new CommandHandler(this, { directory: './src/commands', prefix: process.env.NODE_ENV === 'production' ? '?' : '!', automateCategories: true, defaultCooldown: 5000, commandUtil: true, ignoreCooldown: '291568379423096832' }); - this.listenerHandler = new ListenerHandler(this, { directory: './src/events', automateCategories: true }); - this.embedPages = new EmbedPagesRenderer(this); - this.color = '#ff8c00'; - this.lastReload = null; - } - - async getUser (message, args) { - if (args.player) return args.player; - const user = await User.findOne({ id: message.author.id }); - if (user) return user.uuid; - else return null; - } - - async run () { - mongoose.connect(process.env.MONGODB_URI, { useNewUrlParser: true, useUnifiedTopology: true }).then(() => { - this.logger.info('Successfully connected to MongoDB!'); - }).catch((e) => { - this.logger.error('Something went wrong while connecting to MongoDB.'); - this.logger.error(e); - }); - this.commandHandler.loadAll(); - this.commandHandler.useListenerHandler(this.listenerHandler); - this.listenerHandler.loadAll(); - this.login(process.env.DISCORD_TOKEN).then(() => { - this.logger.info('Successfully connected to Discord! ' + this.user.tag + ' ready to work!'); - }).catch((e) => { - this.logger.error('Something went wrong while connecting to Discord.'); - this.logger.error(e); - }); - } -} -module.exports = Client; diff --git a/src/structures/client/EmbedPagesRenderer.js b/src/structures/client/EmbedPagesRenderer.js deleted file mode 100644 index d07bf18..0000000 --- a/src/structures/client/EmbedPagesRenderer.js +++ /dev/null @@ -1,50 +0,0 @@ -const { Message, MessageEmbed } = require('discord.js'); -class EmbedPagesRenderer { - constructor (client) { - this.client = client; - } - - /** - * - * @param {Message} message - * @param {string[]|MessageEmbed[]} pages - */ - render (message, pages) { - let page = 0; - let embed; - if (typeof pages[page] === 'string') { - embed = new MessageEmbed().setColor(this.client.color).setDescription(pages[page]).setFooter(`Page ${page} of ${pages.length}`); - } - if (pages[page] instanceof MessageEmbed) { - embed = new MessageEmbed(pages[page]).setFooter(`Page ${page + 1} of ${pages.length}`); - } - message.channel.send(embed).then((msg) => { - msg.react('⬅️').then((r) => { - msg.react('➡️'); - const emojis = ['⬅️', '➡️']; - const collector = msg.createReactionCollector((r, u) => emojis.includes(r.emoji.name) && u.id === message.author.id, { time: 60000 }); - collector.on('collect', (r) => { - let e; - switch (r.emoji.name) { - case emojis[0]: {page = page > 0 ? --page : pages.length - 1; e = emojis[0]; break;} - case emojis[1]: {page = page + 1 < pages.length ? ++page : 0; e = emojis[1]; break;} - default: {break;} - } - if (typeof pages[page] === 'string') { - msg.edit(embed.setDescription(pages[page]).setFooter(`Page ${page + 1} of ${pages.length}`).setColor(this.client.color)); - } - if (pages[page] instanceof MessageEmbed) { - msg.edit(pages[page].setFooter(`Page ${page + 1} of ${pages.length}`)); - } - msg.reactions.resolve(e).users.remove(message.author.id); - }); - collector.on('end', () => { - if (!msg.deleted) { - msg.reactions.removeAll(); - } - }); - }); - }); - } -} -module.exports = EmbedPagesRenderer; diff --git a/src/structures/client/Logger.js b/src/structures/client/Logger.js deleted file mode 100644 index 95922d0..0000000 --- a/src/structures/client/Logger.js +++ /dev/null @@ -1,53 +0,0 @@ -const chalk = require('chalk').white; -const color = { - log: chalk.white, - debug: chalk.yellow, - error: chalk.red, - info: chalk.greenBright -}; -const moment = require('moment'); -class Logger { - /** - * @param {string} msg - */ - log (msg) { - this.write(msg); - } - - /** - * @param {string} msg - */ - debug (msg) { - this.write(msg, 'debug'); - } - - /** - * @param {string} msg - */ - info (msg) { - this.write(msg, 'info'); - } - - /** - * @param {string} msg - */ - error (msg) { - this.write(msg, 'error'); - } - - /** - * @param {string} msg - * @param {'log'|'info'|'error'|'debug'} type - */ - write (msg, type = 'log') { - const now = moment().format('h:mm:ss'); - process.stdout.write(color[type](`[${now}] | ${this.clean(msg)}\n`)); - } - - clean (msg) { - if (typeof msg === 'string') return msg; - const cleaned = require('util').inspect(msg, { depth: Infinity }); - return cleaned; - } -} -module.exports = Logger; diff --git a/src/structures/client/Utils.js b/src/structures/client/Utils.js deleted file mode 100644 index 615c44a..0000000 --- a/src/structures/client/Utils.js +++ /dev/null @@ -1,67 +0,0 @@ -class Utils { - constructor () { - this.constants = { - rankColors: { - 'Default': '', - 'VIP': 'https://dummyimage.com/32/00ff00/00ff00.png', - 'MVP': 'https://dummyimage.com/32/00ffff/00ffff.png', - 'MVP++': 'https://dummyimage.com/32/ffaa00/ffaa00.png', - 'Helper': 'https://dummyimage.com/32/5555FF/5555FF.png', - 'Admin': 'https://dummyimage.com/32/AA0000/AA0000.png', - 'Moderator': 'https://dummyimage.com/32/00AA00/00AA00.png', - 'OWNER': 'https://dummyimage.com/32/AA0000/AA0000.png' - }, - methodAlias: { - api: 'getAPIStatus', - booster: 'getBoosters', - leaderboards: 'getLeaderboards', - lb: 'getLeaderboards', - serverinfo: 'getServerInfo', - recentgames: 'getRecentGames', - status: 'getStatus', - watchdog: 'getWatchdogStats', - player: 'getPlayer', - guild: 'getGuild', - friend: 'getFriends', - playerauctions: 'getSkyblockAuctionsByPlayer', - sbmember: 'getSkyblockMember', - sbprofile: 'getSkyblockProfiles', - sbbazaar: 'getSkyblockBazaar', - sbnews: 'getSkyblockNews' - }, - minigames: [ - { - name: 'skywars', - aliases: ['sw', 'skywars'] - }, - { - name: 'bedwars', - aliases: ['bw', 'bedwars'] - }, - { - name: 'duels', - aliases: ['duels', 'duel'] - }, - { - name: 'murdermystery', - aliases: ['murder', 'mm', 'murdermystery'] - } - ] - }; - } - isArrayOfStrings (arr) { - const res = []; for (let i = 0; i < arr.length; i++) { - if (typeof arr[i] !== 'string') { - res.push(false); continue; - } res.push(true); - } return !res.includes(false); - } - getFromObject (obj, path) { - const ar = path.split('.'); let o = obj; for (let i = 0; i < ar.length; i++) { - if (!o[ar[i]]) { - return undefined; - } o = o[ar[i]]; - } return o; - } -} -module.exports = Utils; diff --git a/src/structures/discord/GuildMember.js b/src/structures/discord/GuildMember.js deleted file mode 100644 index 2ecaa5e..0000000 --- a/src/structures/discord/GuildMember.js +++ /dev/null @@ -1,19 +0,0 @@ -const { Structures } = require('discord.js'); -const User = require('../models/User'); -Structures.extend('GuildMember', (GuildMember) => { - class GuildMemberExt extends GuildMember { - constructor (...args) { - super(...args); - this.cache = { - uuid: null - }; - } - - async loadCache () { - const user = await User.findOne({ id: this.id }); - if (!user) return null; - this.cache.uuid = user.uuid; - } - } - return GuildMemberExt; -}); diff --git a/src/structures/models/Tag.js b/src/structures/models/Tag.js deleted file mode 100644 index 3026c26..0000000 --- a/src/structures/models/Tag.js +++ /dev/null @@ -1,6 +0,0 @@ -const { Schema, model } = require('mongoose'); -const Tag = new Schema({ - title: String, - description: String -}); -module.exports = model('tag', Tag); diff --git a/src/structures/models/User.js b/src/structures/models/User.js deleted file mode 100644 index c0fed20..0000000 --- a/src/structures/models/User.js +++ /dev/null @@ -1,6 +0,0 @@ -const { Schema, model } = require('mongoose'); -const User = new Schema({ - id: String, - uuid: String -}); -module.exports = model('user', User); diff --git a/src/structures/prototypes/String.js b/src/structures/prototypes/String.js deleted file mode 100644 index 4662f55..0000000 --- a/src/structures/prototypes/String.js +++ /dev/null @@ -1,4 +0,0 @@ -/* eslint-disable no-extend-native */ -String.prototype.capitalize = function () { - return this.charAt(0).toUpperCase() + this.slice(1); -}; diff --git a/src/types/main.d.ts b/src/types/main.d.ts new file mode 100644 index 0000000..04489a1 --- /dev/null +++ b/src/types/main.d.ts @@ -0,0 +1,71 @@ +import { Collection, SlashCommandBuilder, ChatInputCommandInteraction } from 'discord'; + +export interface SlashCommand { + command: SlashCommandBuilder | any; + // eslint-disable-next-line no-unused-vars + execute: (interaction: ChatInputCommandInteraction) => void; +} + +export interface User { + username: string; + id: string; + displayName: string | null; + avatar: string | null; + bot: boolean; +} + +export interface Message { + author: User; + content: string; + timestamp: number; +} + +export interface OpenClose { + timestamp: number; + reason: string | null; + by: User; +} + +export interface Users { + user: User; + added: { timestamp: number; by: User }; + removed: { timestamp: number; by: User } | null; +} + +export interface Ticket { + _id?: any; + __v?: any; + uuid: string; + ticketInfo: { + name: string; + channelId: string; + opened: OpenClose; + closed: OpenClose | null; + users: Users[] | []; + }; + messages: Message[] | []; + reason: string | null; +} + +export interface Blacklist { + user: User; + timestamp: number; + by: User; + reason: string | null; +} + +export interface MongoResponse { + success: boolean; + info: string; + error?: string; + ticket?: Ticket; + blacklist?: Blacklist; + tickets?: Ticket[]; + blacklists?: Blacklist[]; +} + +declare module 'discord.js' { + export interface Client { + commands: Collection; + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..ad031f1 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "strict": true, + "target": "es2016", + "outDir": "./dist", + "module": "CommonJS", + "skipLibCheck": true, + "esModuleInterop": true, + "resolveJsonModule": true, + "typeRoots": ["./src/types"], + "forceConsistentCasingInFileNames": true + } +}