@mailwoman/registry 9.2.0 → 9.3.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 +1 -1
- package/{address-key.ts → lib/address-key.ts} +1 -1
- package/{geocode-handler.ts → lib/geocode-handler.ts} +7 -7
- package/{geojson.ts → lib/geojson.ts} +9 -4
- package/{index.ts → lib/index.ts} +10 -10
- package/{ingest.ts → lib/ingest.ts} +75 -68
- package/{learned-scorer.ts → lib/learned-scorer.ts} +1 -1
- package/{map-html.ts → lib/map-html.ts} +7 -13
- package/{reconcile.ts → lib/reconcile.ts} +7 -23
- package/{resolve.ts → lib/resolve.ts} +25 -12
- package/{tools → lib/tools}/coverage-reconciliation.ts +12 -14
- package/{tools → lib/tools}/cross-dataset-correlation.ts +60 -137
- package/{tools → lib/tools}/cross-source-threshold-sweep.ts +20 -31
- package/{tools → lib/tools}/dedup-ceiling.ts +33 -144
- package/{tools → lib/tools}/eval-geocoder.ts +9 -10
- package/{tools → lib/tools}/geocoder-namesake-probe.ts +5 -12
- package/{tools → lib/tools}/geocoder-vs-provided-coords.ts +9 -10
- package/lib/tools/gold-set-sample.ts +141 -0
- package/lib/tools/index.ts +31 -0
- package/{tools → lib/tools}/learned-scorer-clustering-eval.ts +68 -257
- package/{tools → lib/tools}/learned-scorer-crossstate-eval.ts +60 -243
- package/{tools → lib/tools}/learned-scorer-eval.ts +62 -256
- package/{tools → lib/tools}/matcher-scale.ts +4 -5
- package/lib/tools/nppes/org-name.ts +23 -0
- package/{tools → lib/tools}/nppes/overmerge-packet.ts +5 -7
- package/{tools → lib/tools}/nppes/report.ts +22 -25
- package/{tools → lib/tools}/nppes/sample.ts +80 -32
- package/{tools/nppes/levers.ts → lib/tools/nppes/settings.ts} +10 -10
- package/{tools → lib/tools}/nppes/truth-grains.ts +4 -44
- package/{tools → lib/tools}/nppes-dedup-benchmark.ts +42 -38
- package/lib/tools/shared.ts +763 -0
- package/lib/tools/train-cross-gbt.ts +209 -0
- package/{tools → lib/tools}/train-gbt.ts +35 -154
- package/lib/tools/train-org-cross-gbt.ts +179 -0
- package/{tools → lib/tools}/txhhsc-to-oarow.ts +9 -27
- package/lib/tools/viz/browser.ts +50 -0
- package/{tools → lib/tools}/viz/cross-dataset-map.ts +7 -8
- package/{tools → lib/tools}/viz/geocode-first-surface.ts +10 -8
- package/{tools → lib/tools}/viz/render-map.ts +10 -23
- package/lib/tools/viz/render.ts +98 -0
- package/{tools → lib/tools}/viz/source-provenance-map.ts +8 -10
- package/{tools → lib/tools}/viz/yardstick-figure.ts +6 -5
- package/out/address-key.d.ts +1 -1
- package/out/address-key.d.ts.map +1 -1
- package/out/address-key.js.map +1 -1
- package/out/geocode-handler.d.ts +6 -6
- package/out/geocode-handler.d.ts.map +1 -1
- package/out/geocode-handler.js +6 -6
- package/out/geocode-handler.js.map +1 -1
- package/out/geojson.d.ts +7 -2
- package/out/geojson.d.ts.map +1 -1
- package/out/geojson.js +5 -3
- package/out/geojson.js.map +1 -1
- package/out/index.d.ts +10 -10
- package/out/index.d.ts.map +1 -1
- package/out/index.js +10 -10
- package/out/index.js.map +1 -1
- package/out/ingest.d.ts +64 -46
- package/out/ingest.d.ts.map +1 -1
- package/out/ingest.js +31 -45
- package/out/ingest.js.map +1 -1
- package/out/learned-scorer.d.ts +1 -1
- package/out/learned-scorer.d.ts.map +1 -1
- package/out/learned-scorer.js.map +1 -1
- package/out/map-html.d.ts +3 -3
- package/out/map-html.d.ts.map +1 -1
- package/out/map-html.js +6 -11
- package/out/map-html.js.map +1 -1
- package/out/models/crosssource-gbt-en-us.d.ts.map +1 -1
- package/out/models/crosssource-gbt-en-us.js.map +1 -1
- package/out/models/dedup-gbt-en-us.d.ts.map +1 -1
- package/out/models/dedup-gbt-en-us.js.map +1 -1
- package/out/models/org-crosssource-gbt-en-us.d.ts.map +1 -1
- package/out/models/org-crosssource-gbt-en-us.js.map +1 -1
- package/out/reconcile.d.ts +6 -1
- package/out/reconcile.d.ts.map +1 -1
- package/out/reconcile.js +5 -20
- package/out/reconcile.js.map +1 -1
- package/out/resolve.d.ts +19 -7
- package/out/resolve.d.ts.map +1 -1
- package/out/resolve.js +16 -5
- package/out/resolve.js.map +1 -1
- package/out/tools/coverage-reconciliation.d.ts +1 -1
- package/out/tools/coverage-reconciliation.d.ts.map +1 -1
- package/out/tools/coverage-reconciliation.js +11 -11
- package/out/tools/coverage-reconciliation.js.map +1 -1
- package/out/tools/cross-dataset-correlation.d.ts +4 -4
- package/out/tools/cross-dataset-correlation.d.ts.map +1 -1
- package/out/tools/cross-dataset-correlation.js +57 -109
- package/out/tools/cross-dataset-correlation.js.map +1 -1
- package/out/tools/cross-source-threshold-sweep.d.ts +2 -2
- package/out/tools/cross-source-threshold-sweep.d.ts.map +1 -1
- package/out/tools/cross-source-threshold-sweep.js +19 -27
- package/out/tools/cross-source-threshold-sweep.js.map +1 -1
- package/out/tools/dedup-ceiling.d.ts.map +1 -1
- package/out/tools/dedup-ceiling.js +36 -117
- package/out/tools/dedup-ceiling.js.map +1 -1
- package/out/tools/eval-geocoder.d.ts +8 -12
- package/out/tools/eval-geocoder.d.ts.map +1 -1
- package/out/tools/eval-geocoder.js +2 -2
- package/out/tools/eval-geocoder.js.map +1 -1
- package/out/tools/geocoder-namesake-probe.d.ts +2 -2
- package/out/tools/geocoder-namesake-probe.d.ts.map +1 -1
- package/out/tools/geocoder-namesake-probe.js +4 -8
- package/out/tools/geocoder-namesake-probe.js.map +1 -1
- package/out/tools/geocoder-vs-provided-coords.d.ts +1 -1
- package/out/tools/geocoder-vs-provided-coords.d.ts.map +1 -1
- package/out/tools/geocoder-vs-provided-coords.js +8 -7
- package/out/tools/geocoder-vs-provided-coords.js.map +1 -1
- package/out/tools/gold-set-sample.d.ts +5 -5
- package/out/tools/gold-set-sample.d.ts.map +1 -1
- package/out/tools/gold-set-sample.js +37 -122
- package/out/tools/gold-set-sample.js.map +1 -1
- package/out/tools/index.d.ts +23 -23
- package/out/tools/index.d.ts.map +1 -1
- package/out/tools/index.js +23 -23
- package/out/tools/index.js.map +1 -1
- package/out/tools/learned-scorer-clustering-eval.d.ts +1 -1
- package/out/tools/learned-scorer-clustering-eval.d.ts.map +1 -1
- package/out/tools/learned-scorer-clustering-eval.js +35 -169
- package/out/tools/learned-scorer-clustering-eval.js.map +1 -1
- package/out/tools/learned-scorer-crossstate-eval.d.ts +5 -5
- package/out/tools/learned-scorer-crossstate-eval.d.ts.map +1 -1
- package/out/tools/learned-scorer-crossstate-eval.js +44 -166
- package/out/tools/learned-scorer-crossstate-eval.js.map +1 -1
- package/out/tools/learned-scorer-eval.d.ts +1 -1
- package/out/tools/learned-scorer-eval.d.ts.map +1 -1
- package/out/tools/learned-scorer-eval.js +37 -168
- package/out/tools/learned-scorer-eval.js.map +1 -1
- package/out/tools/matcher-scale.d.ts.map +1 -1
- package/out/tools/matcher-scale.js +4 -4
- package/out/tools/matcher-scale.js.map +1 -1
- package/out/tools/nppes/org-name.d.ts +2 -5
- package/out/tools/nppes/org-name.d.ts.map +1 -1
- package/out/tools/nppes/org-name.js +1 -30
- package/out/tools/nppes/org-name.js.map +1 -1
- package/out/tools/nppes/overmerge-packet.d.ts +3 -3
- package/out/tools/nppes/overmerge-packet.d.ts.map +1 -1
- package/out/tools/nppes/overmerge-packet.js +3 -3
- package/out/tools/nppes/overmerge-packet.js.map +1 -1
- package/out/tools/nppes/report.d.ts +5 -5
- package/out/tools/nppes/report.d.ts.map +1 -1
- package/out/tools/nppes/report.js +17 -19
- package/out/tools/nppes/report.js.map +1 -1
- package/out/tools/nppes/sample.d.ts +32 -6
- package/out/tools/nppes/sample.d.ts.map +1 -1
- package/out/tools/nppes/sample.js +44 -26
- package/out/tools/nppes/sample.js.map +1 -1
- package/out/tools/nppes/scoring.d.ts.map +1 -1
- package/out/tools/nppes/scoring.js.map +1 -1
- package/out/tools/nppes/{levers.d.ts → settings.d.ts} +8 -8
- package/out/tools/nppes/settings.d.ts.map +1 -0
- package/out/tools/nppes/{levers.js → settings.js} +8 -8
- package/out/tools/nppes/settings.js.map +1 -0
- package/out/tools/nppes/truth-grains.d.ts +2 -2
- package/out/tools/nppes/truth-grains.d.ts.map +1 -1
- package/out/tools/nppes/truth-grains.js +4 -29
- package/out/tools/nppes/truth-grains.js.map +1 -1
- package/out/tools/nppes-dedup-benchmark.d.ts +4 -4
- package/out/tools/nppes-dedup-benchmark.d.ts.map +1 -1
- package/out/tools/nppes-dedup-benchmark.js +40 -34
- package/out/tools/nppes-dedup-benchmark.js.map +1 -1
- package/out/tools/shared.d.ts +244 -7
- package/out/tools/shared.d.ts.map +1 -1
- package/out/tools/shared.js +349 -18
- package/out/tools/shared.js.map +1 -1
- package/out/tools/train-cross-gbt.d.ts +7 -7
- package/out/tools/train-cross-gbt.d.ts.map +1 -1
- package/out/tools/train-cross-gbt.js +47 -145
- package/out/tools/train-cross-gbt.js.map +1 -1
- package/out/tools/train-gbt.d.ts +7 -7
- package/out/tools/train-gbt.d.ts.map +1 -1
- package/out/tools/train-gbt.js +31 -111
- package/out/tools/train-gbt.js.map +1 -1
- package/out/tools/train-org-cross-gbt.d.ts +7 -5
- package/out/tools/train-org-cross-gbt.d.ts.map +1 -1
- package/out/tools/train-org-cross-gbt.js +45 -141
- package/out/tools/train-org-cross-gbt.js.map +1 -1
- package/out/tools/txhhsc-to-oarow.d.ts +2 -2
- package/out/tools/txhhsc-to-oarow.d.ts.map +1 -1
- package/out/tools/txhhsc-to-oarow.js +8 -22
- package/out/tools/txhhsc-to-oarow.js.map +1 -1
- package/out/tools/viz/browser.d.ts +34 -0
- package/out/tools/viz/browser.d.ts.map +1 -0
- package/out/tools/viz/browser.js +33 -0
- package/out/tools/viz/browser.js.map +1 -0
- package/out/tools/viz/cross-dataset-map.d.ts +2 -2
- package/out/tools/viz/cross-dataset-map.d.ts.map +1 -1
- package/out/tools/viz/cross-dataset-map.js +6 -6
- package/out/tools/viz/cross-dataset-map.js.map +1 -1
- package/out/tools/viz/geocode-first-surface.d.ts +4 -3
- package/out/tools/viz/geocode-first-surface.d.ts.map +1 -1
- package/out/tools/viz/geocode-first-surface.js +7 -5
- package/out/tools/viz/geocode-first-surface.js.map +1 -1
- package/out/tools/viz/render-map.d.ts +3 -6
- package/out/tools/viz/render-map.d.ts.map +1 -1
- package/out/tools/viz/render-map.js +9 -19
- package/out/tools/viz/render-map.js.map +1 -1
- package/out/tools/viz/render.d.ts +4 -9
- package/out/tools/viz/render.d.ts.map +1 -1
- package/out/tools/viz/render.js +24 -39
- package/out/tools/viz/render.js.map +1 -1
- package/out/tools/viz/source-provenance-map.d.ts +2 -2
- package/out/tools/viz/source-provenance-map.d.ts.map +1 -1
- package/out/tools/viz/source-provenance-map.js +6 -7
- package/out/tools/viz/source-provenance-map.js.map +1 -1
- package/out/tools/viz/yardstick-figure.d.ts +2 -2
- package/out/tools/viz/yardstick-figure.d.ts.map +1 -1
- package/out/tools/viz/yardstick-figure.js +5 -4
- package/out/tools/viz/yardstick-figure.js.map +1 -1
- package/out/types.d.ts.map +1 -1
- package/out/types.js.map +1 -1
- package/package.json +115 -15
- package/out/tools/nppes/levers.d.ts.map +0 -1
- package/out/tools/nppes/levers.js.map +0 -1
- package/tools/gold-set-sample.ts +0 -254
- package/tools/index.ts +0 -31
- package/tools/nppes/org-name.ts +0 -56
- package/tools/shared.ts +0 -162
- package/tools/train-cross-gbt.ts +0 -359
- package/tools/train-org-cross-gbt.ts +0 -330
- package/tools/viz/render.ts +0 -113
- /package/{models → lib/models}/crosssource-gbt-en-us.ts +0 -0
- /package/{models → lib/models}/dedup-gbt-en-us.ts +0 -0
- /package/{models → lib/models}/org-crosssource-gbt-en-us.ts +0 -0
- /package/{tools → lib/tools}/nppes/scoring.ts +0 -0
- /package/{types.ts → lib/types.ts} +0 -0
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
* Run: `mailwoman registry scorer-eval vs-provided-coords [--max 1176] [--wof <admin.db>]
|
|
20
20
|
* [--data-root <dir>] [--out-md docs/articles/evals/resolver-geo/<date>-...md]`
|
|
21
21
|
*/
|
|
22
|
-
import {
|
|
22
|
+
import { dataRootPath } from "@mailwoman/core/data-root";
|
|
23
|
+
import { writeLocalFile } from "@mailwoman/core/fs/writers";
|
|
23
24
|
import { isPresent } from "@mailwoman/core/objects";
|
|
24
|
-
import {
|
|
25
|
+
import { percentile } from "@mailwoman/core/stats";
|
|
25
26
|
import { haversineKm } from "@mailwoman/match";
|
|
26
27
|
import { streamRows } from "#index";
|
|
27
|
-
import { norm } from "
|
|
28
|
+
import { norm } from "#tools/shared";
|
|
28
29
|
/**
|
|
29
30
|
* Largest absolute latitude in WGS-84 degrees.
|
|
30
31
|
*/
|
|
@@ -97,7 +98,7 @@ export async function geocoderVsProvidedCoords(options, report) {
|
|
|
97
98
|
const deltaM = haversineKm(provided, { latitude: g.lat, longitude: g.lon }) * 1000;
|
|
98
99
|
results.push({ deltaM, tier: g.resolution_tier ?? "unknown" });
|
|
99
100
|
}
|
|
100
|
-
geocoder.
|
|
101
|
+
geocoder[Symbol.dispose]();
|
|
101
102
|
// Overall + per-tier percentiles.
|
|
102
103
|
const all = results.map((r) => r.deltaM).toSorted((a, b) => a - b);
|
|
103
104
|
const byTier = new Map();
|
|
@@ -139,17 +140,17 @@ export async function geocoderVsProvidedCoords(options, report) {
|
|
|
139
140
|
lines.push("");
|
|
140
141
|
lines.push(`Two regimes. **Street-tier placement is excellent** (the address_point + interpolated rows above) — ` +
|
|
141
142
|
`rooftop-to-segment medians, the precision that makes geo-first blocking and the distance evidence ` +
|
|
142
|
-
`trustworthy. The **admin (centroid) tier** is where no street
|
|
143
|
+
`trustworthy. The **admin (centroid) tier** is where no street extract covered the address: accuracy is ` +
|
|
143
144
|
`necessarily km-scale, and it carries a catastrophic tail (the p90/p99/max above) from wrong-region admin ` +
|
|
144
145
|
`resolutions and/or malformed provided coordinates — NOT street-tier error. Those extremes are a signal to ` +
|
|
145
|
-
`inspect, and they motivate wider street-
|
|
146
|
+
`inspect, and they motivate wider street-extract coverage for rural TX plus an admin-tier sanity bound. The ` +
|
|
146
147
|
`self-reported-vs-independent coordinate discrepancy is itself a data-quality column the reconciliation ` +
|
|
147
148
|
`surfaces (#621).`);
|
|
148
149
|
lines.push("");
|
|
149
150
|
const md = lines.join("\n");
|
|
150
151
|
console.log(md);
|
|
151
152
|
if (OUT_MD) {
|
|
152
|
-
|
|
153
|
+
await writeLocalFile(md, OUT_MD);
|
|
153
154
|
report?.(`\n[written] ${OUT_MD}`);
|
|
154
155
|
}
|
|
155
156
|
return { markdown: md };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geocoder-vs-provided-coords.js","sourceRoot":"","sources":["../../tools/geocoder-vs-provided-coords.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"geocoder-vs-provided-coords.js","sourceRoot":"","sources":["../../lib/tools/geocoder-vs-provided-coords.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEnC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEpC;;GAEG;AACH,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAE3B;;GAEG;AACH,MAAM,iBAAiB,GAAG,GAAG,CAAA;AAwB7B;;;;;;;;;;;;;GAaG;AACH,SAAS,WAAW,CAAC,GAAuB;IAC3C,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAA;IACrB,MAAM,CAAC,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A;IAC7F,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACd,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;IACxB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAEd,KAAK,CAAC,IAAI,CACT,sGAAsG;QACrG,oGAAoG;QACpG,yGAAyG;QACzG,2GAA2G;QAC3G,4GAA4G;QAC5G,6GAA6G;QAC7G,yGAAyG;QACzG,kBAAkB,CACnB,CAAA;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAEd,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAE3B,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IAEf,IAAI,MAAM,EAAE,CAAC;QACZ,MAAM,cAAc,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;QAChC,MAAM,EAAE,CAAC,eAAe,MAAM,EAAE,CAAC,CAAA;IAClC,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAA;AACxB,CAAC"}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* where NPI-truth and any programmatic rule disagree — exactly the pairs a frozen adjudicated
|
|
11
11
|
* gold set must cover.
|
|
12
12
|
*
|
|
13
|
-
* This finds them (over the full TX registry, geocode-free —
|
|
14
|
-
* and writes each as a JSONL row carrying BOTH records' fields (org
|
|
15
|
-
* official, taxonomy, subpart/parent flags) plus the programmatic
|
|
16
|
-
* (human or LLM-as-judge, flagged as such) can label "same real-world
|
|
17
|
-
* MEASURE how often the programmatic truth matches judgment.
|
|
13
|
+
* This finds them (over the full TX registry, geocode-free — the shared co-location scan
|
|
14
|
+
* `dedup-ceiling.ts` also runs) and writes each as a JSONL row carrying BOTH records' fields (org
|
|
15
|
+
* name, address, authorized official, taxonomy, subpart/parent flags) plus the programmatic
|
|
16
|
+
* verdict, so an adjudicator (human or LLM-as-judge, flagged as such) can label "same real-world
|
|
17
|
+
* entity? yes/no" and we can MEASURE how often the programmatic truth matches judgment.
|
|
18
18
|
*
|
|
19
19
|
* Run: `mailwoman registry gold-set-sample [--cap 200000] [--state TX] [--tau 0.7] [--n 300]
|
|
20
20
|
* [--out-jsonl <path>]`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gold-set-sample.d.ts","sourceRoot":"","sources":["../../tools/gold-set-sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"gold-set-sample.d.ts","sourceRoot":"","sources":["../../lib/tools/gold-set-sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAQH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CACjB;AAgBD;;GAEG;AACH,wBAAsB,aAAa,CAClC,OAAO,GAAE,oBAAyB,EAClC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CA8DjD"}
|
|
@@ -10,146 +10,61 @@
|
|
|
10
10
|
* where NPI-truth and any programmatic rule disagree — exactly the pairs a frozen adjudicated
|
|
11
11
|
* gold set must cover.
|
|
12
12
|
*
|
|
13
|
-
* This finds them (over the full TX registry, geocode-free —
|
|
14
|
-
* and writes each as a JSONL row carrying BOTH records' fields (org
|
|
15
|
-
* official, taxonomy, subpart/parent flags) plus the programmatic
|
|
16
|
-
* (human or LLM-as-judge, flagged as such) can label "same real-world
|
|
17
|
-
* MEASURE how often the programmatic truth matches judgment.
|
|
13
|
+
* This finds them (over the full TX registry, geocode-free — the shared co-location scan
|
|
14
|
+
* `dedup-ceiling.ts` also runs) and writes each as a JSONL row carrying BOTH records' fields (org
|
|
15
|
+
* name, address, authorized official, taxonomy, subpart/parent flags) plus the programmatic
|
|
16
|
+
* verdict, so an adjudicator (human or LLM-as-judge, flagged as such) can label "same real-world
|
|
17
|
+
* entity? yes/no" and we can MEASURE how often the programmatic truth matches judgment.
|
|
18
18
|
*
|
|
19
19
|
* Run: `mailwoman registry gold-set-sample [--cap 200000] [--state TX] [--tau 0.7] [--n 300]
|
|
20
20
|
* [--out-jsonl <path>]`
|
|
21
21
|
*/
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { dataRootPath } from "@mailwoman/core/utils";
|
|
22
|
+
import { dataRootPath } from "@mailwoman/core/data-root";
|
|
23
|
+
import { writeLocalTextFile } from "@mailwoman/core/fs/writers";
|
|
25
24
|
import { jaccard } from "@mailwoman/match";
|
|
26
|
-
import {
|
|
27
|
-
import { norm } from "./shared.js";
|
|
28
|
-
const STOP = new Set([
|
|
29
|
-
"llc",
|
|
30
|
-
"inc",
|
|
31
|
-
"incorporated",
|
|
32
|
-
"corp",
|
|
33
|
-
"corporation",
|
|
34
|
-
"co",
|
|
35
|
-
"ltd",
|
|
36
|
-
"pllc",
|
|
37
|
-
"pc",
|
|
38
|
-
"pa",
|
|
39
|
-
"lp",
|
|
40
|
-
"llp",
|
|
41
|
-
"the",
|
|
42
|
-
"of",
|
|
43
|
-
"and",
|
|
44
|
-
]);
|
|
45
|
-
function orgTokens(s) {
|
|
46
|
-
return new Set(s
|
|
47
|
-
.toLowerCase()
|
|
48
|
-
.replaceAll(/[^a-z0-9 ]/g, " ")
|
|
49
|
-
.split(/\s+/)
|
|
50
|
-
.filter((t) => t && !STOP.has(t)));
|
|
51
|
-
}
|
|
52
|
-
const C = {
|
|
53
|
-
npi: "NPI",
|
|
54
|
-
entityType: "Entity Type Code",
|
|
55
|
-
org: "Provider Organization Name (Legal Business Name)",
|
|
56
|
-
pAddr: "Provider First Line Business Practice Location Address",
|
|
57
|
-
pCity: "Provider Business Practice Location Address City Name",
|
|
58
|
-
pState: "Provider Business Practice Location Address State Name",
|
|
59
|
-
pZip: "Provider Business Practice Location Address Postcode",
|
|
60
|
-
authLast: "Authorized Official Last Name",
|
|
61
|
-
authFirst: "Authorized Official First Name",
|
|
62
|
-
taxonomy: "Healthcare Provider Taxonomy Code_1",
|
|
63
|
-
isSubpart: "Is Organization Subpart",
|
|
64
|
-
parentLBN: "Parent Organization LBN",
|
|
65
|
-
parentTIN: "Parent Organization TIN",
|
|
66
|
-
};
|
|
25
|
+
import { colocatedDistinctPairs, scanColocatedProviders, stateOption } from "#tools/shared";
|
|
67
26
|
/**
|
|
68
27
|
* Gold-set P3 (#625) — sample the HARD co-located name-collision slice for adjudication.
|
|
69
28
|
*/
|
|
70
29
|
export async function goldSetSample(options = {}, report) {
|
|
71
30
|
const SOURCES = options.sources || dataRootPath("record-matcher", "sources");
|
|
72
31
|
const CAP = options.cap ?? 200_000;
|
|
73
|
-
const STATE = (options
|
|
32
|
+
const STATE = stateOption(options);
|
|
74
33
|
const TAU = options.tau ?? 0.7;
|
|
75
34
|
const N = options.n ?? 300;
|
|
76
35
|
const OUT = options.outJSONL || "";
|
|
77
36
|
const REGISTRY = `${SOURCES}/nppes_npi-registry_20260607.tsv`;
|
|
78
37
|
report?.(`[A] streaming ${STATE} org providers (cap ${CAP})…`);
|
|
79
|
-
const byAddr =
|
|
80
|
-
let kept = 0;
|
|
81
|
-
for await (const r of streamRows(REGISTRY)) {
|
|
82
|
-
if (norm(r[C.entityType]) !== "2")
|
|
83
|
-
continue;
|
|
84
|
-
if (norm(r[C.pState]).toUpperCase() !== STATE)
|
|
85
|
-
continue;
|
|
86
|
-
const org = norm(r[C.org]);
|
|
87
|
-
const line1 = norm(r[C.pAddr]);
|
|
88
|
-
if (!org || !line1)
|
|
89
|
-
continue;
|
|
90
|
-
const address = [line1, norm(r[C.pCity]), STATE, norm(r[C.pZip])].filter(isPresent).join(", ");
|
|
91
|
-
const addrKey = addressFrequencyKey(address);
|
|
92
|
-
if (!addrKey)
|
|
93
|
-
continue;
|
|
94
|
-
const p = {
|
|
95
|
-
npi: norm(r[C.npi]),
|
|
96
|
-
org,
|
|
97
|
-
tokens: orgTokens(org),
|
|
98
|
-
address,
|
|
99
|
-
auth: `${norm(r[C.authFirst])} ${norm(r[C.authLast])}`.toLowerCase().trim(),
|
|
100
|
-
taxonomy: norm(r[C.taxonomy]),
|
|
101
|
-
subpart: norm(r[C.isSubpart]).toUpperCase() === "Y",
|
|
102
|
-
parent: `${norm(r[C.parentLBN])}|${norm(r[C.parentTIN])}`.toLowerCase(),
|
|
103
|
-
};
|
|
104
|
-
if (!byAddr.has(addrKey)) {
|
|
105
|
-
byAddr.set(addrKey, []);
|
|
106
|
-
}
|
|
107
|
-
byAddr.get(addrKey).push(p);
|
|
108
|
-
kept++;
|
|
109
|
-
if (kept >= CAP)
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
38
|
+
const { byAddr, kept } = await scanColocatedProviders({ registryPath: REGISTRY, state: STATE, cap: CAP });
|
|
112
39
|
report?.(` ${kept} providers at ${byAddr.size} addresses`);
|
|
40
|
+
// Hard pairs: co-located, name-similar (≥τ), DISTINCT NPIs that programmatic truth can't confidently
|
|
41
|
+
// collapse (NOT subparts of the same parent). Tag the programmatic verdict so adjudication can grade it.
|
|
113
42
|
const hard = [];
|
|
114
|
-
for (const
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
if (!distinct.has(p.npi)) {
|
|
118
|
-
distinct.set(p.npi, p);
|
|
119
|
-
}
|
|
120
|
-
const list = [...distinct.values()];
|
|
121
|
-
if (list.length < 2)
|
|
43
|
+
for (const { a, b } of colocatedDistinctPairs(byAddr)) {
|
|
44
|
+
const sim = jaccard(a.tokens, b.tokens);
|
|
45
|
+
if (sim < TAU)
|
|
122
46
|
continue;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
bothSubpartSameParent: false,
|
|
145
|
-
// Programmatic heuristic verdict (what an entity-level rule WOULD say, beyond the flagged
|
|
146
|
-
// subparts): same authorized official ⇒ likely one org; different official + different
|
|
147
|
-
// specialty ⇒ likely distinct. The whole point is to ADJUDICATE whether this is right.
|
|
148
|
-
programmaticVerdict: sameAuth ? "same-entity" : "distinct",
|
|
149
|
-
adjudication: null,
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}
|
|
47
|
+
const sameParent = a.subpart && b.subpart && a.parent === b.parent && a.parent !== "|";
|
|
48
|
+
if (sameParent)
|
|
49
|
+
continue; // programmatic truth already collapses these — not the hard slice
|
|
50
|
+
const sameAuth = a.auth !== "" && a.auth === b.auth;
|
|
51
|
+
const sameTax = a.taxonomy !== "" && a.taxonomy === b.taxonomy;
|
|
52
|
+
hard.push({
|
|
53
|
+
npiA: a.npi,
|
|
54
|
+
npiB: b.npi,
|
|
55
|
+
orgA: a.org,
|
|
56
|
+
orgB: b.org,
|
|
57
|
+
address: a.address,
|
|
58
|
+
nameJaccard: Number(sim.toFixed(3)),
|
|
59
|
+
sameAuthorizedOfficial: sameAuth,
|
|
60
|
+
sameTaxonomy: sameTax,
|
|
61
|
+
bothSubpartSameParent: false,
|
|
62
|
+
// Programmatic heuristic verdict (what an entity-level rule WOULD say, beyond the flagged
|
|
63
|
+
// subparts): same authorized official ⇒ likely one org; different official + different
|
|
64
|
+
// specialty ⇒ likely distinct. The whole point is to ADJUDICATE whether this is right.
|
|
65
|
+
programmaticVerdict: sameAuth ? "same-entity" : "distinct",
|
|
66
|
+
adjudication: null,
|
|
67
|
+
});
|
|
153
68
|
}
|
|
154
69
|
report?.(` ${hard.length} hard co-located name-collision pairs (non-flagged-subpart)`);
|
|
155
70
|
// Deterministic spread sample of N (stride, not head — avoid file-order bias, the dedup-ceiling lesson).
|
|
@@ -157,7 +72,7 @@ export async function goldSetSample(options = {}, report) {
|
|
|
157
72
|
const sample = hard.filter((_, i) => i % stride === 0).slice(0, N);
|
|
158
73
|
report?.(` sampling ${sample.length} (stride ${stride}) for adjudication`);
|
|
159
74
|
if (OUT) {
|
|
160
|
-
|
|
75
|
+
await writeLocalTextFile(sample.map((p) => JSON.stringify(p)).join("\n") + "\n", OUT);
|
|
161
76
|
report?.(`[written] ${OUT}`);
|
|
162
77
|
}
|
|
163
78
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gold-set-sample.js","sourceRoot":"","sources":["../../tools/gold-set-sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"gold-set-sample.js","sourceRoot":"","sources":["../../lib/tools/gold-set-sample.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AA8C3F;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAClC,UAAgC,EAAE,EAClC,MAA+B;IAE/B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,YAAY,CAAC,gBAAgB,EA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AAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAA;QACrF,MAAM,EAAE,CAAC,aAAa,GAAG,EAAE,CAAC,CAAA;IAC7B,CAAC;SAAM,CAAC;QACP,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;YACrC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;QAC/B,CAAC;IACF,CAAC;IAED,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAA;AAC1D,CAAC"}
|
package/out/tools/index.d.ts
CHANGED
|
@@ -5,27 +5,27 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Registry operator tool exports.
|
|
7
7
|
*/
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
13
|
-
export * from "
|
|
14
|
-
export * from "
|
|
15
|
-
export * from "
|
|
16
|
-
export * from "
|
|
17
|
-
export * from "
|
|
18
|
-
export * from "
|
|
19
|
-
export * from "
|
|
20
|
-
export * from "
|
|
21
|
-
export * from "
|
|
22
|
-
export * from "
|
|
23
|
-
export * from "
|
|
24
|
-
export * from "
|
|
25
|
-
export * from "
|
|
26
|
-
export * from "
|
|
27
|
-
export * from "
|
|
28
|
-
export * from "
|
|
29
|
-
export * from "
|
|
30
|
-
export * from "
|
|
8
|
+
export * from "#tools/coverage-reconciliation";
|
|
9
|
+
export * from "#tools/cross-dataset-correlation";
|
|
10
|
+
export * from "#tools/cross-source-threshold-sweep";
|
|
11
|
+
export * from "#tools/dedup-ceiling";
|
|
12
|
+
export * from "#tools/eval-geocoder";
|
|
13
|
+
export * from "#tools/geocoder-namesake-probe";
|
|
14
|
+
export * from "#tools/geocoder-vs-provided-coords";
|
|
15
|
+
export * from "#tools/gold-set-sample";
|
|
16
|
+
export * from "#tools/learned-scorer-clustering-eval";
|
|
17
|
+
export * from "#tools/learned-scorer-crossstate-eval";
|
|
18
|
+
export * from "#tools/learned-scorer-eval";
|
|
19
|
+
export * from "#tools/matcher-scale";
|
|
20
|
+
export * from "#tools/nppes-dedup-benchmark";
|
|
21
|
+
export * from "#tools/train-cross-gbt";
|
|
22
|
+
export * from "#tools/train-gbt";
|
|
23
|
+
export * from "#tools/train-org-cross-gbt";
|
|
24
|
+
export * from "#tools/txhhsc-to-oarow";
|
|
25
|
+
export * from "#tools/viz/cross-dataset-map";
|
|
26
|
+
export * from "#tools/viz/geocode-first-surface";
|
|
27
|
+
export * from "#tools/viz/render-map";
|
|
28
|
+
export * from "#tools/viz/render";
|
|
29
|
+
export * from "#tools/viz/source-provenance-map";
|
|
30
|
+
export * from "#tools/viz/yardstick-figure";
|
|
31
31
|
//# sourceMappingURL=index.d.ts.map
|
package/out/tools/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,gCAAgC,CAAA;AAC9C,cAAc,kCAAkC,CAAA;AAChD,cAAc,qCAAqC,CAAA;AACnD,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oCAAoC,CAAA;AAClD,cAAc,wBAAwB,CAAA;AACtC,cAAc,uCAAuC,CAAA;AACrD,cAAc,uCAAuC,CAAA;AACrD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,kCAAkC,CAAA;AAChD,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA"}
|
package/out/tools/index.js
CHANGED
|
@@ -5,27 +5,27 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Registry operator tool exports.
|
|
7
7
|
*/
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
13
|
-
export * from "
|
|
14
|
-
export * from "
|
|
15
|
-
export * from "
|
|
16
|
-
export * from "
|
|
17
|
-
export * from "
|
|
18
|
-
export * from "
|
|
19
|
-
export * from "
|
|
20
|
-
export * from "
|
|
21
|
-
export * from "
|
|
22
|
-
export * from "
|
|
23
|
-
export * from "
|
|
24
|
-
export * from "
|
|
25
|
-
export * from "
|
|
26
|
-
export * from "
|
|
27
|
-
export * from "
|
|
28
|
-
export * from "
|
|
29
|
-
export * from "
|
|
30
|
-
export * from "
|
|
8
|
+
export * from "#tools/coverage-reconciliation";
|
|
9
|
+
export * from "#tools/cross-dataset-correlation";
|
|
10
|
+
export * from "#tools/cross-source-threshold-sweep";
|
|
11
|
+
export * from "#tools/dedup-ceiling";
|
|
12
|
+
export * from "#tools/eval-geocoder";
|
|
13
|
+
export * from "#tools/geocoder-namesake-probe";
|
|
14
|
+
export * from "#tools/geocoder-vs-provided-coords";
|
|
15
|
+
export * from "#tools/gold-set-sample";
|
|
16
|
+
export * from "#tools/learned-scorer-clustering-eval";
|
|
17
|
+
export * from "#tools/learned-scorer-crossstate-eval";
|
|
18
|
+
export * from "#tools/learned-scorer-eval";
|
|
19
|
+
export * from "#tools/matcher-scale";
|
|
20
|
+
export * from "#tools/nppes-dedup-benchmark";
|
|
21
|
+
export * from "#tools/train-cross-gbt";
|
|
22
|
+
export * from "#tools/train-gbt";
|
|
23
|
+
export * from "#tools/train-org-cross-gbt";
|
|
24
|
+
export * from "#tools/txhhsc-to-oarow";
|
|
25
|
+
export * from "#tools/viz/cross-dataset-map";
|
|
26
|
+
export * from "#tools/viz/geocode-first-surface";
|
|
27
|
+
export * from "#tools/viz/render-map";
|
|
28
|
+
export * from "#tools/viz/render";
|
|
29
|
+
export * from "#tools/viz/source-provenance-map";
|
|
30
|
+
export * from "#tools/viz/yardstick-figure";
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
package/out/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,gCAAgC,CAAA;AAC9C,cAAc,kCAAkC,CAAA;AAChD,cAAc,qCAAqC,CAAA;AACnD,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oCAAoC,CAAA;AAClD,cAAc,wBAAwB,CAAA;AACtC,cAAc,uCAAuC,CAAA;AACrD,cAAc,uCAAuC,CAAA;AACrD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,kCAAkC,CAAA;AAChD,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA"}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* Run: `mailwoman registry scorer-eval clustering [--npis 2000] [--split 0.67] [--seed 1]
|
|
28
28
|
* [--out-md <md>]`
|
|
29
29
|
*/
|
|
30
|
-
import type { EvalGeocoderFactory } from "
|
|
30
|
+
import type { EvalGeocoderFactory } from "#tools/eval-geocoder";
|
|
31
31
|
/**
|
|
32
32
|
* Options for {@linkcode scorerClusteringEval}.
|
|
33
33
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"learned-scorer-clustering-eval.d.ts","sourceRoot":"","sources":["../../tools/learned-scorer-clustering-eval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;
|
|
1
|
+
{"version":3,"file":"learned-scorer-clustering-eval.d.ts","sourceRoot":"","sources":["../../lib/tools/learned-scorer-clustering-eval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAgBH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAiB/D;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,cAAc,EAAE,mBAAmB,CAAA;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACzC,OAAO,EAAE,2BAA2B,EACpC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CA+O/B"}
|