@mailwoman/soil 10.8.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/lib/index.ts +9 -10
- package/lib/paths.ts +3 -4
- package/lib/schema.ts +32 -24
- package/lib/vocabulary.ts +4 -7
- package/out/index.d.ts +4 -12
- package/out/index.d.ts.map +1 -1
- package/out/index.js +5 -6
- package/out/index.js.map +1 -1
- package/out/paths.d.ts +0 -7
- package/out/paths.d.ts.map +1 -1
- package/out/paths.js +2 -4
- package/out/paths.js.map +1 -1
- package/out/schema.d.ts +29 -24
- package/out/schema.d.ts.map +1 -1
- package/out/schema.js +2 -23
- package/out/schema.js.map +1 -1
- package/out/sdk/acquire.d.ts +2 -4
- package/out/sdk/acquire.d.ts.map +1 -1
- package/out/sdk/acquire.js +2 -7
- package/out/sdk/acquire.js.map +1 -1
- package/out/sdk/build-soil.d.ts +2 -13
- package/out/sdk/build-soil.d.ts.map +1 -1
- package/out/sdk/build-soil.js +11 -10
- package/out/sdk/build-soil.js.map +1 -1
- package/out/sdk/cell-tiers.d.ts +0 -7
- package/out/sdk/cell-tiers.d.ts.map +1 -1
- package/out/sdk/cell-tiers.js +2 -4
- package/out/sdk/cell-tiers.js.map +1 -1
- package/out/sdk/cells.d.ts +2 -5
- package/out/sdk/cells.d.ts.map +1 -1
- package/out/sdk/cells.js +4 -5
- package/out/sdk/cells.js.map +1 -1
- package/out/sdk/client.d.ts +0 -5
- package/out/sdk/client.d.ts.map +1 -1
- package/out/sdk/client.js +2 -5
- package/out/sdk/client.js.map +1 -1
- package/out/sdk/download.d.ts +1 -6
- package/out/sdk/download.d.ts.map +1 -1
- package/out/sdk/download.js +3 -6
- package/out/sdk/download.js.map +1 -1
- package/out/sdk/ingest/chunk.d.ts +0 -18
- package/out/sdk/ingest/chunk.d.ts.map +1 -1
- package/out/sdk/ingest/chunk.js +17 -11
- package/out/sdk/ingest/chunk.js.map +1 -1
- package/out/sdk/ingest/worker.d.ts +0 -7
- package/out/sdk/ingest/worker.d.ts.map +1 -1
- package/out/sdk/ingest/worker.js +3 -5
- package/out/sdk/ingest/worker.js.map +1 -1
- package/out/sdk/ingest.d.ts +0 -5
- package/out/sdk/ingest.d.ts.map +1 -1
- package/out/sdk/ingest.js +2 -5
- package/out/sdk/ingest.js.map +1 -1
- package/out/sdk/measure-resolutions.d.ts +1 -6
- package/out/sdk/measure-resolutions.d.ts.map +1 -1
- package/out/sdk/measure-resolutions.js +3 -6
- package/out/sdk/measure-resolutions.js.map +1 -1
- package/out/sdk/reduce.d.ts +0 -12
- package/out/sdk/reduce.d.ts.map +1 -1
- package/out/sdk/reduce.js +8 -7
- package/out/sdk/reduce.js.map +1 -1
- package/out/sdk/survey-area.d.ts +0 -5
- package/out/sdk/survey-area.d.ts.map +1 -1
- package/out/sdk/survey-area.js +5 -10
- package/out/sdk/survey-area.js.map +1 -1
- package/out/sdk/tabular.d.ts +4 -28
- package/out/sdk/tabular.d.ts.map +1 -1
- package/out/sdk/tabular.js +41 -27
- package/out/sdk/tabular.js.map +1 -1
- package/out/sdk/test-kit.d.ts +0 -5
- package/out/sdk/test-kit.d.ts.map +1 -1
- package/out/sdk/test-kit.js +4 -7
- package/out/sdk/test-kit.js.map +1 -1
- package/out/sdk/verify.d.ts +0 -5
- package/out/sdk/verify.d.ts.map +1 -1
- package/out/sdk/verify.js +2 -5
- package/out/sdk/verify.js.map +1 -1
- package/out/vocabulary.d.ts +2 -7
- package/out/vocabulary.d.ts.map +1 -1
- package/out/vocabulary.js +4 -7
- package/out/vocabulary.js.map +1 -1
- package/package.json +4 -4
- package/sdk/acquire.ts +5 -4
- package/sdk/build-soil.ts +13 -11
- package/sdk/cell-tiers.ts +3 -4
- package/sdk/cells.ts +5 -5
- package/sdk/client.ts +2 -5
- package/sdk/download.ts +3 -6
- package/sdk/ingest/chunk.ts +18 -11
- package/sdk/ingest/worker.ts +4 -5
- package/sdk/ingest.ts +2 -5
- package/sdk/measure-resolutions.ts +3 -6
- package/sdk/reduce.ts +9 -7
- package/sdk/survey-area.ts +5 -10
- package/sdk/tabular.ts +38 -23
- package/sdk/test-kit.ts +4 -7
- package/sdk/verify.ts +2 -5
package/README.md
CHANGED
|
@@ -34,10 +34,10 @@ The layer never represents an absence with a small number. A consumer can tell a
|
|
|
34
34
|
| reading | where it lives |
|
|
35
35
|
| ---------------------------------------------------- | -------------------------------------------------- |
|
|
36
36
|
| the survey rated this land as precluding cultivation | class `"8"` in `class_shares`, a determination |
|
|
37
|
-
| the survey
|
|
38
|
-
| the rating
|
|
39
|
-
| the polygon exists, the soil mapping
|
|
40
|
-
| there
|
|
37
|
+
| the survey didn't rate it | `unrated_share` |
|
|
38
|
+
| the rating doesn't apply to it (rock, water) | `notrateable_share` |
|
|
39
|
+
| the polygon exists, the soil mapping doesn't | `nodata_share` (`NOTCOM`, `NOTPUB`, access denied) |
|
|
40
|
+
| there's no survey here at all | **no `layer_coverage` row, and no summary row** |
|
|
41
41
|
|
|
42
42
|
Class 8 is a determination and is a class share like any other. A merge with the absence readings
|
|
43
43
|
produces a well-formed wrong answer, and 67,547 national components have class 8. The irrigated rating shows
|
|
@@ -130,7 +130,7 @@ contain it, the license has changed, and a build that accepted the change would
|
|
|
130
130
|
that no reviewer checked. The acknowledgement that the same metadata requests is stored in
|
|
131
131
|
`layer_manifest.attribution`: _U.S. Department of Agriculture, Natural Resources Conservation Service._
|
|
132
132
|
|
|
133
|
-
## Two dates are stored, and they
|
|
133
|
+
## Two dates are stored, and they're not the same fact
|
|
134
134
|
|
|
135
135
|
`sacatalog.saverest` is the refresh date. NRCS runs one coordinated Annual Soils Refresh each October 1.
|
|
136
136
|
The catalogue grouped by year returns 2016: 1, 2025: 3,323, 2026: 56, so a region's areas share a
|
|
@@ -219,7 +219,7 @@ that a geocode without the layer is byte-identical to one with it, apart from th
|
|
|
219
219
|
derived Crop Frequency Layer's value domain runs from `"1"` (planted once in 18 years) through `"18"`
|
|
220
220
|
(planted every year), then **`"255"` means planted zero times**, while **`"0"` is No Data**. A reader
|
|
221
221
|
that takes 0 as "never planted" reads _we have no data here_ as _no crop was ever grown here_. That reading
|
|
222
|
-
is the opposite of the truth. This vocabulary uses no numeric sentinel for either state and
|
|
222
|
+
is the opposite of the truth. This vocabulary uses no numeric sentinel for either state and shouldn't
|
|
223
223
|
start.
|
|
224
224
|
- **The layer computes no suitability score.** It repeats what an authority states, in the authority's
|
|
225
225
|
vocabulary, with the authority's dates. The consumer converts that value into a number.
|
package/lib/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Synchronous reader for `soil.db` that returns the soil survey's capability-class distribution at a coordinate.
|
|
5
|
+
* Synchronous reader for `soil.db` that returns the soil survey's capability-class
|
|
6
|
+
* distribution at a coordinate.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { parseJSONStrict, stringifyJSON } from "@mailwoman/core/json"
|
|
@@ -41,7 +41,7 @@ export const SoilReadingKind = {
|
|
|
41
41
|
DesignatedNoRating: "designated_no_rating",
|
|
42
42
|
/**
|
|
43
43
|
* The layer has no coverage for this location.
|
|
44
|
-
* This
|
|
44
|
+
* This doesn't imply low capability.
|
|
45
45
|
*/
|
|
46
46
|
Unknown: "unknown",
|
|
47
47
|
} as const
|
|
@@ -64,7 +64,7 @@ export interface SoilCapabilityDistribution {
|
|
|
64
64
|
*/
|
|
65
65
|
unratedShare: number
|
|
66
66
|
/**
|
|
67
|
-
* The share of miscellaneous areas that the rating
|
|
67
|
+
* The share of miscellaneous areas that the rating doesn't apply to.
|
|
68
68
|
*/
|
|
69
69
|
notRateableShare: number
|
|
70
70
|
/**
|
|
@@ -145,10 +145,9 @@ export interface SoilCapabilityReading {
|
|
|
145
145
|
*/
|
|
146
146
|
indexCellIndex: string
|
|
147
147
|
/**
|
|
148
|
-
* The authority's own statements of what the product
|
|
148
|
+
* The authority's own statements of what the product doesn't cover.
|
|
149
149
|
*
|
|
150
|
-
* Every reading includes them because the survey supports planning only
|
|
151
|
-
* and does not replace onsite study.
|
|
150
|
+
* Every reading includes them because the survey supports planning only and doesn't replace onsite study.
|
|
152
151
|
*/
|
|
153
152
|
limits: ReadonlyArray<string>
|
|
154
153
|
}
|
package/lib/paths.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Where the soil layer database and its download caches live under the data root's `db/` group.
|
|
7
6
|
*/
|
|
8
7
|
|
package/lib/schema.ts
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* Typed schema for `soil.db`.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* that both consumers read.
|
|
7
|
+
* It defines the polygon truth table, its containment index and the shared
|
|
8
|
+
* reduction that both consumers read.
|
|
9
|
+
* It also defines the layer-interface tables from `@mailwoman/core/layers`.
|
|
8
10
|
*
|
|
9
11
|
* {@link SoilMapUnitAreaTable} stores the authority's unsimplified geometry.
|
|
10
|
-
* {@link SoilMapUnitCellTable} records which cells each delineation reaches and
|
|
11
|
-
* {@link SoilCapabilityCellTable} is that index reduced once,
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* {@link SoilMapUnitCellTable} records which cells each delineation reaches and
|
|
13
|
+
* whether it fills them. {@link SoilCapabilityCellTable} is that index reduced once,
|
|
14
|
+
* at build time, into a per-cell distribution.
|
|
15
|
+
* A `partial` cell's contribution is weighted by the area it covers.
|
|
16
|
+
*
|
|
17
|
+
* The truth table keeps unsimplified rings so simplification cannot change those weights silently.
|
|
18
|
+
*
|
|
19
|
+
* The reduction stores a distribution instead of one winning class.
|
|
20
|
+
* Four separate shares record reasons for absence.
|
|
21
|
+
*
|
|
22
|
+
* Class 8 is a determination, so it contributes a class share.
|
|
23
|
+
* A fold that places a `notcom` polygon, a water body and an unrated series into
|
|
24
|
+
* "not arable" would produce a well-formed but wrong answer.
|
|
25
|
+
* The four shares preserve those distinctions.
|
|
14
26
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* and an unrated series into "not arable" would produce a well-formed but wrong answer. The four shares preserve
|
|
18
|
-
* those distinctions.
|
|
27
|
+
* Cell tables use `without rowid`; the geometry table uses ordinary rowids.
|
|
28
|
+
* Small fixed-width rows are probed by their exact primary key, so they fit the B-tree.
|
|
19
29
|
*
|
|
20
|
-
*
|
|
21
|
-
* their exact primary key, so they fit the B-tree. A geometry blob would make every index page a geometry page if
|
|
22
|
-
* stored in that B-tree.
|
|
30
|
+
* A geometry blob would make every index page a geometry page if stored in that B-tree.
|
|
23
31
|
*/
|
|
24
32
|
|
|
25
33
|
import type { layerschemadatabase } from "@mailwoman/core/layers"
|
|
@@ -173,8 +181,8 @@ export interface SoilComponentTable {
|
|
|
173
181
|
compname: string | null
|
|
174
182
|
/**
|
|
175
183
|
* `Miscellaneous area` is what separates not-rateable from unrated: a rock outcrop
|
|
176
|
-
* or a water body is a component the capability rating
|
|
177
|
-
* while an unrated series is one the survey
|
|
184
|
+
* or a water body is a component the capability rating doesn't apply to,
|
|
185
|
+
* while an unrated series is one the survey didn't rate.
|
|
178
186
|
*/
|
|
179
187
|
compkind: string | null
|
|
180
188
|
/**
|
|
@@ -191,7 +199,7 @@ export interface SoilComponentTable {
|
|
|
191
199
|
* The irrigated rating.
|
|
192
200
|
*
|
|
193
201
|
* Populated only where irrigation is a considered use, so its absence states that
|
|
194
|
-
* the rating
|
|
202
|
+
* the rating doesn't apply rather than anything about the land.
|
|
195
203
|
* The build stores it without reducing it.
|
|
196
204
|
*/
|
|
197
205
|
irrcapcl: string | null
|
|
@@ -229,11 +237,11 @@ export interface SoilCapabilityCellTable {
|
|
|
229
237
|
class_shares: string
|
|
230
238
|
/**
|
|
231
239
|
* Mapped soil components carrying a NULL rating.
|
|
232
|
-
* The survey
|
|
240
|
+
* The survey didn't rate them.
|
|
233
241
|
*/
|
|
234
242
|
unrated_share: number
|
|
235
243
|
/**
|
|
236
|
-
* Miscellaneous areas (rock outcrop, water) the rating
|
|
244
|
+
* Miscellaneous areas (rock outcrop, water) the rating doesn't apply to.
|
|
237
245
|
*/
|
|
238
246
|
notrateable_share: number
|
|
239
247
|
/**
|
|
@@ -268,7 +276,7 @@ export interface SoilCapabilityCellTable {
|
|
|
268
276
|
* NULL when the cell has no class.
|
|
269
277
|
* This is a valid result.
|
|
270
278
|
*
|
|
271
|
-
* A cell that
|
|
279
|
+
* A cell that's 100% `unrated_share` is complete and has no capability reading.
|
|
272
280
|
*/
|
|
273
281
|
top_class: string | null
|
|
274
282
|
top_class_share: number | null
|
|
@@ -295,7 +303,7 @@ export interface SoilCapabilityCellTable {
|
|
|
295
303
|
* The survey's §3.2 identifies rated polygons as an invalid source for this footprint.
|
|
296
304
|
* `notcom` and access-denied map units are inside the footprint and have no rating,
|
|
297
305
|
* so a footprint taken from the rated set would report them as unmapped even
|
|
298
|
-
* though the authority has declared exactly what they
|
|
306
|
+
* though the authority has declared exactly what they're.
|
|
299
307
|
*/
|
|
300
308
|
export interface SoilSurveyAreaTable {
|
|
301
309
|
areasymbol: string
|
|
@@ -312,7 +320,7 @@ export interface SoilSurveyAreaTable {
|
|
|
312
320
|
* This date differs from `saverest`.
|
|
313
321
|
* `IA153` records a 2025-09-09 refresh over a field survey published in 1960.
|
|
314
322
|
*
|
|
315
|
-
* The dataset's time-period-of-content ends at the refresh, so it
|
|
323
|
+
* The dataset's time-period-of-content ends at the refresh, so it doesn't state
|
|
316
324
|
* when the field survey occurred.
|
|
317
325
|
*/
|
|
318
326
|
survey_source_date: string | null
|
package/lib/vocabulary.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
|
|
7
4
|
/**
|
|
8
5
|
* The prefix of every soil layer name.
|
|
@@ -135,7 +132,7 @@ export function farmlandScope(value: string | null | undefined): FarmlandScope {
|
|
|
135
132
|
export const SSURGO_NO_MAPPING_SYMBOLS: ReadonlySet<string> = new Set(["NOTCOM", "NOTPUB"])
|
|
136
133
|
|
|
137
134
|
/**
|
|
138
|
-
* The lower-case map-unit names that mark a delineation without soil mapping when its symbol
|
|
135
|
+
* The lower-case map-unit names that mark a delineation without soil mapping when its symbol doesn't.
|
|
139
136
|
*
|
|
140
137
|
* The match uses the whole name, since a prefix could also match a real soil name.
|
|
141
138
|
*/
|
|
@@ -147,7 +144,7 @@ export const SSURGO_NO_MAPPING_NAMES: ReadonlySet<string> = new Set([
|
|
|
147
144
|
|
|
148
145
|
/**
|
|
149
146
|
* The `cointerp.mrulename` of the productivity index this layer stores, kept apart from the capability
|
|
150
|
-
* class because a combination of the two would be a number NRCS
|
|
147
|
+
* class because a combination of the two would be a number NRCS doesn't publish.
|
|
151
148
|
*/
|
|
152
149
|
export const NCCPI_V3_RULE_NAME = "NCCPI - National Commodity Crop Productivity Index (Ver 3.0)"
|
|
153
150
|
|
package/out/index.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Synchronous reader for `soil.db` that returns the soil survey's capability-class distribution at a coordinate.
|
|
7
|
-
*/
|
|
8
1
|
import { type CoverageCell, type LayerManifest } from "@mailwoman/core/layers";
|
|
9
2
|
import type { PathBuilderLike } from "path-ts";
|
|
10
3
|
export { FarmlandScope, farmlandScope, SSURGO_PRODUCT_LIMITS } from "#vocabulary";
|
|
@@ -24,7 +17,7 @@ export declare const SoilReadingKind: {
|
|
|
24
17
|
readonly DesignatedNoRating: "designated_no_rating";
|
|
25
18
|
/**
|
|
26
19
|
* The layer has no coverage for this location.
|
|
27
|
-
* This
|
|
20
|
+
* This doesn't imply low capability.
|
|
28
21
|
*/
|
|
29
22
|
readonly Unknown: "unknown";
|
|
30
23
|
};
|
|
@@ -45,7 +38,7 @@ export interface SoilCapabilityDistribution {
|
|
|
45
38
|
*/
|
|
46
39
|
unratedShare: number;
|
|
47
40
|
/**
|
|
48
|
-
* The share of miscellaneous areas that the rating
|
|
41
|
+
* The share of miscellaneous areas that the rating doesn't apply to.
|
|
49
42
|
*/
|
|
50
43
|
notRateableShare: number;
|
|
51
44
|
/**
|
|
@@ -127,10 +120,9 @@ export interface SoilCapabilityReading {
|
|
|
127
120
|
*/
|
|
128
121
|
indexCellIndex: string;
|
|
129
122
|
/**
|
|
130
|
-
* The authority's own statements of what the product
|
|
123
|
+
* The authority's own statements of what the product doesn't cover.
|
|
131
124
|
*
|
|
132
|
-
* Every reading includes them because the survey supports planning only
|
|
133
|
-
* and does not replace onsite study.
|
|
125
|
+
* Every reading includes them because the survey supports planning only and doesn't replace onsite study.
|
|
134
126
|
*/
|
|
135
127
|
limits: ReadonlyArray<string>;
|
|
136
128
|
}
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AASA,OAAO,EAIN,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,MAAM,wBAAwB,CAAA;AAK/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK9C,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEjF;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC3B;;OAEG;aACH,UAAU,EAAE,YAAY;IACxB;;;OAGG;aACH,kBAAkB,EAAE,sBAAsB;IAC1C;;;OAGG;aACH,OAAO,EAAE,SAAS;CACT,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAA;AAEpF;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,MAA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AM,WAAW,2BAA2B;IAC3C,YAAY,EAAE,eAAe,CAAA;CAC7B;AAED;;;GAGG;AACH,qBAAa,oBAAqB,YAAW,UAAU;;IACtD,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAA;IASpC,YAAY,OAAO,EAAE,2BAA2B,EAuB/C;IAED;;OAEG;IACI,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,qBAAqB,CAwExE;IAEM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAE9B;CA2BD"}
|
package/out/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Synchronous reader for `soil.db` that returns the soil survey's capability-class distribution at a coordinate.
|
|
4
|
+
* Synchronous reader for `soil.db` that returns the soil survey's capability-class
|
|
5
|
+
* distribution at a coordinate.
|
|
7
6
|
*/
|
|
8
7
|
import { parseJSONStrict, stringifyJSON } from "@mailwoman/core/json";
|
|
9
8
|
import { assertCoverageNotEmpty, singleManifestRow, toLayerManifest, } from "@mailwoman/core/layers";
|
|
@@ -29,7 +28,7 @@ export const SoilReadingKind = {
|
|
|
29
28
|
DesignatedNoRating: "designated_no_rating",
|
|
30
29
|
/**
|
|
31
30
|
* The layer has no coverage for this location.
|
|
32
|
-
* This
|
|
31
|
+
* This doesn't imply low capability.
|
|
33
32
|
*/
|
|
34
33
|
Unknown: "unknown",
|
|
35
34
|
};
|
package/out/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","source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+1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Where the soil layer database and its download caches live under the data root's `db/` group.
|
|
7
|
-
*/
|
|
8
1
|
import type { PathBuilder, PathBuilderLike } from "path-ts";
|
|
9
2
|
/**
|
|
10
3
|
* `<dataRoot>/db/soil`.
|
package/out/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE3D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,WAAW,CAEvE;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAA8C,CAAA"}
|
package/out/paths.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* Where the soil layer database and its download caches live under the data root's `db/` group.
|
|
7
5
|
*/
|
|
8
6
|
import { databaseRootPath, dataRootPath } from "@mailwoman/core/data-root";
|
package/out/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAG1E;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAyB;IACzD,OAAO,gBAAgB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAA;AAC1C,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAgB,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAA"}
|
package/out/schema.d.ts
CHANGED
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* Typed schema for `soil.db`.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
* that both consumers read.
|
|
4
|
+
* It defines the polygon truth table, its containment index and the shared
|
|
5
|
+
* reduction that both consumers read.
|
|
6
|
+
* It also defines the layer-interface tables from `@mailwoman/core/layers`.
|
|
8
7
|
*
|
|
9
8
|
* {@link SoilMapUnitAreaTable} stores the authority's unsimplified geometry.
|
|
10
|
-
* {@link SoilMapUnitCellTable} records which cells each delineation reaches and
|
|
11
|
-
* {@link SoilCapabilityCellTable} is that index reduced once,
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* {@link SoilMapUnitCellTable} records which cells each delineation reaches and
|
|
10
|
+
* whether it fills them. {@link SoilCapabilityCellTable} is that index reduced once,
|
|
11
|
+
* at build time, into a per-cell distribution.
|
|
12
|
+
* A `partial` cell's contribution is weighted by the area it covers.
|
|
14
13
|
*
|
|
15
|
-
* The
|
|
16
|
-
* absence. Class 8 is a determination, so it contributes a class share. A fold that places a `notcom` polygon, a water body
|
|
17
|
-
* and an unrated series into "not arable" would produce a well-formed but wrong answer. The four shares preserve
|
|
18
|
-
* those distinctions.
|
|
14
|
+
* The truth table keeps unsimplified rings so simplification cannot change those weights silently.
|
|
19
15
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
16
|
+
* The reduction stores a distribution instead of one winning class.
|
|
17
|
+
* Four separate shares record reasons for absence.
|
|
18
|
+
*
|
|
19
|
+
* Class 8 is a determination, so it contributes a class share.
|
|
20
|
+
* A fold that places a `notcom` polygon, a water body and an unrated series into
|
|
21
|
+
* "not arable" would produce a well-formed but wrong answer.
|
|
22
|
+
* The four shares preserve those distinctions.
|
|
23
|
+
*
|
|
24
|
+
* Cell tables use `without rowid`; the geometry table uses ordinary rowids.
|
|
25
|
+
* Small fixed-width rows are probed by their exact primary key, so they fit the B-tree.
|
|
26
|
+
*
|
|
27
|
+
* A geometry blob would make every index page a geometry page if stored in that B-tree.
|
|
23
28
|
*/
|
|
24
29
|
import type { layerschemadatabase } from "@mailwoman/core/layers";
|
|
25
30
|
import { type AreaCellIndexTable } from "@mailwoman/sqlite/schema-columns";
|
|
@@ -161,8 +166,8 @@ export interface SoilComponentTable {
|
|
|
161
166
|
compname: string | null;
|
|
162
167
|
/**
|
|
163
168
|
* `Miscellaneous area` is what separates not-rateable from unrated: a rock outcrop
|
|
164
|
-
* or a water body is a component the capability rating
|
|
165
|
-
* while an unrated series is one the survey
|
|
169
|
+
* or a water body is a component the capability rating doesn't apply to,
|
|
170
|
+
* while an unrated series is one the survey didn't rate.
|
|
166
171
|
*/
|
|
167
172
|
compkind: string | null;
|
|
168
173
|
/**
|
|
@@ -179,7 +184,7 @@ export interface SoilComponentTable {
|
|
|
179
184
|
* The irrigated rating.
|
|
180
185
|
*
|
|
181
186
|
* Populated only where irrigation is a considered use, so its absence states that
|
|
182
|
-
* the rating
|
|
187
|
+
* the rating doesn't apply rather than anything about the land.
|
|
183
188
|
* The build stores it without reducing it.
|
|
184
189
|
*/
|
|
185
190
|
irrcapcl: string | null;
|
|
@@ -216,11 +221,11 @@ export interface SoilCapabilityCellTable {
|
|
|
216
221
|
class_shares: string;
|
|
217
222
|
/**
|
|
218
223
|
* Mapped soil components carrying a NULL rating.
|
|
219
|
-
* The survey
|
|
224
|
+
* The survey didn't rate them.
|
|
220
225
|
*/
|
|
221
226
|
unrated_share: number;
|
|
222
227
|
/**
|
|
223
|
-
* Miscellaneous areas (rock outcrop, water) the rating
|
|
228
|
+
* Miscellaneous areas (rock outcrop, water) the rating doesn't apply to.
|
|
224
229
|
*/
|
|
225
230
|
notrateable_share: number;
|
|
226
231
|
/**
|
|
@@ -255,7 +260,7 @@ export interface SoilCapabilityCellTable {
|
|
|
255
260
|
* NULL when the cell has no class.
|
|
256
261
|
* This is a valid result.
|
|
257
262
|
*
|
|
258
|
-
* A cell that
|
|
263
|
+
* A cell that's 100% `unrated_share` is complete and has no capability reading.
|
|
259
264
|
*/
|
|
260
265
|
top_class: string | null;
|
|
261
266
|
top_class_share: number | null;
|
|
@@ -281,7 +286,7 @@ export interface SoilCapabilityCellTable {
|
|
|
281
286
|
* The survey's §3.2 identifies rated polygons as an invalid source for this footprint.
|
|
282
287
|
* `notcom` and access-denied map units are inside the footprint and have no rating,
|
|
283
288
|
* so a footprint taken from the rated set would report them as unmapped even
|
|
284
|
-
* though the authority has declared exactly what they
|
|
289
|
+
* though the authority has declared exactly what they're.
|
|
285
290
|
*/
|
|
286
291
|
export interface SoilSurveyAreaTable {
|
|
287
292
|
areasymbol: string;
|
|
@@ -298,7 +303,7 @@ export interface SoilSurveyAreaTable {
|
|
|
298
303
|
* This date differs from `saverest`.
|
|
299
304
|
* `IA153` records a 2025-09-09 refresh over a field survey published in 1960.
|
|
300
305
|
*
|
|
301
|
-
* The dataset's time-period-of-content ends at the refresh, so it
|
|
306
|
+
* The dataset's time-period-of-content ends at the refresh, so it doesn't state
|
|
302
307
|
* when the field survey occurred.
|
|
303
308
|
*/
|
|
304
309
|
survey_source_date: string | null;
|
package/out/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAIN,KAAK,kBAAkB,EACvB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAO,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEzC;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC/B;;;;OAIG;aACH,KAAK,EAAE,OAAO;IACd;;;;;OAKG;aACH,OAAO,EAAE,SAAS;CACT,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAA;AAEhG;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACpC;;;;;;;;;;;OAWG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,KAAK,EAAE,UAAU,CAAA;CACjB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB;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AC7C,gBAAgB,EAAE,mBAAmB,CAAA;IACrC,eAAe,EAAE,mBAAmB,CAAA;CACpC;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC,CAAA;AAEnE;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQpF;AAED;;;;GAIG;AACH,wBAAsB,0BAA0B,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQpF;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAehF;AAED;;GAEG;AACH,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAclF;AAED;;;GAGG;AACH,wBAAsB,6BAA6B,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBvF;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBnF;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAUnF;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ1E"}
|
package/out/schema.js
CHANGED
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Typed schema for `soil.db`. It defines the polygon truth table, its containment index and the shared reduction
|
|
7
|
-
* that both consumers read. It also defines the layer-interface tables from `@mailwoman/core/layers`.
|
|
8
|
-
*
|
|
9
|
-
* {@link SoilMapUnitAreaTable} stores the authority's unsimplified geometry.
|
|
10
|
-
* {@link SoilMapUnitCellTable} records which cells each delineation reaches and whether it fills them.
|
|
11
|
-
* {@link SoilCapabilityCellTable} is that index reduced once, at build time, into a per-cell
|
|
12
|
-
* distribution. A `partial` cell's contribution is weighted by the area it covers. The truth table keeps
|
|
13
|
-
* unsimplified rings so simplification cannot change those weights silently.
|
|
14
|
-
*
|
|
15
|
-
* The reduction stores a distribution instead of one winning class. Four separate shares record reasons for
|
|
16
|
-
* absence. Class 8 is a determination, so it contributes a class share. A fold that places a `notcom` polygon, a water body
|
|
17
|
-
* and an unrated series into "not arable" would produce a well-formed but wrong answer. The four shares preserve
|
|
18
|
-
* those distinctions.
|
|
19
|
-
*
|
|
20
|
-
* Cell tables use `without rowid`; the geometry table uses ordinary rowids. Small fixed-width rows are probed by
|
|
21
|
-
* their exact primary key, so they fit the B-tree. A geometry blob would make every index page a geometry page if
|
|
22
|
-
* stored in that B-tree.
|
|
23
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
24
3
|
import { addBoundingBoxColumns, addCellIndexColumns, addRingGeometryColumns, } from "@mailwoman/sqlite/schema-columns";
|
|
25
4
|
import { sql } from "kysely";
|
|
26
5
|
/**
|
package/out/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAgClE,OAAO,EACN,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,GAEtB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,GAAG,EAAe,MAAM,QAAQ,CAAA;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/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* Downloads a region's soil survey areas and turns them into builder inputs.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
4
|
+
* The catalogue's `saverest` date picks the archive and the host rejects `HEAD` and ignores `Range`.
|
|
7
5
|
*/
|
|
8
6
|
import type { PathBuilderLike } from "path-ts";
|
|
9
7
|
import type { SurveyAreaInput } from "#sdk/build-soil";
|
package/out/sdk/acquire.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acquire.d.ts","sourceRoot":"","sources":["../../sdk/acquire.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"acquire.d.ts","sourceRoot":"","sources":["../../sdk/acquire.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAC/E,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAI1E;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,MAAM,EAAE,oBAAoB,CAAA;IAC5B;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,SAAS,EAAE,eAAe,CAAA;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IAC5B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,OAAO,EAAE,sBAAsB,EAAE,CAAA;IACjC,QAAQ,EAAE,iBAAiB,EAAE,CAAA;IAC7B,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,cAAc,CAAC,CAyD1F"}
|
package/out/sdk/acquire.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Downloads a region's soil survey areas and turns them into builder inputs. The catalogue's `saverest` date picks the archive and the host rejects `HEAD` and ignores `Range`.
|
|
7
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
8
3
|
import { downloadSurveyArea } from "#sdk/download";
|
|
9
4
|
import { mapUnitShapefile, readSoilSourceIdentity, surveyAreaShapefile } from "#sdk/ingest";
|
|
10
5
|
import { readSurveyAreaAttributes, readSurveyAreaOutline } from "#sdk/survey-area";
|
package/out/sdk/acquire.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acquire.js","sourceRoot":"","sources":["../../sdk/acquire.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"acquire.js","sourceRoot":"","sources":["../../sdk/acquire.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAYlE,OAAO,EAAE,kBAAkB,EAA0B,MAAM,eAAe,CAAA;AAC1E,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAC3F,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAoClF;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAA6B;IAChE,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,q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