all these changes

This commit is contained in:
Jake Kasper
2026-04-09 13:19:47 -05:00
parent e83a51a051
commit 65315f36d1
39102 changed files with 7932979 additions and 567 deletions

20
frontend/node_modules/@turf/combine/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2017 TurfJS
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

81
frontend/node_modules/@turf/combine/README.md generated vendored Normal file
View File

@@ -0,0 +1,81 @@
# @turf/combine
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## combine
Combines a [FeatureCollection][1] of [Point][2], [LineString][3], or [Polygon][4] features
into [MultiPoint][5], [MultiLineString][6], or [MultiPolygon][7] features.
**Parameters**
- `fc` **[FeatureCollection][8]&lt;([Point][9] \| [LineString][10] \| [Polygon][11])>** a FeatureCollection of any type
**Examples**
```javascript
var fc = turf.featureCollection([
turf.point([19.026432, 47.49134]),
turf.point([19.074497, 47.509548])
]);
var combined = turf.combine(fc);
//addToMap
var addToMap = [combined]
```
Returns **[FeatureCollection][8]&lt;([MultiPoint][12] \| [MultiLineString][13] \| [MultiPolygon][14])>** a FeatureCollection of corresponding type to input
[1]: https://tools.ietf.org/html/rfc7946#section-3.3
[2]: https://tools.ietf.org/html/rfc7946#section-3.1.2
[3]: https://tools.ietf.org/html/rfc7946#section-3.1.4
[4]: https://tools.ietf.org/html/rfc7946#section-3.1.6
[5]: https://tools.ietf.org/html/rfc7946#section-3.1.3
[6]: https://tools.ietf.org/html/rfc7946#section-3.1.5
[7]: https://tools.ietf.org/html/rfc7946#section-3.1.7
[8]: https://tools.ietf.org/html/rfc7946#section-3.3
[9]: https://tools.ietf.org/html/rfc7946#section-3.1.2
[10]: https://tools.ietf.org/html/rfc7946#section-3.1.4
[11]: https://tools.ietf.org/html/rfc7946#section-3.1.6
[12]: https://tools.ietf.org/html/rfc7946#section-3.1.3
[13]: https://tools.ietf.org/html/rfc7946#section-3.1.5
[14]: https://tools.ietf.org/html/rfc7946#section-3.1.7
<!-- This file is automatically generated. Please don't edit it directly:
if you find an error, edit the source file (likely index.js), and re-run
./scripts/generate-readmes in the turf project. -->
---
This module is part of the [Turfjs project](http://turfjs.org/), an open source
module collection dedicated to geographic algorithms. It is maintained in the
[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create
PRs and issues.
### Installation
Install this module individually:
```sh
$ npm install @turf/combine
```
Or install the Turf module that includes it as a function:
```sh
$ npm install @turf/turf
```

79
frontend/node_modules/@turf/combine/dist/es/index.js generated vendored Executable file
View File

@@ -0,0 +1,79 @@
import { feature, featureCollection, } from "@turf/helpers";
import { featureEach } from "@turf/meta";
/**
* Combines a {@link FeatureCollection} of {@link Point}, {@link LineString}, or {@link Polygon} features
* into {@link MultiPoint}, {@link MultiLineString}, or {@link MultiPolygon} features.
*
* @name combine
* @param {FeatureCollection<Point|LineString|Polygon>} fc a FeatureCollection of any type
* @returns {FeatureCollection<MultiPoint|MultiLineString|MultiPolygon>} a FeatureCollection of corresponding type to input
* @example
* var fc = turf.featureCollection([
* turf.point([19.026432, 47.49134]),
* turf.point([19.074497, 47.509548])
* ]);
*
* var combined = turf.combine(fc);
*
* //addToMap
* var addToMap = [combined]
*/
function combine(fc) {
var groups = {
MultiPoint: {
coordinates: [],
properties: [],
},
MultiLineString: {
coordinates: [],
properties: [],
},
MultiPolygon: {
coordinates: [],
properties: [],
},
};
featureEach(fc, function (feature) {
var _a, _b, _c;
var _d;
switch ((_d = feature.geometry) === null || _d === void 0 ? void 0 : _d.type) {
case "Point":
groups.MultiPoint.coordinates.push(feature.geometry.coordinates);
groups.MultiPoint.properties.push(feature.properties);
break;
case "MultiPoint":
(_a = groups.MultiPoint.coordinates).push.apply(_a, feature.geometry.coordinates);
groups.MultiPoint.properties.push(feature.properties);
break;
case "LineString":
groups.MultiLineString.coordinates.push(feature.geometry.coordinates);
groups.MultiLineString.properties.push(feature.properties);
break;
case "MultiLineString":
(_b = groups.MultiLineString.coordinates).push.apply(_b, feature.geometry.coordinates);
groups.MultiLineString.properties.push(feature.properties);
break;
case "Polygon":
groups.MultiPolygon.coordinates.push(feature.geometry.coordinates);
groups.MultiPolygon.properties.push(feature.properties);
break;
case "MultiPolygon":
(_c = groups.MultiPolygon.coordinates).push.apply(_c, feature.geometry.coordinates);
groups.MultiPolygon.properties.push(feature.properties);
break;
default:
break;
}
});
return featureCollection(Object.keys(groups)
.filter(function (key) {
return groups[key].coordinates.length;
})
.sort()
.map(function (key) {
var geometry = { type: key, coordinates: groups[key].coordinates };
var properties = { collectedProperties: groups[key].properties };
return feature(geometry, properties);
}));
}
export default combine;

View File

@@ -0,0 +1 @@
{"type":"module"}

27
frontend/node_modules/@turf/combine/dist/js/index.d.ts generated vendored Executable file
View File

@@ -0,0 +1,27 @@
import { MultiLineString, MultiPoint, MultiPolygon, Properties } from "@turf/helpers";
import { Point, LineString, Polygon, FeatureCollection } from "@turf/helpers";
/**
* Combines a {@link FeatureCollection} of {@link Point}, {@link LineString}, or {@link Polygon} features
* into {@link MultiPoint}, {@link MultiLineString}, or {@link MultiPolygon} features.
*
* @name combine
* @param {FeatureCollection<Point|LineString|Polygon>} fc a FeatureCollection of any type
* @returns {FeatureCollection<MultiPoint|MultiLineString|MultiPolygon>} a FeatureCollection of corresponding type to input
* @example
* var fc = turf.featureCollection([
* turf.point([19.026432, 47.49134]),
* turf.point([19.074497, 47.509548])
* ]);
*
* var combined = turf.combine(fc);
*
* //addToMap
* var addToMap = [combined]
*/
declare function combine(fc: FeatureCollection<Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon>): FeatureCollection<{
type: "MultiPoint" | "MultiLineString" | "MultiPolygon";
coordinates: number[][] | number[][][] | number[][][][];
}, {
collectedProperties: Properties[];
}>;
export default combine;

81
frontend/node_modules/@turf/combine/dist/js/index.js generated vendored Executable file
View File

@@ -0,0 +1,81 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var helpers_1 = require("@turf/helpers");
var meta_1 = require("@turf/meta");
/**
* Combines a {@link FeatureCollection} of {@link Point}, {@link LineString}, or {@link Polygon} features
* into {@link MultiPoint}, {@link MultiLineString}, or {@link MultiPolygon} features.
*
* @name combine
* @param {FeatureCollection<Point|LineString|Polygon>} fc a FeatureCollection of any type
* @returns {FeatureCollection<MultiPoint|MultiLineString|MultiPolygon>} a FeatureCollection of corresponding type to input
* @example
* var fc = turf.featureCollection([
* turf.point([19.026432, 47.49134]),
* turf.point([19.074497, 47.509548])
* ]);
*
* var combined = turf.combine(fc);
*
* //addToMap
* var addToMap = [combined]
*/
function combine(fc) {
var groups = {
MultiPoint: {
coordinates: [],
properties: [],
},
MultiLineString: {
coordinates: [],
properties: [],
},
MultiPolygon: {
coordinates: [],
properties: [],
},
};
meta_1.featureEach(fc, function (feature) {
var _a, _b, _c;
var _d;
switch ((_d = feature.geometry) === null || _d === void 0 ? void 0 : _d.type) {
case "Point":
groups.MultiPoint.coordinates.push(feature.geometry.coordinates);
groups.MultiPoint.properties.push(feature.properties);
break;
case "MultiPoint":
(_a = groups.MultiPoint.coordinates).push.apply(_a, feature.geometry.coordinates);
groups.MultiPoint.properties.push(feature.properties);
break;
case "LineString":
groups.MultiLineString.coordinates.push(feature.geometry.coordinates);
groups.MultiLineString.properties.push(feature.properties);
break;
case "MultiLineString":
(_b = groups.MultiLineString.coordinates).push.apply(_b, feature.geometry.coordinates);
groups.MultiLineString.properties.push(feature.properties);
break;
case "Polygon":
groups.MultiPolygon.coordinates.push(feature.geometry.coordinates);
groups.MultiPolygon.properties.push(feature.properties);
break;
case "MultiPolygon":
(_c = groups.MultiPolygon.coordinates).push.apply(_c, feature.geometry.coordinates);
groups.MultiPolygon.properties.push(feature.properties);
break;
default:
break;
}
});
return helpers_1.featureCollection(Object.keys(groups)
.filter(function (key) {
return groups[key].coordinates.length;
})
.sort()
.map(function (key) {
var geometry = { type: key, coordinates: groups[key].coordinates };
var properties = { collectedProperties: groups[key].properties };
return helpers_1.feature(geometry, properties);
}));
}
exports.default = combine;

63
frontend/node_modules/@turf/combine/package.json generated vendored Normal file
View File

@@ -0,0 +1,63 @@
{
"name": "@turf/combine",
"version": "6.5.0",
"description": "turf combine module",
"author": "Turf Authors",
"license": "MIT",
"bugs": {
"url": "https://github.com/Turfjs/turf/issues"
},
"homepage": "https://github.com/Turfjs/turf",
"repository": {
"type": "git",
"url": "git://github.com/Turfjs/turf.git"
},
"funding": "https://opencollective.com/turf",
"publishConfig": {
"access": "public"
},
"keywords": [
"turf",
"geojson",
"multipoint",
"multipolygon",
"combine"
],
"main": "dist/js/index.js",
"module": "dist/es/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
},
"types": "dist/js/index.d.ts",
"sideEffects": false,
"files": [
"dist"
],
"scripts": {
"bench": "ts-node bench.js",
"build": "npm-run-all build:*",
"build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json",
"build:js": "tsc",
"docs": "node ../../scripts/generate-readmes",
"test": "npm-run-all test:*",
"test:tape": "ts-node -r esm test.js"
},
"devDependencies": {
"@types/tape": "*",
"benchmark": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"tslint": "*",
"typescript": "*"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
"@turf/meta": "^6.5.0"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}