├── .github └── workflows │ └── node.yml ├── .gitignore ├── LICENSE ├── README.md ├── bench.js ├── eslint.config.js ├── index.js ├── package-lock.json ├── package.json ├── rollup.config.js ├── test.js └── tsconfig.json /.github/workflows/node.yml: -------------------------------------------------------------------------------- 1 | name: Node 2 | on: [push, pull_request] 3 | jobs: 4 | test: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - name: Checkout 8 | uses: actions/checkout@v2 9 | 10 | - name: Setup Node 11 | uses: actions/setup-node@v1 12 | with: 13 | node-version: 18 14 | 15 | - name: Install dependencies 16 | run: npm install 17 | 18 | - name: Build the bundle 19 | run: npm run build 20 | 21 | - name: Run tests 22 | run: npm test 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | kdbush.js 3 | kdbush.min.js 4 | index.d.ts 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2018, Vladimir Agafonkin 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any purpose 6 | with or without fee is hereby granted, provided that the above copyright notice 7 | and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 13 | OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 14 | TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 15 | THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## KDBush 2 | 3 | A very fast static spatial index for 2D points based on a flat KD-tree. 4 | Compared to [RBush](https://github.com/mourner/rbush): 5 | 6 | - **Points only** — no rectangles. 7 | - **Static** — you can't add/remove items after initial indexing. 8 | - **Faster** indexing and search, with lower **memory** footprint. 9 | - Index is stored as a single **array buffer** (so you can [transfer](https://developer.mozilla.org/en-US/docs/Glossary/Transferable_objects) it between threads or store it as a compact file). 10 | 11 | 12 | If you need a static index for rectangles, not only points, see [Flatbush](https://github.com/mourner/flatbush). When indexing points, KDBush has the advantage of taking ~2x less memory than Flatbush. 13 | 14 | [![Build Status](https://github.com/mourner/kdbush/workflows/Node/badge.svg?branch=master)](https://github.com/mourner/kdbush/actions) 15 | [![Simply Awesome](https://img.shields.io/badge/simply-awesome-brightgreen.svg)](https://github.com/mourner/projects) 16 | 17 | ## Usage 18 | 19 | ```js 20 | // initialize KDBush for 1000 items 21 | const index = new KDBush(1000); 22 | 23 | // fill it with 1000 points 24 | for (const {x, y} of items) { 25 | index.add(x, y); 26 | } 27 | 28 | // perform the indexing 29 | index.finish(); 30 | 31 | // make a bounding box query 32 | const foundIds = index.range(minX, minY, maxX, maxY); 33 | 34 | // map ids to original items 35 | const foundItems = foundIds.map(i => items[i]); 36 | 37 | // make a radius query 38 | const neighborIds = index.within(x, y, 5); 39 | 40 | // instantly transfer the index from a worker to the main thread 41 | postMessage(index.data, [index.data]); 42 | 43 | // reconstruct the index from a raw array buffer 44 | const index = KDBush.from(e.data); 45 | ``` 46 | 47 | ## Install 48 | 49 | Install with NPM: `npm install kdbush`, then import as a module: 50 | 51 | ```js 52 | import KDBush from 'kdbush'; 53 | ``` 54 | 55 | Or use as a module directly in the browser with [jsDelivr](https://www.jsdelivr.com/esm): 56 | 57 | ```html 58 | 61 | ``` 62 | 63 | Alternatively, there's a browser bundle with a `KDBush` global variable: 64 | 65 | ```html 66 | 67 | ``` 68 | 69 | ## API 70 | 71 | #### new KDBush(numItems[, nodeSize, ArrayType]) 72 | 73 | Creates an index that will hold a given number of points (`numItems`). Additionally accepts: 74 | 75 | - `nodeSize`: Size of the KD-tree node, `64` by default. Higher means faster indexing but slower search, and vise versa. 76 | - `ArrayType`: Array type to use for storing coordinate values. `Float64Array` by default, but if your coordinates are integer values, `Int32Array` makes the index faster and smaller. 77 | 78 | #### index.add(x, y) 79 | 80 | Adds a given point to the index. Returns a zero-based, incremental number that represents the newly added point. 81 | 82 | #### index.range(minX, minY, maxX, maxY) 83 | 84 | Finds all items within the given bounding box and returns an array of indices that refer to the order the items were added (the values returned by `index.add(x, y)`). 85 | 86 | #### index.within(x, y, radius) 87 | 88 | Finds all items within a given radius from the query point and returns an array of indices. 89 | 90 | #### `KDBush.from(data)` 91 | 92 | Recreates a KDBush index from raw `ArrayBuffer` data 93 | (that's exposed as `index.data` on a previously indexed KDBush instance). 94 | Very useful for transferring or sharing indices between threads or storing them in a file. 95 | 96 | ### Properties 97 | 98 | - `data`: array buffer that holds the index. 99 | - `numItems`: number of stored items. 100 | - `nodeSize`: number of items in a KD-tree node. 101 | - `ArrayType`: array type used for internal coordinates storage. 102 | - `IndexArrayType`: array type used for internal item indices storage. 103 | -------------------------------------------------------------------------------- /bench.js: -------------------------------------------------------------------------------- 1 | 2 | import KDBush from './index.js'; 3 | import v8 from 'v8'; 4 | 5 | const randomInt = max => Math.floor(Math.random() * max); 6 | const randomPoint = max => ({x: randomInt(max), y: randomInt(max)}); 7 | const heapSize = () => `${v8.getHeapStatistics().used_heap_size / 1000 } KB`; 8 | 9 | const N = 1000000; 10 | 11 | const coords = new Uint32Array(N * 2); 12 | for (let i = 0; i < N * 2; i++) coords[i] = randomInt(1000); 13 | 14 | console.log(`memory: ${heapSize()}`); 15 | 16 | console.time(`index ${N} points`); 17 | const index = new KDBush(N, 64, Uint32Array); 18 | for (let i = 0; i < coords.length; i += 2) index.add(coords[i], coords[i + 1]); 19 | index.finish(); 20 | console.timeEnd(`index ${N} points`); 21 | console.log(`index size: ${index.data.byteLength.toLocaleString()}`); 22 | 23 | console.log(`memory: ${heapSize()}`); 24 | 25 | console.time('10000 small bbox queries'); 26 | for (let i = 0; i < 10000; i++) { 27 | const p = randomPoint(1000); 28 | index.range(p.x - 1, p.y - 1, p.x + 1, p.y + 1); 29 | } 30 | console.timeEnd('10000 small bbox queries'); 31 | 32 | console.time('10000 small radius queries'); 33 | for (let i = 0; i < 10000; i++) { 34 | const p = randomPoint(1000); 35 | index.within(p.x, p.y, 1); 36 | } 37 | console.timeEnd('10000 small radius queries'); 38 | -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- 1 | import config from 'eslint-config-mourner'; 2 | 3 | export default [ 4 | ...config, 5 | { 6 | ignores: ['kdbush.js', 'kdbush.min.js'] 7 | } 8 | ]; 9 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 2 | const ARRAY_TYPES = [ 3 | Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, 4 | Int32Array, Uint32Array, Float32Array, Float64Array 5 | ]; 6 | 7 | /** @typedef {Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor} TypedArrayConstructor */ 8 | 9 | const VERSION = 1; // serialized format version 10 | const HEADER_SIZE = 8; 11 | 12 | export default class KDBush { 13 | 14 | /** 15 | * Creates an index from raw `ArrayBuffer` data. 16 | * @param {ArrayBuffer} data 17 | */ 18 | static from(data) { 19 | if (!(data instanceof ArrayBuffer)) { 20 | throw new Error('Data must be an instance of ArrayBuffer.'); 21 | } 22 | const [magic, versionAndType] = new Uint8Array(data, 0, 2); 23 | if (magic !== 0xdb) { 24 | throw new Error('Data does not appear to be in a KDBush format.'); 25 | } 26 | const version = versionAndType >> 4; 27 | if (version !== VERSION) { 28 | throw new Error(`Got v${version} data when expected v${VERSION}.`); 29 | } 30 | const ArrayType = ARRAY_TYPES[versionAndType & 0x0f]; 31 | if (!ArrayType) { 32 | throw new Error('Unrecognized array type.'); 33 | } 34 | const [nodeSize] = new Uint16Array(data, 2, 1); 35 | const [numItems] = new Uint32Array(data, 4, 1); 36 | 37 | return new KDBush(numItems, nodeSize, ArrayType, data); 38 | } 39 | 40 | /** 41 | * Creates an index that will hold a given number of items. 42 | * @param {number} numItems 43 | * @param {number} [nodeSize=64] Size of the KD-tree node (64 by default). 44 | * @param {TypedArrayConstructor} [ArrayType=Float64Array] The array type used for coordinates storage (`Float64Array` by default). 45 | * @param {ArrayBuffer} [data] (For internal use only) 46 | */ 47 | constructor(numItems, nodeSize = 64, ArrayType = Float64Array, data) { 48 | if (isNaN(numItems) || numItems < 0) throw new Error(`Unexpected numItems value: ${numItems}.`); 49 | 50 | this.numItems = +numItems; 51 | this.nodeSize = Math.min(Math.max(+nodeSize, 2), 65535); 52 | this.ArrayType = ArrayType; 53 | this.IndexArrayType = numItems < 65536 ? Uint16Array : Uint32Array; 54 | 55 | const arrayTypeIndex = ARRAY_TYPES.indexOf(this.ArrayType); 56 | const coordsByteSize = numItems * 2 * this.ArrayType.BYTES_PER_ELEMENT; 57 | const idsByteSize = numItems * this.IndexArrayType.BYTES_PER_ELEMENT; 58 | const padCoords = (8 - idsByteSize % 8) % 8; 59 | 60 | if (arrayTypeIndex < 0) { 61 | throw new Error(`Unexpected typed array class: ${ArrayType}.`); 62 | } 63 | 64 | if (data && (data instanceof ArrayBuffer)) { // reconstruct an index from a buffer 65 | this.data = data; 66 | this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, numItems); 67 | this.coords = new this.ArrayType(this.data, HEADER_SIZE + idsByteSize + padCoords, numItems * 2); 68 | this._pos = numItems * 2; 69 | this._finished = true; 70 | } else { // initialize a new index 71 | this.data = new ArrayBuffer(HEADER_SIZE + coordsByteSize + idsByteSize + padCoords); 72 | this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, numItems); 73 | this.coords = new this.ArrayType(this.data, HEADER_SIZE + idsByteSize + padCoords, numItems * 2); 74 | this._pos = 0; 75 | this._finished = false; 76 | 77 | // set header 78 | new Uint8Array(this.data, 0, 2).set([0xdb, (VERSION << 4) + arrayTypeIndex]); 79 | new Uint16Array(this.data, 2, 1)[0] = nodeSize; 80 | new Uint32Array(this.data, 4, 1)[0] = numItems; 81 | } 82 | } 83 | 84 | /** 85 | * Add a point to the index. 86 | * @param {number} x 87 | * @param {number} y 88 | * @returns {number} An incremental index associated with the added item (starting from `0`). 89 | */ 90 | add(x, y) { 91 | const index = this._pos >> 1; 92 | this.ids[index] = index; 93 | this.coords[this._pos++] = x; 94 | this.coords[this._pos++] = y; 95 | return index; 96 | } 97 | 98 | /** 99 | * Perform indexing of the added points. 100 | */ 101 | finish() { 102 | const numAdded = this._pos >> 1; 103 | if (numAdded !== this.numItems) { 104 | throw new Error(`Added ${numAdded} items when expected ${this.numItems}.`); 105 | } 106 | // kd-sort both arrays for efficient search 107 | sort(this.ids, this.coords, this.nodeSize, 0, this.numItems - 1, 0); 108 | 109 | this._finished = true; 110 | return this; 111 | } 112 | 113 | /** 114 | * Search the index for items within a given bounding box. 115 | * @param {number} minX 116 | * @param {number} minY 117 | * @param {number} maxX 118 | * @param {number} maxY 119 | * @returns {number[]} An array of indices correponding to the found items. 120 | */ 121 | range(minX, minY, maxX, maxY) { 122 | if (!this._finished) throw new Error('Data not yet indexed - call index.finish().'); 123 | 124 | const {ids, coords, nodeSize} = this; 125 | const stack = [0, ids.length - 1, 0]; 126 | const result = []; 127 | 128 | // recursively search for items in range in the kd-sorted arrays 129 | while (stack.length) { 130 | const axis = stack.pop() || 0; 131 | const right = stack.pop() || 0; 132 | const left = stack.pop() || 0; 133 | 134 | // if we reached "tree node", search linearly 135 | if (right - left <= nodeSize) { 136 | for (let i = left; i <= right; i++) { 137 | const x = coords[2 * i]; 138 | const y = coords[2 * i + 1]; 139 | if (x >= minX && x <= maxX && y >= minY && y <= maxY) result.push(ids[i]); 140 | } 141 | continue; 142 | } 143 | 144 | // otherwise find the middle index 145 | const m = (left + right) >> 1; 146 | 147 | // include the middle item if it's in range 148 | const x = coords[2 * m]; 149 | const y = coords[2 * m + 1]; 150 | if (x >= minX && x <= maxX && y >= minY && y <= maxY) result.push(ids[m]); 151 | 152 | // queue search in halves that intersect the query 153 | if (axis === 0 ? minX <= x : minY <= y) { 154 | stack.push(left); 155 | stack.push(m - 1); 156 | stack.push(1 - axis); 157 | } 158 | if (axis === 0 ? maxX >= x : maxY >= y) { 159 | stack.push(m + 1); 160 | stack.push(right); 161 | stack.push(1 - axis); 162 | } 163 | } 164 | 165 | return result; 166 | } 167 | 168 | /** 169 | * Search the index for items within a given radius. 170 | * @param {number} qx 171 | * @param {number} qy 172 | * @param {number} r Query radius. 173 | * @returns {number[]} An array of indices correponding to the found items. 174 | */ 175 | within(qx, qy, r) { 176 | if (!this._finished) throw new Error('Data not yet indexed - call index.finish().'); 177 | 178 | const {ids, coords, nodeSize} = this; 179 | const stack = [0, ids.length - 1, 0]; 180 | const result = []; 181 | const r2 = r * r; 182 | 183 | // recursively search for items within radius in the kd-sorted arrays 184 | while (stack.length) { 185 | const axis = stack.pop() || 0; 186 | const right = stack.pop() || 0; 187 | const left = stack.pop() || 0; 188 | 189 | // if we reached "tree node", search linearly 190 | if (right - left <= nodeSize) { 191 | for (let i = left; i <= right; i++) { 192 | if (sqDist(coords[2 * i], coords[2 * i + 1], qx, qy) <= r2) result.push(ids[i]); 193 | } 194 | continue; 195 | } 196 | 197 | // otherwise find the middle index 198 | const m = (left + right) >> 1; 199 | 200 | // include the middle item if it's in range 201 | const x = coords[2 * m]; 202 | const y = coords[2 * m + 1]; 203 | if (sqDist(x, y, qx, qy) <= r2) result.push(ids[m]); 204 | 205 | // queue search in halves that intersect the query 206 | if (axis === 0 ? qx - r <= x : qy - r <= y) { 207 | stack.push(left); 208 | stack.push(m - 1); 209 | stack.push(1 - axis); 210 | } 211 | if (axis === 0 ? qx + r >= x : qy + r >= y) { 212 | stack.push(m + 1); 213 | stack.push(right); 214 | stack.push(1 - axis); 215 | } 216 | } 217 | 218 | return result; 219 | } 220 | } 221 | 222 | /** 223 | * @param {Uint16Array | Uint32Array} ids 224 | * @param {InstanceType} coords 225 | * @param {number} nodeSize 226 | * @param {number} left 227 | * @param {number} right 228 | * @param {number} axis 229 | */ 230 | function sort(ids, coords, nodeSize, left, right, axis) { 231 | if (right - left <= nodeSize) return; 232 | 233 | const m = (left + right) >> 1; // middle index 234 | 235 | // sort ids and coords around the middle index so that the halves lie 236 | // either left/right or top/bottom correspondingly (taking turns) 237 | select(ids, coords, m, left, right, axis); 238 | 239 | // recursively kd-sort first half and second half on the opposite axis 240 | sort(ids, coords, nodeSize, left, m - 1, 1 - axis); 241 | sort(ids, coords, nodeSize, m + 1, right, 1 - axis); 242 | } 243 | 244 | /** 245 | * Custom Floyd-Rivest selection algorithm: sort ids and coords so that 246 | * [left..k-1] items are smaller than k-th item (on either x or y axis) 247 | * @param {Uint16Array | Uint32Array} ids 248 | * @param {InstanceType} coords 249 | * @param {number} k 250 | * @param {number} left 251 | * @param {number} right 252 | * @param {number} axis 253 | */ 254 | function select(ids, coords, k, left, right, axis) { 255 | 256 | while (right > left) { 257 | if (right - left > 600) { 258 | const n = right - left + 1; 259 | const m = k - left + 1; 260 | const z = Math.log(n); 261 | const s = 0.5 * Math.exp(2 * z / 3); 262 | const sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1); 263 | const newLeft = Math.max(left, Math.floor(k - m * s / n + sd)); 264 | const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd)); 265 | select(ids, coords, k, newLeft, newRight, axis); 266 | } 267 | 268 | const t = coords[2 * k + axis]; 269 | let i = left; 270 | let j = right; 271 | 272 | swapItem(ids, coords, left, k); 273 | if (coords[2 * right + axis] > t) swapItem(ids, coords, left, right); 274 | 275 | while (i < j) { 276 | swapItem(ids, coords, i, j); 277 | i++; 278 | j--; 279 | while (coords[2 * i + axis] < t) i++; 280 | while (coords[2 * j + axis] > t) j--; 281 | } 282 | 283 | if (coords[2 * left + axis] === t) swapItem(ids, coords, left, j); 284 | else { 285 | j++; 286 | swapItem(ids, coords, j, right); 287 | } 288 | 289 | if (j <= k) left = j + 1; 290 | if (k <= j) right = j - 1; 291 | } 292 | } 293 | 294 | /** 295 | * @param {Uint16Array | Uint32Array} ids 296 | * @param {InstanceType} coords 297 | * @param {number} i 298 | * @param {number} j 299 | */ 300 | function swapItem(ids, coords, i, j) { 301 | swap(ids, i, j); 302 | swap(coords, 2 * i, 2 * j); 303 | swap(coords, 2 * i + 1, 2 * j + 1); 304 | } 305 | 306 | /** 307 | * @param {InstanceType} arr 308 | * @param {number} i 309 | * @param {number} j 310 | */ 311 | function swap(arr, i, j) { 312 | const tmp = arr[i]; 313 | arr[i] = arr[j]; 314 | arr[j] = tmp; 315 | } 316 | 317 | /** 318 | * @param {number} ax 319 | * @param {number} ay 320 | * @param {number} bx 321 | * @param {number} by 322 | */ 323 | function sqDist(ax, ay, bx, by) { 324 | const dx = ax - bx; 325 | const dy = ay - by; 326 | return dx * dx + dy * dy; 327 | } 328 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kdbush", 3 | "version": "4.0.2", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "kdbush", 9 | "version": "4.0.2", 10 | "license": "ISC", 11 | "devDependencies": { 12 | "@rollup/plugin-terser": "^0.4.4", 13 | "eslint": "^9.10.0", 14 | "eslint-config-mourner": "^4.0.2", 15 | "rollup": "^4.21.2", 16 | "typescript": "^5.6.2" 17 | } 18 | }, 19 | "node_modules/@eslint-community/eslint-utils": { 20 | "version": "4.4.0", 21 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", 22 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", 23 | "dev": true, 24 | "license": "MIT", 25 | "dependencies": { 26 | "eslint-visitor-keys": "^3.3.0" 27 | }, 28 | "engines": { 29 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 30 | }, 31 | "peerDependencies": { 32 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 33 | } 34 | }, 35 | "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { 36 | "version": "3.4.3", 37 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", 38 | "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", 39 | "dev": true, 40 | "license": "Apache-2.0", 41 | "engines": { 42 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 43 | }, 44 | "funding": { 45 | "url": "https://opencollective.com/eslint" 46 | } 47 | }, 48 | "node_modules/@eslint-community/regexpp": { 49 | "version": "4.11.0", 50 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", 51 | "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", 52 | "dev": true, 53 | "license": "MIT", 54 | "engines": { 55 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 56 | } 57 | }, 58 | "node_modules/@eslint/config-array": { 59 | "version": "0.18.0", 60 | "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.18.0.tgz", 61 | "integrity": "sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==", 62 | "dev": true, 63 | "license": "Apache-2.0", 64 | "dependencies": { 65 | "@eslint/object-schema": "^2.1.4", 66 | "debug": "^4.3.1", 67 | "minimatch": "^3.1.2" 68 | }, 69 | "engines": { 70 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 71 | } 72 | }, 73 | "node_modules/@eslint/eslintrc": { 74 | "version": "3.1.0", 75 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", 76 | "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", 77 | "dev": true, 78 | "license": "MIT", 79 | "dependencies": { 80 | "ajv": "^6.12.4", 81 | "debug": "^4.3.2", 82 | "espree": "^10.0.1", 83 | "globals": "^14.0.0", 84 | "ignore": "^5.2.0", 85 | "import-fresh": "^3.2.1", 86 | "js-yaml": "^4.1.0", 87 | "minimatch": "^3.1.2", 88 | "strip-json-comments": "^3.1.1" 89 | }, 90 | "engines": { 91 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 92 | }, 93 | "funding": { 94 | "url": "https://opencollective.com/eslint" 95 | } 96 | }, 97 | "node_modules/@eslint/js": { 98 | "version": "9.10.0", 99 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.10.0.tgz", 100 | "integrity": "sha512-fuXtbiP5GWIn8Fz+LWoOMVf/Jxm+aajZYkhi6CuEm4SxymFM+eUWzbO9qXT+L0iCkL5+KGYMCSGxo686H19S1g==", 101 | "dev": true, 102 | "license": "MIT", 103 | "engines": { 104 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 105 | } 106 | }, 107 | "node_modules/@eslint/object-schema": { 108 | "version": "2.1.4", 109 | "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.4.tgz", 110 | "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==", 111 | "dev": true, 112 | "license": "Apache-2.0", 113 | "engines": { 114 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 115 | } 116 | }, 117 | "node_modules/@eslint/plugin-kit": { 118 | "version": "0.1.0", 119 | "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.1.0.tgz", 120 | "integrity": "sha512-autAXT203ixhqei9xt+qkYOvY8l6LAFIdT2UXc/RPNeUVfqRF1BV94GTJyVPFKT8nFM6MyVJhjLj9E8JWvf5zQ==", 121 | "dev": true, 122 | "license": "Apache-2.0", 123 | "dependencies": { 124 | "levn": "^0.4.1" 125 | }, 126 | "engines": { 127 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 128 | } 129 | }, 130 | "node_modules/@humanwhocodes/module-importer": { 131 | "version": "1.0.1", 132 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 133 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 134 | "dev": true, 135 | "license": "Apache-2.0", 136 | "engines": { 137 | "node": ">=12.22" 138 | }, 139 | "funding": { 140 | "type": "github", 141 | "url": "https://github.com/sponsors/nzakas" 142 | } 143 | }, 144 | "node_modules/@humanwhocodes/retry": { 145 | "version": "0.3.0", 146 | "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.0.tgz", 147 | "integrity": "sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==", 148 | "dev": true, 149 | "license": "Apache-2.0", 150 | "engines": { 151 | "node": ">=18.18" 152 | }, 153 | "funding": { 154 | "type": "github", 155 | "url": "https://github.com/sponsors/nzakas" 156 | } 157 | }, 158 | "node_modules/@jridgewell/gen-mapping": { 159 | "version": "0.3.5", 160 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", 161 | "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", 162 | "dev": true, 163 | "license": "MIT", 164 | "dependencies": { 165 | "@jridgewell/set-array": "^1.2.1", 166 | "@jridgewell/sourcemap-codec": "^1.4.10", 167 | "@jridgewell/trace-mapping": "^0.3.24" 168 | }, 169 | "engines": { 170 | "node": ">=6.0.0" 171 | } 172 | }, 173 | "node_modules/@jridgewell/resolve-uri": { 174 | "version": "3.1.2", 175 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 176 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 177 | "dev": true, 178 | "license": "MIT", 179 | "engines": { 180 | "node": ">=6.0.0" 181 | } 182 | }, 183 | "node_modules/@jridgewell/set-array": { 184 | "version": "1.2.1", 185 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", 186 | "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 187 | "dev": true, 188 | "license": "MIT", 189 | "engines": { 190 | "node": ">=6.0.0" 191 | } 192 | }, 193 | "node_modules/@jridgewell/source-map": { 194 | "version": "0.3.6", 195 | "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", 196 | "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", 197 | "dev": true, 198 | "license": "MIT", 199 | "dependencies": { 200 | "@jridgewell/gen-mapping": "^0.3.5", 201 | "@jridgewell/trace-mapping": "^0.3.25" 202 | } 203 | }, 204 | "node_modules/@jridgewell/sourcemap-codec": { 205 | "version": "1.5.0", 206 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 207 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 208 | "dev": true, 209 | "license": "MIT" 210 | }, 211 | "node_modules/@jridgewell/trace-mapping": { 212 | "version": "0.3.25", 213 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 214 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 215 | "dev": true, 216 | "license": "MIT", 217 | "dependencies": { 218 | "@jridgewell/resolve-uri": "^3.1.0", 219 | "@jridgewell/sourcemap-codec": "^1.4.14" 220 | } 221 | }, 222 | "node_modules/@nodelib/fs.scandir": { 223 | "version": "2.1.5", 224 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 225 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 226 | "dev": true, 227 | "license": "MIT", 228 | "dependencies": { 229 | "@nodelib/fs.stat": "2.0.5", 230 | "run-parallel": "^1.1.9" 231 | }, 232 | "engines": { 233 | "node": ">= 8" 234 | } 235 | }, 236 | "node_modules/@nodelib/fs.stat": { 237 | "version": "2.0.5", 238 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 239 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 240 | "dev": true, 241 | "license": "MIT", 242 | "engines": { 243 | "node": ">= 8" 244 | } 245 | }, 246 | "node_modules/@nodelib/fs.walk": { 247 | "version": "1.2.8", 248 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 249 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 250 | "dev": true, 251 | "license": "MIT", 252 | "dependencies": { 253 | "@nodelib/fs.scandir": "2.1.5", 254 | "fastq": "^1.6.0" 255 | }, 256 | "engines": { 257 | "node": ">= 8" 258 | } 259 | }, 260 | "node_modules/@rollup/plugin-terser": { 261 | "version": "0.4.4", 262 | "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.4.tgz", 263 | "integrity": "sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==", 264 | "dev": true, 265 | "license": "MIT", 266 | "dependencies": { 267 | "serialize-javascript": "^6.0.1", 268 | "smob": "^1.0.0", 269 | "terser": "^5.17.4" 270 | }, 271 | "engines": { 272 | "node": ">=14.0.0" 273 | }, 274 | "peerDependencies": { 275 | "rollup": "^2.0.0||^3.0.0||^4.0.0" 276 | }, 277 | "peerDependenciesMeta": { 278 | "rollup": { 279 | "optional": true 280 | } 281 | } 282 | }, 283 | "node_modules/@rollup/rollup-android-arm-eabi": { 284 | "version": "4.22.4", 285 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.22.4.tgz", 286 | "integrity": "sha512-Fxamp4aEZnfPOcGA8KSNEohV8hX7zVHOemC8jVBoBUHu5zpJK/Eu3uJwt6BMgy9fkvzxDaurgj96F/NiLukF2w==", 287 | "cpu": [ 288 | "arm" 289 | ], 290 | "dev": true, 291 | "optional": true, 292 | "os": [ 293 | "android" 294 | ] 295 | }, 296 | "node_modules/@rollup/rollup-android-arm64": { 297 | "version": "4.22.4", 298 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.22.4.tgz", 299 | "integrity": "sha512-VXoK5UMrgECLYaMuGuVTOx5kcuap1Jm8g/M83RnCHBKOqvPPmROFJGQaZhGccnsFtfXQ3XYa4/jMCJvZnbJBdA==", 300 | "cpu": [ 301 | "arm64" 302 | ], 303 | "dev": true, 304 | "optional": true, 305 | "os": [ 306 | "android" 307 | ] 308 | }, 309 | "node_modules/@rollup/rollup-darwin-arm64": { 310 | "version": "4.22.4", 311 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.22.4.tgz", 312 | "integrity": "sha512-xMM9ORBqu81jyMKCDP+SZDhnX2QEVQzTcC6G18KlTQEzWK8r/oNZtKuZaCcHhnsa6fEeOBionoyl5JsAbE/36Q==", 313 | "cpu": [ 314 | "arm64" 315 | ], 316 | "dev": true, 317 | "optional": true, 318 | "os": [ 319 | "darwin" 320 | ] 321 | }, 322 | "node_modules/@rollup/rollup-darwin-x64": { 323 | "version": "4.22.4", 324 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.22.4.tgz", 325 | "integrity": "sha512-aJJyYKQwbHuhTUrjWjxEvGnNNBCnmpHDvrb8JFDbeSH3m2XdHcxDd3jthAzvmoI8w/kSjd2y0udT+4okADsZIw==", 326 | "cpu": [ 327 | "x64" 328 | ], 329 | "dev": true, 330 | "optional": true, 331 | "os": [ 332 | "darwin" 333 | ] 334 | }, 335 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 336 | "version": "4.22.4", 337 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.22.4.tgz", 338 | "integrity": "sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==", 339 | "cpu": [ 340 | "arm" 341 | ], 342 | "dev": true, 343 | "optional": true, 344 | "os": [ 345 | "linux" 346 | ] 347 | }, 348 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 349 | "version": "4.22.4", 350 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.22.4.tgz", 351 | "integrity": "sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==", 352 | "cpu": [ 353 | "arm" 354 | ], 355 | "dev": true, 356 | "optional": true, 357 | "os": [ 358 | "linux" 359 | ] 360 | }, 361 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 362 | "version": "4.22.4", 363 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.22.4.tgz", 364 | "integrity": "sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==", 365 | "cpu": [ 366 | "arm64" 367 | ], 368 | "dev": true, 369 | "optional": true, 370 | "os": [ 371 | "linux" 372 | ] 373 | }, 374 | "node_modules/@rollup/rollup-linux-arm64-musl": { 375 | "version": "4.22.4", 376 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.22.4.tgz", 377 | "integrity": "sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==", 378 | "cpu": [ 379 | "arm64" 380 | ], 381 | "dev": true, 382 | "optional": true, 383 | "os": [ 384 | "linux" 385 | ] 386 | }, 387 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 388 | "version": "4.22.4", 389 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.22.4.tgz", 390 | "integrity": "sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==", 391 | "cpu": [ 392 | "ppc64" 393 | ], 394 | "dev": true, 395 | "optional": true, 396 | "os": [ 397 | "linux" 398 | ] 399 | }, 400 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 401 | "version": "4.22.4", 402 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.22.4.tgz", 403 | "integrity": "sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==", 404 | "cpu": [ 405 | "riscv64" 406 | ], 407 | "dev": true, 408 | "optional": true, 409 | "os": [ 410 | "linux" 411 | ] 412 | }, 413 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 414 | "version": "4.22.4", 415 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.22.4.tgz", 416 | "integrity": "sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==", 417 | "cpu": [ 418 | "s390x" 419 | ], 420 | "dev": true, 421 | "optional": true, 422 | "os": [ 423 | "linux" 424 | ] 425 | }, 426 | "node_modules/@rollup/rollup-linux-x64-gnu": { 427 | "version": "4.22.4", 428 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.22.4.tgz", 429 | "integrity": "sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==", 430 | "cpu": [ 431 | "x64" 432 | ], 433 | "dev": true, 434 | "optional": true, 435 | "os": [ 436 | "linux" 437 | ] 438 | }, 439 | "node_modules/@rollup/rollup-linux-x64-musl": { 440 | "version": "4.22.4", 441 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.22.4.tgz", 442 | "integrity": "sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==", 443 | "cpu": [ 444 | "x64" 445 | ], 446 | "dev": true, 447 | "optional": true, 448 | "os": [ 449 | "linux" 450 | ] 451 | }, 452 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 453 | "version": "4.22.4", 454 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.22.4.tgz", 455 | "integrity": "sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==", 456 | "cpu": [ 457 | "arm64" 458 | ], 459 | "dev": true, 460 | "optional": true, 461 | "os": [ 462 | "win32" 463 | ] 464 | }, 465 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 466 | "version": "4.22.4", 467 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.22.4.tgz", 468 | "integrity": "sha512-SiWG/1TuUdPvYmzmYnmd3IEifzR61Tragkbx9D3+R8mzQqDBz8v+BvZNDlkiTtI9T15KYZhP0ehn3Dld4n9J5g==", 469 | "cpu": [ 470 | "ia32" 471 | ], 472 | "dev": true, 473 | "optional": true, 474 | "os": [ 475 | "win32" 476 | ] 477 | }, 478 | "node_modules/@rollup/rollup-win32-x64-msvc": { 479 | "version": "4.22.4", 480 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.22.4.tgz", 481 | "integrity": "sha512-j8pPKp53/lq9lMXN57S8cFz0MynJk8OWNuUnXct/9KCpKU7DgU3bYMJhwWmcqC0UU29p8Lr0/7KEVcaM6bf47Q==", 482 | "cpu": [ 483 | "x64" 484 | ], 485 | "dev": true, 486 | "optional": true, 487 | "os": [ 488 | "win32" 489 | ] 490 | }, 491 | "node_modules/@stylistic/eslint-plugin-js": { 492 | "version": "2.8.0", 493 | "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-js/-/eslint-plugin-js-2.8.0.tgz", 494 | "integrity": "sha512-/e7pSzVMrwBd6yzSDsKHwax3TS96+pd/xSKzELaTkOuYqUhYfj/becWdfDbFSBGQD7BBBCiiE4L8L2cUfu5h+A==", 495 | "dev": true, 496 | "license": "MIT", 497 | "dependencies": { 498 | "eslint-visitor-keys": "^4.0.0", 499 | "espree": "^10.1.0" 500 | }, 501 | "engines": { 502 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 503 | }, 504 | "peerDependencies": { 505 | "eslint": ">=8.40.0" 506 | } 507 | }, 508 | "node_modules/@types/estree": { 509 | "version": "1.0.5", 510 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", 511 | "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", 512 | "dev": true, 513 | "license": "MIT" 514 | }, 515 | "node_modules/acorn": { 516 | "version": "8.12.1", 517 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", 518 | "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", 519 | "dev": true, 520 | "license": "MIT", 521 | "bin": { 522 | "acorn": "bin/acorn" 523 | }, 524 | "engines": { 525 | "node": ">=0.4.0" 526 | } 527 | }, 528 | "node_modules/acorn-jsx": { 529 | "version": "5.3.2", 530 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 531 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 532 | "dev": true, 533 | "license": "MIT", 534 | "peerDependencies": { 535 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 536 | } 537 | }, 538 | "node_modules/ajv": { 539 | "version": "6.12.6", 540 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 541 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 542 | "dev": true, 543 | "license": "MIT", 544 | "dependencies": { 545 | "fast-deep-equal": "^3.1.1", 546 | "fast-json-stable-stringify": "^2.0.0", 547 | "json-schema-traverse": "^0.4.1", 548 | "uri-js": "^4.2.2" 549 | }, 550 | "funding": { 551 | "type": "github", 552 | "url": "https://github.com/sponsors/epoberezkin" 553 | } 554 | }, 555 | "node_modules/ansi-regex": { 556 | "version": "5.0.1", 557 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 558 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 559 | "dev": true, 560 | "license": "MIT", 561 | "engines": { 562 | "node": ">=8" 563 | } 564 | }, 565 | "node_modules/ansi-styles": { 566 | "version": "4.3.0", 567 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 568 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 569 | "dev": true, 570 | "license": "MIT", 571 | "dependencies": { 572 | "color-convert": "^2.0.1" 573 | }, 574 | "engines": { 575 | "node": ">=8" 576 | }, 577 | "funding": { 578 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 579 | } 580 | }, 581 | "node_modules/argparse": { 582 | "version": "2.0.1", 583 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 584 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 585 | "dev": true, 586 | "license": "Python-2.0" 587 | }, 588 | "node_modules/balanced-match": { 589 | "version": "1.0.2", 590 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 591 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 592 | "dev": true, 593 | "license": "MIT" 594 | }, 595 | "node_modules/brace-expansion": { 596 | "version": "1.1.11", 597 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 598 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 599 | "dev": true, 600 | "license": "MIT", 601 | "dependencies": { 602 | "balanced-match": "^1.0.0", 603 | "concat-map": "0.0.1" 604 | } 605 | }, 606 | "node_modules/buffer-from": { 607 | "version": "1.1.2", 608 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 609 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 610 | "dev": true, 611 | "license": "MIT" 612 | }, 613 | "node_modules/callsites": { 614 | "version": "3.1.0", 615 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 616 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 617 | "dev": true, 618 | "license": "MIT", 619 | "engines": { 620 | "node": ">=6" 621 | } 622 | }, 623 | "node_modules/chalk": { 624 | "version": "4.1.2", 625 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 626 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 627 | "dev": true, 628 | "license": "MIT", 629 | "dependencies": { 630 | "ansi-styles": "^4.1.0", 631 | "supports-color": "^7.1.0" 632 | }, 633 | "engines": { 634 | "node": ">=10" 635 | }, 636 | "funding": { 637 | "url": "https://github.com/chalk/chalk?sponsor=1" 638 | } 639 | }, 640 | "node_modules/color-convert": { 641 | "version": "2.0.1", 642 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 643 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 644 | "dev": true, 645 | "license": "MIT", 646 | "dependencies": { 647 | "color-name": "~1.1.4" 648 | }, 649 | "engines": { 650 | "node": ">=7.0.0" 651 | } 652 | }, 653 | "node_modules/color-name": { 654 | "version": "1.1.4", 655 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 656 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 657 | "dev": true, 658 | "license": "MIT" 659 | }, 660 | "node_modules/commander": { 661 | "version": "2.20.3", 662 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 663 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 664 | "dev": true, 665 | "license": "MIT" 666 | }, 667 | "node_modules/concat-map": { 668 | "version": "0.0.1", 669 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 670 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 671 | "dev": true, 672 | "license": "MIT" 673 | }, 674 | "node_modules/cross-spawn": { 675 | "version": "7.0.3", 676 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 677 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 678 | "dev": true, 679 | "license": "MIT", 680 | "dependencies": { 681 | "path-key": "^3.1.0", 682 | "shebang-command": "^2.0.0", 683 | "which": "^2.0.1" 684 | }, 685 | "engines": { 686 | "node": ">= 8" 687 | } 688 | }, 689 | "node_modules/debug": { 690 | "version": "4.3.7", 691 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", 692 | "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", 693 | "dev": true, 694 | "license": "MIT", 695 | "dependencies": { 696 | "ms": "^2.1.3" 697 | }, 698 | "engines": { 699 | "node": ">=6.0" 700 | }, 701 | "peerDependenciesMeta": { 702 | "supports-color": { 703 | "optional": true 704 | } 705 | } 706 | }, 707 | "node_modules/deep-is": { 708 | "version": "0.1.4", 709 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 710 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 711 | "dev": true, 712 | "license": "MIT" 713 | }, 714 | "node_modules/escape-string-regexp": { 715 | "version": "4.0.0", 716 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 717 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 718 | "dev": true, 719 | "license": "MIT", 720 | "engines": { 721 | "node": ">=10" 722 | }, 723 | "funding": { 724 | "url": "https://github.com/sponsors/sindresorhus" 725 | } 726 | }, 727 | "node_modules/eslint": { 728 | "version": "9.10.0", 729 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.10.0.tgz", 730 | "integrity": "sha512-Y4D0IgtBZfOcOUAIQTSXBKoNGfY0REGqHJG6+Q81vNippW5YlKjHFj4soMxamKK1NXHUWuBZTLdU3Km+L/pcHw==", 731 | "dev": true, 732 | "license": "MIT", 733 | "dependencies": { 734 | "@eslint-community/eslint-utils": "^4.2.0", 735 | "@eslint-community/regexpp": "^4.11.0", 736 | "@eslint/config-array": "^0.18.0", 737 | "@eslint/eslintrc": "^3.1.0", 738 | "@eslint/js": "9.10.0", 739 | "@eslint/plugin-kit": "^0.1.0", 740 | "@humanwhocodes/module-importer": "^1.0.1", 741 | "@humanwhocodes/retry": "^0.3.0", 742 | "@nodelib/fs.walk": "^1.2.8", 743 | "ajv": "^6.12.4", 744 | "chalk": "^4.0.0", 745 | "cross-spawn": "^7.0.2", 746 | "debug": "^4.3.2", 747 | "escape-string-regexp": "^4.0.0", 748 | "eslint-scope": "^8.0.2", 749 | "eslint-visitor-keys": "^4.0.0", 750 | "espree": "^10.1.0", 751 | "esquery": "^1.5.0", 752 | "esutils": "^2.0.2", 753 | "fast-deep-equal": "^3.1.3", 754 | "file-entry-cache": "^8.0.0", 755 | "find-up": "^5.0.0", 756 | "glob-parent": "^6.0.2", 757 | "ignore": "^5.2.0", 758 | "imurmurhash": "^0.1.4", 759 | "is-glob": "^4.0.0", 760 | "is-path-inside": "^3.0.3", 761 | "json-stable-stringify-without-jsonify": "^1.0.1", 762 | "lodash.merge": "^4.6.2", 763 | "minimatch": "^3.1.2", 764 | "natural-compare": "^1.4.0", 765 | "optionator": "^0.9.3", 766 | "strip-ansi": "^6.0.1", 767 | "text-table": "^0.2.0" 768 | }, 769 | "bin": { 770 | "eslint": "bin/eslint.js" 771 | }, 772 | "engines": { 773 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 774 | }, 775 | "funding": { 776 | "url": "https://eslint.org/donate" 777 | }, 778 | "peerDependencies": { 779 | "jiti": "*" 780 | }, 781 | "peerDependenciesMeta": { 782 | "jiti": { 783 | "optional": true 784 | } 785 | } 786 | }, 787 | "node_modules/eslint-config-mourner": { 788 | "version": "4.0.2", 789 | "resolved": "https://registry.npmjs.org/eslint-config-mourner/-/eslint-config-mourner-4.0.2.tgz", 790 | "integrity": "sha512-gaXR2jyDbu51PhUNQXuLZmyHYgFztdLfAz7EtfdmBXw0Ok97H6/39hKb1nLBwQa+8+QHXCCgqG8Sviu/Z5GSzQ==", 791 | "dev": true, 792 | "license": "ISC", 793 | "dependencies": { 794 | "@eslint/js": "^9.6.0", 795 | "@stylistic/eslint-plugin-js": "^2.3.0", 796 | "globals": "^15.8.0" 797 | } 798 | }, 799 | "node_modules/eslint-config-mourner/node_modules/globals": { 800 | "version": "15.9.0", 801 | "resolved": "https://registry.npmjs.org/globals/-/globals-15.9.0.tgz", 802 | "integrity": "sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==", 803 | "dev": true, 804 | "license": "MIT", 805 | "engines": { 806 | "node": ">=18" 807 | }, 808 | "funding": { 809 | "url": "https://github.com/sponsors/sindresorhus" 810 | } 811 | }, 812 | "node_modules/eslint-scope": { 813 | "version": "8.0.2", 814 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.0.2.tgz", 815 | "integrity": "sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA==", 816 | "dev": true, 817 | "license": "BSD-2-Clause", 818 | "dependencies": { 819 | "esrecurse": "^4.3.0", 820 | "estraverse": "^5.2.0" 821 | }, 822 | "engines": { 823 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 824 | }, 825 | "funding": { 826 | "url": "https://opencollective.com/eslint" 827 | } 828 | }, 829 | "node_modules/eslint-visitor-keys": { 830 | "version": "4.0.0", 831 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", 832 | "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", 833 | "dev": true, 834 | "license": "Apache-2.0", 835 | "engines": { 836 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 837 | }, 838 | "funding": { 839 | "url": "https://opencollective.com/eslint" 840 | } 841 | }, 842 | "node_modules/espree": { 843 | "version": "10.1.0", 844 | "resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz", 845 | "integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==", 846 | "dev": true, 847 | "license": "BSD-2-Clause", 848 | "dependencies": { 849 | "acorn": "^8.12.0", 850 | "acorn-jsx": "^5.3.2", 851 | "eslint-visitor-keys": "^4.0.0" 852 | }, 853 | "engines": { 854 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 855 | }, 856 | "funding": { 857 | "url": "https://opencollective.com/eslint" 858 | } 859 | }, 860 | "node_modules/esquery": { 861 | "version": "1.6.0", 862 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", 863 | "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", 864 | "dev": true, 865 | "license": "BSD-3-Clause", 866 | "dependencies": { 867 | "estraverse": "^5.1.0" 868 | }, 869 | "engines": { 870 | "node": ">=0.10" 871 | } 872 | }, 873 | "node_modules/esrecurse": { 874 | "version": "4.3.0", 875 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 876 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 877 | "dev": true, 878 | "license": "BSD-2-Clause", 879 | "dependencies": { 880 | "estraverse": "^5.2.0" 881 | }, 882 | "engines": { 883 | "node": ">=4.0" 884 | } 885 | }, 886 | "node_modules/estraverse": { 887 | "version": "5.3.0", 888 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 889 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 890 | "dev": true, 891 | "license": "BSD-2-Clause", 892 | "engines": { 893 | "node": ">=4.0" 894 | } 895 | }, 896 | "node_modules/esutils": { 897 | "version": "2.0.3", 898 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 899 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 900 | "dev": true, 901 | "license": "BSD-2-Clause", 902 | "engines": { 903 | "node": ">=0.10.0" 904 | } 905 | }, 906 | "node_modules/fast-deep-equal": { 907 | "version": "3.1.3", 908 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 909 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 910 | "dev": true, 911 | "license": "MIT" 912 | }, 913 | "node_modules/fast-json-stable-stringify": { 914 | "version": "2.1.0", 915 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 916 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 917 | "dev": true, 918 | "license": "MIT" 919 | }, 920 | "node_modules/fast-levenshtein": { 921 | "version": "2.0.6", 922 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 923 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 924 | "dev": true, 925 | "license": "MIT" 926 | }, 927 | "node_modules/fastq": { 928 | "version": "1.17.1", 929 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", 930 | "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", 931 | "dev": true, 932 | "license": "ISC", 933 | "dependencies": { 934 | "reusify": "^1.0.4" 935 | } 936 | }, 937 | "node_modules/file-entry-cache": { 938 | "version": "8.0.0", 939 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", 940 | "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", 941 | "dev": true, 942 | "license": "MIT", 943 | "dependencies": { 944 | "flat-cache": "^4.0.0" 945 | }, 946 | "engines": { 947 | "node": ">=16.0.0" 948 | } 949 | }, 950 | "node_modules/find-up": { 951 | "version": "5.0.0", 952 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 953 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 954 | "dev": true, 955 | "license": "MIT", 956 | "dependencies": { 957 | "locate-path": "^6.0.0", 958 | "path-exists": "^4.0.0" 959 | }, 960 | "engines": { 961 | "node": ">=10" 962 | }, 963 | "funding": { 964 | "url": "https://github.com/sponsors/sindresorhus" 965 | } 966 | }, 967 | "node_modules/flat-cache": { 968 | "version": "4.0.1", 969 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", 970 | "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", 971 | "dev": true, 972 | "license": "MIT", 973 | "dependencies": { 974 | "flatted": "^3.2.9", 975 | "keyv": "^4.5.4" 976 | }, 977 | "engines": { 978 | "node": ">=16" 979 | } 980 | }, 981 | "node_modules/flatted": { 982 | "version": "3.3.1", 983 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", 984 | "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", 985 | "dev": true, 986 | "license": "ISC" 987 | }, 988 | "node_modules/fsevents": { 989 | "version": "2.3.3", 990 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 991 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 992 | "dev": true, 993 | "hasInstallScript": true, 994 | "license": "MIT", 995 | "optional": true, 996 | "os": [ 997 | "darwin" 998 | ], 999 | "engines": { 1000 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1001 | } 1002 | }, 1003 | "node_modules/glob-parent": { 1004 | "version": "6.0.2", 1005 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1006 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1007 | "dev": true, 1008 | "license": "ISC", 1009 | "dependencies": { 1010 | "is-glob": "^4.0.3" 1011 | }, 1012 | "engines": { 1013 | "node": ">=10.13.0" 1014 | } 1015 | }, 1016 | "node_modules/globals": { 1017 | "version": "14.0.0", 1018 | "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", 1019 | "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", 1020 | "dev": true, 1021 | "license": "MIT", 1022 | "engines": { 1023 | "node": ">=18" 1024 | }, 1025 | "funding": { 1026 | "url": "https://github.com/sponsors/sindresorhus" 1027 | } 1028 | }, 1029 | "node_modules/has-flag": { 1030 | "version": "4.0.0", 1031 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1032 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1033 | "dev": true, 1034 | "license": "MIT", 1035 | "engines": { 1036 | "node": ">=8" 1037 | } 1038 | }, 1039 | "node_modules/ignore": { 1040 | "version": "5.3.2", 1041 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", 1042 | "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", 1043 | "dev": true, 1044 | "license": "MIT", 1045 | "engines": { 1046 | "node": ">= 4" 1047 | } 1048 | }, 1049 | "node_modules/import-fresh": { 1050 | "version": "3.3.0", 1051 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1052 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1053 | "dev": true, 1054 | "license": "MIT", 1055 | "dependencies": { 1056 | "parent-module": "^1.0.0", 1057 | "resolve-from": "^4.0.0" 1058 | }, 1059 | "engines": { 1060 | "node": ">=6" 1061 | }, 1062 | "funding": { 1063 | "url": "https://github.com/sponsors/sindresorhus" 1064 | } 1065 | }, 1066 | "node_modules/imurmurhash": { 1067 | "version": "0.1.4", 1068 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1069 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1070 | "dev": true, 1071 | "license": "MIT", 1072 | "engines": { 1073 | "node": ">=0.8.19" 1074 | } 1075 | }, 1076 | "node_modules/is-extglob": { 1077 | "version": "2.1.1", 1078 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1079 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1080 | "dev": true, 1081 | "license": "MIT", 1082 | "engines": { 1083 | "node": ">=0.10.0" 1084 | } 1085 | }, 1086 | "node_modules/is-glob": { 1087 | "version": "4.0.3", 1088 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1089 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1090 | "dev": true, 1091 | "license": "MIT", 1092 | "dependencies": { 1093 | "is-extglob": "^2.1.1" 1094 | }, 1095 | "engines": { 1096 | "node": ">=0.10.0" 1097 | } 1098 | }, 1099 | "node_modules/is-path-inside": { 1100 | "version": "3.0.3", 1101 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1102 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1103 | "dev": true, 1104 | "license": "MIT", 1105 | "engines": { 1106 | "node": ">=8" 1107 | } 1108 | }, 1109 | "node_modules/isexe": { 1110 | "version": "2.0.0", 1111 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1112 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1113 | "dev": true, 1114 | "license": "ISC" 1115 | }, 1116 | "node_modules/js-yaml": { 1117 | "version": "4.1.0", 1118 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1119 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1120 | "dev": true, 1121 | "license": "MIT", 1122 | "dependencies": { 1123 | "argparse": "^2.0.1" 1124 | }, 1125 | "bin": { 1126 | "js-yaml": "bin/js-yaml.js" 1127 | } 1128 | }, 1129 | "node_modules/json-buffer": { 1130 | "version": "3.0.1", 1131 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", 1132 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", 1133 | "dev": true, 1134 | "license": "MIT" 1135 | }, 1136 | "node_modules/json-schema-traverse": { 1137 | "version": "0.4.1", 1138 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1139 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1140 | "dev": true, 1141 | "license": "MIT" 1142 | }, 1143 | "node_modules/json-stable-stringify-without-jsonify": { 1144 | "version": "1.0.1", 1145 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1146 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1147 | "dev": true, 1148 | "license": "MIT" 1149 | }, 1150 | "node_modules/keyv": { 1151 | "version": "4.5.4", 1152 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", 1153 | "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", 1154 | "dev": true, 1155 | "license": "MIT", 1156 | "dependencies": { 1157 | "json-buffer": "3.0.1" 1158 | } 1159 | }, 1160 | "node_modules/levn": { 1161 | "version": "0.4.1", 1162 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1163 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1164 | "dev": true, 1165 | "license": "MIT", 1166 | "dependencies": { 1167 | "prelude-ls": "^1.2.1", 1168 | "type-check": "~0.4.0" 1169 | }, 1170 | "engines": { 1171 | "node": ">= 0.8.0" 1172 | } 1173 | }, 1174 | "node_modules/locate-path": { 1175 | "version": "6.0.0", 1176 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1177 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1178 | "dev": true, 1179 | "license": "MIT", 1180 | "dependencies": { 1181 | "p-locate": "^5.0.0" 1182 | }, 1183 | "engines": { 1184 | "node": ">=10" 1185 | }, 1186 | "funding": { 1187 | "url": "https://github.com/sponsors/sindresorhus" 1188 | } 1189 | }, 1190 | "node_modules/lodash.merge": { 1191 | "version": "4.6.2", 1192 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1193 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1194 | "dev": true, 1195 | "license": "MIT" 1196 | }, 1197 | "node_modules/minimatch": { 1198 | "version": "3.1.2", 1199 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1200 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1201 | "dev": true, 1202 | "license": "ISC", 1203 | "dependencies": { 1204 | "brace-expansion": "^1.1.7" 1205 | }, 1206 | "engines": { 1207 | "node": "*" 1208 | } 1209 | }, 1210 | "node_modules/ms": { 1211 | "version": "2.1.3", 1212 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1213 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1214 | "dev": true, 1215 | "license": "MIT" 1216 | }, 1217 | "node_modules/natural-compare": { 1218 | "version": "1.4.0", 1219 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1220 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1221 | "dev": true, 1222 | "license": "MIT" 1223 | }, 1224 | "node_modules/optionator": { 1225 | "version": "0.9.4", 1226 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", 1227 | "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", 1228 | "dev": true, 1229 | "license": "MIT", 1230 | "dependencies": { 1231 | "deep-is": "^0.1.3", 1232 | "fast-levenshtein": "^2.0.6", 1233 | "levn": "^0.4.1", 1234 | "prelude-ls": "^1.2.1", 1235 | "type-check": "^0.4.0", 1236 | "word-wrap": "^1.2.5" 1237 | }, 1238 | "engines": { 1239 | "node": ">= 0.8.0" 1240 | } 1241 | }, 1242 | "node_modules/p-limit": { 1243 | "version": "3.1.0", 1244 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1245 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1246 | "dev": true, 1247 | "license": "MIT", 1248 | "dependencies": { 1249 | "yocto-queue": "^0.1.0" 1250 | }, 1251 | "engines": { 1252 | "node": ">=10" 1253 | }, 1254 | "funding": { 1255 | "url": "https://github.com/sponsors/sindresorhus" 1256 | } 1257 | }, 1258 | "node_modules/p-locate": { 1259 | "version": "5.0.0", 1260 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1261 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1262 | "dev": true, 1263 | "license": "MIT", 1264 | "dependencies": { 1265 | "p-limit": "^3.0.2" 1266 | }, 1267 | "engines": { 1268 | "node": ">=10" 1269 | }, 1270 | "funding": { 1271 | "url": "https://github.com/sponsors/sindresorhus" 1272 | } 1273 | }, 1274 | "node_modules/parent-module": { 1275 | "version": "1.0.1", 1276 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1277 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1278 | "dev": true, 1279 | "license": "MIT", 1280 | "dependencies": { 1281 | "callsites": "^3.0.0" 1282 | }, 1283 | "engines": { 1284 | "node": ">=6" 1285 | } 1286 | }, 1287 | "node_modules/path-exists": { 1288 | "version": "4.0.0", 1289 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1290 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1291 | "dev": true, 1292 | "license": "MIT", 1293 | "engines": { 1294 | "node": ">=8" 1295 | } 1296 | }, 1297 | "node_modules/path-key": { 1298 | "version": "3.1.1", 1299 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1300 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1301 | "dev": true, 1302 | "license": "MIT", 1303 | "engines": { 1304 | "node": ">=8" 1305 | } 1306 | }, 1307 | "node_modules/prelude-ls": { 1308 | "version": "1.2.1", 1309 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1310 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1311 | "dev": true, 1312 | "license": "MIT", 1313 | "engines": { 1314 | "node": ">= 0.8.0" 1315 | } 1316 | }, 1317 | "node_modules/punycode": { 1318 | "version": "2.3.1", 1319 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1320 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1321 | "dev": true, 1322 | "license": "MIT", 1323 | "engines": { 1324 | "node": ">=6" 1325 | } 1326 | }, 1327 | "node_modules/queue-microtask": { 1328 | "version": "1.2.3", 1329 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1330 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1331 | "dev": true, 1332 | "funding": [ 1333 | { 1334 | "type": "github", 1335 | "url": "https://github.com/sponsors/feross" 1336 | }, 1337 | { 1338 | "type": "patreon", 1339 | "url": "https://www.patreon.com/feross" 1340 | }, 1341 | { 1342 | "type": "consulting", 1343 | "url": "https://feross.org/support" 1344 | } 1345 | ], 1346 | "license": "MIT" 1347 | }, 1348 | "node_modules/randombytes": { 1349 | "version": "2.1.0", 1350 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 1351 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 1352 | "dev": true, 1353 | "license": "MIT", 1354 | "dependencies": { 1355 | "safe-buffer": "^5.1.0" 1356 | } 1357 | }, 1358 | "node_modules/resolve-from": { 1359 | "version": "4.0.0", 1360 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1361 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1362 | "dev": true, 1363 | "license": "MIT", 1364 | "engines": { 1365 | "node": ">=4" 1366 | } 1367 | }, 1368 | "node_modules/reusify": { 1369 | "version": "1.0.4", 1370 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1371 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1372 | "dev": true, 1373 | "license": "MIT", 1374 | "engines": { 1375 | "iojs": ">=1.0.0", 1376 | "node": ">=0.10.0" 1377 | } 1378 | }, 1379 | "node_modules/rollup": { 1380 | "version": "4.22.4", 1381 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.22.4.tgz", 1382 | "integrity": "sha512-vD8HJ5raRcWOyymsR6Z3o6+RzfEPCnVLMFJ6vRslO1jt4LO6dUo5Qnpg7y4RkZFM2DMe3WUirkI5c16onjrc6A==", 1383 | "dev": true, 1384 | "dependencies": { 1385 | "@types/estree": "1.0.5" 1386 | }, 1387 | "bin": { 1388 | "rollup": "dist/bin/rollup" 1389 | }, 1390 | "engines": { 1391 | "node": ">=18.0.0", 1392 | "npm": ">=8.0.0" 1393 | }, 1394 | "optionalDependencies": { 1395 | "@rollup/rollup-android-arm-eabi": "4.22.4", 1396 | "@rollup/rollup-android-arm64": "4.22.4", 1397 | "@rollup/rollup-darwin-arm64": "4.22.4", 1398 | "@rollup/rollup-darwin-x64": "4.22.4", 1399 | "@rollup/rollup-linux-arm-gnueabihf": "4.22.4", 1400 | "@rollup/rollup-linux-arm-musleabihf": "4.22.4", 1401 | "@rollup/rollup-linux-arm64-gnu": "4.22.4", 1402 | "@rollup/rollup-linux-arm64-musl": "4.22.4", 1403 | "@rollup/rollup-linux-powerpc64le-gnu": "4.22.4", 1404 | "@rollup/rollup-linux-riscv64-gnu": "4.22.4", 1405 | "@rollup/rollup-linux-s390x-gnu": "4.22.4", 1406 | "@rollup/rollup-linux-x64-gnu": "4.22.4", 1407 | "@rollup/rollup-linux-x64-musl": "4.22.4", 1408 | "@rollup/rollup-win32-arm64-msvc": "4.22.4", 1409 | "@rollup/rollup-win32-ia32-msvc": "4.22.4", 1410 | "@rollup/rollup-win32-x64-msvc": "4.22.4", 1411 | "fsevents": "~2.3.2" 1412 | } 1413 | }, 1414 | "node_modules/run-parallel": { 1415 | "version": "1.2.0", 1416 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1417 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1418 | "dev": true, 1419 | "funding": [ 1420 | { 1421 | "type": "github", 1422 | "url": "https://github.com/sponsors/feross" 1423 | }, 1424 | { 1425 | "type": "patreon", 1426 | "url": "https://www.patreon.com/feross" 1427 | }, 1428 | { 1429 | "type": "consulting", 1430 | "url": "https://feross.org/support" 1431 | } 1432 | ], 1433 | "license": "MIT", 1434 | "dependencies": { 1435 | "queue-microtask": "^1.2.2" 1436 | } 1437 | }, 1438 | "node_modules/safe-buffer": { 1439 | "version": "5.2.1", 1440 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1441 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1442 | "dev": true, 1443 | "funding": [ 1444 | { 1445 | "type": "github", 1446 | "url": "https://github.com/sponsors/feross" 1447 | }, 1448 | { 1449 | "type": "patreon", 1450 | "url": "https://www.patreon.com/feross" 1451 | }, 1452 | { 1453 | "type": "consulting", 1454 | "url": "https://feross.org/support" 1455 | } 1456 | ], 1457 | "license": "MIT" 1458 | }, 1459 | "node_modules/serialize-javascript": { 1460 | "version": "6.0.2", 1461 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", 1462 | "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", 1463 | "dev": true, 1464 | "license": "BSD-3-Clause", 1465 | "dependencies": { 1466 | "randombytes": "^2.1.0" 1467 | } 1468 | }, 1469 | "node_modules/shebang-command": { 1470 | "version": "2.0.0", 1471 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1472 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1473 | "dev": true, 1474 | "license": "MIT", 1475 | "dependencies": { 1476 | "shebang-regex": "^3.0.0" 1477 | }, 1478 | "engines": { 1479 | "node": ">=8" 1480 | } 1481 | }, 1482 | "node_modules/shebang-regex": { 1483 | "version": "3.0.0", 1484 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1485 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1486 | "dev": true, 1487 | "license": "MIT", 1488 | "engines": { 1489 | "node": ">=8" 1490 | } 1491 | }, 1492 | "node_modules/smob": { 1493 | "version": "1.5.0", 1494 | "resolved": "https://registry.npmjs.org/smob/-/smob-1.5.0.tgz", 1495 | "integrity": "sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==", 1496 | "dev": true, 1497 | "license": "MIT" 1498 | }, 1499 | "node_modules/source-map": { 1500 | "version": "0.6.1", 1501 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1502 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1503 | "dev": true, 1504 | "license": "BSD-3-Clause", 1505 | "engines": { 1506 | "node": ">=0.10.0" 1507 | } 1508 | }, 1509 | "node_modules/source-map-support": { 1510 | "version": "0.5.21", 1511 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", 1512 | "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", 1513 | "dev": true, 1514 | "license": "MIT", 1515 | "dependencies": { 1516 | "buffer-from": "^1.0.0", 1517 | "source-map": "^0.6.0" 1518 | } 1519 | }, 1520 | "node_modules/strip-ansi": { 1521 | "version": "6.0.1", 1522 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1523 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1524 | "dev": true, 1525 | "license": "MIT", 1526 | "dependencies": { 1527 | "ansi-regex": "^5.0.1" 1528 | }, 1529 | "engines": { 1530 | "node": ">=8" 1531 | } 1532 | }, 1533 | "node_modules/strip-json-comments": { 1534 | "version": "3.1.1", 1535 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1536 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1537 | "dev": true, 1538 | "license": "MIT", 1539 | "engines": { 1540 | "node": ">=8" 1541 | }, 1542 | "funding": { 1543 | "url": "https://github.com/sponsors/sindresorhus" 1544 | } 1545 | }, 1546 | "node_modules/supports-color": { 1547 | "version": "7.2.0", 1548 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1549 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1550 | "dev": true, 1551 | "license": "MIT", 1552 | "dependencies": { 1553 | "has-flag": "^4.0.0" 1554 | }, 1555 | "engines": { 1556 | "node": ">=8" 1557 | } 1558 | }, 1559 | "node_modules/terser": { 1560 | "version": "5.32.0", 1561 | "resolved": "https://registry.npmjs.org/terser/-/terser-5.32.0.tgz", 1562 | "integrity": "sha512-v3Gtw3IzpBJ0ugkxEX8U0W6+TnPKRRCWGh1jC/iM/e3Ki5+qvO1L1EAZ56bZasc64aXHwRHNIQEzm6//i5cemQ==", 1563 | "dev": true, 1564 | "license": "BSD-2-Clause", 1565 | "dependencies": { 1566 | "@jridgewell/source-map": "^0.3.3", 1567 | "acorn": "^8.8.2", 1568 | "commander": "^2.20.0", 1569 | "source-map-support": "~0.5.20" 1570 | }, 1571 | "bin": { 1572 | "terser": "bin/terser" 1573 | }, 1574 | "engines": { 1575 | "node": ">=10" 1576 | } 1577 | }, 1578 | "node_modules/text-table": { 1579 | "version": "0.2.0", 1580 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1581 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 1582 | "dev": true, 1583 | "license": "MIT" 1584 | }, 1585 | "node_modules/type-check": { 1586 | "version": "0.4.0", 1587 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 1588 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 1589 | "dev": true, 1590 | "license": "MIT", 1591 | "dependencies": { 1592 | "prelude-ls": "^1.2.1" 1593 | }, 1594 | "engines": { 1595 | "node": ">= 0.8.0" 1596 | } 1597 | }, 1598 | "node_modules/typescript": { 1599 | "version": "5.6.2", 1600 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", 1601 | "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", 1602 | "dev": true, 1603 | "license": "Apache-2.0", 1604 | "bin": { 1605 | "tsc": "bin/tsc", 1606 | "tsserver": "bin/tsserver" 1607 | }, 1608 | "engines": { 1609 | "node": ">=14.17" 1610 | } 1611 | }, 1612 | "node_modules/uri-js": { 1613 | "version": "4.4.1", 1614 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1615 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 1616 | "dev": true, 1617 | "license": "BSD-2-Clause", 1618 | "dependencies": { 1619 | "punycode": "^2.1.0" 1620 | } 1621 | }, 1622 | "node_modules/which": { 1623 | "version": "2.0.2", 1624 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 1625 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 1626 | "dev": true, 1627 | "license": "ISC", 1628 | "dependencies": { 1629 | "isexe": "^2.0.0" 1630 | }, 1631 | "bin": { 1632 | "node-which": "bin/node-which" 1633 | }, 1634 | "engines": { 1635 | "node": ">= 8" 1636 | } 1637 | }, 1638 | "node_modules/word-wrap": { 1639 | "version": "1.2.5", 1640 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", 1641 | "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", 1642 | "dev": true, 1643 | "license": "MIT", 1644 | "engines": { 1645 | "node": ">=0.10.0" 1646 | } 1647 | }, 1648 | "node_modules/yocto-queue": { 1649 | "version": "0.1.0", 1650 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 1651 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 1652 | "dev": true, 1653 | "license": "MIT", 1654 | "engines": { 1655 | "node": ">=10" 1656 | }, 1657 | "funding": { 1658 | "url": "https://github.com/sponsors/sindresorhus" 1659 | } 1660 | } 1661 | } 1662 | } 1663 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kdbush", 3 | "version": "4.0.2", 4 | "description": "A very fast static 2D index for points based on kd-tree.", 5 | "type": "module", 6 | "main": "kdbush.js", 7 | "module": "index.js", 8 | "exports": "./index.js", 9 | "types": "index.d.ts", 10 | "sideEffects": false, 11 | "repository": { 12 | "type": "git", 13 | "url": "git://github.com/mourner/kdbush.git" 14 | }, 15 | "devDependencies": { 16 | "@rollup/plugin-terser": "^0.4.4", 17 | "eslint": "^9.10.0", 18 | "eslint-config-mourner": "^4.0.2", 19 | "rollup": "^4.21.2", 20 | "typescript": "^5.6.2" 21 | }, 22 | "scripts": { 23 | "pretest": "eslint", 24 | "test": "tsc && node test.js", 25 | "bench": "node bench.js", 26 | "build": "rollup -c", 27 | "prepublishOnly": "npm run test && npm run build" 28 | }, 29 | "keywords": [ 30 | "index", 31 | "points", 32 | "kd-tree", 33 | "data structures", 34 | "algorithms", 35 | "spatial", 36 | "geometry" 37 | ], 38 | "files": [ 39 | "kdbush.js", 40 | "kdbush.min.js", 41 | "index.js", 42 | "index.d.ts" 43 | ], 44 | "author": "Vladimir Agafonkin", 45 | "license": "ISC" 46 | } 47 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | import terser from '@rollup/plugin-terser'; 2 | 3 | const config = (file, plugins) => ({ 4 | input: 'index.js', 5 | output: { 6 | name: 'KDBush', 7 | format: 'umd', 8 | indent: false, 9 | file 10 | }, 11 | plugins 12 | }); 13 | 14 | export default [ 15 | config('kdbush.js', []), 16 | config('kdbush.min.js', [terser()]) 17 | ]; 18 | -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- 1 | import KDBush from './index.js'; 2 | import test from 'node:test'; 3 | import assert from 'node:assert/strict'; 4 | 5 | /* eslint @stylistic/js/comma-spacing: 0 */ 6 | 7 | const points = [ 8 | [54,1],[97,21],[65,35],[33,54],[95,39],[54,3],[53,54],[84,72],[33,34],[43,15],[52,83],[81,23],[1,61],[38,74], 9 | [11,91],[24,56],[90,31],[25,57],[46,61],[29,69],[49,60],[4,98],[71,15],[60,25],[38,84],[52,38],[94,51],[13,25], 10 | [77,73],[88,87],[6,27],[58,22],[53,28],[27,91],[96,98],[93,14],[22,93],[45,94],[18,28],[35,15],[19,81],[20,81], 11 | [67,53],[43,3],[47,66],[48,34],[46,12],[32,38],[43,12],[39,94],[88,62],[66,14],[84,30],[72,81],[41,92],[26,4], 12 | [6,76],[47,21],[57,70],[71,82],[50,68],[96,18],[40,31],[78,53],[71,90],[32,14],[55,6],[32,88],[62,32],[21,67], 13 | [73,81],[44,64],[29,50],[70,5],[6,22],[68,3],[11,23],[20,42],[21,73],[63,86],[9,40],[99,2],[99,76],[56,77], 14 | [83,6],[21,72],[78,30],[75,53],[41,11],[95,20],[30,38],[96,82],[65,48],[33,18],[87,28],[10,10],[40,34], 15 | [10,20],[47,29],[46,78]]; 16 | 17 | const ids = [ 18 | 97,74,95,30,77,38,76,27,80,55,72,90,88,48,43,46,65,39,62,93,9,96,47,8,3,12,15,14,21,41,36,40,69,56,85,78,17,71,44, 19 | 19,18,13,99,24,67,33,37,49,54,57,98,45,23,31,66,68,0,32,5,51,75,73,84,35,81,22,61,89,1,11,86,52,94,16,2,6,25,92, 20 | 42,20,60,58,83,79,64,10,59,53,26,87,4,63,50,7,28,82,70,29,34,91]; 21 | 22 | const coords = [ 23 | 10,20,6,22,10,10,6,27,20,42,18,28,11,23,13,25,9,40,26,4,29,50,30,38,41,11,43,12,43,3,46,12,32,14,35,15,40,31,33,18, 24 | 43,15,40,34,32,38,33,34,33,54,1,61,24,56,11,91,4,98,20,81,22,93,19,81,21,67,6,76,21,72,21,73,25,57,44,64,47,66,29, 25 | 69,46,61,38,74,46,78,38,84,32,88,27,91,45,94,39,94,41,92,47,21,47,29,48,34,60,25,58,22,55,6,62,32,54,1,53,28,54,3, 26 | 66,14,68,3,70,5,83,6,93,14,99,2,71,15,96,18,95,20,97,21,81,23,78,30,84,30,87,28,90,31,65,35,53,54,52,38,65,48,67, 27 | 53,49,60,50,68,57,70,56,77,63,86,71,90,52,83,71,82,72,81,94,51,75,53,95,39,78,53,88,62,84,72,77,73,99,76,73,81,88, 28 | 87,96,98,96,82]; 29 | 30 | function makeIndex() { 31 | const index = new KDBush(points.length, 10); 32 | for (const [x, y] of points) index.add(x, y); 33 | return index.finish(); 34 | } 35 | 36 | test('creates an index', () => { 37 | const index = makeIndex(); 38 | 39 | assert.deepEqual(Array.from(index.ids), ids, 'ids are kd-sorted'); 40 | assert.deepEqual(Array.from(index.coords), coords, 'coords are kd-sorted'); 41 | }); 42 | 43 | test('range search', () => { 44 | const index = makeIndex(); 45 | 46 | const result = index.range(20, 30, 50, 70); 47 | 48 | assert.deepEqual(result, [60,20,45,3,17,71,44,19,18,15,69,90,62,96,47,8,77,72], 'returns ids'); 49 | 50 | for (const id of result) { 51 | const p = points[id]; 52 | if (p[0] < 20 || p[0] > 50 || p[1] < 30 || p[1] > 70) 53 | assert.fail('result point in range'); 54 | } 55 | // result points in range 56 | 57 | for (const id of ids) { 58 | const p = points[id]; 59 | if (result.indexOf(id) < 0 && p[0] >= 20 && p[0] <= 50 && p[1] >= 30 && p[1] <= 70) 60 | assert.fail('outside point not in range'); 61 | } 62 | // outside points not in range 63 | }); 64 | 65 | test('radius search', () => { 66 | const index = makeIndex(); 67 | 68 | const qp = [50, 50]; 69 | const r = 20; 70 | const r2 = 20 * 20; 71 | 72 | const result = index.within(qp[0], qp[1], r); 73 | 74 | assert.deepEqual(result, [60,6,25,92,42,20,45,3,71,44,18,96], 'returns ids'); 75 | 76 | for (const id of result) { 77 | const p = points[id]; 78 | if (sqDist(p, qp) > r2) assert.fail('result point in range'); 79 | } 80 | // result points in range 81 | 82 | for (const id of ids) { 83 | const p = points[id]; 84 | if (result.indexOf(id) < 0 && sqDist(p, qp) <= r2) 85 | assert.fail('outside point not in range'); 86 | } 87 | // outside points not in range 88 | }); 89 | 90 | test('reconstructs an index from array buffer', () => { 91 | const index = makeIndex(); 92 | const index2 = KDBush.from(index.data); 93 | 94 | assert.deepEqual(index, index2); 95 | }); 96 | 97 | test('throws an error if added less items than the index size', () => { 98 | assert.throws(() => { 99 | const index = new KDBush(points.length); 100 | index.finish(); 101 | }); 102 | }); 103 | 104 | test('throws an error if searching before indexing', () => { 105 | const index = new KDBush(points.length); 106 | assert.throws(() => { 107 | index.range(0, 0, 20, 20); 108 | }); 109 | assert.throws(() => { 110 | index.within(10, 10, 20); 111 | }); 112 | }); 113 | 114 | test('does not complain about zero items', () => { 115 | assert.doesNotThrow(() => { 116 | const index = new KDBush(0); 117 | index.finish(); 118 | assert.deepEqual(index.range(0, 0, 10, 10), []); 119 | assert.deepEqual(index.within(0, 0, 10), []); 120 | }); 121 | }); 122 | 123 | function sqDist(a, b) { 124 | const dx = a[0] - b[0]; 125 | const dy = a[1] - b[1]; 126 | return dx * dx + dy * dy; 127 | } 128 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "checkJs": true, 5 | "strict": true, 6 | "emitDeclarationOnly": true, 7 | "declaration": true, 8 | "target": "es2017" 9 | }, 10 | "files": [ 11 | "index.js" 12 | ] 13 | } 14 | --------------------------------------------------------------------------------