@mailwoman/registry 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 +93 -98
- package/data/manifests/artifacts.json +32 -0
- package/data/manifests/coverage.json +56 -0
- package/data/manifests/sources.lock.json +48 -0
- package/data/normalized/iata-airports.json +126749 -0
- package/data/normalized/iso3166-1.json +2035 -0
- package/definitions/namespaces.json +63 -0
- package/definitions/sections.json +73 -0
- package/docs/data-policy.md +81 -0
- package/docs/performance.md +146 -0
- package/docs/rgy1.md +144 -0
- package/lib/artifacts/country-airport-collision.ts +28 -0
- package/lib/artifacts/iata-airport/membership.ts +28 -0
- package/lib/artifacts/iata-airport/records.ts +28 -0
- package/lib/artifacts/iso3166-1/alpha2-membership.ts +28 -0
- package/lib/artifacts/iso3166-1/alpha3-membership.ts +28 -0
- package/lib/artifacts/iso3166-1/records.ts +28 -0
- package/lib/errors.ts +47 -0
- package/lib/iata/airports/records.ts +173 -0
- package/lib/iata/airports/validate.ts +50 -0
- package/lib/index.ts +32 -18
- package/lib/inspect.ts +56 -0
- package/lib/iso3166/alpha2.ts +48 -0
- package/lib/iso3166/alpha3.ts +51 -0
- package/lib/iso3166/records.ts +150 -0
- package/lib/iso3166/relations.ts +30 -0
- package/lib/key.ts +148 -0
- package/lib/normalize.ts +35 -0
- package/lib/overlap/country-airport.ts +110 -0
- package/lib/rgy1/base64.ts +23 -0
- package/lib/rgy1/reader.ts +317 -0
- package/lib/rgy1/sections.generated.ts +80 -0
- package/lib/rgy1/views.ts +266 -0
- package/lib/types.ts +92 -77
- package/lib/wasm.ts +287 -0
- package/out/artifacts/country-airport-collision.d.ts +7 -0
- package/out/artifacts/country-airport-collision.d.ts.map +1 -0
- package/out/artifacts/country-airport-collision.js +22 -0
- package/out/artifacts/country-airport-collision.js.map +1 -0
- package/out/artifacts/iata-airport/membership.d.ts +7 -0
- package/out/artifacts/iata-airport/membership.d.ts.map +1 -0
- package/out/artifacts/iata-airport/membership.js +22 -0
- package/out/artifacts/iata-airport/membership.js.map +1 -0
- package/out/artifacts/iata-airport/records.d.ts +7 -0
- package/out/artifacts/iata-airport/records.d.ts.map +1 -0
- package/out/artifacts/iata-airport/records.js +22 -0
- package/out/artifacts/iata-airport/records.js.map +1 -0
- package/out/artifacts/iso3166-1/alpha2-membership.d.ts +7 -0
- package/out/artifacts/iso3166-1/alpha2-membership.d.ts.map +1 -0
- package/out/artifacts/iso3166-1/alpha2-membership.js +22 -0
- package/out/artifacts/iso3166-1/alpha2-membership.js.map +1 -0
- package/out/artifacts/iso3166-1/alpha3-membership.d.ts +7 -0
- package/out/artifacts/iso3166-1/alpha3-membership.d.ts.map +1 -0
- package/out/artifacts/iso3166-1/alpha3-membership.js +22 -0
- package/out/artifacts/iso3166-1/alpha3-membership.js.map +1 -0
- package/out/artifacts/iso3166-1/records.d.ts +7 -0
- package/out/artifacts/iso3166-1/records.d.ts.map +1 -0
- package/out/artifacts/iso3166-1/records.js +22 -0
- package/out/artifacts/iso3166-1/records.js.map +1 -0
- package/out/errors.d.ts +38 -0
- package/out/errors.d.ts.map +1 -0
- package/out/errors.js +37 -0
- package/out/errors.js.map +1 -0
- package/out/iata/airports/records.d.ts +37 -0
- package/out/iata/airports/records.d.ts.map +1 -0
- package/out/iata/airports/records.js +135 -0
- package/out/iata/airports/records.js.map +1 -0
- package/out/iata/airports/validate.d.ts +19 -0
- package/out/iata/airports/validate.d.ts.map +1 -0
- package/out/iata/airports/validate.js +42 -0
- package/out/iata/airports/validate.js.map +1 -0
- package/out/index.d.ts +21 -18
- package/out/index.d.ts.map +1 -1
- package/out/index.js +12 -22
- package/out/index.js.map +1 -1
- package/out/inspect.d.ts +35 -0
- package/out/inspect.d.ts.map +1 -0
- package/out/inspect.js +32 -0
- package/out/inspect.js.map +1 -0
- package/out/iso3166/alpha2.d.ts +16 -0
- package/out/iso3166/alpha2.d.ts.map +1 -0
- package/out/iso3166/alpha2.js +40 -0
- package/out/iso3166/alpha2.js.map +1 -0
- package/out/iso3166/alpha3.d.ts +21 -0
- package/out/iso3166/alpha3.d.ts.map +1 -0
- package/out/iso3166/alpha3.js +43 -0
- package/out/iso3166/alpha3.js.map +1 -0
- package/out/iso3166/records.d.ts +27 -0
- package/out/iso3166/records.d.ts.map +1 -0
- package/out/iso3166/records.js +105 -0
- package/out/iso3166/records.js.map +1 -0
- package/out/iso3166/relations.d.ts +13 -0
- package/out/iso3166/relations.d.ts.map +1 -0
- package/out/iso3166/relations.js +26 -0
- package/out/iso3166/relations.js.map +1 -0
- package/out/key.d.ts +67 -0
- package/out/key.d.ts.map +1 -0
- package/out/key.js +123 -0
- package/out/key.js.map +1 -0
- package/out/normalize.d.ts +26 -0
- package/out/normalize.d.ts.map +1 -0
- package/out/normalize.js +11 -0
- package/out/normalize.js.map +1 -0
- package/out/overlap/country-airport.d.ts +43 -0
- package/out/overlap/country-airport.d.ts.map +1 -0
- package/out/overlap/country-airport.js +72 -0
- package/out/overlap/country-airport.js.map +1 -0
- package/out/rgy1/base64.d.ts +11 -0
- package/out/rgy1/base64.d.ts.map +1 -0
- package/out/rgy1/base64.js +20 -0
- package/out/rgy1/base64.js.map +1 -0
- package/out/rgy1/reader.d.ts +92 -0
- package/out/rgy1/reader.d.ts.map +1 -0
- package/out/rgy1/reader.js +230 -0
- package/out/rgy1/reader.js.map +1 -0
- package/out/rgy1/sections.generated.d.ts +52 -0
- package/out/rgy1/sections.generated.d.ts.map +1 -0
- package/out/rgy1/sections.generated.js +69 -0
- package/out/rgy1/sections.generated.js.map +1 -0
- package/out/rgy1/views.d.ts +89 -0
- package/out/rgy1/views.d.ts.map +1 -0
- package/out/rgy1/views.js +216 -0
- package/out/rgy1/views.js.map +1 -0
- package/out/sdk/fetch.d.ts +49 -0
- package/out/sdk/fetch.d.ts.map +1 -0
- package/out/sdk/fetch.js +105 -0
- package/out/sdk/fetch.js.map +1 -0
- package/out/sdk/fetch.run.d.ts +2 -0
- package/out/sdk/fetch.run.d.ts.map +1 -0
- package/out/sdk/fetch.run.js +19 -0
- package/out/sdk/fetch.run.js.map +1 -0
- package/out/sdk/sources.d.ts +102 -0
- package/out/sdk/sources.d.ts.map +1 -0
- package/out/sdk/sources.js +101 -0
- package/out/sdk/sources.js.map +1 -0
- package/out/tools/artifact-path.d.ts +5 -0
- package/out/tools/artifact-path.d.ts.map +1 -0
- package/out/tools/artifact-path.js +9 -0
- package/out/tools/artifact-path.js.map +1 -0
- package/out/tools/bench.run.d.ts +2 -0
- package/out/tools/bench.run.d.ts.map +1 -0
- package/out/tools/bench.run.js +207 -0
- package/out/tools/bench.run.js.map +1 -0
- package/out/tools/build-wasm.run.d.ts +2 -0
- package/out/tools/build-wasm.run.d.ts.map +1 -0
- package/out/tools/build-wasm.run.js +69 -0
- package/out/tools/build-wasm.run.js.map +1 -0
- package/out/tools/generate-sections.run.d.ts +2 -0
- package/out/tools/generate-sections.run.d.ts.map +1 -0
- package/out/tools/generate-sections.run.js +127 -0
- package/out/tools/generate-sections.run.js.map +1 -0
- package/out/tools/generate.run.d.ts +2 -0
- package/out/tools/generate.run.d.ts.map +1 -0
- package/out/tools/generate.run.js +115 -0
- package/out/tools/generate.run.js.map +1 -0
- package/out/tools/normalize.d.ts +143 -0
- package/out/tools/normalize.d.ts.map +1 -0
- package/out/tools/normalize.js +303 -0
- package/out/tools/normalize.js.map +1 -0
- package/out/tools/normalize.run.d.ts +2 -0
- package/out/tools/normalize.run.d.ts.map +1 -0
- package/out/tools/normalize.run.js +27 -0
- package/out/tools/normalize.run.js.map +1 -0
- package/out/types.d.ts +91 -79
- package/out/types.d.ts.map +1 -1
- package/out/types.js +15 -8
- package/out/types.js.map +1 -1
- package/out/wasm.d.ts +85 -0
- package/out/wasm.d.ts.map +1 -0
- package/out/wasm.js +138 -0
- package/out/wasm.js.map +1 -0
- package/package.json +54 -28
- package/sdk/fetch.run.ts +24 -0
- package/sdk/fetch.ts +145 -0
- package/sdk/sources.ts +166 -0
- package/tools/artifact-path.ts +9 -0
- package/tools/bench.run.ts +274 -0
- package/tools/build-wasm.run.ts +81 -0
- package/tools/generate-sections.run.ts +144 -0
- package/tools/generate.run.ts +144 -0
- package/tools/normalize.run.ts +35 -0
- package/tools/normalize.ts +475 -0
- package/wasm/registry-simd.wasm +0 -0
- package/wasm/registry.wasm +0 -0
- package/lib/address-key.ts +0 -46
- package/lib/geocode-handler.ts +0 -37
- package/lib/geojson.ts +0 -72
- package/lib/ingest.ts +0 -349
- package/lib/learned-scorer.ts +0 -134
- package/lib/map-html.ts +0 -287
- package/lib/models/crosssource-gbt-en-us.ts +0 -43
- package/lib/models/dedup-gbt-en-us.ts +0 -47
- package/lib/models/org-crosssource-gbt-en-us.ts +0 -43
- package/lib/reconcile.ts +0 -239
- package/lib/resolve.ts +0 -569
- package/out/address-key.d.ts +0 -34
- package/out/address-key.d.ts.map +0 -1
- package/out/address-key.js +0 -41
- package/out/address-key.js.map +0 -1
- package/out/geocode-handler.d.ts +0 -20
- package/out/geocode-handler.d.ts.map +0 -1
- package/out/geocode-handler.js +0 -29
- package/out/geocode-handler.js.map +0 -1
- package/out/geojson.d.ts +0 -28
- package/out/geojson.d.ts.map +0 -1
- package/out/geojson.js +0 -62
- package/out/geojson.js.map +0 -1
- package/out/ingest.d.ts +0 -173
- package/out/ingest.d.ts.map +0 -1
- package/out/ingest.js +0 -185
- package/out/ingest.js.map +0 -1
- package/out/learned-scorer.d.ts +0 -61
- package/out/learned-scorer.d.ts.map +0 -1
- package/out/learned-scorer.js +0 -91
- package/out/learned-scorer.js.map +0 -1
- package/out/map-html.d.ts +0 -39
- package/out/map-html.d.ts.map +0 -1
- package/out/map-html.js +0 -220
- package/out/map-html.js.map +0 -1
- package/out/models/crosssource-gbt-en-us.d.ts +0 -45
- package/out/models/crosssource-gbt-en-us.d.ts.map +0 -1
- package/out/models/crosssource-gbt-en-us.js +0 -40
- package/out/models/crosssource-gbt-en-us.js.map +0 -1
- package/out/models/dedup-gbt-en-us.d.ts +0 -44
- package/out/models/dedup-gbt-en-us.d.ts.map +0 -1
- package/out/models/dedup-gbt-en-us.js +0 -44
- package/out/models/dedup-gbt-en-us.js.map +0 -1
- package/out/models/org-crosssource-gbt-en-us.d.ts +0 -45
- package/out/models/org-crosssource-gbt-en-us.d.ts.map +0 -1
- package/out/models/org-crosssource-gbt-en-us.js +0 -40
- package/out/models/org-crosssource-gbt-en-us.js.map +0 -1
- package/out/reconcile.d.ts +0 -96
- package/out/reconcile.d.ts.map +0 -1
- package/out/reconcile.js +0 -127
- package/out/reconcile.js.map +0 -1
- package/out/resolve.d.ts +0 -264
- package/out/resolve.d.ts.map +0 -1
- package/out/resolve.js +0 -282
- package/out/resolve.js.map +0 -1
- package/out/tools/coverage-reconciliation.d.ts +0 -67
- package/out/tools/coverage-reconciliation.d.ts.map +0 -1
- package/out/tools/coverage-reconciliation.js +0 -113
- package/out/tools/coverage-reconciliation.js.map +0 -1
- package/out/tools/cross/dataset-correlation.d.ts +0 -61
- package/out/tools/cross/dataset-correlation.d.ts.map +0 -1
- package/out/tools/cross/dataset-correlation.js +0 -244
- package/out/tools/cross/dataset-correlation.js.map +0 -1
- package/out/tools/cross/source-threshold-sweep.d.ts +0 -60
- package/out/tools/cross/source-threshold-sweep.d.ts.map +0 -1
- package/out/tools/cross/source-threshold-sweep.js +0 -264
- package/out/tools/cross/source-threshold-sweep.js.map +0 -1
- package/out/tools/dedup-ceiling.d.ts +0 -62
- package/out/tools/dedup-ceiling.d.ts.map +0 -1
- package/out/tools/dedup-ceiling.js +0 -171
- package/out/tools/dedup-ceiling.js.map +0 -1
- package/out/tools/eval-geocoder.d.ts +0 -68
- package/out/tools/eval-geocoder.d.ts.map +0 -1
- package/out/tools/eval-geocoder.js +0 -13
- package/out/tools/eval-geocoder.js.map +0 -1
- package/out/tools/geocoder/namesake-probe.d.ts +0 -33
- package/out/tools/geocoder/namesake-probe.d.ts.map +0 -1
- package/out/tools/geocoder/namesake-probe.js +0 -60
- package/out/tools/geocoder/namesake-probe.js.map +0 -1
- package/out/tools/geocoder/vs-provided-coords.d.ts +0 -53
- package/out/tools/geocoder/vs-provided-coords.d.ts.map +0 -1
- package/out/tools/geocoder/vs-provided-coords.js +0 -161
- package/out/tools/geocoder/vs-provided-coords.js.map +0 -1
- package/out/tools/gold-set-sample.d.ts +0 -67
- package/out/tools/gold-set-sample.d.ts.map +0 -1
- package/out/tools/gold-set-sample.js +0 -81
- package/out/tools/gold-set-sample.js.map +0 -1
- package/out/tools/learned/scorer/clustering-eval.d.ts +0 -77
- package/out/tools/learned/scorer/clustering-eval.d.ts.map +0 -1
- package/out/tools/learned/scorer/clustering-eval.js +0 -207
- package/out/tools/learned/scorer/clustering-eval.js.map +0 -1
- package/out/tools/learned/scorer/crossstate-eval.d.ts +0 -65
- package/out/tools/learned/scorer/crossstate-eval.d.ts.map +0 -1
- package/out/tools/learned/scorer/crossstate-eval.js +0 -168
- package/out/tools/learned/scorer/crossstate-eval.js.map +0 -1
- package/out/tools/learned/scorer/eval.d.ts +0 -64
- package/out/tools/learned/scorer/eval.d.ts.map +0 -1
- package/out/tools/learned/scorer/eval.js +0 -275
- package/out/tools/learned/scorer/eval.js.map +0 -1
- package/out/tools/matcher-scale.d.ts +0 -40
- package/out/tools/matcher-scale.d.ts.map +0 -1
- package/out/tools/matcher-scale.js +0 -111
- package/out/tools/matcher-scale.js.map +0 -1
- package/out/tools/nppes/dedup-benchmark.d.ts +0 -82
- package/out/tools/nppes/dedup-benchmark.d.ts.map +0 -1
- package/out/tools/nppes/dedup-benchmark.js +0 -226
- package/out/tools/nppes/dedup-benchmark.js.map +0 -1
- package/out/tools/nppes/org-name.d.ts +0 -15
- package/out/tools/nppes/org-name.d.ts.map +0 -1
- package/out/tools/nppes/org-name.js +0 -6
- package/out/tools/nppes/org-name.js.map +0 -1
- package/out/tools/nppes/overmerge-packet.d.ts +0 -43
- package/out/tools/nppes/overmerge-packet.d.ts.map +0 -1
- package/out/tools/nppes/overmerge-packet.js +0 -54
- package/out/tools/nppes/overmerge-packet.js.map +0 -1
- package/out/tools/nppes/report.d.ts +0 -97
- package/out/tools/nppes/report.d.ts.map +0 -1
- package/out/tools/nppes/report.js +0 -178
- package/out/tools/nppes/report.js.map +0 -1
- package/out/tools/nppes/sample.d.ts +0 -101
- package/out/tools/nppes/sample.d.ts.map +0 -1
- package/out/tools/nppes/sample.js +0 -127
- package/out/tools/nppes/sample.js.map +0 -1
- package/out/tools/nppes/scoring.d.ts +0 -37
- package/out/tools/nppes/scoring.d.ts.map +0 -1
- package/out/tools/nppes/scoring.js +0 -81
- package/out/tools/nppes/scoring.js.map +0 -1
- package/out/tools/nppes/settings.d.ts +0 -41
- package/out/tools/nppes/settings.d.ts.map +0 -1
- package/out/tools/nppes/settings.js +0 -79
- package/out/tools/nppes/settings.js.map +0 -1
- package/out/tools/nppes/truth-grains.d.ts +0 -63
- package/out/tools/nppes/truth-grains.d.ts.map +0 -1
- package/out/tools/nppes/truth-grains.js +0 -142
- package/out/tools/nppes/truth-grains.js.map +0 -1
- package/out/tools/shared.d.ts +0 -325
- package/out/tools/shared.d.ts.map +0 -1
- package/out/tools/shared.js +0 -453
- package/out/tools/shared.js.map +0 -1
- package/out/tools/train/cross-gbt.d.ts +0 -89
- package/out/tools/train/cross-gbt.d.ts.map +0 -1
- package/out/tools/train/cross-gbt.js +0 -132
- package/out/tools/train/cross-gbt.js.map +0 -1
- package/out/tools/train/gbt.d.ts +0 -85
- package/out/tools/train/gbt.d.ts.map +0 -1
- package/out/tools/train/gbt.js +0 -155
- package/out/tools/train/gbt.js.map +0 -1
- package/out/tools/train/org-cross-gbt.d.ts +0 -85
- package/out/tools/train/org-cross-gbt.d.ts.map +0 -1
- package/out/tools/train/org-cross-gbt.js +0 -122
- package/out/tools/train/org-cross-gbt.js.map +0 -1
- package/out/tools/txhhsc-to-oarow.d.ts +0 -42
- package/out/tools/txhhsc-to-oarow.d.ts.map +0 -1
- package/out/tools/txhhsc-to-oarow.js +0 -78
- package/out/tools/txhhsc-to-oarow.js.map +0 -1
- package/out/tools/viz/browser.d.ts +0 -31
- package/out/tools/viz/browser.d.ts.map +0 -1
- package/out/tools/viz/browser.js +0 -26
- package/out/tools/viz/browser.js.map +0 -1
- package/out/tools/viz/cross-dataset-map.d.ts +0 -39
- package/out/tools/viz/cross-dataset-map.d.ts.map +0 -1
- package/out/tools/viz/cross-dataset-map.js +0 -84
- package/out/tools/viz/cross-dataset-map.js.map +0 -1
- package/out/tools/viz/geocode-first-surface.d.ts +0 -36
- package/out/tools/viz/geocode-first-surface.d.ts.map +0 -1
- package/out/tools/viz/geocode-first-surface.js +0 -234
- package/out/tools/viz/geocode-first-surface.js.map +0 -1
- package/out/tools/viz/render/map.d.ts +0 -42
- package/out/tools/viz/render/map.d.ts.map +0 -1
- package/out/tools/viz/render/map.js +0 -40
- package/out/tools/viz/render/map.js.map +0 -1
- package/out/tools/viz/render.d.ts +0 -46
- package/out/tools/viz/render.d.ts.map +0 -1
- package/out/tools/viz/render.js +0 -49
- package/out/tools/viz/render.js.map +0 -1
- package/out/tools/viz/source-provenance-map.d.ts +0 -57
- package/out/tools/viz/source-provenance-map.d.ts.map +0 -1
- package/out/tools/viz/source-provenance-map.js +0 -82
- package/out/tools/viz/source-provenance-map.js.map +0 -1
- package/out/tools/viz/yardstick-figure.d.ts +0 -22
- package/out/tools/viz/yardstick-figure.d.ts.map +0 -1
- package/out/tools/viz/yardstick-figure.js +0 -106
- package/out/tools/viz/yardstick-figure.js.map +0 -1
- package/tools/coverage-reconciliation.ts +0 -192
- package/tools/cross/dataset-correlation.ts +0 -380
- package/tools/cross/source-threshold-sweep.ts +0 -416
- package/tools/dedup-ceiling.ts +0 -225
- package/tools/eval-geocoder.ts +0 -77
- package/tools/geocoder/namesake-probe.ts +0 -91
- package/tools/geocoder/vs-provided-coords.ts +0 -232
- package/tools/gold-set-sample.ts +0 -147
- package/tools/learned/scorer/clustering-eval.ts +0 -349
- package/tools/learned/scorer/crossstate-eval.ts +0 -280
- package/tools/learned/scorer/eval.ts +0 -429
- package/tools/matcher-scale.ts +0 -185
- package/tools/nppes/dedup-benchmark.ts +0 -364
- package/tools/nppes/org-name.ts +0 -15
- package/tools/nppes/overmerge-packet.ts +0 -98
- package/tools/nppes/report.ts +0 -380
- package/tools/nppes/sample.ts +0 -250
- package/tools/nppes/scoring.ts +0 -115
- package/tools/nppes/settings.ts +0 -102
- package/tools/nppes/truth-grains.ts +0 -185
- package/tools/shared.ts +0 -743
- package/tools/train/cross-gbt.ts +0 -214
- package/tools/train/gbt.ts +0 -261
- package/tools/train/org-cross-gbt.ts +0 -189
- package/tools/txhhsc-to-oarow.ts +0 -118
- package/tools/viz/browser.ts +0 -41
- package/tools/viz/cross-dataset-map.ts +0 -133
- package/tools/viz/geocode-first-surface.ts +0 -305
- package/tools/viz/render/map.ts +0 -61
- package/tools/viz/render.ts +0 -103
- package/tools/viz/source-provenance-map.ts +0 -154
- package/tools/viz/yardstick-figure.ts +0 -197
package/lib/types.ts
CHANGED
|
@@ -1,110 +1,125 @@
|
|
|
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
|
-
*
|
|
5
|
+
* Branded identifier types.
|
|
6
|
+
*
|
|
7
|
+
* A brand is a declaration-only unique symbol, so a branded value is a plain string at runtime
|
|
8
|
+
* and the compiler refuses to pass one namespace's code where another's is expected.
|
|
5
9
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
10
|
+
* A branded value records that a validator accepted it under a documented profile at the time of the call.
|
|
11
|
+
* The issuing authority's later assignments are outside what the brand records.
|
|
8
12
|
*/
|
|
9
13
|
|
|
10
|
-
import type { ResolutionTier } from "@mailwoman/annotations/geo"
|
|
11
|
-
import type { OrganizationName, PersonName, PostalAddress } from "@mailwoman/record"
|
|
12
|
-
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* ISO 3166-1 country code namespaces.
|
|
16
|
+
*
|
|
17
|
+
* ISO 3166-2 codes subdivisions and is a separate brand, outside country codes.
|
|
15
18
|
*/
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
export declare namespace ISO {
|
|
20
|
+
const $CountryCode_3166_1_Alpha2: unique symbol
|
|
21
|
+
const $CountryCode_3166_1_Alpha3: unique symbol
|
|
22
|
+
const $CountryCode_3166_1_Numeric: unique symbol
|
|
23
|
+
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
25
|
+
* A two-letter country code the profile holds as officially assigned, such as `GB`.
|
|
23
26
|
*/
|
|
24
|
-
|
|
27
|
+
type CountryCode_3166_1_Alpha2 = string & { readonly [$CountryCode_3166_1_Alpha2]: true }
|
|
28
|
+
|
|
25
29
|
/**
|
|
26
|
-
*
|
|
30
|
+
* A three-letter country code the profile holds as officially assigned, such as `GBR`.
|
|
27
31
|
*/
|
|
28
|
-
|
|
32
|
+
type CountryCode_3166_1_Alpha3 = string & { readonly [$CountryCode_3166_1_Alpha3]: true }
|
|
33
|
+
|
|
29
34
|
/**
|
|
30
|
-
*
|
|
35
|
+
* A three-digit country code, kept as a string so `036` keeps its leading zero.
|
|
31
36
|
*/
|
|
32
|
-
|
|
37
|
+
type CountryCode_3166_1_Numeric = string & { readonly [$CountryCode_3166_1_Numeric]: true }
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* IATA location code namespaces.
|
|
42
|
+
*/
|
|
43
|
+
export declare namespace IATA {
|
|
44
|
+
const $LocationCode: unique symbol
|
|
45
|
+
const $AirportCode: unique symbol
|
|
46
|
+
|
|
33
47
|
/**
|
|
34
|
-
*
|
|
48
|
+
* A three-letter IATA location code of any kind.
|
|
35
49
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
email: string | null
|
|
50
|
+
type LocationCode = string & { readonly [$LocationCode]: true }
|
|
51
|
+
|
|
39
52
|
/**
|
|
40
|
-
*
|
|
53
|
+
* A location code the profile holds for an airport.
|
|
41
54
|
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* Used as extra comparisons + corroborators when the model is built with matching `discriminators`.
|
|
46
|
-
* Keyed by a stable field name the model references.
|
|
47
|
-
*/
|
|
48
|
-
attributes: Record<string, string> | null
|
|
49
|
-
/**
|
|
50
|
-
* The original row, verbatim, for audit.
|
|
55
|
+
* The open profile holds only airports, so every code it accepts is one of these.
|
|
56
|
+
* A metropolitan code is outside the profile and is refused.
|
|
51
57
|
*/
|
|
52
|
-
|
|
58
|
+
type AirportCode = LocationCode & { readonly [$AirportCode]: true }
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
/**
|
|
56
|
-
*
|
|
62
|
+
* ICAO location indicator namespace.
|
|
57
63
|
*/
|
|
58
|
-
export
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*/
|
|
62
|
-
id: string
|
|
63
|
-
/**
|
|
64
|
-
* The source records that resolved to this entity.
|
|
65
|
-
*/
|
|
66
|
-
records: SourceRecord[]
|
|
67
|
-
/**
|
|
68
|
-
* The most complete record, used as the entity's canonical face.
|
|
69
|
-
*/
|
|
70
|
-
representative: SourceRecord
|
|
71
|
-
/**
|
|
72
|
-
* The entity's location, from the representative's geocode.
|
|
73
|
-
*/
|
|
74
|
-
coordinate: { latitude: number; longitude: number } | null
|
|
64
|
+
export declare namespace ICAO {
|
|
65
|
+
const $LocationIndicator: unique symbol
|
|
66
|
+
|
|
75
67
|
/**
|
|
76
|
-
*
|
|
68
|
+
* A four-character ICAO location indicator, such as `EGLL`.
|
|
77
69
|
*/
|
|
78
|
-
|
|
70
|
+
type LocationIndicator = string & { readonly [$LocationIndicator]: true }
|
|
79
71
|
}
|
|
80
72
|
|
|
81
73
|
/**
|
|
82
|
-
* The
|
|
74
|
+
* The status a country record holds.
|
|
75
|
+
*/
|
|
76
|
+
export const CountryStatus = {
|
|
77
|
+
OfficiallyAssigned: "officially-assigned",
|
|
78
|
+
FormerlyUsed: "formerly-used",
|
|
79
|
+
} as const
|
|
80
|
+
|
|
81
|
+
export type CountryStatus = (typeof CountryStatus)[keyof typeof CountryStatus]
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* How an airport record's country column relates to ISO 3166-1.
|
|
83
85
|
*/
|
|
84
|
-
export
|
|
86
|
+
export const AirportCountryStatus = {
|
|
87
|
+
ISO3166_1: "iso3166-1",
|
|
88
|
+
SourceExtension: "source-extension",
|
|
89
|
+
Unstated: "unstated",
|
|
90
|
+
} as const
|
|
91
|
+
|
|
92
|
+
export type AirportCountryStatus = (typeof AirportCountryStatus)[keyof typeof AirportCountryStatus]
|
|
85
93
|
|
|
86
|
-
|
|
94
|
+
/**
|
|
95
|
+
* One country record as the records artifact holds it.
|
|
96
|
+
*/
|
|
97
|
+
export interface CountryRecord {
|
|
87
98
|
entityID: string
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
organization: string | null
|
|
94
|
-
address: string | null
|
|
95
|
-
geocodeTier: ResolutionTier | null
|
|
96
|
-
bucket: ReconciliationBucket | null
|
|
99
|
+
alpha2: string
|
|
100
|
+
alpha3: string
|
|
101
|
+
numeric: string
|
|
102
|
+
name: string
|
|
103
|
+
status: CountryStatus
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
/**
|
|
100
|
-
*
|
|
101
|
-
* field optional, plus an unconstrained `bucket`.
|
|
102
|
-
*
|
|
103
|
-
* The renderer assigns a color per distinct bucket value in first-seen order and builds
|
|
104
|
-
* its legend from that set, so a bucket is any categorical label rather than only a
|
|
105
|
-
* {@link ReconciliationBucket}; and a collection assembled from something other than resolved
|
|
106
|
-
* entities (raw address points, links read back from a file) have no entity id or display name.
|
|
107
|
+
* One airport record as the records artifact holds it.
|
|
107
108
|
*/
|
|
108
|
-
export
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
export interface AirportRecord {
|
|
110
|
+
entityID: string
|
|
111
|
+
iata: IATA.AirportCode
|
|
112
|
+
icao: ICAO.LocationIndicator | null
|
|
113
|
+
name: string
|
|
114
|
+
facility: string
|
|
115
|
+
scheduledService: boolean
|
|
116
|
+
latitude: number
|
|
117
|
+
longitude: number
|
|
118
|
+
/**
|
|
119
|
+
* The country as the source spells it, or null.
|
|
120
|
+
*/
|
|
121
|
+
country: string | null
|
|
122
|
+
countryStatus: AirportCountryStatus
|
|
123
|
+
municipality: string | null
|
|
124
|
+
isoRegion: string | null
|
|
125
|
+
}
|
package/lib/wasm.ts
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The WebAssembly batch adapter over `crates/registry-wasm`.
|
|
6
|
+
*
|
|
7
|
+
* Initialization is explicit: the caller passes the module's bytes or a compiled `WebAssembly.Module`,
|
|
8
|
+
* and this module compiles the module inside `createRegistry` and at no other time.
|
|
9
|
+
* `registryWasmURL` locates the committed binaries for a caller that loads them itself,
|
|
10
|
+
* and `preferredWasmVariant` reports whether the host runs `simd128`.
|
|
11
|
+
*
|
|
12
|
+
* A batch call stages the packed codes in linear memory, crosses the boundary once,
|
|
13
|
+
* and copies the masks into the caller's buffer.
|
|
14
|
+
* The staging buffers are kept and reused while they're large enough.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { countryAirportCollisionArtifact } from "#artifacts/country-airport-collision"
|
|
18
|
+
import { iataAirportMembershipArtifact } from "#artifacts/iata-airport/membership"
|
|
19
|
+
import { iso31661Alpha3MembershipArtifact } from "#artifacts/iso3166-1/alpha3-membership"
|
|
20
|
+
import { CODE_LENGTH_3 } from "#key"
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The location of a committed `wasm/registry*.wasm`, resolved from this module.
|
|
24
|
+
*/
|
|
25
|
+
export function registryWasmURL(variant: WasmVariant): URL {
|
|
26
|
+
return new URL(`../wasm/${variant === "simd" ? "registry-simd.wasm" : "registry.wasm"}`, import.meta.url)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type WasmVariant = "simd" | "scalar"
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A `WebAssembly.validate` probe: a module whose one function uses a `v128` constant.
|
|
33
|
+
*
|
|
34
|
+
* It validates on a host with `simd128` and fails on one without.
|
|
35
|
+
* Validation compiles no code and runs no function.
|
|
36
|
+
*/
|
|
37
|
+
const SIMD_PROBE = new Uint8Array([
|
|
38
|
+
0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11,
|
|
39
|
+
])
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The variant this host can run: `simd` when it validates the probe, else `scalar`.
|
|
43
|
+
*/
|
|
44
|
+
export function preferredWasmVariant(): WasmVariant {
|
|
45
|
+
return WebAssembly.validate(SIMD_PROBE) ? "simd" : "scalar"
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* A compiled WebAssembly module, as a Worker runtime supplies it.
|
|
50
|
+
*
|
|
51
|
+
* The type is opaque because the Node type preset omits the DOM library that declares
|
|
52
|
+
* `WebAssembly`, and this package's declarations type-check without it.
|
|
53
|
+
*/
|
|
54
|
+
export interface RegistryCompiledModule {
|
|
55
|
+
readonly [Symbol.toStringTag]: string
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The bytes or compiled module the runtime instantiates from.
|
|
60
|
+
*/
|
|
61
|
+
export type RegistryWasmSource = RegistryCompiledModule | ArrayBuffer | Uint8Array<ArrayBuffer>
|
|
62
|
+
|
|
63
|
+
interface LinearMemory {
|
|
64
|
+
readonly buffer: ArrayBuffer
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The members of the global `WebAssembly` object this loader calls.
|
|
69
|
+
*/
|
|
70
|
+
interface WebAssemblyAPI {
|
|
71
|
+
validate(bytes: ArrayBuffer | Uint8Array<ArrayBuffer>): boolean
|
|
72
|
+
compile(bytes: ArrayBuffer | Uint8Array<ArrayBuffer>): Promise<RegistryCompiledModule>
|
|
73
|
+
instantiate(module: RegistryCompiledModule, imports: object): Promise<{ exports: Exports }>
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The runtime's global, typed to the members above.
|
|
78
|
+
* Every JavaScript runtime this package targets defines it.
|
|
79
|
+
*/
|
|
80
|
+
declare const WebAssembly: WebAssemblyAPI
|
|
81
|
+
|
|
82
|
+
function isBytes(source: RegistryWasmSource): source is ArrayBuffer | Uint8Array<ArrayBuffer> {
|
|
83
|
+
return source instanceof ArrayBuffer || ArrayBuffer.isView(source)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The C ABI `crates/registry-wasm` exports.
|
|
88
|
+
*/
|
|
89
|
+
interface Exports {
|
|
90
|
+
memory: LinearMemory
|
|
91
|
+
rgy_alloc(len: number): number
|
|
92
|
+
rgy_dealloc(ptr: number, len: number): void
|
|
93
|
+
rgy_error(): number
|
|
94
|
+
rgy_simd(): number
|
|
95
|
+
rgy_load(ptr: number, len: number): number
|
|
96
|
+
rgy_classify_many(
|
|
97
|
+
country: number,
|
|
98
|
+
airport: number,
|
|
99
|
+
collision: number,
|
|
100
|
+
input: number,
|
|
101
|
+
count: number,
|
|
102
|
+
output: number
|
|
103
|
+
): number
|
|
104
|
+
rgy_test_many(handle: number, input: number, count: number, output: number): number
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The mask bits `classifyManyInto` writes, equal to `registry_core::lookup::mask`.
|
|
109
|
+
*/
|
|
110
|
+
export const ClassifyMask = {
|
|
111
|
+
Country: 1,
|
|
112
|
+
Airport: 2,
|
|
113
|
+
Collision: 4,
|
|
114
|
+
Invalid: 0x80,
|
|
115
|
+
} as const
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The artifacts the batch kernels read.
|
|
119
|
+
* Each defaults to the built profile's module.
|
|
120
|
+
*/
|
|
121
|
+
export interface RegistryWasmArtifacts {
|
|
122
|
+
alpha3?: Uint8Array
|
|
123
|
+
airport?: Uint8Array
|
|
124
|
+
collision?: Uint8Array
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Options for {@link createRegistry}.
|
|
129
|
+
*/
|
|
130
|
+
export interface CreateRegistryOptions {
|
|
131
|
+
/**
|
|
132
|
+
* The module bytes, or a module the host compiled.
|
|
133
|
+
*/
|
|
134
|
+
wasm: RegistryWasmSource
|
|
135
|
+
artifacts?: RegistryWasmArtifacts
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* A reusable staging buffer in linear memory.
|
|
140
|
+
*/
|
|
141
|
+
class Staging {
|
|
142
|
+
ptr = 0
|
|
143
|
+
len = 0
|
|
144
|
+
readonly #exports: Exports
|
|
145
|
+
|
|
146
|
+
constructor(exports: Exports) {
|
|
147
|
+
this.#exports = exports
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
reserve(len: number): number {
|
|
151
|
+
if (len > this.len) {
|
|
152
|
+
if (this.len) {
|
|
153
|
+
this.#exports.rgy_dealloc(this.ptr, this.len)
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
this.ptr = this.#exports.rgy_alloc(len)
|
|
157
|
+
this.len = len
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return this.ptr
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* An instantiated registry runtime.
|
|
166
|
+
*/
|
|
167
|
+
export interface RegistryWasm {
|
|
168
|
+
/**
|
|
169
|
+
* Whether the instantiated module was built with the `simd128` kernels.
|
|
170
|
+
*/
|
|
171
|
+
readonly simd: boolean
|
|
172
|
+
|
|
173
|
+
countryAirport: {
|
|
174
|
+
/**
|
|
175
|
+
* Classifies `count` packed three-byte codes into `out`, one {@link ClassifyMask} byte each.
|
|
176
|
+
*
|
|
177
|
+
* `packed` holds `count * 3` bytes.
|
|
178
|
+
* Returns the count written.
|
|
179
|
+
* Throws on an output shorter than `count`.
|
|
180
|
+
*/
|
|
181
|
+
classifyManyInto(packed: Uint8Array, out: Uint8Array, count?: number): number
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Classifies an array of strings, allocating the packed input and the result.
|
|
185
|
+
* For callers that have no bytes.
|
|
186
|
+
*/
|
|
187
|
+
classify(codes: readonly string[]): Uint8Array
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Frees the staging buffers.
|
|
192
|
+
*
|
|
193
|
+
* The loaded artifacts stay in memory for the instance's lifetime.
|
|
194
|
+
*/
|
|
195
|
+
dispose(): void
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const encoder = new TextEncoder()
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Instantiates the module and loads the three bitsets of the collision batch.
|
|
202
|
+
*/
|
|
203
|
+
export async function createRegistry(options: CreateRegistryOptions): Promise<RegistryWasm> {
|
|
204
|
+
const module = isBytes(options.wasm) ? await WebAssembly.compile(options.wasm) : options.wasm
|
|
205
|
+
const instance = await WebAssembly.instantiate(module, {})
|
|
206
|
+
const exports = instance.exports
|
|
207
|
+
|
|
208
|
+
const load = (bytes: Uint8Array): number => {
|
|
209
|
+
const ptr = exports.rgy_alloc(bytes.byteLength)
|
|
210
|
+
|
|
211
|
+
new Uint8Array(exports.memory.buffer, ptr, bytes.byteLength).set(bytes)
|
|
212
|
+
|
|
213
|
+
const handle = exports.rgy_load(ptr, bytes.byteLength)
|
|
214
|
+
|
|
215
|
+
if (handle < 0) throw new Error(`registry wasm refused an artifact: error ${exports.rgy_error()}`)
|
|
216
|
+
|
|
217
|
+
return handle
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const alpha3 = load(options.artifacts?.alpha3 ?? iso31661Alpha3MembershipArtifact())
|
|
221
|
+
const airport = load(options.artifacts?.airport ?? iataAirportMembershipArtifact())
|
|
222
|
+
const collision = load(options.artifacts?.collision ?? countryAirportCollisionArtifact())
|
|
223
|
+
const input = new Staging(exports)
|
|
224
|
+
const output = new Staging(exports)
|
|
225
|
+
|
|
226
|
+
const classifyManyInto = (
|
|
227
|
+
packed: Uint8Array,
|
|
228
|
+
out: Uint8Array,
|
|
229
|
+
count = Math.floor(packed.byteLength / CODE_LENGTH_3)
|
|
230
|
+
): number => {
|
|
231
|
+
const inputBytes = count * CODE_LENGTH_3
|
|
232
|
+
|
|
233
|
+
if (out.byteLength < count) throw new RangeError(`output holds ${out.byteLength} bytes for ${count} codes`)
|
|
234
|
+
|
|
235
|
+
if (packed.byteLength < inputBytes)
|
|
236
|
+
throw new RangeError(`input holds ${packed.byteLength} bytes for ${count} codes`)
|
|
237
|
+
|
|
238
|
+
const inPtr = input.reserve(inputBytes)
|
|
239
|
+
const outPtr = output.reserve(count)
|
|
240
|
+
|
|
241
|
+
// `memory.buffer` is re-read after every allocation, because growth detaches the previous buffer.
|
|
242
|
+
new Uint8Array(exports.memory.buffer, inPtr, inputBytes).set(packed.subarray(0, inputBytes))
|
|
243
|
+
|
|
244
|
+
const written = exports.rgy_classify_many(alpha3, airport, collision, inPtr, count, outPtr)
|
|
245
|
+
|
|
246
|
+
if (written < 0) throw new Error(`registry wasm batch failed: error ${exports.rgy_error()}`)
|
|
247
|
+
|
|
248
|
+
out.set(new Uint8Array(exports.memory.buffer, outPtr, written))
|
|
249
|
+
|
|
250
|
+
return written
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
simd: exports.rgy_simd() === 1,
|
|
255
|
+
countryAirport: {
|
|
256
|
+
classifyManyInto,
|
|
257
|
+
classify(codes) {
|
|
258
|
+
const packed = new Uint8Array(codes.length * CODE_LENGTH_3)
|
|
259
|
+
|
|
260
|
+
codes.forEach((code, index) => {
|
|
261
|
+
// A code of any other byte length packs as zero bytes.
|
|
262
|
+
// The kernel marks zero bytes invalid.
|
|
263
|
+
const bytes = encoder.encode(code)
|
|
264
|
+
|
|
265
|
+
packed.set(bytes.byteLength === CODE_LENGTH_3 ? bytes : new Uint8Array(CODE_LENGTH_3), index * CODE_LENGTH_3)
|
|
266
|
+
})
|
|
267
|
+
|
|
268
|
+
const out = new Uint8Array(codes.length)
|
|
269
|
+
|
|
270
|
+
classifyManyInto(packed, out, codes.length)
|
|
271
|
+
|
|
272
|
+
return out
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
dispose() {
|
|
276
|
+
if (input.len) {
|
|
277
|
+
exports.rgy_dealloc(input.ptr, input.len)
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (output.len) {
|
|
281
|
+
exports.rgy_dealloc(output.ptr, output.len)
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
input.len = output.len = 0
|
|
285
|
+
},
|
|
286
|
+
}
|
|
287
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the artifact's bytes, decoded on first call and shared afterwards.
|
|
3
|
+
*
|
|
4
|
+
* Callers read the bytes and never write them.
|
|
5
|
+
*/
|
|
6
|
+
export declare function countryAirportCollisionArtifact(): Uint8Array;
|
|
7
|
+
//# sourceMappingURL=country-airport-collision.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-airport-collision.d.ts","sourceRoot":"","sources":["../../lib/artifacts/country-airport-collision.ts"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wBAAgB,+BAA+B,IAAI,UAAU,CAI5D"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
/**
|
|
4
|
+
* The `country-airport-collision` artifact of the `open-2026-11` profile, 3056 bytes,
|
|
5
|
+
* SHA-256 2154993ce8f65602a0000b9ca3ea0d5ed29a1f1719ce39ff6dd791d0ec8b106b.
|
|
6
|
+
*
|
|
7
|
+
* Generated by tools/generate.run.ts from data/normalized.
|
|
8
|
+
* Edit the data or the compiler rather than this file.
|
|
9
|
+
*/
|
|
10
|
+
import { decodeBase64 } from "#rgy1/base64";
|
|
11
|
+
const BASE64 = "UkdZMQEAAAAeAwAAAQAAAEADAADwCwAAWAMAAAAAAAB7ImFydGlmYWN0IjoiY291bnRyeS1haXJwb3J0LWNvbGxpc2lvbiIsImNvdmVyYWdlIjp7ImNvbGxpc2lvbnMiOjIwMSwiaWF0YS1sb2NhdGlvbiI6OTA1MywiaXNvMzE2Ni0xLWFscGhhMyI6MjQ5fSwiZW5jb2RpbmdzIjp7ImJpdHNldCI6MSwiY29sdW1uIjoxLCJpZC10YWJsZSI6MSwicmVsYXRpb24tb2Zmc2V0cyI6MSwicmVsYXRpb24tdGFyZ2V0cyI6MSwic3RyaW5nLW9mZnNldHMiOjEsInV0ZjgiOjF9LCJlbnZlbG9wZVZlcnNpb24iOjEsImdlbmVyYXRvciI6InJlZ2lzdHJ5LWJ1aWxkIDAuMS4wIiwibWVhbmluZyI6Im9mZmljaWFsbHkgYXNzaWduZWQgaXNvMzE2Ni0xLWFscGhhMyBjb2RlcyB0aGF0IGFyZSBhbHNvIGFuIGlhdGEtbG9jYXRpb24gYWlycG9ydCBjb2RlIiwibmFtZXNwYWNlcyI6WyJpc28zMTY2LTEtYWxwaGEzIiwiaWF0YS1sb2NhdGlvbiJdLCJub3JtYWxpemF0aW9uVmVyc2lvbiI6MSwicHJvZmlsZSI6Im9wZW4tMjAyNi0xMSIsInNjaGVtYVZlcnNpb24iOjEsInNvdXJjZXMiOlt7ImlkIjoid2lraWR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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
|
12
|
+
let bytes = null;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the artifact's bytes, decoded on first call and shared afterwards.
|
|
15
|
+
*
|
|
16
|
+
* Callers read the bytes and never write them.
|
|
17
|
+
*/
|
|
18
|
+
export function countryAirportCollisionArtifact() {
|
|
19
|
+
bytes ??= decodeBase64(BASE64);
|
|
20
|
+
return bytes;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=country-airport-collision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-airport-collision.js","sourceRoot":"","sources":["../../lib/artifacts/country-airport-collision.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,MAAM,GACX,8+HAA8+H,CAAA;AAE/+H,IAAI,KAAK,GAAsB,IAAI,CAAA;AAEnC;;;;GAIG;AACH,MAAM,UAAU,+BAA+B;IAC9C,KAAK,KAAK,YAAY,CAAC,MAAM,CAAC,CAAA;IAE9B,OAAO,KAAK,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"membership.d.ts","sourceRoot":"","sources":["../../../lib/artifacts/iata-airport/membership.ts"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,UAAU,CAI1D"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
/**
|
|
4
|
+
* The `iata-airport-membership` artifact of the `open-2026-11` profile, 2792 bytes,
|
|
5
|
+
* SHA-256 01b6677cd90b33574ce988b169c85445e378c82216f60c7888fce51e451525d9.
|
|
6
|
+
*
|
|
7
|
+
* Generated by tools/generate.run.ts from data/normalized.
|
|
8
|
+
* Edit the data or the compiler rather than this file.
|
|
9
|
+
*/
|
|
10
|
+
import { decodeBase64 } from "#rgy1/base64";
|
|
11
|
+
const BASE64 = "UkdZMQEAAAARAgAAAQAAADgCAADoCgAAUAIAAAAAAAB7ImFydGlmYWN0IjoiaWF0YS1haXJwb3J0LW1lbWJlcnNoaXAiLCJjb3ZlcmFnZSI6eyJpYXRhLWxvY2F0aW9uIjo5MDUzfSwiZW5jb2RpbmdzIjp7ImJpdHNldCI6MSwiY29sdW1uIjoxLCJpZC10YWJsZSI6MSwicmVsYXRpb24tb2Zmc2V0cyI6MSwicmVsYXRpb24tdGFyZ2V0cyI6MSwic3RyaW5nLW9mZnNldHMiOjEsInV0ZjgiOjF9LCJlbnZlbG9wZVZlcnNpb24iOjEsImdlbmVyYXRvciI6InJlZ2lzdHJ5LWJ1aWxkIDAuMS4wIiwia2luZHMiOlsiYWlycG9ydCJdLCJuYW1lc3BhY2VzIjpbImlhdGEtbG9jYXRpb24iXSwibm9ybWFsaXphdGlvblZlcnNpb24iOjEsInByb2ZpbGUiOiJvcGVuLTIwMjYtMTEiLCJzY2hlbWFWZXJzaW9uIjoxLCJzb3VyY2VzIjpbeyJpZCI6Im91cmFpcnBvcnRzLWFpcnBvcnRzIiwicHVibGljYXRpb24iOiJGcmksIDA2IE5vdiAyMDI2IDAyOjUzOjU2IEdNVCIsInNoYTI1NiI6ImUyZTY1YTNkZGFmNzYxNzBjMGUyYzM3M2NiOGI2ODU5N2JkZjNiNTlkMjQzYzRkNmRiNDU0ZDQ4NDk4YmE2ZDcifV19AAAAAAAAAAEAAQAAAAEAUAIAAJUIAACoRAAAAwAAAL//v/////577/v/9//T3J+ltDn9/+/v/x7F/f1+h7xY9P//3//8v7/+/f/9/+/9/cH7+/9DkwD99////////////f//D7XLs0Er4J+/L03/3y2vO/i/8/rz///////+///v//9///9//3///f//9////+33/v////////////9/n3/f9/739zA2/fbHd/93f///v/////b///UX/f//2ez/+f/+78//v+7///v//73//2//9/tf//3/+9f/8P9/+r//5/3/37/qcPjd53/2///////////////3f74vKZBM/H///1/3/3//////P9vvVXDy4Mzp+kJv2d7e+nv2zu/7A/1PITUYMcVI8Lv7aEAgELl4WqzHKDLlf9WUnAYBBSbU99i8QYfBOvut2/myTSEzEAABwP+5X1x1rG3mSPNn8QACuwKPQAZoiAgQhGFFYBgEEzieLOtRERxuwE7fEAkkBCAxAFGZTwoABgSSLAQFgiCwEMbI////Wf2O/b/xBVhgYDCCBgAABPzn/PjP54UGjoF1cIFgw4AjUSYAQAQCAYxGQACQcF+1cxaHQYNwBMUSSGQkimACFgYICRAAAECIzQIgAIAAAisFrOO7Hx3H0feCBl90HgEACQQAAMB339OMnRhGFEAn5YcAAIYAgQgAQAABBCCDAwACAP/7//9/6tl4g5Zn/rp/WG7lsAnkL+fEDQ0PbhkeB2AokMmCwH+/vx/xP+7N+Hz9//tCGoMAAAH8/f9/uf9CXbnD/9v3R6QqkoHEAjhEYFv5FgNFI/H7//c2wSYFMkPi0xm03eZ0DggDmWkeQoYOuLfvhICAAkskDv3vujk15tJzDkH39b9Mg6gEgBHAfZfB578uBuf5/f/X/xaJAQllAiAAANKGYsIwIwzLeIdMZAtY0MbQeLlAQAIkhKpDsI3nAQGQBAEIBAAQQDLVzEF+/8Vr/Bm8/vUfQPtEdQqGATAJfN1T+PXdxeT9BBGJADQlCZFgRMD37/8ABABEQCHw3/uPAMEDgl8exYMJiGcwAACNAAtgBojhEPHgPwFSDATACCIEgRgwYGTBsAil0J8MRIAJFAEAwLgZAoNXGhWECDT4p2NAAgABYAAEgAAAACACIAAA//////7/////8ef//////0dBEvj//3333f/+/98NHiLy/f+9f7/99//3799/33v9/02+W4EICvz9////f////l///L9fcUmy/8/wDhEEO8WcqoUZ8Pt//f/////3j13f0f/7/79g/RL/bd9Gtdhx//9+EAgE3/1i3//x95n/+/+/7Z/dfv/9dwZAA8C+xg/3//+39/fz379vQrcBl30uBYHYcFzuSXGcRP/+////9//3z////////////9/6+/v/f9////f///1/b/3/9d////7/vf////////v7vv///v//1/9//v//////3//f//D////3++///////3+//93///e1GjHRax79/VhE9CIHEJIAO83VoBCgOkb/SYkBAE/52PW383CX6sBSh2ZP9z5GI2sUkIL5Vo9Dkn0reK1stv95TUIsQ4EBCAAAABBV50U1AkDBP4b25FFWK0PGp55TBVAGgBRAsIVn6WaQAwUQChAAQPD3/9P//+3/dwYtf3+WwKHASDIVACAA/P/r7/3nHfP/h9k5Dm4hGLBAAIALkEBV7AAUAwr479//v/6m7/o//PX7+t/7/wHUAL99t/63P3fJ/+8RBAB/9vrn+P3/3v729+vv//v+3//+zxDRwHf9/f//17/79//n+n97kxUZfQsFYklw7efSZJNFAAAAEAAAAAgIkQAACAAAAACFAAICGAEAgAxAAAhABgIAAAAAAAAAAAIAAAAAAAAQBBAAEAAAAIRAAUUSICgAAABCQGABAAAAAAAAAAAAAAAAAAAA8P9/7t/3/5NcF33h+/iV9n0SqQGBbQ4kpaPwr2P+YA8AmYF+JxErsNfe8ec+h+/t/g/AyBIABBSUhwubL9xc5VOU3+tTB5lLICkARAAQIMAGQCSgCf+9//7////fv7/f73fz9F//+/Ha37///9//7/7//77//+7/7////rv//9//////v///7P//f/99+/////78/+9/e////b//+6/+3/T//7///8//ku7//73//////t8vuZv73/+7SA5Hz/8ffvX///s3/3FPDf////////+///3//5/////Xv36SkH7A/9//77t/d+998/5/X0kCR7+AGNPQSPCH62ABHiCWnYcMjHJgQYJwxoAAEGgMBAAAcJDGAQQAAYLtCkCAQDBd4sl2fe0fER53lUgQgECIEKoIAAAAdM15XPjzwXY9FwkkFMQkARAAAAAAAAAAKBAQQEjw3v9GESBJvYgsVEYbDIUkWgAAAAlADBLAgBy9+ptAQABAQCx05doEEQBBB5BjyA0IQoEQDABQwEUbxTEAKMjBQAgASIFBGYAAAABQAAGAEEAAAAAA+d/5f1FNkQggwHCIAamJSAgUAHABjsAKOwcWbBKEAEgw8iJAN7MVn+2KJIZaGMHCxAGXBAAAAEynIT1er/kGu4PJMbwKtACQUKgQAAgAEyAEBAAEAJAogZSYAIBYAkAIAAAAUgAACBJBIAIAAABApRIQAgQAgQAECQBQ0JxKUCAIBgAAAAQwCgAACAEgwEAewQAAIQkAAAAgAAAAAQAAAAAAEAEgQAAEANf/v98/v/fP9/2Zeh7GfT9dLxky7b/u/73H9+RghIAS0O/Xmffje/P+/HxrM969TsS33vPvP/+/7b3w/5/bPubTGxyMeUGvOOx5EKXr5/86W8cD+s+MpSAMlkAASAAAQABEhCNAAg4UIDkWBEACVAxAKBAIAFKIAAAAKYIIgUAHAIQwAAQYAgEAAEIk4AQAEQJMDEJYwIgBQBABAAEIAAAAIACQAAAEEAwAAAA=";
|
|
12
|
+
let bytes = null;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the artifact's bytes, decoded on first call and shared afterwards.
|
|
15
|
+
*
|
|
16
|
+
* Callers read the bytes and never write them.
|
|
17
|
+
*/
|
|
18
|
+
export function iataAirportMembershipArtifact() {
|
|
19
|
+
bytes ??= decodeBase64(BASE64);
|
|
20
|
+
return bytes;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=membership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"membership.js","sourceRoot":"","sources":["../../../lib/artifacts/iata-airport/membership.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,MAAM,GACX,8oHAA8oH,CAAA;AAE/oH,IAAI,KAAK,GAAsB,IAAI,CAAA;AAEnC;;;;GAIG;AACH,MAAM,UAAU,6BAA6B;IAC5C,KAAK,KAAK,YAAY,CAAC,MAAM,CAAC,CAAA;IAE9B,OAAO,KAAK,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../../lib/artifacts/iata-airport/records.ts"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wBAAgB,0BAA0B,IAAI,UAAU,CAIvD"}
|