├── .editorconfig
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .npmrc
├── LICENSE
├── README.md
├── esbuild.config.mjs
├── manifest.json
├── package-lock.json
├── package.json
├── src
├── loremnotes.ts
├── main.ts
├── random.ts
└── vault.ts
├── styles.css
├── tsconfig.json
├── version-bump.mjs
└── versions.json
/.editorconfig:
--------------------------------------------------------------------------------
1 | # top-most EditorConfig file
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | end_of_line = lf
7 | insert_final_newline = true
8 | indent_style = tab
9 | indent_size = 4
10 | tab_width = 4
11 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | npm node_modules
2 | build
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 | "parser": "@typescript-eslint/parser",
4 | "env": { "node": true },
5 | "plugins": [
6 | "@typescript-eslint"
7 | ],
8 | "extends": [
9 | "eslint:recommended",
10 | "plugin:@typescript-eslint/eslint-recommended",
11 | "plugin:@typescript-eslint/recommended"
12 | ],
13 | "parserOptions": {
14 | "sourceType": "module"
15 | },
16 | "rules": {
17 | "no-unused-vars": "off",
18 | "@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
19 | "@typescript-eslint/ban-ts-comment": "off",
20 | "no-prototype-builtins": "off",
21 | "@typescript-eslint/no-empty-function": "off"
22 | }
23 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # vscode
2 | .vscode
3 |
4 | # Intellij
5 | *.iml
6 | .idea
7 |
8 | # npm
9 | node_modules
10 |
11 | # Don't include the compiled main.js file in the repo.
12 | # They should be uploaded to GitHub releases instead.
13 | main.js
14 |
15 | # Exclude sourcemaps
16 | *.map
17 |
18 | # obsidian
19 | data.json
20 |
21 | # Exclude macOS Finder (System Explorer) View States
22 | .DS_Store
23 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | tag-version-prefix=""
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU LESSER GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 |
9 | This version of the GNU Lesser General Public License incorporates
10 | the terms and conditions of version 3 of the GNU General Public
11 | License, supplemented by the additional permissions listed below.
12 |
13 | 0. Additional Definitions.
14 |
15 | As used herein, "this License" refers to version 3 of the GNU Lesser
16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU
17 | General Public License.
18 |
19 | "The Library" refers to a covered work governed by this License,
20 | other than an Application or a Combined Work as defined below.
21 |
22 | An "Application" is any work that makes use of an interface provided
23 | by the Library, but which is not otherwise based on the Library.
24 | Defining a subclass of a class defined by the Library is deemed a mode
25 | of using an interface provided by the Library.
26 |
27 | A "Combined Work" is a work produced by combining or linking an
28 | Application with the Library. The particular version of the Library
29 | with which the Combined Work was made is also called the "Linked
30 | Version".
31 |
32 | The "Minimal Corresponding Source" for a Combined Work means the
33 | Corresponding Source for the Combined Work, excluding any source code
34 | for portions of the Combined Work that, considered in isolation, are
35 | based on the Application, and not on the Linked Version.
36 |
37 | The "Corresponding Application Code" for a Combined Work means the
38 | object code and/or source code for the Application, including any data
39 | and utility programs needed for reproducing the Combined Work from the
40 | Application, but excluding the System Libraries of the Combined Work.
41 |
42 | 1. Exception to Section 3 of the GNU GPL.
43 |
44 | You may convey a covered work under sections 3 and 4 of this License
45 | without being bound by section 3 of the GNU GPL.
46 |
47 | 2. Conveying Modified Versions.
48 |
49 | If you modify a copy of the Library, and, in your modifications, a
50 | facility refers to a function or data to be supplied by an Application
51 | that uses the facility (other than as an argument passed when the
52 | facility is invoked), then you may convey a copy of the modified
53 | version:
54 |
55 | a) under this License, provided that you make a good faith effort to
56 | ensure that, in the event an Application does not supply the
57 | function or data, the facility still operates, and performs
58 | whatever part of its purpose remains meaningful, or
59 |
60 | b) under the GNU GPL, with none of the additional permissions of
61 | this License applicable to that copy.
62 |
63 | 3. Object Code Incorporating Material from Library Header Files.
64 |
65 | The object code form of an Application may incorporate material from
66 | a header file that is part of the Library. You may convey such object
67 | code under terms of your choice, provided that, if the incorporated
68 | material is not limited to numerical parameters, data structure
69 | layouts and accessors, or small macros, inline functions and templates
70 | (ten or fewer lines in length), you do both of the following:
71 |
72 | a) Give prominent notice with each copy of the object code that the
73 | Library is used in it and that the Library and its use are
74 | covered by this License.
75 |
76 | b) Accompany the object code with a copy of the GNU GPL and this license
77 | document.
78 |
79 | 4. Combined Works.
80 |
81 | You may convey a Combined Work under terms of your choice that,
82 | taken together, effectively do not restrict modification of the
83 | portions of the Library contained in the Combined Work and reverse
84 | engineering for debugging such modifications, if you also do each of
85 | the following:
86 |
87 | a) Give prominent notice with each copy of the Combined Work that
88 | the Library is used in it and that the Library and its use are
89 | covered by this License.
90 |
91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license
92 | document.
93 |
94 | c) For a Combined Work that displays copyright notices during
95 | execution, include the copyright notice for the Library among
96 | these notices, as well as a reference directing the user to the
97 | copies of the GNU GPL and this license document.
98 |
99 | d) Do one of the following:
100 |
101 | 0) Convey the Minimal Corresponding Source under the terms of this
102 | License, and the Corresponding Application Code in a form
103 | suitable for, and under terms that permit, the user to
104 | recombine or relink the Application with a modified version of
105 | the Linked Version to produce a modified Combined Work, in the
106 | manner specified by section 6 of the GNU GPL for conveying
107 | Corresponding Source.
108 |
109 | 1) Use a suitable shared library mechanism for linking with the
110 | Library. A suitable mechanism is one that (a) uses at run time
111 | a copy of the Library already present on the user's computer
112 | system, and (b) will operate properly with a modified version
113 | of the Library that is interface-compatible with the Linked
114 | Version.
115 |
116 | e) Provide Installation Information, but only if you would otherwise
117 | be required to provide such information under section 6 of the
118 | GNU GPL, and only to the extent that such information is
119 | necessary to install and execute a modified version of the
120 | Combined Work produced by recombining or relinking the
121 | Application with a modified version of the Linked Version. (If
122 | you use option 4d0, the Installation Information must accompany
123 | the Minimal Corresponding Source and Corresponding Application
124 | Code. If you use option 4d1, you must provide the Installation
125 | Information in the manner specified by section 6 of the GNU GPL
126 | for conveying Corresponding Source.)
127 |
128 | 5. Combined Libraries.
129 |
130 | You may place library facilities that are a work based on the
131 | Library side by side in a single library together with other library
132 | facilities that are not Applications and are not covered by this
133 | License, and convey such a combined library under terms of your
134 | choice, if you do both of the following:
135 |
136 | a) Accompany the combined library with a copy of the same work based
137 | on the Library, uncombined with any other library facilities,
138 | conveyed under the terms of this License.
139 |
140 | b) Give prominent notice with the combined library that part of it
141 | is a work based on the Library, and explaining where to find the
142 | accompanying uncombined form of the same work.
143 |
144 | 6. Revised Versions of the GNU Lesser General Public License.
145 |
146 | The Free Software Foundation may publish revised and/or new versions
147 | of the GNU Lesser General Public License from time to time. Such new
148 | versions will be similar in spirit to the present version, but may
149 | differ in detail to address new problems or concerns.
150 |
151 | Each version is given a distinguishing version number. If the
152 | Library as you received it specifies that a certain numbered version
153 | of the GNU Lesser General Public License "or any later version"
154 | applies to it, you have the option of following the terms and
155 | conditions either of that published version or of any later version
156 | published by the Free Software Foundation. If the Library as you
157 | received it does not specify a version number of the GNU Lesser
158 | General Public License, you may choose any version of the GNU Lesser
159 | General Public License ever published by the Free Software Foundation.
160 |
161 | If the Library as you received it specifies that a proxy can decide
162 | whether future versions of the GNU Lesser General Public License shall
163 | apply, that proxy's public statement of acceptance of any version is
164 | permanent authorization for you to choose that version for the
165 | Library.
166 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Obsidian Testing Vault Plugin
2 |
3 | This plugin is used for making random testing vaults, particularly during
4 | plugin development. None of its functions are bound to hotkeys or menu
5 | entries, and this is by conscious choice. The functions provided herein
6 | are dangerous, and can go so far as to destroy your existing vault.
7 |
8 | The random notes command all produce [Lorem Ipsum](https://www.lipsum.com/) text.
9 | This provides you the ability to know you do not care about the contents.
10 | You can still use this to test out your plugin in numerous ways, such as
11 | if you are building an alternate rendering system, or statistics, or any
12 | such thing where having data in the notes (even if that data is
13 | non-sensical) is useful.
14 |
15 | Three commands are provided, accessible via the Mod-P command palette.
16 |
17 | # Make a single randomized note in your vault
18 |
19 | This command simply makes a single random note. Since it does not scan your
20 | existing vault, it will not provide links to other notes, nor will they link
21 | to it. However, you can use this command to examine the output and see if
22 | you are comfortable using the sort of output that will be generated by this
23 | plugin.
24 |
25 | # Make a group of randomized notes in your vault
26 |
27 | This command will show you a dialog box to allow you to tweak the settings
28 | before generating a group of interconnected notes. This can take a second,
29 | so it is limited to producing 10,000 notes at a time.
30 |
31 | # Destroy everything in this vault
32 |
33 | Does exactly what it says: Everything in the vault will be deleted. Does
34 | *not* ask for confirmation. Don't run this in any vault you care about, as you
35 | will lose *everything*.
36 |
--------------------------------------------------------------------------------
/esbuild.config.mjs:
--------------------------------------------------------------------------------
1 | import esbuild from "esbuild";
2 | import process from "process";
3 | import builtins from 'builtin-modules'
4 |
5 | const banner =
6 | `/*
7 | THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
8 | if you want to view the source, please visit the github repository of this plugin
9 | */
10 | `;
11 |
12 | const prod = (process.argv[2] === 'production');
13 |
14 | esbuild.build({
15 | banner: {
16 | js: banner,
17 | },
18 | entryPoints: ['src/main.ts'],
19 | bundle: true,
20 | external: [
21 | 'obsidian',
22 | 'electron',
23 | '@codemirror/autocomplete',
24 | '@codemirror/collab',
25 | '@codemirror/commands',
26 | '@codemirror/language',
27 | '@codemirror/lint',
28 | '@codemirror/search',
29 | '@codemirror/state',
30 | '@codemirror/view',
31 | '@lezer/common',
32 | '@lezer/highlight',
33 | '@lezer/lr',
34 | ...builtins],
35 | format: 'cjs',
36 | watch: !prod,
37 | target: 'es2018',
38 | logLevel: "info",
39 | sourcemap: prod ? false : 'inline',
40 | treeShaking: true,
41 | outfile: 'main.js',
42 | }).catch(() => process.exit(1));
43 |
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "testing-vault",
3 | "name": "Testing Vault",
4 | "version": "1.2.0",
5 | "minAppVersion": "0.15.0",
6 | "description": "This allows a developer to make a random vault of arbitrary size for testing their plugins.",
7 | "author": "Michael J. Pedersen ",
8 | "authorUrl": "https://github.com/pedersen",
9 | "isDesktopOnly": false
10 | }
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "testing-vault",
3 | "version": "1.2.0",
4 | "lockfileVersion": 3,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "testing-vault",
9 | "version": "1.2.0",
10 | "license": "MIT",
11 | "dependencies": {
12 | "lorem-ipsum": "^2.0.8",
13 | "word-wrap": "^1.2.3"
14 | },
15 | "devDependencies": {
16 | "@types/node": "^16.11.6",
17 | "@typescript-eslint/eslint-plugin": "5.29.0",
18 | "@typescript-eslint/parser": "5.29.0",
19 | "builtin-modules": "3.3.0",
20 | "esbuild": "0.14.47",
21 | "obsidian": "latest",
22 | "tslib": "2.4.0",
23 | "typescript": "4.7.4"
24 | }
25 | },
26 | "node_modules/@codemirror/state": {
27 | "version": "6.2.0",
28 | "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.2.0.tgz",
29 | "integrity": "sha512-69QXtcrsc3RYtOtd+GsvczJ319udtBf1PTrr2KbLWM/e2CXUPnh0Nz9AUo8WfhSQ7GeL8dPVNUmhQVgpmuaNGA==",
30 | "dev": true,
31 | "peer": true
32 | },
33 | "node_modules/@codemirror/view": {
34 | "version": "6.7.3",
35 | "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.7.3.tgz",
36 | "integrity": "sha512-Lt+4POnhXrZFfHOdPzXEHxrzwdy7cjqYlMkOWvoFGi6/bAsjzlFfr0NY3B15B/PGx+cDFgM1hlc12wvYeZbGLw==",
37 | "dev": true,
38 | "peer": true,
39 | "dependencies": {
40 | "@codemirror/state": "^6.1.4",
41 | "style-mod": "^4.0.0",
42 | "w3c-keyname": "^2.2.4"
43 | }
44 | },
45 | "node_modules/@eslint/eslintrc": {
46 | "version": "1.4.1",
47 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz",
48 | "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==",
49 | "dev": true,
50 | "peer": true,
51 | "dependencies": {
52 | "ajv": "^6.12.4",
53 | "debug": "^4.3.2",
54 | "espree": "^9.4.0",
55 | "globals": "^13.19.0",
56 | "ignore": "^5.2.0",
57 | "import-fresh": "^3.2.1",
58 | "js-yaml": "^4.1.0",
59 | "minimatch": "^3.1.2",
60 | "strip-json-comments": "^3.1.1"
61 | },
62 | "engines": {
63 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
64 | },
65 | "funding": {
66 | "url": "https://opencollective.com/eslint"
67 | }
68 | },
69 | "node_modules/@humanwhocodes/config-array": {
70 | "version": "0.11.8",
71 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz",
72 | "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==",
73 | "dev": true,
74 | "peer": true,
75 | "dependencies": {
76 | "@humanwhocodes/object-schema": "^1.2.1",
77 | "debug": "^4.1.1",
78 | "minimatch": "^3.0.5"
79 | },
80 | "engines": {
81 | "node": ">=10.10.0"
82 | }
83 | },
84 | "node_modules/@humanwhocodes/module-importer": {
85 | "version": "1.0.1",
86 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
87 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
88 | "dev": true,
89 | "peer": true,
90 | "engines": {
91 | "node": ">=12.22"
92 | },
93 | "funding": {
94 | "type": "github",
95 | "url": "https://github.com/sponsors/nzakas"
96 | }
97 | },
98 | "node_modules/@humanwhocodes/object-schema": {
99 | "version": "1.2.1",
100 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
101 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
102 | "dev": true,
103 | "peer": true
104 | },
105 | "node_modules/@nodelib/fs.scandir": {
106 | "version": "2.1.5",
107 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
108 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
109 | "dev": true,
110 | "dependencies": {
111 | "@nodelib/fs.stat": "2.0.5",
112 | "run-parallel": "^1.1.9"
113 | },
114 | "engines": {
115 | "node": ">= 8"
116 | }
117 | },
118 | "node_modules/@nodelib/fs.stat": {
119 | "version": "2.0.5",
120 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
121 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
122 | "dev": true,
123 | "engines": {
124 | "node": ">= 8"
125 | }
126 | },
127 | "node_modules/@nodelib/fs.walk": {
128 | "version": "1.2.8",
129 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
130 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
131 | "dev": true,
132 | "dependencies": {
133 | "@nodelib/fs.scandir": "2.1.5",
134 | "fastq": "^1.6.0"
135 | },
136 | "engines": {
137 | "node": ">= 8"
138 | }
139 | },
140 | "node_modules/@types/codemirror": {
141 | "version": "0.0.108",
142 | "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-0.0.108.tgz",
143 | "integrity": "sha512-3FGFcus0P7C2UOGCNUVENqObEb4SFk+S8Dnxq7K6aIsLVs/vDtlangl3PEO0ykaKXyK56swVF6Nho7VsA44uhw==",
144 | "dev": true,
145 | "dependencies": {
146 | "@types/tern": "*"
147 | }
148 | },
149 | "node_modules/@types/estree": {
150 | "version": "1.0.0",
151 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.0.tgz",
152 | "integrity": "sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==",
153 | "dev": true
154 | },
155 | "node_modules/@types/json-schema": {
156 | "version": "7.0.11",
157 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",
158 | "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",
159 | "dev": true
160 | },
161 | "node_modules/@types/node": {
162 | "version": "16.18.11",
163 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.11.tgz",
164 | "integrity": "sha512-3oJbGBUWuS6ahSnEq1eN2XrCyf4YsWI8OyCvo7c64zQJNplk3mO84t53o8lfTk+2ji59g5ycfc6qQ3fdHliHuA==",
165 | "dev": true
166 | },
167 | "node_modules/@types/tern": {
168 | "version": "0.23.4",
169 | "resolved": "https://registry.npmjs.org/@types/tern/-/tern-0.23.4.tgz",
170 | "integrity": "sha512-JAUw1iXGO1qaWwEOzxTKJZ/5JxVeON9kvGZ/osgZaJImBnyjyn0cjovPsf6FNLmyGY8Vw9DoXZCMlfMkMwHRWg==",
171 | "dev": true,
172 | "dependencies": {
173 | "@types/estree": "*"
174 | }
175 | },
176 | "node_modules/@typescript-eslint/eslint-plugin": {
177 | "version": "5.29.0",
178 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.29.0.tgz",
179 | "integrity": "sha512-kgTsISt9pM53yRFQmLZ4npj99yGl3x3Pl7z4eA66OuTzAGC4bQB5H5fuLwPnqTKU3yyrrg4MIhjF17UYnL4c0w==",
180 | "dev": true,
181 | "dependencies": {
182 | "@typescript-eslint/scope-manager": "5.29.0",
183 | "@typescript-eslint/type-utils": "5.29.0",
184 | "@typescript-eslint/utils": "5.29.0",
185 | "debug": "^4.3.4",
186 | "functional-red-black-tree": "^1.0.1",
187 | "ignore": "^5.2.0",
188 | "regexpp": "^3.2.0",
189 | "semver": "^7.3.7",
190 | "tsutils": "^3.21.0"
191 | },
192 | "engines": {
193 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
194 | },
195 | "funding": {
196 | "type": "opencollective",
197 | "url": "https://opencollective.com/typescript-eslint"
198 | },
199 | "peerDependencies": {
200 | "@typescript-eslint/parser": "^5.0.0",
201 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
202 | },
203 | "peerDependenciesMeta": {
204 | "typescript": {
205 | "optional": true
206 | }
207 | }
208 | },
209 | "node_modules/@typescript-eslint/parser": {
210 | "version": "5.29.0",
211 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.29.0.tgz",
212 | "integrity": "sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==",
213 | "dev": true,
214 | "dependencies": {
215 | "@typescript-eslint/scope-manager": "5.29.0",
216 | "@typescript-eslint/types": "5.29.0",
217 | "@typescript-eslint/typescript-estree": "5.29.0",
218 | "debug": "^4.3.4"
219 | },
220 | "engines": {
221 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
222 | },
223 | "funding": {
224 | "type": "opencollective",
225 | "url": "https://opencollective.com/typescript-eslint"
226 | },
227 | "peerDependencies": {
228 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
229 | },
230 | "peerDependenciesMeta": {
231 | "typescript": {
232 | "optional": true
233 | }
234 | }
235 | },
236 | "node_modules/@typescript-eslint/scope-manager": {
237 | "version": "5.29.0",
238 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.29.0.tgz",
239 | "integrity": "sha512-etbXUT0FygFi2ihcxDZjz21LtC+Eps9V2xVx09zFoN44RRHPrkMflidGMI+2dUs821zR1tDS6Oc9IXxIjOUZwA==",
240 | "dev": true,
241 | "dependencies": {
242 | "@typescript-eslint/types": "5.29.0",
243 | "@typescript-eslint/visitor-keys": "5.29.0"
244 | },
245 | "engines": {
246 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
247 | },
248 | "funding": {
249 | "type": "opencollective",
250 | "url": "https://opencollective.com/typescript-eslint"
251 | }
252 | },
253 | "node_modules/@typescript-eslint/type-utils": {
254 | "version": "5.29.0",
255 | "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.29.0.tgz",
256 | "integrity": "sha512-JK6bAaaiJozbox3K220VRfCzLa9n0ib/J+FHIwnaV3Enw/TO267qe0pM1b1QrrEuy6xun374XEAsRlA86JJnyg==",
257 | "dev": true,
258 | "dependencies": {
259 | "@typescript-eslint/utils": "5.29.0",
260 | "debug": "^4.3.4",
261 | "tsutils": "^3.21.0"
262 | },
263 | "engines": {
264 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
265 | },
266 | "funding": {
267 | "type": "opencollective",
268 | "url": "https://opencollective.com/typescript-eslint"
269 | },
270 | "peerDependencies": {
271 | "eslint": "*"
272 | },
273 | "peerDependenciesMeta": {
274 | "typescript": {
275 | "optional": true
276 | }
277 | }
278 | },
279 | "node_modules/@typescript-eslint/types": {
280 | "version": "5.29.0",
281 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.29.0.tgz",
282 | "integrity": "sha512-X99VbqvAXOMdVyfFmksMy3u8p8yoRGITgU1joBJPzeYa0rhdf5ok9S56/itRoUSh99fiDoMtarSIJXo7H/SnOg==",
283 | "dev": true,
284 | "engines": {
285 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
286 | },
287 | "funding": {
288 | "type": "opencollective",
289 | "url": "https://opencollective.com/typescript-eslint"
290 | }
291 | },
292 | "node_modules/@typescript-eslint/typescript-estree": {
293 | "version": "5.29.0",
294 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.29.0.tgz",
295 | "integrity": "sha512-mQvSUJ/JjGBdvo+1LwC+GY2XmSYjK1nAaVw2emp/E61wEVYEyibRHCqm1I1vEKbXCpUKuW4G7u9ZCaZhJbLoNQ==",
296 | "dev": true,
297 | "dependencies": {
298 | "@typescript-eslint/types": "5.29.0",
299 | "@typescript-eslint/visitor-keys": "5.29.0",
300 | "debug": "^4.3.4",
301 | "globby": "^11.1.0",
302 | "is-glob": "^4.0.3",
303 | "semver": "^7.3.7",
304 | "tsutils": "^3.21.0"
305 | },
306 | "engines": {
307 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
308 | },
309 | "funding": {
310 | "type": "opencollective",
311 | "url": "https://opencollective.com/typescript-eslint"
312 | },
313 | "peerDependenciesMeta": {
314 | "typescript": {
315 | "optional": true
316 | }
317 | }
318 | },
319 | "node_modules/@typescript-eslint/utils": {
320 | "version": "5.29.0",
321 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.29.0.tgz",
322 | "integrity": "sha512-3Eos6uP1nyLOBayc/VUdKZikV90HahXE5Dx9L5YlSd/7ylQPXhLk1BYb29SDgnBnTp+jmSZUU0QxUiyHgW4p7A==",
323 | "dev": true,
324 | "dependencies": {
325 | "@types/json-schema": "^7.0.9",
326 | "@typescript-eslint/scope-manager": "5.29.0",
327 | "@typescript-eslint/types": "5.29.0",
328 | "@typescript-eslint/typescript-estree": "5.29.0",
329 | "eslint-scope": "^5.1.1",
330 | "eslint-utils": "^3.0.0"
331 | },
332 | "engines": {
333 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
334 | },
335 | "funding": {
336 | "type": "opencollective",
337 | "url": "https://opencollective.com/typescript-eslint"
338 | },
339 | "peerDependencies": {
340 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
341 | }
342 | },
343 | "node_modules/@typescript-eslint/visitor-keys": {
344 | "version": "5.29.0",
345 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.29.0.tgz",
346 | "integrity": "sha512-Hpb/mCWsjILvikMQoZIE3voc9wtQcS0A9FUw3h8bhr9UxBdtI/tw1ZDZUOXHXLOVMedKCH5NxyzATwnU78bWCQ==",
347 | "dev": true,
348 | "dependencies": {
349 | "@typescript-eslint/types": "5.29.0",
350 | "eslint-visitor-keys": "^3.3.0"
351 | },
352 | "engines": {
353 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
354 | },
355 | "funding": {
356 | "type": "opencollective",
357 | "url": "https://opencollective.com/typescript-eslint"
358 | }
359 | },
360 | "node_modules/acorn": {
361 | "version": "8.8.1",
362 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz",
363 | "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==",
364 | "dev": true,
365 | "peer": true,
366 | "bin": {
367 | "acorn": "bin/acorn"
368 | },
369 | "engines": {
370 | "node": ">=0.4.0"
371 | }
372 | },
373 | "node_modules/acorn-jsx": {
374 | "version": "5.3.2",
375 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
376 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
377 | "dev": true,
378 | "peer": true,
379 | "peerDependencies": {
380 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
381 | }
382 | },
383 | "node_modules/ajv": {
384 | "version": "6.12.6",
385 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
386 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
387 | "dev": true,
388 | "peer": true,
389 | "dependencies": {
390 | "fast-deep-equal": "^3.1.1",
391 | "fast-json-stable-stringify": "^2.0.0",
392 | "json-schema-traverse": "^0.4.1",
393 | "uri-js": "^4.2.2"
394 | },
395 | "funding": {
396 | "type": "github",
397 | "url": "https://github.com/sponsors/epoberezkin"
398 | }
399 | },
400 | "node_modules/ansi-regex": {
401 | "version": "5.0.1",
402 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
403 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
404 | "dev": true,
405 | "peer": true,
406 | "engines": {
407 | "node": ">=8"
408 | }
409 | },
410 | "node_modules/ansi-styles": {
411 | "version": "4.3.0",
412 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
413 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
414 | "dev": true,
415 | "peer": true,
416 | "dependencies": {
417 | "color-convert": "^2.0.1"
418 | },
419 | "engines": {
420 | "node": ">=8"
421 | },
422 | "funding": {
423 | "url": "https://github.com/chalk/ansi-styles?sponsor=1"
424 | }
425 | },
426 | "node_modules/argparse": {
427 | "version": "2.0.1",
428 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
429 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
430 | "dev": true,
431 | "peer": true
432 | },
433 | "node_modules/array-union": {
434 | "version": "2.1.0",
435 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
436 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
437 | "dev": true,
438 | "engines": {
439 | "node": ">=8"
440 | }
441 | },
442 | "node_modules/balanced-match": {
443 | "version": "1.0.2",
444 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
445 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
446 | "dev": true,
447 | "peer": true
448 | },
449 | "node_modules/brace-expansion": {
450 | "version": "1.1.11",
451 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
452 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
453 | "dev": true,
454 | "peer": true,
455 | "dependencies": {
456 | "balanced-match": "^1.0.0",
457 | "concat-map": "0.0.1"
458 | }
459 | },
460 | "node_modules/braces": {
461 | "version": "3.0.2",
462 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
463 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
464 | "dev": true,
465 | "dependencies": {
466 | "fill-range": "^7.0.1"
467 | },
468 | "engines": {
469 | "node": ">=8"
470 | }
471 | },
472 | "node_modules/builtin-modules": {
473 | "version": "3.3.0",
474 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz",
475 | "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==",
476 | "dev": true,
477 | "engines": {
478 | "node": ">=6"
479 | },
480 | "funding": {
481 | "url": "https://github.com/sponsors/sindresorhus"
482 | }
483 | },
484 | "node_modules/callsites": {
485 | "version": "3.1.0",
486 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
487 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
488 | "dev": true,
489 | "peer": true,
490 | "engines": {
491 | "node": ">=6"
492 | }
493 | },
494 | "node_modules/chalk": {
495 | "version": "4.1.2",
496 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
497 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
498 | "dev": true,
499 | "peer": true,
500 | "dependencies": {
501 | "ansi-styles": "^4.1.0",
502 | "supports-color": "^7.1.0"
503 | },
504 | "engines": {
505 | "node": ">=10"
506 | },
507 | "funding": {
508 | "url": "https://github.com/chalk/chalk?sponsor=1"
509 | }
510 | },
511 | "node_modules/color-convert": {
512 | "version": "2.0.1",
513 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
514 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
515 | "dev": true,
516 | "peer": true,
517 | "dependencies": {
518 | "color-name": "~1.1.4"
519 | },
520 | "engines": {
521 | "node": ">=7.0.0"
522 | }
523 | },
524 | "node_modules/color-name": {
525 | "version": "1.1.4",
526 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
527 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
528 | "dev": true,
529 | "peer": true
530 | },
531 | "node_modules/commander": {
532 | "version": "9.5.0",
533 | "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",
534 | "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",
535 | "engines": {
536 | "node": "^12.20.0 || >=14"
537 | }
538 | },
539 | "node_modules/concat-map": {
540 | "version": "0.0.1",
541 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
542 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
543 | "dev": true,
544 | "peer": true
545 | },
546 | "node_modules/cross-spawn": {
547 | "version": "7.0.3",
548 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
549 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
550 | "dev": true,
551 | "peer": true,
552 | "dependencies": {
553 | "path-key": "^3.1.0",
554 | "shebang-command": "^2.0.0",
555 | "which": "^2.0.1"
556 | },
557 | "engines": {
558 | "node": ">= 8"
559 | }
560 | },
561 | "node_modules/debug": {
562 | "version": "4.3.4",
563 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
564 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
565 | "dev": true,
566 | "dependencies": {
567 | "ms": "2.1.2"
568 | },
569 | "engines": {
570 | "node": ">=6.0"
571 | },
572 | "peerDependenciesMeta": {
573 | "supports-color": {
574 | "optional": true
575 | }
576 | }
577 | },
578 | "node_modules/deep-is": {
579 | "version": "0.1.4",
580 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
581 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
582 | "dev": true,
583 | "peer": true
584 | },
585 | "node_modules/dir-glob": {
586 | "version": "3.0.1",
587 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
588 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
589 | "dev": true,
590 | "dependencies": {
591 | "path-type": "^4.0.0"
592 | },
593 | "engines": {
594 | "node": ">=8"
595 | }
596 | },
597 | "node_modules/doctrine": {
598 | "version": "3.0.0",
599 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
600 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
601 | "dev": true,
602 | "peer": true,
603 | "dependencies": {
604 | "esutils": "^2.0.2"
605 | },
606 | "engines": {
607 | "node": ">=6.0.0"
608 | }
609 | },
610 | "node_modules/esbuild": {
611 | "version": "0.14.47",
612 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.47.tgz",
613 | "integrity": "sha512-wI4ZiIfFxpkuxB8ju4MHrGwGLyp1+awEHAHVpx6w7a+1pmYIq8T9FGEVVwFo0iFierDoMj++Xq69GXWYn2EiwA==",
614 | "dev": true,
615 | "hasInstallScript": true,
616 | "bin": {
617 | "esbuild": "bin/esbuild"
618 | },
619 | "engines": {
620 | "node": ">=12"
621 | },
622 | "optionalDependencies": {
623 | "esbuild-android-64": "0.14.47",
624 | "esbuild-android-arm64": "0.14.47",
625 | "esbuild-darwin-64": "0.14.47",
626 | "esbuild-darwin-arm64": "0.14.47",
627 | "esbuild-freebsd-64": "0.14.47",
628 | "esbuild-freebsd-arm64": "0.14.47",
629 | "esbuild-linux-32": "0.14.47",
630 | "esbuild-linux-64": "0.14.47",
631 | "esbuild-linux-arm": "0.14.47",
632 | "esbuild-linux-arm64": "0.14.47",
633 | "esbuild-linux-mips64le": "0.14.47",
634 | "esbuild-linux-ppc64le": "0.14.47",
635 | "esbuild-linux-riscv64": "0.14.47",
636 | "esbuild-linux-s390x": "0.14.47",
637 | "esbuild-netbsd-64": "0.14.47",
638 | "esbuild-openbsd-64": "0.14.47",
639 | "esbuild-sunos-64": "0.14.47",
640 | "esbuild-windows-32": "0.14.47",
641 | "esbuild-windows-64": "0.14.47",
642 | "esbuild-windows-arm64": "0.14.47"
643 | }
644 | },
645 | "node_modules/esbuild-linux-64": {
646 | "version": "0.14.47",
647 | "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.47.tgz",
648 | "integrity": "sha512-nFNOk9vWVfvWYF9YNYksZptgQAdstnDCMtR6m42l5Wfugbzu11VpMCY9XrD4yFxvPo9zmzcoUL/88y0lfJZJJw==",
649 | "cpu": [
650 | "x64"
651 | ],
652 | "dev": true,
653 | "optional": true,
654 | "os": [
655 | "linux"
656 | ],
657 | "engines": {
658 | "node": ">=12"
659 | }
660 | },
661 | "node_modules/escape-string-regexp": {
662 | "version": "4.0.0",
663 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
664 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
665 | "dev": true,
666 | "peer": true,
667 | "engines": {
668 | "node": ">=10"
669 | },
670 | "funding": {
671 | "url": "https://github.com/sponsors/sindresorhus"
672 | }
673 | },
674 | "node_modules/eslint": {
675 | "version": "8.31.0",
676 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.31.0.tgz",
677 | "integrity": "sha512-0tQQEVdmPZ1UtUKXjX7EMm9BlgJ08G90IhWh0PKDCb3ZLsgAOHI8fYSIzYVZej92zsgq+ft0FGsxhJ3xo2tbuA==",
678 | "dev": true,
679 | "peer": true,
680 | "dependencies": {
681 | "@eslint/eslintrc": "^1.4.1",
682 | "@humanwhocodes/config-array": "^0.11.8",
683 | "@humanwhocodes/module-importer": "^1.0.1",
684 | "@nodelib/fs.walk": "^1.2.8",
685 | "ajv": "^6.10.0",
686 | "chalk": "^4.0.0",
687 | "cross-spawn": "^7.0.2",
688 | "debug": "^4.3.2",
689 | "doctrine": "^3.0.0",
690 | "escape-string-regexp": "^4.0.0",
691 | "eslint-scope": "^7.1.1",
692 | "eslint-utils": "^3.0.0",
693 | "eslint-visitor-keys": "^3.3.0",
694 | "espree": "^9.4.0",
695 | "esquery": "^1.4.0",
696 | "esutils": "^2.0.2",
697 | "fast-deep-equal": "^3.1.3",
698 | "file-entry-cache": "^6.0.1",
699 | "find-up": "^5.0.0",
700 | "glob-parent": "^6.0.2",
701 | "globals": "^13.19.0",
702 | "grapheme-splitter": "^1.0.4",
703 | "ignore": "^5.2.0",
704 | "import-fresh": "^3.0.0",
705 | "imurmurhash": "^0.1.4",
706 | "is-glob": "^4.0.0",
707 | "is-path-inside": "^3.0.3",
708 | "js-sdsl": "^4.1.4",
709 | "js-yaml": "^4.1.0",
710 | "json-stable-stringify-without-jsonify": "^1.0.1",
711 | "levn": "^0.4.1",
712 | "lodash.merge": "^4.6.2",
713 | "minimatch": "^3.1.2",
714 | "natural-compare": "^1.4.0",
715 | "optionator": "^0.9.1",
716 | "regexpp": "^3.2.0",
717 | "strip-ansi": "^6.0.1",
718 | "strip-json-comments": "^3.1.0",
719 | "text-table": "^0.2.0"
720 | },
721 | "bin": {
722 | "eslint": "bin/eslint.js"
723 | },
724 | "engines": {
725 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
726 | },
727 | "funding": {
728 | "url": "https://opencollective.com/eslint"
729 | }
730 | },
731 | "node_modules/eslint-scope": {
732 | "version": "5.1.1",
733 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
734 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
735 | "dev": true,
736 | "dependencies": {
737 | "esrecurse": "^4.3.0",
738 | "estraverse": "^4.1.1"
739 | },
740 | "engines": {
741 | "node": ">=8.0.0"
742 | }
743 | },
744 | "node_modules/eslint-utils": {
745 | "version": "3.0.0",
746 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz",
747 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==",
748 | "dev": true,
749 | "dependencies": {
750 | "eslint-visitor-keys": "^2.0.0"
751 | },
752 | "engines": {
753 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0"
754 | },
755 | "funding": {
756 | "url": "https://github.com/sponsors/mysticatea"
757 | },
758 | "peerDependencies": {
759 | "eslint": ">=5"
760 | }
761 | },
762 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": {
763 | "version": "2.1.0",
764 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",
765 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",
766 | "dev": true,
767 | "engines": {
768 | "node": ">=10"
769 | }
770 | },
771 | "node_modules/eslint-visitor-keys": {
772 | "version": "3.3.0",
773 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz",
774 | "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==",
775 | "dev": true,
776 | "engines": {
777 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
778 | }
779 | },
780 | "node_modules/eslint/node_modules/eslint-scope": {
781 | "version": "7.1.1",
782 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz",
783 | "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==",
784 | "dev": true,
785 | "peer": true,
786 | "dependencies": {
787 | "esrecurse": "^4.3.0",
788 | "estraverse": "^5.2.0"
789 | },
790 | "engines": {
791 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
792 | }
793 | },
794 | "node_modules/eslint/node_modules/estraverse": {
795 | "version": "5.3.0",
796 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
797 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
798 | "dev": true,
799 | "peer": true,
800 | "engines": {
801 | "node": ">=4.0"
802 | }
803 | },
804 | "node_modules/espree": {
805 | "version": "9.4.1",
806 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz",
807 | "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==",
808 | "dev": true,
809 | "peer": true,
810 | "dependencies": {
811 | "acorn": "^8.8.0",
812 | "acorn-jsx": "^5.3.2",
813 | "eslint-visitor-keys": "^3.3.0"
814 | },
815 | "engines": {
816 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
817 | },
818 | "funding": {
819 | "url": "https://opencollective.com/eslint"
820 | }
821 | },
822 | "node_modules/esquery": {
823 | "version": "1.4.0",
824 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz",
825 | "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==",
826 | "dev": true,
827 | "peer": true,
828 | "dependencies": {
829 | "estraverse": "^5.1.0"
830 | },
831 | "engines": {
832 | "node": ">=0.10"
833 | }
834 | },
835 | "node_modules/esquery/node_modules/estraverse": {
836 | "version": "5.3.0",
837 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
838 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
839 | "dev": true,
840 | "peer": true,
841 | "engines": {
842 | "node": ">=4.0"
843 | }
844 | },
845 | "node_modules/esrecurse": {
846 | "version": "4.3.0",
847 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
848 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
849 | "dev": true,
850 | "dependencies": {
851 | "estraverse": "^5.2.0"
852 | },
853 | "engines": {
854 | "node": ">=4.0"
855 | }
856 | },
857 | "node_modules/esrecurse/node_modules/estraverse": {
858 | "version": "5.3.0",
859 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
860 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
861 | "dev": true,
862 | "engines": {
863 | "node": ">=4.0"
864 | }
865 | },
866 | "node_modules/estraverse": {
867 | "version": "4.3.0",
868 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
869 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
870 | "dev": true,
871 | "engines": {
872 | "node": ">=4.0"
873 | }
874 | },
875 | "node_modules/esutils": {
876 | "version": "2.0.3",
877 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
878 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
879 | "dev": true,
880 | "peer": true,
881 | "engines": {
882 | "node": ">=0.10.0"
883 | }
884 | },
885 | "node_modules/fast-deep-equal": {
886 | "version": "3.1.3",
887 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
888 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
889 | "dev": true,
890 | "peer": true
891 | },
892 | "node_modules/fast-glob": {
893 | "version": "3.2.12",
894 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz",
895 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==",
896 | "dev": true,
897 | "dependencies": {
898 | "@nodelib/fs.stat": "^2.0.2",
899 | "@nodelib/fs.walk": "^1.2.3",
900 | "glob-parent": "^5.1.2",
901 | "merge2": "^1.3.0",
902 | "micromatch": "^4.0.4"
903 | },
904 | "engines": {
905 | "node": ">=8.6.0"
906 | }
907 | },
908 | "node_modules/fast-glob/node_modules/glob-parent": {
909 | "version": "5.1.2",
910 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
911 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
912 | "dev": true,
913 | "dependencies": {
914 | "is-glob": "^4.0.1"
915 | },
916 | "engines": {
917 | "node": ">= 6"
918 | }
919 | },
920 | "node_modules/fast-json-stable-stringify": {
921 | "version": "2.1.0",
922 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
923 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
924 | "dev": true,
925 | "peer": true
926 | },
927 | "node_modules/fast-levenshtein": {
928 | "version": "2.0.6",
929 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
930 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
931 | "dev": true,
932 | "peer": true
933 | },
934 | "node_modules/fastq": {
935 | "version": "1.15.0",
936 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
937 | "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",
938 | "dev": true,
939 | "dependencies": {
940 | "reusify": "^1.0.4"
941 | }
942 | },
943 | "node_modules/file-entry-cache": {
944 | "version": "6.0.1",
945 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
946 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
947 | "dev": true,
948 | "peer": true,
949 | "dependencies": {
950 | "flat-cache": "^3.0.4"
951 | },
952 | "engines": {
953 | "node": "^10.12.0 || >=12.0.0"
954 | }
955 | },
956 | "node_modules/fill-range": {
957 | "version": "7.0.1",
958 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
959 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
960 | "dev": true,
961 | "dependencies": {
962 | "to-regex-range": "^5.0.1"
963 | },
964 | "engines": {
965 | "node": ">=8"
966 | }
967 | },
968 | "node_modules/find-up": {
969 | "version": "5.0.0",
970 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
971 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
972 | "dev": true,
973 | "peer": true,
974 | "dependencies": {
975 | "locate-path": "^6.0.0",
976 | "path-exists": "^4.0.0"
977 | },
978 | "engines": {
979 | "node": ">=10"
980 | },
981 | "funding": {
982 | "url": "https://github.com/sponsors/sindresorhus"
983 | }
984 | },
985 | "node_modules/flat-cache": {
986 | "version": "3.0.4",
987 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",
988 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",
989 | "dev": true,
990 | "peer": true,
991 | "dependencies": {
992 | "flatted": "^3.1.0",
993 | "rimraf": "^3.0.2"
994 | },
995 | "engines": {
996 | "node": "^10.12.0 || >=12.0.0"
997 | }
998 | },
999 | "node_modules/flatted": {
1000 | "version": "3.2.7",
1001 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
1002 | "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",
1003 | "dev": true,
1004 | "peer": true
1005 | },
1006 | "node_modules/fs.realpath": {
1007 | "version": "1.0.0",
1008 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
1009 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
1010 | "dev": true,
1011 | "peer": true
1012 | },
1013 | "node_modules/functional-red-black-tree": {
1014 | "version": "1.0.1",
1015 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz",
1016 | "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==",
1017 | "dev": true
1018 | },
1019 | "node_modules/glob": {
1020 | "version": "7.2.3",
1021 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
1022 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
1023 | "dev": true,
1024 | "peer": true,
1025 | "dependencies": {
1026 | "fs.realpath": "^1.0.0",
1027 | "inflight": "^1.0.4",
1028 | "inherits": "2",
1029 | "minimatch": "^3.1.1",
1030 | "once": "^1.3.0",
1031 | "path-is-absolute": "^1.0.0"
1032 | },
1033 | "engines": {
1034 | "node": "*"
1035 | },
1036 | "funding": {
1037 | "url": "https://github.com/sponsors/isaacs"
1038 | }
1039 | },
1040 | "node_modules/glob-parent": {
1041 | "version": "6.0.2",
1042 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
1043 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
1044 | "dev": true,
1045 | "peer": true,
1046 | "dependencies": {
1047 | "is-glob": "^4.0.3"
1048 | },
1049 | "engines": {
1050 | "node": ">=10.13.0"
1051 | }
1052 | },
1053 | "node_modules/globals": {
1054 | "version": "13.19.0",
1055 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz",
1056 | "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==",
1057 | "dev": true,
1058 | "peer": true,
1059 | "dependencies": {
1060 | "type-fest": "^0.20.2"
1061 | },
1062 | "engines": {
1063 | "node": ">=8"
1064 | },
1065 | "funding": {
1066 | "url": "https://github.com/sponsors/sindresorhus"
1067 | }
1068 | },
1069 | "node_modules/globby": {
1070 | "version": "11.1.0",
1071 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
1072 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
1073 | "dev": true,
1074 | "dependencies": {
1075 | "array-union": "^2.1.0",
1076 | "dir-glob": "^3.0.1",
1077 | "fast-glob": "^3.2.9",
1078 | "ignore": "^5.2.0",
1079 | "merge2": "^1.4.1",
1080 | "slash": "^3.0.0"
1081 | },
1082 | "engines": {
1083 | "node": ">=10"
1084 | },
1085 | "funding": {
1086 | "url": "https://github.com/sponsors/sindresorhus"
1087 | }
1088 | },
1089 | "node_modules/grapheme-splitter": {
1090 | "version": "1.0.4",
1091 | "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz",
1092 | "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
1093 | "dev": true,
1094 | "peer": true
1095 | },
1096 | "node_modules/has-flag": {
1097 | "version": "4.0.0",
1098 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
1099 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
1100 | "dev": true,
1101 | "peer": true,
1102 | "engines": {
1103 | "node": ">=8"
1104 | }
1105 | },
1106 | "node_modules/ignore": {
1107 | "version": "5.2.4",
1108 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
1109 | "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
1110 | "dev": true,
1111 | "engines": {
1112 | "node": ">= 4"
1113 | }
1114 | },
1115 | "node_modules/import-fresh": {
1116 | "version": "3.3.0",
1117 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
1118 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
1119 | "dev": true,
1120 | "peer": true,
1121 | "dependencies": {
1122 | "parent-module": "^1.0.0",
1123 | "resolve-from": "^4.0.0"
1124 | },
1125 | "engines": {
1126 | "node": ">=6"
1127 | },
1128 | "funding": {
1129 | "url": "https://github.com/sponsors/sindresorhus"
1130 | }
1131 | },
1132 | "node_modules/imurmurhash": {
1133 | "version": "0.1.4",
1134 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
1135 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
1136 | "dev": true,
1137 | "peer": true,
1138 | "engines": {
1139 | "node": ">=0.8.19"
1140 | }
1141 | },
1142 | "node_modules/inflight": {
1143 | "version": "1.0.6",
1144 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
1145 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
1146 | "dev": true,
1147 | "peer": true,
1148 | "dependencies": {
1149 | "once": "^1.3.0",
1150 | "wrappy": "1"
1151 | }
1152 | },
1153 | "node_modules/inherits": {
1154 | "version": "2.0.4",
1155 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
1156 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
1157 | "dev": true,
1158 | "peer": true
1159 | },
1160 | "node_modules/is-extglob": {
1161 | "version": "2.1.1",
1162 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
1163 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
1164 | "dev": true,
1165 | "engines": {
1166 | "node": ">=0.10.0"
1167 | }
1168 | },
1169 | "node_modules/is-glob": {
1170 | "version": "4.0.3",
1171 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
1172 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
1173 | "dev": true,
1174 | "dependencies": {
1175 | "is-extglob": "^2.1.1"
1176 | },
1177 | "engines": {
1178 | "node": ">=0.10.0"
1179 | }
1180 | },
1181 | "node_modules/is-number": {
1182 | "version": "7.0.0",
1183 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
1184 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
1185 | "dev": true,
1186 | "engines": {
1187 | "node": ">=0.12.0"
1188 | }
1189 | },
1190 | "node_modules/is-path-inside": {
1191 | "version": "3.0.3",
1192 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
1193 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
1194 | "dev": true,
1195 | "peer": true,
1196 | "engines": {
1197 | "node": ">=8"
1198 | }
1199 | },
1200 | "node_modules/isexe": {
1201 | "version": "2.0.0",
1202 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
1203 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
1204 | "dev": true,
1205 | "peer": true
1206 | },
1207 | "node_modules/js-sdsl": {
1208 | "version": "4.2.0",
1209 | "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz",
1210 | "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==",
1211 | "dev": true,
1212 | "peer": true,
1213 | "funding": {
1214 | "type": "opencollective",
1215 | "url": "https://opencollective.com/js-sdsl"
1216 | }
1217 | },
1218 | "node_modules/js-yaml": {
1219 | "version": "4.1.0",
1220 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
1221 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
1222 | "dev": true,
1223 | "peer": true,
1224 | "dependencies": {
1225 | "argparse": "^2.0.1"
1226 | },
1227 | "bin": {
1228 | "js-yaml": "bin/js-yaml.js"
1229 | }
1230 | },
1231 | "node_modules/json-schema-traverse": {
1232 | "version": "0.4.1",
1233 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
1234 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
1235 | "dev": true,
1236 | "peer": true
1237 | },
1238 | "node_modules/json-stable-stringify-without-jsonify": {
1239 | "version": "1.0.1",
1240 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
1241 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
1242 | "dev": true,
1243 | "peer": true
1244 | },
1245 | "node_modules/levn": {
1246 | "version": "0.4.1",
1247 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
1248 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
1249 | "dev": true,
1250 | "peer": true,
1251 | "dependencies": {
1252 | "prelude-ls": "^1.2.1",
1253 | "type-check": "~0.4.0"
1254 | },
1255 | "engines": {
1256 | "node": ">= 0.8.0"
1257 | }
1258 | },
1259 | "node_modules/locate-path": {
1260 | "version": "6.0.0",
1261 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
1262 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
1263 | "dev": true,
1264 | "peer": true,
1265 | "dependencies": {
1266 | "p-locate": "^5.0.0"
1267 | },
1268 | "engines": {
1269 | "node": ">=10"
1270 | },
1271 | "funding": {
1272 | "url": "https://github.com/sponsors/sindresorhus"
1273 | }
1274 | },
1275 | "node_modules/lodash.merge": {
1276 | "version": "4.6.2",
1277 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
1278 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
1279 | "dev": true,
1280 | "peer": true
1281 | },
1282 | "node_modules/lorem-ipsum": {
1283 | "version": "2.0.8",
1284 | "resolved": "https://registry.npmjs.org/lorem-ipsum/-/lorem-ipsum-2.0.8.tgz",
1285 | "integrity": "sha512-5RIwHuCb979RASgCJH0VKERn9cQo/+NcAi2BMe9ddj+gp7hujl6BI+qdOG4nVsLDpwWEJwTVYXNKP6BGgbcoGA==",
1286 | "dependencies": {
1287 | "commander": "^9.3.0"
1288 | },
1289 | "bin": {
1290 | "lorem-ipsum": "dist/bin/lorem-ipsum.bin.js"
1291 | },
1292 | "engines": {
1293 | "node": ">= 8.x",
1294 | "npm": ">= 5.x"
1295 | }
1296 | },
1297 | "node_modules/lru-cache": {
1298 | "version": "6.0.0",
1299 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
1300 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
1301 | "dev": true,
1302 | "dependencies": {
1303 | "yallist": "^4.0.0"
1304 | },
1305 | "engines": {
1306 | "node": ">=10"
1307 | }
1308 | },
1309 | "node_modules/merge2": {
1310 | "version": "1.4.1",
1311 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
1312 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
1313 | "dev": true,
1314 | "engines": {
1315 | "node": ">= 8"
1316 | }
1317 | },
1318 | "node_modules/micromatch": {
1319 | "version": "4.0.5",
1320 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
1321 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
1322 | "dev": true,
1323 | "dependencies": {
1324 | "braces": "^3.0.2",
1325 | "picomatch": "^2.3.1"
1326 | },
1327 | "engines": {
1328 | "node": ">=8.6"
1329 | }
1330 | },
1331 | "node_modules/minimatch": {
1332 | "version": "3.1.2",
1333 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
1334 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
1335 | "dev": true,
1336 | "peer": true,
1337 | "dependencies": {
1338 | "brace-expansion": "^1.1.7"
1339 | },
1340 | "engines": {
1341 | "node": "*"
1342 | }
1343 | },
1344 | "node_modules/moment": {
1345 | "version": "2.29.4",
1346 | "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
1347 | "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
1348 | "dev": true,
1349 | "engines": {
1350 | "node": "*"
1351 | }
1352 | },
1353 | "node_modules/ms": {
1354 | "version": "2.1.2",
1355 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
1356 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
1357 | "dev": true
1358 | },
1359 | "node_modules/natural-compare": {
1360 | "version": "1.4.0",
1361 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
1362 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
1363 | "dev": true,
1364 | "peer": true
1365 | },
1366 | "node_modules/obsidian": {
1367 | "version": "1.1.1",
1368 | "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.1.1.tgz",
1369 | "integrity": "sha512-GcxhsHNkPEkwHEjeyitfYNBcQuYGeAHFs1pEpZIv0CnzSfui8p8bPLm2YKLgcg20B764770B1sYGtxCvk9ptxg==",
1370 | "dev": true,
1371 | "dependencies": {
1372 | "@types/codemirror": "0.0.108",
1373 | "moment": "2.29.4"
1374 | },
1375 | "peerDependencies": {
1376 | "@codemirror/state": "^6.0.0",
1377 | "@codemirror/view": "^6.0.0"
1378 | }
1379 | },
1380 | "node_modules/once": {
1381 | "version": "1.4.0",
1382 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1383 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
1384 | "dev": true,
1385 | "peer": true,
1386 | "dependencies": {
1387 | "wrappy": "1"
1388 | }
1389 | },
1390 | "node_modules/optionator": {
1391 | "version": "0.9.1",
1392 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
1393 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",
1394 | "dev": true,
1395 | "peer": true,
1396 | "dependencies": {
1397 | "deep-is": "^0.1.3",
1398 | "fast-levenshtein": "^2.0.6",
1399 | "levn": "^0.4.1",
1400 | "prelude-ls": "^1.2.1",
1401 | "type-check": "^0.4.0",
1402 | "word-wrap": "^1.2.3"
1403 | },
1404 | "engines": {
1405 | "node": ">= 0.8.0"
1406 | }
1407 | },
1408 | "node_modules/p-limit": {
1409 | "version": "3.1.0",
1410 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
1411 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
1412 | "dev": true,
1413 | "peer": true,
1414 | "dependencies": {
1415 | "yocto-queue": "^0.1.0"
1416 | },
1417 | "engines": {
1418 | "node": ">=10"
1419 | },
1420 | "funding": {
1421 | "url": "https://github.com/sponsors/sindresorhus"
1422 | }
1423 | },
1424 | "node_modules/p-locate": {
1425 | "version": "5.0.0",
1426 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
1427 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
1428 | "dev": true,
1429 | "peer": true,
1430 | "dependencies": {
1431 | "p-limit": "^3.0.2"
1432 | },
1433 | "engines": {
1434 | "node": ">=10"
1435 | },
1436 | "funding": {
1437 | "url": "https://github.com/sponsors/sindresorhus"
1438 | }
1439 | },
1440 | "node_modules/parent-module": {
1441 | "version": "1.0.1",
1442 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
1443 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
1444 | "dev": true,
1445 | "peer": true,
1446 | "dependencies": {
1447 | "callsites": "^3.0.0"
1448 | },
1449 | "engines": {
1450 | "node": ">=6"
1451 | }
1452 | },
1453 | "node_modules/path-exists": {
1454 | "version": "4.0.0",
1455 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
1456 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
1457 | "dev": true,
1458 | "peer": true,
1459 | "engines": {
1460 | "node": ">=8"
1461 | }
1462 | },
1463 | "node_modules/path-is-absolute": {
1464 | "version": "1.0.1",
1465 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
1466 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
1467 | "dev": true,
1468 | "peer": true,
1469 | "engines": {
1470 | "node": ">=0.10.0"
1471 | }
1472 | },
1473 | "node_modules/path-key": {
1474 | "version": "3.1.1",
1475 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
1476 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
1477 | "dev": true,
1478 | "peer": true,
1479 | "engines": {
1480 | "node": ">=8"
1481 | }
1482 | },
1483 | "node_modules/path-type": {
1484 | "version": "4.0.0",
1485 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
1486 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
1487 | "dev": true,
1488 | "engines": {
1489 | "node": ">=8"
1490 | }
1491 | },
1492 | "node_modules/picomatch": {
1493 | "version": "2.3.1",
1494 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
1495 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
1496 | "dev": true,
1497 | "engines": {
1498 | "node": ">=8.6"
1499 | },
1500 | "funding": {
1501 | "url": "https://github.com/sponsors/jonschlinkert"
1502 | }
1503 | },
1504 | "node_modules/prelude-ls": {
1505 | "version": "1.2.1",
1506 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
1507 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
1508 | "dev": true,
1509 | "peer": true,
1510 | "engines": {
1511 | "node": ">= 0.8.0"
1512 | }
1513 | },
1514 | "node_modules/punycode": {
1515 | "version": "2.2.0",
1516 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.2.0.tgz",
1517 | "integrity": "sha512-LN6QV1IJ9ZhxWTNdktaPClrNfp8xdSAYS0Zk2ddX7XsXZAxckMHPCBcHRo0cTcEIgYPRiGEkmji3Idkh2yFtYw==",
1518 | "dev": true,
1519 | "peer": true,
1520 | "engines": {
1521 | "node": ">=6"
1522 | }
1523 | },
1524 | "node_modules/queue-microtask": {
1525 | "version": "1.2.3",
1526 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
1527 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
1528 | "dev": true,
1529 | "funding": [
1530 | {
1531 | "type": "github",
1532 | "url": "https://github.com/sponsors/feross"
1533 | },
1534 | {
1535 | "type": "patreon",
1536 | "url": "https://www.patreon.com/feross"
1537 | },
1538 | {
1539 | "type": "consulting",
1540 | "url": "https://feross.org/support"
1541 | }
1542 | ]
1543 | },
1544 | "node_modules/regexpp": {
1545 | "version": "3.2.0",
1546 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz",
1547 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==",
1548 | "dev": true,
1549 | "engines": {
1550 | "node": ">=8"
1551 | },
1552 | "funding": {
1553 | "url": "https://github.com/sponsors/mysticatea"
1554 | }
1555 | },
1556 | "node_modules/resolve-from": {
1557 | "version": "4.0.0",
1558 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
1559 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
1560 | "dev": true,
1561 | "peer": true,
1562 | "engines": {
1563 | "node": ">=4"
1564 | }
1565 | },
1566 | "node_modules/reusify": {
1567 | "version": "1.0.4",
1568 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
1569 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
1570 | "dev": true,
1571 | "engines": {
1572 | "iojs": ">=1.0.0",
1573 | "node": ">=0.10.0"
1574 | }
1575 | },
1576 | "node_modules/rimraf": {
1577 | "version": "3.0.2",
1578 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
1579 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
1580 | "dev": true,
1581 | "peer": true,
1582 | "dependencies": {
1583 | "glob": "^7.1.3"
1584 | },
1585 | "bin": {
1586 | "rimraf": "bin.js"
1587 | },
1588 | "funding": {
1589 | "url": "https://github.com/sponsors/isaacs"
1590 | }
1591 | },
1592 | "node_modules/run-parallel": {
1593 | "version": "1.2.0",
1594 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
1595 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
1596 | "dev": true,
1597 | "funding": [
1598 | {
1599 | "type": "github",
1600 | "url": "https://github.com/sponsors/feross"
1601 | },
1602 | {
1603 | "type": "patreon",
1604 | "url": "https://www.patreon.com/feross"
1605 | },
1606 | {
1607 | "type": "consulting",
1608 | "url": "https://feross.org/support"
1609 | }
1610 | ],
1611 | "dependencies": {
1612 | "queue-microtask": "^1.2.2"
1613 | }
1614 | },
1615 | "node_modules/semver": {
1616 | "version": "7.3.8",
1617 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz",
1618 | "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==",
1619 | "dev": true,
1620 | "dependencies": {
1621 | "lru-cache": "^6.0.0"
1622 | },
1623 | "bin": {
1624 | "semver": "bin/semver.js"
1625 | },
1626 | "engines": {
1627 | "node": ">=10"
1628 | }
1629 | },
1630 | "node_modules/shebang-command": {
1631 | "version": "2.0.0",
1632 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
1633 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
1634 | "dev": true,
1635 | "peer": true,
1636 | "dependencies": {
1637 | "shebang-regex": "^3.0.0"
1638 | },
1639 | "engines": {
1640 | "node": ">=8"
1641 | }
1642 | },
1643 | "node_modules/shebang-regex": {
1644 | "version": "3.0.0",
1645 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
1646 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
1647 | "dev": true,
1648 | "peer": true,
1649 | "engines": {
1650 | "node": ">=8"
1651 | }
1652 | },
1653 | "node_modules/slash": {
1654 | "version": "3.0.0",
1655 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
1656 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
1657 | "dev": true,
1658 | "engines": {
1659 | "node": ">=8"
1660 | }
1661 | },
1662 | "node_modules/strip-ansi": {
1663 | "version": "6.0.1",
1664 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
1665 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1666 | "dev": true,
1667 | "peer": true,
1668 | "dependencies": {
1669 | "ansi-regex": "^5.0.1"
1670 | },
1671 | "engines": {
1672 | "node": ">=8"
1673 | }
1674 | },
1675 | "node_modules/strip-json-comments": {
1676 | "version": "3.1.1",
1677 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
1678 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
1679 | "dev": true,
1680 | "peer": true,
1681 | "engines": {
1682 | "node": ">=8"
1683 | },
1684 | "funding": {
1685 | "url": "https://github.com/sponsors/sindresorhus"
1686 | }
1687 | },
1688 | "node_modules/style-mod": {
1689 | "version": "4.0.0",
1690 | "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.0.0.tgz",
1691 | "integrity": "sha512-OPhtyEjyyN9x3nhPsu76f52yUGXiZcgvsrFVtvTkyGRQJ0XK+GPc6ov1z+lRpbeabka+MYEQxOYRnt5nF30aMw==",
1692 | "dev": true,
1693 | "peer": true
1694 | },
1695 | "node_modules/supports-color": {
1696 | "version": "7.2.0",
1697 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
1698 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
1699 | "dev": true,
1700 | "peer": true,
1701 | "dependencies": {
1702 | "has-flag": "^4.0.0"
1703 | },
1704 | "engines": {
1705 | "node": ">=8"
1706 | }
1707 | },
1708 | "node_modules/text-table": {
1709 | "version": "0.2.0",
1710 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
1711 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
1712 | "dev": true,
1713 | "peer": true
1714 | },
1715 | "node_modules/to-regex-range": {
1716 | "version": "5.0.1",
1717 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
1718 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
1719 | "dev": true,
1720 | "dependencies": {
1721 | "is-number": "^7.0.0"
1722 | },
1723 | "engines": {
1724 | "node": ">=8.0"
1725 | }
1726 | },
1727 | "node_modules/tslib": {
1728 | "version": "2.4.0",
1729 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",
1730 | "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==",
1731 | "dev": true
1732 | },
1733 | "node_modules/tsutils": {
1734 | "version": "3.21.0",
1735 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
1736 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
1737 | "dev": true,
1738 | "dependencies": {
1739 | "tslib": "^1.8.1"
1740 | },
1741 | "engines": {
1742 | "node": ">= 6"
1743 | },
1744 | "peerDependencies": {
1745 | "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
1746 | }
1747 | },
1748 | "node_modules/tsutils/node_modules/tslib": {
1749 | "version": "1.14.1",
1750 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
1751 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
1752 | "dev": true
1753 | },
1754 | "node_modules/type-check": {
1755 | "version": "0.4.0",
1756 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
1757 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
1758 | "dev": true,
1759 | "peer": true,
1760 | "dependencies": {
1761 | "prelude-ls": "^1.2.1"
1762 | },
1763 | "engines": {
1764 | "node": ">= 0.8.0"
1765 | }
1766 | },
1767 | "node_modules/type-fest": {
1768 | "version": "0.20.2",
1769 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
1770 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
1771 | "dev": true,
1772 | "peer": true,
1773 | "engines": {
1774 | "node": ">=10"
1775 | },
1776 | "funding": {
1777 | "url": "https://github.com/sponsors/sindresorhus"
1778 | }
1779 | },
1780 | "node_modules/typescript": {
1781 | "version": "4.7.4",
1782 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
1783 | "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
1784 | "dev": true,
1785 | "bin": {
1786 | "tsc": "bin/tsc",
1787 | "tsserver": "bin/tsserver"
1788 | },
1789 | "engines": {
1790 | "node": ">=4.2.0"
1791 | }
1792 | },
1793 | "node_modules/uri-js": {
1794 | "version": "4.4.1",
1795 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
1796 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
1797 | "dev": true,
1798 | "peer": true,
1799 | "dependencies": {
1800 | "punycode": "^2.1.0"
1801 | }
1802 | },
1803 | "node_modules/w3c-keyname": {
1804 | "version": "2.2.6",
1805 | "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.6.tgz",
1806 | "integrity": "sha512-f+fciywl1SJEniZHD6H+kUO8gOnwIr7f4ijKA6+ZvJFjeGi1r4PDLl53Ayud9O/rk64RqgoQine0feoeOU0kXg==",
1807 | "dev": true,
1808 | "peer": true
1809 | },
1810 | "node_modules/which": {
1811 | "version": "2.0.2",
1812 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
1813 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
1814 | "dev": true,
1815 | "peer": true,
1816 | "dependencies": {
1817 | "isexe": "^2.0.0"
1818 | },
1819 | "bin": {
1820 | "node-which": "bin/node-which"
1821 | },
1822 | "engines": {
1823 | "node": ">= 8"
1824 | }
1825 | },
1826 | "node_modules/word-wrap": {
1827 | "version": "1.2.3",
1828 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
1829 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
1830 | "engines": {
1831 | "node": ">=0.10.0"
1832 | }
1833 | },
1834 | "node_modules/wrappy": {
1835 | "version": "1.0.2",
1836 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1837 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
1838 | "dev": true,
1839 | "peer": true
1840 | },
1841 | "node_modules/yallist": {
1842 | "version": "4.0.0",
1843 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
1844 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
1845 | "dev": true
1846 | },
1847 | "node_modules/yocto-queue": {
1848 | "version": "0.1.0",
1849 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
1850 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
1851 | "dev": true,
1852 | "peer": true,
1853 | "engines": {
1854 | "node": ">=10"
1855 | },
1856 | "funding": {
1857 | "url": "https://github.com/sponsors/sindresorhus"
1858 | }
1859 | }
1860 | }
1861 | }
1862 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "testing-vault",
3 | "version": "1.2.0",
4 | "description": "This Obsidian plugin allows the user to generate a vault randomly, complete with orphaned notes, empty notes, and linked notes.",
5 | "main": "main.js",
6 | "scripts": {
7 | "dev": "node esbuild.config.mjs",
8 | "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
9 | "version": "node version-bump.mjs && git add manifest.json versions.json"
10 | },
11 | "keywords": [],
12 | "author": "Michael J. Pedersen ",
13 | "license": "MIT",
14 | "devDependencies": {
15 | "@types/node": "^16.11.6",
16 | "@typescript-eslint/eslint-plugin": "5.29.0",
17 | "@typescript-eslint/parser": "5.29.0",
18 | "builtin-modules": "3.3.0",
19 | "esbuild": "0.14.47",
20 | "obsidian": "latest",
21 | "tslib": "2.4.0",
22 | "typescript": "4.7.4"
23 | },
24 | "dependencies": {
25 | "lorem-ipsum": "^2.0.8",
26 | "word-wrap": "^1.2.3"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/loremnotes.ts:
--------------------------------------------------------------------------------
1 | import {randomChoice, randomDateInRange, randomInt, randomSubset} from "./random";
2 | import {loremIpsum} from "lorem-ipsum";
3 |
4 | let wrap = require('word-wrap');
5 |
6 | export interface INoteGenerator {
7 | title?: string; // ''
8 | minTitleWords?: number; // 4
9 | maxTitleWords?: number; // 10
10 | minSentenceWords?: number; // 5
11 | maxSentenceWords?: number; // 20
12 | minSentences?: number; // 4
13 | maxSentences?: number; // 20
14 | minParagraphs?: number; // 1
15 | maxParagraphs?: number; // 10
16 | minTags?: number; // 0
17 | maxTags?: number; // 5
18 | aliasPercent?: number; // 10
19 | publishPercent?: number; // 50
20 | frontMatterPercent?: number; // 90
21 | alltitles?: Array; // []
22 | emptyFilesPercent?: number; // 3
23 | orphanedNotesPercent?: number; // 5
24 | leafNotesPercent?: number; // 25
25 | minLinks?: number; // 1
26 | maxLinks?: number; // 10
27 | }
28 |
29 | const tags = Array.from(new Set(loremIpsum({count: 100, units: "words"})
30 | .split(' ').map((word) => {
31 | return `#${word}`
32 | })))
33 | const cssclasses = Array.from(new Set(loremIpsum({count: 100, units: "words"})
34 | .split(' ')));
35 |
36 | function newFrontMatter({
37 | publishPercent = 50,
38 | aliasPercent = 10,
39 | title = '',
40 | minTags = 0,
41 | maxTags = 5
42 | }: INoteGenerator): string {
43 | const cssclass = cssclasses[randomInt(0, cssclasses.length - 1)];
44 | const publish = Math.random() >= publishPercent / 100.0 ? "true" : " false";
45 | // generate aliases here
46 | let alias = '';
47 | const aliasresult = Math.random();
48 | if (aliasresult <= aliasPercent / 100.0) {
49 | alias = title.split(' ').map((word) => {
50 | return word[0]
51 | }).join('');
52 | }
53 | // generate tags here
54 | const numTags = randomInt(minTags, maxTags);
55 | const chosenTags = randomSubset(tags, numTags).join('"\n - "');
56 | const status = randomChoice(["Backlog", "In progress", "Done"]);
57 | const published = randomChoice([0, 1]);
58 | const weight = randomInt(1, 100);
59 | const start = new Date(Date.now());
60 | const end = new Date(start.getTime() + 31536000000); // magic number, milliseconds in a year
61 | const duedate = randomDateInRange(start, end);
62 |
63 | return `---\ntags: \n - "${chosenTags}"\ncssclass: ${cssclass}\n`
64 | + `aliases: ${alias}\npublish: ${publish}\n`
65 | + `status: ${status}\npublished: ${published}\n`
66 | + `due: ${duedate.toISOString().substring(0, 10)}\n`
67 | + `weight: ${weight}\n`
68 | + `---\n`;
69 | }
70 |
71 | export function newTitle(titleWords: number): string {
72 | return loremIpsum({count: titleWords, units: "words"}).toLowerCase().split(' ').map((word) => {
73 | return word[0].toUpperCase() + word.substring(1)
74 | }).join(' ');
75 | }
76 |
77 | export function newLoremNote({
78 | title = '',
79 | minTitleWords = 4,
80 | maxTitleWords = 10,
81 | minSentenceWords = 5,
82 | maxSentenceWords = 20,
83 | minSentences = 4,
84 | maxSentences = 20,
85 | minParagraphs = 1,
86 | maxParagraphs = 10,
87 | minTags = 0,
88 | maxTags = 5,
89 | aliasPercent = 10,
90 | publishPercent = 50,
91 | frontMatterPercent = 90,
92 | alltitles = [],
93 | minLinks = 1,
94 | maxLinks = 10
95 | }: INoteGenerator): { note: string, title: string } {
96 | const titleWords = randomInt(minTitleWords, maxTitleWords);
97 | const numParagraphs = randomInt(minParagraphs, maxParagraphs, 4);
98 | if (title.length == 0) {
99 | title = newTitle(titleWords);
100 | }
101 | let text = loremIpsum({
102 | count: numParagraphs, units: "paragraphs", format: "plain",
103 | paragraphLowerBound: minSentences, paragraphUpperBound: maxSentences,
104 | sentenceLowerBound: minSentenceWords, sentenceUpperBound: maxSentenceWords,
105 | suffix: "\n\n"
106 | });
107 | if (alltitles?.length > 0) {
108 | const numberofLinks = randomInt(minLinks, maxLinks);
109 | const linkedTitles = randomSubset(alltitles, numberofLinks);
110 | let paragraphs = text.split('\n');
111 | for (let i = 0; i < linkedTitles.length; i++) {
112 | let paragraphNumber = randomInt(0, paragraphs.length);
113 | paragraphs[paragraphNumber] = `${paragraphs[paragraphNumber]}[[${linkedTitles[i]}]]`
114 | }
115 | text = paragraphs.join('\n');
116 | }
117 | const wrapped = wrap(text, {width: 75, trim: true, indent: ''});
118 | const frontmatter = Math.random() <= frontMatterPercent / 100.0 ? newFrontMatter({
119 | publishPercent: publishPercent,
120 | aliasPercent: aliasPercent,
121 | title: title,
122 | minTags: minTags,
123 | maxTags: maxTags
124 | }) : '';
125 | return {"title": title, "note": frontmatter + wrapped};
126 | }
127 |
--------------------------------------------------------------------------------
/src/main.ts:
--------------------------------------------------------------------------------
1 | import {Plugin, TFolder} from 'obsidian';
2 | import {newLoremNote} from "./loremnotes";
3 | import {TestingVaultModal} from "./vault";
4 |
5 | /*
6 | * From comment on Discord:
7 | You might also want to consider adding other rando text generations, other than lorem ipsum, such as
8 | https://www.npmjs.com/package/txtgen That way, you can have some actual English text to benchmark,
9 | which might be interesting for linguistic-related plugins
10 | */
11 |
12 | function destroyVault(root: TFolder) {
13 | for (let child of root.children) {
14 | if (child instanceof TFolder) {
15 | destroyVault(child);
16 | this.app.vault.delete(child, true);
17 | } else {
18 | this.app.vault.delete(child, true);
19 | }
20 | }
21 | }
22 |
23 | export default class TestingVaultPlugin extends Plugin {
24 | deleteVaultContents() {
25 | destroyVault(this.app.vault.getRoot());
26 | }
27 |
28 | async onload() {
29 | // Create a single randomized note of lorem ipsum.
30 | this.addCommand({
31 | id: 'single-note',
32 | name: 'Make a single randomized note in your vault',
33 | callback: () => {
34 | let note = newLoremNote({});
35 | this.app.vault.create(`${note.title}.md`, note.note);
36 | }
37 | });
38 |
39 | this.addCommand({
40 | id: 'fill-vault',
41 | name: 'Make a group of randomized notes in your vault',
42 | callback: () => {
43 | new TestingVaultModal(this.app).open();
44 | }
45 | });
46 | this.addCommand({
47 | id: 'destroy-vault',
48 | name: 'Destroy everything in this vault',
49 | callback: () => {
50 | this.deleteVaultContents();
51 | }
52 | })
53 | }
54 |
55 | onunload() {
56 |
57 | }
58 | }
59 |
60 |
--------------------------------------------------------------------------------
/src/random.ts:
--------------------------------------------------------------------------------
1 | export function randomInt(min: number, max: number, power: number = 1): number {
2 | return Math.floor(Math.pow(Math.random() * (max - min + 1), power)) + min;
3 | }
4 |
5 | export function randomSubset(arr: Array, size: number): Array {
6 | let shuffled = arr.slice(0), i = arr.length, temp, index;
7 | while (i--) {
8 | index = Math.floor((i + 1) * Math.random());
9 | temp = shuffled[index];
10 | shuffled[index] = shuffled[i];
11 | shuffled[i] = temp;
12 | }
13 | return shuffled.slice(0, size);
14 | }
15 |
16 | export function randomChoice(arr: Array): any {
17 | return arr[randomInt(0, arr.length - 1)];
18 | }
19 |
20 | export function randomDateInRange(start: Date, end: Date): Date {
21 | const range = end.getTime() - start.getTime();
22 | const newMs = randomInt(0, range);
23 | return new Date(start.getTime() + newMs);
24 | }
25 |
--------------------------------------------------------------------------------
/src/vault.ts:
--------------------------------------------------------------------------------
1 | import {App, ButtonComponent, Modal, Notice, SliderComponent, TextComponent, Vault} from "obsidian";
2 | import {INoteGenerator, newLoremNote, newTitle} from "./loremnotes";
3 | import {randomInt} from "./random";
4 |
5 | export async function fillVault(maxNotes: number = 1000, notice: Notice, vault: Vault, {
6 | emptyFilesPercent = 3,
7 | orphanedNotesPercent = 5,
8 | leafNotesPercent = 25,
9 | minTitleWords = 4,
10 | maxTitleWords = 10,
11 | minSentenceWords = 5,
12 | maxSentenceWords = 20,
13 | minSentences = 4,
14 | maxSentences = 20,
15 | minParagraphs = 1,
16 | maxParagraphs = 10,
17 | minTags = 0,
18 | maxTags = 5,
19 | aliasPercent = 10,
20 | publishPercent = 50,
21 | frontMatterPercent = 90,
22 | minLinks = 1,
23 | maxLinks = 10
24 | }: INoteGenerator) {
25 | let titles = Array.apply(null, Array(maxNotes)).map(function () {
26 | });
27 | await notice.setMessage("Generating titles");
28 | for (let i = 0; i < maxNotes; i++) {
29 | let titleWords = randomInt(minTitleWords, maxTitleWords);
30 | titles[i] = newTitle(titleWords);
31 | }
32 |
33 | await notice.setMessage("Generating Empty Notes");
34 | let generated = 0;
35 | const emptyFilesCount = Math.floor(maxNotes * (emptyFilesPercent / 100.0));
36 | for (let i = 0; i < emptyFilesCount; i++) {
37 | await vault.create(`${titles[generated]}.md`, '');
38 | generated++;
39 | }
40 |
41 | await notice.setMessage("Generating Orphaned Notes");
42 | const orphanedNotesCount = Math.floor(maxNotes * (orphanedNotesPercent / 100.0));
43 | for (let i = 0; i < orphanedNotesCount; i++) {
44 | if ((i >= 1) && (i % 20 == 0)) {
45 | await notice.setMessage(`Progress: Created ${i}/${maxNotes} notes so far`);
46 | }
47 | let note = newLoremNote({
48 | title: titles[generated],
49 | minTitleWords: minLinks, maxTitleWords: maxTitleWords, minSentenceWords: minSentenceWords,
50 | maxSentenceWords: maxSentenceWords, minSentences: minSentences, maxSentences: maxSentences,
51 | minParagraphs: minParagraphs, maxParagraphs: maxParagraphs, minTags: minTags, maxTags: maxTags,
52 | aliasPercent: aliasPercent, publishPercent: publishPercent, frontMatterPercent: frontMatterPercent,
53 | minLinks: minLinks, maxLinks: maxLinks
54 | });
55 | await vault.create(`${note.title}.md`, note.note);
56 | generated++;
57 | }
58 |
59 | await notice.setMessage("Generating Leaf Notes");
60 | const linksBegin = generated;
61 | const leafCount = Math.floor(maxNotes * (leafNotesPercent / 100.0));
62 | for (let i = 0; i < leafCount; i++) {
63 | if ((i >= 1) && (i % 20 == 0)) {
64 | await notice.setMessage(`Progress: Created ${i}/${maxNotes} notes so far`);
65 | }
66 | let note = newLoremNote({
67 | title: titles[generated], alltitles: titles.slice(linksBegin),
68 | minTitleWords: minLinks, maxTitleWords: maxTitleWords, minSentenceWords: minSentenceWords,
69 | maxSentenceWords: maxSentenceWords, minSentences: minSentences, maxSentences: maxSentences,
70 | minParagraphs: minParagraphs, maxParagraphs: maxParagraphs, minTags: minTags, maxTags: maxTags,
71 | aliasPercent: aliasPercent, publishPercent: publishPercent, frontMatterPercent: frontMatterPercent,
72 | minLinks: minLinks, maxLinks: maxLinks
73 | });
74 | await vault.create(`${note.title}.md`, note.note);
75 | generated++;
76 | }
77 |
78 | for (let i = generated; i < maxNotes; i++) {
79 | if ((i >= 1) && (i % 20 == 0)) {
80 | await notice.setMessage(`Progress: Created ${i}/${maxNotes} notes so far`);
81 | }
82 | let note = newLoremNote({
83 | title: titles[i], alltitles: titles.slice(linksBegin),
84 | minTitleWords: minLinks, maxTitleWords: maxTitleWords, minSentenceWords: minSentenceWords,
85 | maxSentenceWords: maxSentenceWords, minSentences: minSentences, maxSentences: maxSentences,
86 | minParagraphs: minParagraphs, maxParagraphs: maxParagraphs, minTags: minTags, maxTags: maxTags,
87 | aliasPercent: aliasPercent, publishPercent: publishPercent, frontMatterPercent: frontMatterPercent,
88 | minLinks: minLinks, maxLinks: maxLinks
89 | });
90 | await vault.create(`${note.title}.md`, note.note);
91 | }
92 | await notice.setMessage(`Vault generated ${maxNotes} notes`);
93 | setTimeout(() => notice.hide(), 4000);
94 | }
95 |
96 | export class TestingVaultModal extends Modal {
97 | constructor(app: App) {
98 | super(app);
99 | }
100 |
101 | createSlider(title: string, min: number, max: number, step: number, defaultVal: number, parentEl: HTMLElement): SliderComponent {
102 | const div = parentEl.createDiv();
103 | const sliderSpan = div.createSpan({text: title})
104 | const slider = new SliderComponent(sliderSpan);
105 | const percent = new TextComponent(sliderSpan);
106 | slider.setLimits(min, max, step);
107 | slider.setValue(defaultVal);
108 | percent.setValue(defaultVal.toString());
109 | slider.onChange((value: number) => {
110 | percent.setValue(value.toString())
111 | });
112 | percent.onChange((value: string) => {
113 | const svalue = parseInt(value);
114 | if (!isNaN(svalue)) {
115 | slider.setValue(parseInt(value));
116 | } else {
117 | slider.setValue(defaultVal);
118 | }
119 | })
120 | return slider;
121 | }
122 |
123 | onOpen() {
124 | const {contentEl} = this;
125 | contentEl.empty();
126 | const notesDiv = contentEl.createDiv();
127 | const notes = this.createSlider('Number of Notes', 50, 50000, 50, 1000, notesDiv);
128 | const distributions = contentEl.createDiv();
129 | distributions.createEl('h1', {text: 'File Distributions'})
130 | const empty = this.createSlider('Empty (%)', 0, 100, 1, 3, distributions);
131 | const orphaned = this.createSlider('Orphaned (%)', 0, 100, 1, 5, distributions);
132 | const leaf = this.createSlider('Leaf Nodes (%)', 0, 100, 1, 25, distributions);
133 | const okbutton = new ButtonComponent(contentEl);
134 | okbutton.setButtonText('Okay');
135 | okbutton.onClick((evt: MouseEvent) => {
136 | let task_status = new Notice('Generating new testing vault', 0);
137 | fillVault(notes.getValue(), task_status, this.app.vault, {
138 | emptyFilesPercent: empty.getValue(),
139 | orphanedNotesPercent: orphaned.getValue(),
140 | leafNotesPercent: leaf.getValue()
141 | });
142 | this.close();
143 | })
144 | }
145 |
146 | onClose() {
147 | const {contentEl} = this;
148 | contentEl.empty();
149 | }
150 | }
151 |
--------------------------------------------------------------------------------
/styles.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | This CSS file will be included with your plugin, and
4 | available in the app when your plugin is enabled.
5 |
6 | If your plugin does not need CSS, delete this file.
7 |
8 | */
9 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "inlineSourceMap": true,
5 | "inlineSources": true,
6 | "module": "ESNext",
7 | "target": "ES6",
8 | "allowJs": true,
9 | "noImplicitAny": true,
10 | "moduleResolution": "node",
11 | "importHelpers": true,
12 | "isolatedModules": true,
13 | "strictNullChecks": true,
14 | "lib": [
15 | "DOM",
16 | "ES5",
17 | "ES6",
18 | "ES7"
19 | ]
20 | },
21 | "include": [
22 | "**/*.ts"
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/version-bump.mjs:
--------------------------------------------------------------------------------
1 | import { readFileSync, writeFileSync } from "fs";
2 |
3 | const targetVersion = process.env.npm_package_version;
4 |
5 | // read minAppVersion from manifest.json and bump version to target version
6 | let manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
7 | const { minAppVersion } = manifest;
8 | manifest.version = targetVersion;
9 | writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t"));
10 |
11 | // update versions.json with target version and minAppVersion from manifest.json
12 | let versions = JSON.parse(readFileSync("versions.json", "utf8"));
13 | versions[targetVersion] = minAppVersion;
14 | writeFileSync("versions.json", JSON.stringify(versions, null, "\t"));
15 |
--------------------------------------------------------------------------------
/versions.json:
--------------------------------------------------------------------------------
1 | {
2 | "1.0.0": "0.15.0",
3 | "1.1.0": "0.15.0",
4 | "1.2.0": "0.15.0"
5 | }
--------------------------------------------------------------------------------