@dra2020/district-analytics 11.0.2 → 11.0.5
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/dist/district-analytics.js +254 -206
- package/dist/district-analytics.js.map +1 -1
- package/package.json +8 -8
|
@@ -8,114 +8,41 @@
|
|
|
8
8
|
else
|
|
9
9
|
root["district-analytics"] = factory();
|
|
10
10
|
})(global, function() {
|
|
11
|
-
return /******/ (
|
|
12
|
-
/******/
|
|
13
|
-
/******/ var
|
|
14
|
-
/******/
|
|
15
|
-
/******/ // The require function
|
|
16
|
-
/******/ function __webpack_require__(moduleId) {
|
|
17
|
-
/******/
|
|
18
|
-
/******/ // Check if module is in cache
|
|
19
|
-
/******/ if(installedModules[moduleId]) {
|
|
20
|
-
/******/ return installedModules[moduleId].exports;
|
|
21
|
-
/******/ }
|
|
22
|
-
/******/ // Create a new module (and put it into the cache)
|
|
23
|
-
/******/ var module = installedModules[moduleId] = {
|
|
24
|
-
/******/ i: moduleId,
|
|
25
|
-
/******/ l: false,
|
|
26
|
-
/******/ exports: {}
|
|
27
|
-
/******/ };
|
|
28
|
-
/******/
|
|
29
|
-
/******/ // Execute the module function
|
|
30
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
-
/******/
|
|
32
|
-
/******/ // Flag the module as loaded
|
|
33
|
-
/******/ module.l = true;
|
|
34
|
-
/******/
|
|
35
|
-
/******/ // Return the exports of the module
|
|
36
|
-
/******/ return module.exports;
|
|
37
|
-
/******/ }
|
|
38
|
-
/******/
|
|
39
|
-
/******/
|
|
40
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
-
/******/ __webpack_require__.m = modules;
|
|
42
|
-
/******/
|
|
43
|
-
/******/ // expose the module cache
|
|
44
|
-
/******/ __webpack_require__.c = installedModules;
|
|
45
|
-
/******/
|
|
46
|
-
/******/ // define getter function for harmony exports
|
|
47
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
-
/******/ }
|
|
51
|
-
/******/ };
|
|
52
|
-
/******/
|
|
53
|
-
/******/ // define __esModule on exports
|
|
54
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
-
/******/ }
|
|
58
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
-
/******/ };
|
|
60
|
-
/******/
|
|
61
|
-
/******/ // create a fake namespace object
|
|
62
|
-
/******/ // mode & 1: value is a module id, require it
|
|
63
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
-
/******/ // mode & 4: return value when already ns object
|
|
65
|
-
/******/ // mode & 8|1: behave like require
|
|
66
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
-
/******/ if(mode & 8) return value;
|
|
69
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
-
/******/ var ns = Object.create(null);
|
|
71
|
-
/******/ __webpack_require__.r(ns);
|
|
72
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
-
/******/ return ns;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
-
/******/ __webpack_require__.n = function(module) {
|
|
79
|
-
/******/ var getter = module && module.__esModule ?
|
|
80
|
-
/******/ function getDefault() { return module['default']; } :
|
|
81
|
-
/******/ function getModuleExports() { return module; };
|
|
82
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
-
/******/ return getter;
|
|
84
|
-
/******/ };
|
|
85
|
-
/******/
|
|
86
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
-
/******/
|
|
89
|
-
/******/ // __webpack_public_path__
|
|
90
|
-
/******/ __webpack_require__.p = "";
|
|
91
|
-
/******/
|
|
92
|
-
/******/
|
|
93
|
-
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts");
|
|
95
|
-
/******/ })
|
|
96
|
-
/************************************************************************/
|
|
97
|
-
/******/ ({
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
98
14
|
|
|
99
15
|
/***/ "./src/_api.ts":
|
|
100
16
|
/*!*********************!*\
|
|
101
17
|
!*** ./src/_api.ts ***!
|
|
102
18
|
\*********************/
|
|
103
|
-
|
|
104
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
19
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
105
20
|
|
|
106
|
-
"use strict";
|
|
107
21
|
|
|
108
22
|
//
|
|
109
23
|
// THE NODE PACKAGE API
|
|
110
24
|
//
|
|
25
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
26
|
+
if (k2 === undefined) k2 = k;
|
|
27
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
28
|
+
}) : (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
o[k2] = m[k];
|
|
31
|
+
}));
|
|
32
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
33
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
34
|
+
}) : function(o, v) {
|
|
35
|
+
o["default"] = v;
|
|
36
|
+
});
|
|
111
37
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
112
38
|
if (mod && mod.__esModule) return mod;
|
|
113
39
|
var result = {};
|
|
114
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
115
|
-
result
|
|
40
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
116
42
|
return result;
|
|
117
43
|
};
|
|
118
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
45
|
+
exports.AnalyticsSession = void 0;
|
|
119
46
|
const Poly = __importStar(__webpack_require__(/*! @dra2020/poly */ "@dra2020/poly"));
|
|
120
47
|
const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
|
|
121
48
|
const preprocess_1 = __webpack_require__(/*! ./preprocess */ "./src/preprocess.ts");
|
|
@@ -161,7 +88,7 @@ class AnalyticsSession {
|
|
|
161
88
|
}
|
|
162
89
|
// DEBUG
|
|
163
90
|
console.log("Cycle = ", config['cycle']);
|
|
164
|
-
console.log("Shapes = ",
|
|
91
|
+
console.log("Shapes = ", config['datasets']["SHAPES" /* SHAPES */], ": ", config['descriptions']['SHAPES']);
|
|
165
92
|
return config;
|
|
166
93
|
}
|
|
167
94
|
// Using the the data in the analytics session, calculate all the
|
|
@@ -278,22 +205,33 @@ exports.AnalyticsSession = AnalyticsSession;
|
|
|
278
205
|
/*!**********************!*\
|
|
279
206
|
!*** ./src/_data.ts ***!
|
|
280
207
|
\**********************/
|
|
281
|
-
|
|
282
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
208
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
283
209
|
|
|
284
|
-
"use strict";
|
|
285
210
|
|
|
286
211
|
//
|
|
287
212
|
// DATA ABSTRACTION LAYER
|
|
288
213
|
//
|
|
214
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
215
|
+
if (k2 === undefined) k2 = k;
|
|
216
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
217
|
+
}) : (function(o, m, k, k2) {
|
|
218
|
+
if (k2 === undefined) k2 = k;
|
|
219
|
+
o[k2] = m[k];
|
|
220
|
+
}));
|
|
221
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
222
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
223
|
+
}) : function(o, v) {
|
|
224
|
+
o["default"] = v;
|
|
225
|
+
});
|
|
289
226
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
290
227
|
if (mod && mod.__esModule) return mod;
|
|
291
228
|
var result = {};
|
|
292
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
293
|
-
result
|
|
229
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
230
|
+
__setModuleDefault(result, mod);
|
|
294
231
|
return result;
|
|
295
232
|
};
|
|
296
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
233
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
234
|
+
exports.Graph = exports.invertPlan = exports.Plan = exports.State = exports.Counties = exports.Features = exports.Districts = void 0;
|
|
297
235
|
const G = __importStar(__webpack_require__(/*! @dra2020/dra-graph */ "@dra2020/dra-graph"));
|
|
298
236
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
299
237
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
@@ -1022,15 +960,14 @@ exports.Graph = Graph;
|
|
|
1022
960
|
/*!************************!*\
|
|
1023
961
|
!*** ./src/analyze.ts ***!
|
|
1024
962
|
\************************/
|
|
1025
|
-
|
|
1026
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
963
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1027
964
|
|
|
1028
|
-
"use strict";
|
|
1029
965
|
|
|
1030
966
|
//
|
|
1031
967
|
// ANALYZE A PLAN
|
|
1032
968
|
//
|
|
1033
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
969
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
970
|
+
exports.doDeriveSecondaryTests = exports.doAnalyzePlan = exports.doAnalyzeDistricts = void 0;
|
|
1034
971
|
const valid_1 = __webpack_require__(/*! ./valid */ "./src/valid.ts");
|
|
1035
972
|
const equal_1 = __webpack_require__(/*! ./equal */ "./src/equal.ts");
|
|
1036
973
|
const cohesive_1 = __webpack_require__(/*! ./cohesive */ "./src/cohesive.ts");
|
|
@@ -1078,22 +1015,33 @@ exports.doDeriveSecondaryTests = doDeriveSecondaryTests;
|
|
|
1078
1015
|
/*!*************************!*\
|
|
1079
1016
|
!*** ./src/cohesive.ts ***!
|
|
1080
1017
|
\*************************/
|
|
1081
|
-
|
|
1082
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1018
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1083
1019
|
|
|
1084
|
-
"use strict";
|
|
1085
1020
|
|
|
1086
1021
|
//
|
|
1087
1022
|
// SPLITTING of counties & districts
|
|
1088
1023
|
//
|
|
1024
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1025
|
+
if (k2 === undefined) k2 = k;
|
|
1026
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1027
|
+
}) : (function(o, m, k, k2) {
|
|
1028
|
+
if (k2 === undefined) k2 = k;
|
|
1029
|
+
o[k2] = m[k];
|
|
1030
|
+
}));
|
|
1031
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1032
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1033
|
+
}) : function(o, v) {
|
|
1034
|
+
o["default"] = v;
|
|
1035
|
+
});
|
|
1089
1036
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1090
1037
|
if (mod && mod.__esModule) return mod;
|
|
1091
1038
|
var result = {};
|
|
1092
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1093
|
-
result
|
|
1039
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1040
|
+
__setModuleDefault(result, mod);
|
|
1094
1041
|
return result;
|
|
1095
1042
|
};
|
|
1096
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1043
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1044
|
+
exports.doFindSplitVTDs = exports.doFindCountiesSplitUnexpectedly = void 0;
|
|
1097
1045
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1098
1046
|
// NOTE - The active code is below the long multi-line section to be deleted.
|
|
1099
1047
|
// ANALYZE SIMPLE COUNTY & VTD SPLITTING
|
|
@@ -1249,22 +1197,33 @@ exports.doFindSplitVTDs = doFindSplitVTDs;
|
|
|
1249
1197
|
/*!************************!*\
|
|
1250
1198
|
!*** ./src/compact.ts ***!
|
|
1251
1199
|
\************************/
|
|
1252
|
-
|
|
1253
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1200
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1254
1201
|
|
|
1255
|
-
"use strict";
|
|
1256
1202
|
|
|
1257
1203
|
//
|
|
1258
1204
|
// COMPACT
|
|
1259
1205
|
//
|
|
1206
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1207
|
+
if (k2 === undefined) k2 = k;
|
|
1208
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1209
|
+
}) : (function(o, m, k, k2) {
|
|
1210
|
+
if (k2 === undefined) k2 = k;
|
|
1211
|
+
o[k2] = m[k];
|
|
1212
|
+
}));
|
|
1213
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1214
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1215
|
+
}) : function(o, v) {
|
|
1216
|
+
o["default"] = v;
|
|
1217
|
+
});
|
|
1260
1218
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1261
1219
|
if (mod && mod.__esModule) return mod;
|
|
1262
1220
|
var result = {};
|
|
1263
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1264
|
-
result
|
|
1221
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1222
|
+
__setModuleDefault(result, mod);
|
|
1265
1223
|
return result;
|
|
1266
1224
|
};
|
|
1267
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1225
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1226
|
+
exports.scoreKIWYSICompactness = exports.extractDistrictProperties = void 0;
|
|
1268
1227
|
const Poly = __importStar(__webpack_require__(/*! @dra2020/poly */ "@dra2020/poly"));
|
|
1269
1228
|
const Compactness = __importStar(__webpack_require__(/*! @dra2020/compactness */ "@dra2020/compactness"));
|
|
1270
1229
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
@@ -1361,15 +1320,14 @@ exports.scoreKIWYSICompactness = scoreKIWYSICompactness;
|
|
|
1361
1320
|
/*!**********************!*\
|
|
1362
1321
|
!*** ./src/equal.ts ***!
|
|
1363
1322
|
\**********************/
|
|
1364
|
-
|
|
1365
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1323
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1366
1324
|
|
|
1367
|
-
"use strict";
|
|
1368
1325
|
|
|
1369
1326
|
//
|
|
1370
1327
|
// EQUAL POPULATION
|
|
1371
1328
|
//
|
|
1372
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1329
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1330
|
+
exports.doHasEqualPopulations = void 0;
|
|
1373
1331
|
// NOTE - This validity check is *derived* and depends on population deviation %
|
|
1374
1332
|
// being computed (above) and normalized in test log & scorecard generation.
|
|
1375
1333
|
function doHasEqualPopulations(s, bLog = false) {
|
|
@@ -1406,21 +1364,26 @@ exports.doHasEqualPopulations = doHasEqualPopulations;
|
|
|
1406
1364
|
/*!**********************!*\
|
|
1407
1365
|
!*** ./src/index.ts ***!
|
|
1408
1366
|
\**********************/
|
|
1409
|
-
|
|
1410
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1367
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1411
1368
|
|
|
1412
|
-
"use strict";
|
|
1413
1369
|
|
|
1414
1370
|
//
|
|
1415
1371
|
// THE DISTRICT-ANALYTICS NODE PACKAGE API
|
|
1416
1372
|
//
|
|
1417
|
-
function
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1373
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1374
|
+
if (k2 === undefined) k2 = k;
|
|
1375
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1376
|
+
}) : (function(o, m, k, k2) {
|
|
1377
|
+
if (k2 === undefined) k2 = k;
|
|
1378
|
+
o[k2] = m[k];
|
|
1379
|
+
}));
|
|
1380
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
1381
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1382
|
+
};
|
|
1383
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1384
|
+
__exportStar(__webpack_require__(/*! ./_api */ "./src/_api.ts"), exports);
|
|
1385
|
+
__exportStar(__webpack_require__(/*! ./results */ "./src/results.ts"), exports);
|
|
1386
|
+
__exportStar(__webpack_require__(/*! ./types */ "./src/types.ts"), exports);
|
|
1424
1387
|
|
|
1425
1388
|
|
|
1426
1389
|
/***/ }),
|
|
@@ -1429,25 +1392,36 @@ __export(__webpack_require__(/*! ./types */ "./src/types.ts"));
|
|
|
1429
1392
|
/*!*************************!*\
|
|
1430
1393
|
!*** ./src/minority.ts ***!
|
|
1431
1394
|
\*************************/
|
|
1432
|
-
|
|
1433
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1395
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1434
1396
|
|
|
1435
|
-
"use strict";
|
|
1436
1397
|
|
|
1437
1398
|
//
|
|
1438
1399
|
// PROTECTS MINORITIES
|
|
1439
1400
|
//
|
|
1401
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1402
|
+
if (k2 === undefined) k2 = k;
|
|
1403
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1404
|
+
}) : (function(o, m, k, k2) {
|
|
1405
|
+
if (k2 === undefined) k2 = k;
|
|
1406
|
+
o[k2] = m[k];
|
|
1407
|
+
}));
|
|
1408
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1409
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1410
|
+
}) : function(o, v) {
|
|
1411
|
+
o["default"] = v;
|
|
1412
|
+
});
|
|
1440
1413
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1441
1414
|
if (mod && mod.__esModule) return mod;
|
|
1442
1415
|
var result = {};
|
|
1443
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1444
|
-
result
|
|
1416
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1417
|
+
__setModuleDefault(result, mod);
|
|
1445
1418
|
return result;
|
|
1446
1419
|
};
|
|
1447
1420
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1448
1421
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1449
1422
|
};
|
|
1450
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1423
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1424
|
+
exports.doAnalyzeRacialPolarization = exports.getVRASection5 = exports.getMajorityMinority = void 0;
|
|
1451
1425
|
const RPV = __importStar(__webpack_require__(/*! @dra2020/racial-voting */ "@dra2020/racial-voting"));
|
|
1452
1426
|
const majority_minority_json_1 = __importDefault(__webpack_require__(/*! ../static/majority-minority.json */ "./static/majority-minority.json"));
|
|
1453
1427
|
const vra5_preclearance_json_1 = __importDefault(__webpack_require__(/*! ../static/vra5-preclearance.json */ "./static/vra5-preclearance.json"));
|
|
@@ -1488,15 +1462,14 @@ exports.doAnalyzeRacialPolarization = doAnalyzeRacialPolarization;
|
|
|
1488
1462
|
/*!**************************!*\
|
|
1489
1463
|
!*** ./src/political.ts ***!
|
|
1490
1464
|
\**************************/
|
|
1491
|
-
|
|
1492
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1465
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1493
1466
|
|
|
1494
|
-
"use strict";
|
|
1495
1467
|
|
|
1496
1468
|
//
|
|
1497
1469
|
// FAIR/PROPORTIONAL
|
|
1498
1470
|
//
|
|
1499
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1471
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1472
|
+
exports.fptpWin = void 0;
|
|
1500
1473
|
function fptpWin(demPct) {
|
|
1501
1474
|
// Vote shares should be fractions in the range [0.0 – 1.0]
|
|
1502
1475
|
//assert((demPct <= 1.0) && (demPct >= 0.0));
|
|
@@ -1511,22 +1484,33 @@ exports.fptpWin = fptpWin;
|
|
|
1511
1484
|
/*!***************************!*\
|
|
1512
1485
|
!*** ./src/preprocess.ts ***!
|
|
1513
1486
|
\***************************/
|
|
1514
|
-
|
|
1515
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1487
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1516
1488
|
|
|
1517
|
-
"use strict";
|
|
1518
1489
|
|
|
1519
1490
|
//
|
|
1520
1491
|
// PREPROCESS DATA
|
|
1521
1492
|
//
|
|
1493
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1494
|
+
if (k2 === undefined) k2 = k;
|
|
1495
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1496
|
+
}) : (function(o, m, k, k2) {
|
|
1497
|
+
if (k2 === undefined) k2 = k;
|
|
1498
|
+
o[k2] = m[k];
|
|
1499
|
+
}));
|
|
1500
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1501
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1502
|
+
}) : function(o, v) {
|
|
1503
|
+
o["default"] = v;
|
|
1504
|
+
});
|
|
1522
1505
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1523
1506
|
if (mod && mod.__esModule) return mod;
|
|
1524
1507
|
var result = {};
|
|
1525
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1526
|
-
result
|
|
1508
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1509
|
+
__setModuleDefault(result, mod);
|
|
1527
1510
|
return result;
|
|
1528
1511
|
};
|
|
1529
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1512
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1513
|
+
exports.doPreprocessData = void 0;
|
|
1530
1514
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1531
1515
|
// NOTE - Do preprocessing separately, so the constructor returns quickly.
|
|
1532
1516
|
function doPreprocessData(s, bLog = false) {
|
|
@@ -1682,22 +1666,33 @@ function doPreprocessCensus(s, bLog = false) {
|
|
|
1682
1666
|
/*!************************!*\
|
|
1683
1667
|
!*** ./src/results.ts ***!
|
|
1684
1668
|
\************************/
|
|
1685
|
-
|
|
1686
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1669
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1687
1670
|
|
|
1688
|
-
"use strict";
|
|
1689
1671
|
|
|
1690
1672
|
//
|
|
1691
1673
|
// TEMPLATES FOR UNFORMATTED ANALYTICS RESULTS
|
|
1692
1674
|
//
|
|
1675
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1676
|
+
if (k2 === undefined) k2 = k;
|
|
1677
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1678
|
+
}) : (function(o, m, k, k2) {
|
|
1679
|
+
if (k2 === undefined) k2 = k;
|
|
1680
|
+
o[k2] = m[k];
|
|
1681
|
+
}));
|
|
1682
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1683
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1684
|
+
}) : function(o, v) {
|
|
1685
|
+
o["default"] = v;
|
|
1686
|
+
});
|
|
1693
1687
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1694
1688
|
if (mod && mod.__esModule) return mod;
|
|
1695
1689
|
var result = {};
|
|
1696
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1697
|
-
result
|
|
1690
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1691
|
+
__setModuleDefault(result, mod);
|
|
1698
1692
|
return result;
|
|
1699
1693
|
};
|
|
1700
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1694
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1695
|
+
exports.doAnalyzePostProcessing = exports.prepareDistrictStatistics = exports.prepareRequirementsChecklist = void 0;
|
|
1701
1696
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1702
1697
|
const analyze_1 = __webpack_require__(/*! ./analyze */ "./src/analyze.ts");
|
|
1703
1698
|
function prepareRequirementsChecklist(s, bLog = false) {
|
|
@@ -1856,22 +1851,33 @@ exports.doAnalyzePostProcessing = doAnalyzePostProcessing;
|
|
|
1856
1851
|
/*!**********************!*\
|
|
1857
1852
|
!*** ./src/score.ts ***!
|
|
1858
1853
|
\**********************/
|
|
1859
|
-
|
|
1860
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1854
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1861
1855
|
|
|
1862
|
-
"use strict";
|
|
1863
1856
|
|
|
1864
1857
|
//
|
|
1865
1858
|
// SCORING
|
|
1866
1859
|
//
|
|
1860
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1861
|
+
if (k2 === undefined) k2 = k;
|
|
1862
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1863
|
+
}) : (function(o, m, k, k2) {
|
|
1864
|
+
if (k2 === undefined) k2 = k;
|
|
1865
|
+
o[k2] = m[k];
|
|
1866
|
+
}));
|
|
1867
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1868
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1869
|
+
}) : function(o, v) {
|
|
1870
|
+
o["default"] = v;
|
|
1871
|
+
});
|
|
1867
1872
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1868
1873
|
if (mod && mod.__esModule) return mod;
|
|
1869
1874
|
var result = {};
|
|
1870
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1871
|
-
result
|
|
1875
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1876
|
+
__setModuleDefault(result, mod);
|
|
1872
1877
|
return result;
|
|
1873
1878
|
};
|
|
1874
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1879
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1880
|
+
exports.scorePlan = exports.getStatewideDemographics = exports.profilePlan = void 0;
|
|
1875
1881
|
const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
|
|
1876
1882
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1877
1883
|
const M = __importStar(__webpack_require__(/*! ./minority */ "./src/minority.ts"));
|
|
@@ -2039,15 +2045,14 @@ exports.scorePlan = scorePlan;
|
|
|
2039
2045
|
/*!*************************!*\
|
|
2040
2046
|
!*** ./src/settings.ts ***!
|
|
2041
2047
|
\*************************/
|
|
2042
|
-
|
|
2043
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2048
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2044
2049
|
|
|
2045
|
-
"use strict";
|
|
2046
2050
|
|
|
2047
2051
|
//
|
|
2048
2052
|
// GLOBAL CONSTANTS
|
|
2049
2053
|
//
|
|
2050
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2054
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2055
|
+
exports.DISTRICT_SPLITTING_WEIGHT = exports.COUNTY_SPLITTING_WEIGHT = exports.EQUAL_TOLERANCE = exports.OUT_OF_STATE = exports.NUMBER_OF_ITEMS_TO_REPORT = exports.NOT_ASSIGNED = exports.NORMALIZED_RANGE = exports.PRECISION = void 0;
|
|
2051
2056
|
// Keep four decimal places for fractions [0–1], i.e.,
|
|
2052
2057
|
// keep two decimal places for %'s [0–100].
|
|
2053
2058
|
exports.PRECISION = 4;
|
|
@@ -2075,17 +2080,16 @@ exports.DISTRICT_SPLITTING_WEIGHT = 1.0 - exports.COUNTY_SPLITTING_WEIGHT;
|
|
|
2075
2080
|
/*!**********************!*\
|
|
2076
2081
|
!*** ./src/types.ts ***!
|
|
2077
2082
|
\**********************/
|
|
2078
|
-
|
|
2079
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2083
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2080
2084
|
|
|
2081
|
-
"use strict";
|
|
2082
2085
|
|
|
2083
2086
|
//
|
|
2084
2087
|
// TYPE DEFINITIONS
|
|
2085
2088
|
//
|
|
2086
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2089
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2090
|
+
exports.estSeatProbability = void 0;
|
|
2087
2091
|
var dra_score_1 = __webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score");
|
|
2088
|
-
exports
|
|
2092
|
+
Object.defineProperty(exports, "estSeatProbability", ({ enumerable: true, get: function () { return dra_score_1.estSeatProbability; } }));
|
|
2089
2093
|
// END
|
|
2090
2094
|
|
|
2091
2095
|
|
|
@@ -2095,22 +2099,33 @@ exports.estSeatProbability = dra_score_1.estSeatProbability;
|
|
|
2095
2099
|
/*!**********************!*\
|
|
2096
2100
|
!*** ./src/utils.ts ***!
|
|
2097
2101
|
\**********************/
|
|
2098
|
-
|
|
2099
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2102
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2100
2103
|
|
|
2101
|
-
"use strict";
|
|
2102
2104
|
|
|
2103
2105
|
//
|
|
2104
2106
|
// UTILITIES
|
|
2105
2107
|
//
|
|
2108
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2109
|
+
if (k2 === undefined) k2 = k;
|
|
2110
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2111
|
+
}) : (function(o, m, k, k2) {
|
|
2112
|
+
if (k2 === undefined) k2 = k;
|
|
2113
|
+
o[k2] = m[k];
|
|
2114
|
+
}));
|
|
2115
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2116
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2117
|
+
}) : function(o, v) {
|
|
2118
|
+
o["default"] = v;
|
|
2119
|
+
});
|
|
2106
2120
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
2107
2121
|
if (mod && mod.__esModule) return mod;
|
|
2108
2122
|
var result = {};
|
|
2109
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
2110
|
-
result
|
|
2123
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2124
|
+
__setModuleDefault(result, mod);
|
|
2111
2125
|
return result;
|
|
2112
2126
|
};
|
|
2113
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2127
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2128
|
+
exports.depthof = exports.deepCopy = exports.shallowCopy = exports.countEnumValues = exports.objectContains = exports.arrayContains = exports.getSelectObjectKeys = exports.getNumericObjectKeys = exports.getObjectKeys = exports.isArrayEmpty = exports.isSetEmpty = exports.isObjectEmpty = exports.keyExists = exports.andArray = exports.initArray = exports.maxArray = exports.minArray = exports.avgArray = exports.sumArray = exports.trim = exports.isUninhabited = exports.isWaterOnly = exports.parseGeoID = exports.getDistrict = exports.isOutOfState = exports.isInState = void 0;
|
|
2114
2129
|
const DT = __importStar(__webpack_require__(/*! @dra2020/dra-types */ "@dra2020/dra-types"));
|
|
2115
2130
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
2116
2131
|
// PLAN HELPERS
|
|
@@ -2329,7 +2344,7 @@ export function mapBooleanToTriState(bool: boolean): T.TriState
|
|
|
2329
2344
|
}
|
|
2330
2345
|
*/
|
|
2331
2346
|
var util_1 = __webpack_require__(/*! @dra2020/util */ "@dra2020/util");
|
|
2332
|
-
exports
|
|
2347
|
+
Object.defineProperty(exports, "depthof", ({ enumerable: true, get: function () { return util_1.depthof; } }));
|
|
2333
2348
|
|
|
2334
2349
|
|
|
2335
2350
|
/***/ }),
|
|
@@ -2338,22 +2353,33 @@ exports.depthof = util_1.depthof;
|
|
|
2338
2353
|
/*!**********************!*\
|
|
2339
2354
|
!*** ./src/valid.ts ***!
|
|
2340
2355
|
\**********************/
|
|
2341
|
-
|
|
2342
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2356
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2343
2357
|
|
|
2344
|
-
"use strict";
|
|
2345
2358
|
|
|
2346
2359
|
//
|
|
2347
2360
|
// MAP/PLAN VALIDATIONS
|
|
2348
2361
|
//
|
|
2362
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2363
|
+
if (k2 === undefined) k2 = k;
|
|
2364
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2365
|
+
}) : (function(o, m, k, k2) {
|
|
2366
|
+
if (k2 === undefined) k2 = k;
|
|
2367
|
+
o[k2] = m[k];
|
|
2368
|
+
}));
|
|
2369
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2370
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2371
|
+
}) : function(o, v) {
|
|
2372
|
+
o["default"] = v;
|
|
2373
|
+
});
|
|
2349
2374
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
2350
2375
|
if (mod && mod.__esModule) return mod;
|
|
2351
2376
|
var result = {};
|
|
2352
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
2353
|
-
result
|
|
2377
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2378
|
+
__setModuleDefault(result, mod);
|
|
2354
2379
|
return result;
|
|
2355
2380
|
};
|
|
2356
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2381
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2382
|
+
exports.doIsFreeOfHoles = exports.doIsContiguous = exports.doIsComplete = void 0;
|
|
2357
2383
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
2358
2384
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
2359
2385
|
//
|
|
@@ -2519,8 +2545,7 @@ exports.doIsFreeOfHoles = doIsFreeOfHoles;
|
|
|
2519
2545
|
/*!***************************************!*\
|
|
2520
2546
|
!*** ./static/majority-minority.json ***!
|
|
2521
2547
|
\***************************************/
|
|
2522
|
-
|
|
2523
|
-
/***/ (function(module) {
|
|
2548
|
+
/***/ ((module) => {
|
|
2524
2549
|
|
|
2525
2550
|
module.exports = JSON.parse("{\"AL\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":[]},\"AK\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"AZ\":{\"Black\":[],\"Hispanic\":[2,4,7],\"Pacific\":[]},\"AR\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"CA\":{\"Black\":[13,37,43],\"Hispanic\":[17,18,20,21,28,31,32,34,35,38,39,43,45,47,51],\"Pacific\":[12,13,14,15,17,18,19,27,34,39,45,47,52]},\"CO\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"CT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"DC\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"DE\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"FL\":{\"Black\":[5,20,24],\"Hispanic\":[18,21,25],\"Pacific\":[]},\"GA\":{\"Black\":[2,4,5,13],\"Hispanic\":[],\"Pacific\":[]},\"HI\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[2]},\"ID\":{\"Black\":[],\"Hispanic\":[1],\"Pacific\":[]},\"IL\":{\"Black\":[1,2,7],\"Hispanic\":[4],\"Pacific\":[]},\"IN\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":[]},\"IA\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"KS\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"KY\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"LA\":{\"Black\":[2],\"Hispanic\":[],\"Pacific\":[]},\"ME\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"MD\":{\"Black\":[4,7],\"Hispanic\":[],\"Pacific\":[]},\"MA\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"MI\":{\"Black\":[13,14],\"Hispanic\":[],\"Pacific\":[]},\"MN\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"MS\":{\"Black\":[2],\"Hispanic\":[],\"Pacific\":[]},\"MO\":{\"Black\":[1,5],\"Hispanic\":[],\"Pacific\":[]},\"MT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NE\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NV\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NH\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NJ\":{\"Black\":[10,12],\"Hispanic\":[13],\"Pacific\":[6]},\"NM\":{\"Black\":[],\"Hispanic\":[2,13],\"Pacific\":[]},\"NY\":{\"Black\":[5,8,9,13],\"Hispanic\":[12,16],\"Pacific\":[6,7,10]},\"NC\":{\"Black\":[1,12],\"Hispanic\":[],\"Pacific\":[]},\"ND\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"OH\":{\"Black\":[3,11],\"Hispanic\":[],\"Pacific\":[]},\"OK\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"OR\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"PA\":{\"Black\":[2],\"Hispanic\":[],\"Pacific\":[]},\"PR\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"RI\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"SC\":{\"Black\":[6],\"Hispanic\":[],\"Pacific\":[]},\"SD\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"TN\":{\"Black\":[9],\"Hispanic\":[],\"Pacific\":[]},\"TX\":{\"Black\":[9,18,33],\"Hispanic\":[15,16,19,20,23,27,28,29,32],\"Pacific\":[]},\"UT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"VT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"VA\":{\"Black\":[3],\"Hispanic\":[],\"Pacific\":[]},\"WA\":{\"Black\":[],\"Hispanic\":[3],\"Pacific\":[9]},\"WV\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"WI\":{\"Black\":[4],\"Hispanic\":[],\"Pacific\":[]},\"WY\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]}}");
|
|
2526
2551
|
|
|
@@ -2530,8 +2555,7 @@ module.exports = JSON.parse("{\"AL\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":
|
|
|
2530
2555
|
/*!***************************************!*\
|
|
2531
2556
|
!*** ./static/vra5-preclearance.json ***!
|
|
2532
2557
|
\***************************************/
|
|
2533
|
-
|
|
2534
|
-
/***/ (function(module) {
|
|
2558
|
+
/***/ ((module) => {
|
|
2535
2559
|
|
|
2536
2560
|
module.exports = JSON.parse("{\"AL\":\"all\",\"AK\":\"all\",\"AZ\":\"all\",\"CA\":\"parts\",\"FL\":\"parts\",\"GA\":\"all\",\"LA\":\"all\",\"MI\":\"parts\",\"MS\":\"all\",\"NY\":\"parts\",\"NC\":\"parts\",\"SC\":\"all\",\"SD\":\"parts\",\"TX\":\"all\",\"VA\":\"all\"}");
|
|
2537
2561
|
|
|
@@ -2541,10 +2565,9 @@ module.exports = JSON.parse("{\"AL\":\"all\",\"AK\":\"all\",\"AZ\":\"all\",\"CA\
|
|
|
2541
2565
|
/*!***************************************!*\
|
|
2542
2566
|
!*** external "@dra2020/compactness" ***!
|
|
2543
2567
|
\***************************************/
|
|
2544
|
-
|
|
2545
|
-
/***/ (function(module, exports) {
|
|
2568
|
+
/***/ ((module) => {
|
|
2546
2569
|
|
|
2547
|
-
module.exports = require("@dra2020/compactness")
|
|
2570
|
+
module.exports = require("@dra2020/compactness");;
|
|
2548
2571
|
|
|
2549
2572
|
/***/ }),
|
|
2550
2573
|
|
|
@@ -2552,10 +2575,9 @@ module.exports = require("@dra2020/compactness");
|
|
|
2552
2575
|
/*!*************************************!*\
|
|
2553
2576
|
!*** external "@dra2020/dra-graph" ***!
|
|
2554
2577
|
\*************************************/
|
|
2555
|
-
|
|
2556
|
-
/***/ (function(module, exports) {
|
|
2578
|
+
/***/ ((module) => {
|
|
2557
2579
|
|
|
2558
|
-
module.exports = require("@dra2020/dra-graph")
|
|
2580
|
+
module.exports = require("@dra2020/dra-graph");;
|
|
2559
2581
|
|
|
2560
2582
|
/***/ }),
|
|
2561
2583
|
|
|
@@ -2563,10 +2585,9 @@ module.exports = require("@dra2020/dra-graph");
|
|
|
2563
2585
|
/*!*************************************!*\
|
|
2564
2586
|
!*** external "@dra2020/dra-score" ***!
|
|
2565
2587
|
\*************************************/
|
|
2566
|
-
|
|
2567
|
-
/***/ (function(module, exports) {
|
|
2588
|
+
/***/ ((module) => {
|
|
2568
2589
|
|
|
2569
|
-
module.exports = require("@dra2020/dra-score")
|
|
2590
|
+
module.exports = require("@dra2020/dra-score");;
|
|
2570
2591
|
|
|
2571
2592
|
/***/ }),
|
|
2572
2593
|
|
|
@@ -2574,10 +2595,9 @@ module.exports = require("@dra2020/dra-score");
|
|
|
2574
2595
|
/*!*************************************!*\
|
|
2575
2596
|
!*** external "@dra2020/dra-types" ***!
|
|
2576
2597
|
\*************************************/
|
|
2577
|
-
|
|
2578
|
-
/***/ (function(module, exports) {
|
|
2598
|
+
/***/ ((module) => {
|
|
2579
2599
|
|
|
2580
|
-
module.exports = require("@dra2020/dra-types")
|
|
2600
|
+
module.exports = require("@dra2020/dra-types");;
|
|
2581
2601
|
|
|
2582
2602
|
/***/ }),
|
|
2583
2603
|
|
|
@@ -2585,10 +2605,9 @@ module.exports = require("@dra2020/dra-types");
|
|
|
2585
2605
|
/*!********************************!*\
|
|
2586
2606
|
!*** external "@dra2020/poly" ***!
|
|
2587
2607
|
\********************************/
|
|
2588
|
-
|
|
2589
|
-
/***/ (function(module, exports) {
|
|
2608
|
+
/***/ ((module) => {
|
|
2590
2609
|
|
|
2591
|
-
module.exports = require("@dra2020/poly")
|
|
2610
|
+
module.exports = require("@dra2020/poly");;
|
|
2592
2611
|
|
|
2593
2612
|
/***/ }),
|
|
2594
2613
|
|
|
@@ -2596,10 +2615,9 @@ module.exports = require("@dra2020/poly");
|
|
|
2596
2615
|
/*!*****************************************!*\
|
|
2597
2616
|
!*** external "@dra2020/racial-voting" ***!
|
|
2598
2617
|
\*****************************************/
|
|
2599
|
-
|
|
2600
|
-
/***/ (function(module, exports) {
|
|
2618
|
+
/***/ ((module) => {
|
|
2601
2619
|
|
|
2602
|
-
module.exports = require("@dra2020/racial-voting")
|
|
2620
|
+
module.exports = require("@dra2020/racial-voting");;
|
|
2603
2621
|
|
|
2604
2622
|
/***/ }),
|
|
2605
2623
|
|
|
@@ -2607,13 +2625,43 @@ module.exports = require("@dra2020/racial-voting");
|
|
|
2607
2625
|
/*!********************************!*\
|
|
2608
2626
|
!*** external "@dra2020/util" ***!
|
|
2609
2627
|
\********************************/
|
|
2610
|
-
|
|
2611
|
-
/***/ (function(module, exports) {
|
|
2628
|
+
/***/ ((module) => {
|
|
2612
2629
|
|
|
2613
|
-
module.exports = require("@dra2020/util")
|
|
2630
|
+
module.exports = require("@dra2020/util");;
|
|
2614
2631
|
|
|
2615
2632
|
/***/ })
|
|
2616
2633
|
|
|
2617
|
-
/******/
|
|
2634
|
+
/******/ });
|
|
2635
|
+
/************************************************************************/
|
|
2636
|
+
/******/ // The module cache
|
|
2637
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2638
|
+
/******/
|
|
2639
|
+
/******/ // The require function
|
|
2640
|
+
/******/ function __webpack_require__(moduleId) {
|
|
2641
|
+
/******/ // Check if module is in cache
|
|
2642
|
+
/******/ if(__webpack_module_cache__[moduleId]) {
|
|
2643
|
+
/******/ return __webpack_module_cache__[moduleId].exports;
|
|
2644
|
+
/******/ }
|
|
2645
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2646
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2647
|
+
/******/ // no module.id needed
|
|
2648
|
+
/******/ // no module.loaded needed
|
|
2649
|
+
/******/ exports: {}
|
|
2650
|
+
/******/ };
|
|
2651
|
+
/******/
|
|
2652
|
+
/******/ // Execute the module function
|
|
2653
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
2654
|
+
/******/
|
|
2655
|
+
/******/ // Return the exports of the module
|
|
2656
|
+
/******/ return module.exports;
|
|
2657
|
+
/******/ }
|
|
2658
|
+
/******/
|
|
2659
|
+
/************************************************************************/
|
|
2660
|
+
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
|
2661
|
+
/******/ // startup
|
|
2662
|
+
/******/ // Load entry module and return exports
|
|
2663
|
+
/******/ return __webpack_require__("./src/index.ts");
|
|
2664
|
+
/******/ })()
|
|
2665
|
+
;
|
|
2618
2666
|
});
|
|
2619
2667
|
//# sourceMappingURL=district-analytics.js.map
|