@vitessce/vega 3.6.0 → 3.6.1
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/index.js +978 -1227
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -260,10 +260,10 @@ function compare$9(fields, orders, opt) {
|
|
|
260
260
|
});
|
|
261
261
|
return get2.length === 0 ? null : accessor(gen(get2, ord), Object.keys(fmap));
|
|
262
262
|
}
|
|
263
|
-
const ascending$
|
|
263
|
+
const ascending$3 = (u2, v) => (u2 < v || u2 == null) && v != null ? -1 : (u2 > v || v == null) && u2 != null ? 1 : (v = v instanceof Date ? +v : v, u2 = u2 instanceof Date ? +u2 : u2) !== u2 && v === v ? -1 : v !== v && u2 === u2 ? 1 : 0;
|
|
264
264
|
const comparator$2 = (fields, orders) => fields.length === 1 ? compare1(fields[0], orders[0]) : compareN(fields, orders, fields.length);
|
|
265
265
|
const compare1 = (field2, order) => function(a2, b2) {
|
|
266
|
-
return ascending$
|
|
266
|
+
return ascending$3(field2(a2), field2(b2)) * order;
|
|
267
267
|
};
|
|
268
268
|
const compareN = (fields, orders, n) => {
|
|
269
269
|
orders.push(0);
|
|
@@ -271,7 +271,7 @@ const compareN = (fields, orders, n) => {
|
|
|
271
271
|
let f, c2 = 0, i = -1;
|
|
272
272
|
while (c2 === 0 && ++i < n) {
|
|
273
273
|
f = fields[i];
|
|
274
|
-
c2 = ascending$
|
|
274
|
+
c2 = ascending$3(f(a2), f(b2));
|
|
275
275
|
}
|
|
276
276
|
return c2 * orders[i];
|
|
277
277
|
};
|
|
@@ -286,7 +286,7 @@ function debounce$1(delay, handler) {
|
|
|
286
286
|
tid = setTimeout(() => (handler(e3), tid = null), delay);
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
function extend$
|
|
289
|
+
function extend$3(_) {
|
|
290
290
|
for (let x2, k, i = 1, len = arguments.length; i < len; ++i) {
|
|
291
291
|
x2 = arguments[i];
|
|
292
292
|
for (k in x2) {
|
|
@@ -461,7 +461,7 @@ function inherits(child, parent, members) {
|
|
|
461
461
|
enumerable: true,
|
|
462
462
|
configurable: true
|
|
463
463
|
});
|
|
464
|
-
return extend$
|
|
464
|
+
return extend$3(proto, members);
|
|
465
465
|
}
|
|
466
466
|
function inrange(value2, range2, left, right) {
|
|
467
467
|
let r0 = range2[0], r1 = range2[range2.length - 1], t4;
|
|
@@ -522,7 +522,7 @@ function lerp(array2, frac) {
|
|
|
522
522
|
return !f ? lo : f === 1 ? hi : lo + f * (hi - lo);
|
|
523
523
|
}
|
|
524
524
|
const DEFAULT_MAX_SIZE = 1e4;
|
|
525
|
-
function lruCache$
|
|
525
|
+
function lruCache$1(maxsize) {
|
|
526
526
|
maxsize = +maxsize || DEFAULT_MAX_SIZE;
|
|
527
527
|
let curr, prev2, size;
|
|
528
528
|
const clear2 = () => {
|
|
@@ -1166,20 +1166,20 @@ function extractArcs(topology, object2, filter2) {
|
|
|
1166
1166
|
});
|
|
1167
1167
|
return arcs;
|
|
1168
1168
|
}
|
|
1169
|
-
function ascending$
|
|
1169
|
+
function ascending$2(a2, b2) {
|
|
1170
1170
|
return a2 == null || b2 == null ? NaN : a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
|
|
1171
1171
|
}
|
|
1172
1172
|
function descending$1(a2, b2) {
|
|
1173
1173
|
return a2 == null || b2 == null ? NaN : b2 < a2 ? -1 : b2 > a2 ? 1 : b2 >= a2 ? 0 : NaN;
|
|
1174
1174
|
}
|
|
1175
|
-
function bisector$
|
|
1175
|
+
function bisector$1(f) {
|
|
1176
1176
|
let compare12, compare2, delta;
|
|
1177
1177
|
if (f.length !== 2) {
|
|
1178
|
-
compare12 = ascending$
|
|
1179
|
-
compare2 = (d, x2) => ascending$
|
|
1178
|
+
compare12 = ascending$2;
|
|
1179
|
+
compare2 = (d, x2) => ascending$2(f(d), x2);
|
|
1180
1180
|
delta = (d, x2) => f(d) - x2;
|
|
1181
1181
|
} else {
|
|
1182
|
-
compare12 = f === ascending$
|
|
1182
|
+
compare12 = f === ascending$2 || f === descending$1 ? f : zero$4;
|
|
1183
1183
|
compare2 = f;
|
|
1184
1184
|
delta = f;
|
|
1185
1185
|
}
|
|
@@ -1214,7 +1214,7 @@ function bisector$2(f) {
|
|
|
1214
1214
|
function zero$4() {
|
|
1215
1215
|
return 0;
|
|
1216
1216
|
}
|
|
1217
|
-
function number$
|
|
1217
|
+
function number$7(x2) {
|
|
1218
1218
|
return x2 === null ? NaN : +x2;
|
|
1219
1219
|
}
|
|
1220
1220
|
function* numbers$2(values2, valueof) {
|
|
@@ -1233,10 +1233,10 @@ function* numbers$2(values2, valueof) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
|
-
const ascendingBisect
|
|
1237
|
-
const bisectRight$
|
|
1238
|
-
const bisectLeft$1 = ascendingBisect
|
|
1239
|
-
bisector$
|
|
1236
|
+
const ascendingBisect = bisector$1(ascending$2);
|
|
1237
|
+
const bisectRight$1 = ascendingBisect.right;
|
|
1238
|
+
const bisectLeft$1 = ascendingBisect.left;
|
|
1239
|
+
bisector$1(number$7).center;
|
|
1240
1240
|
function variance(values2, valueof) {
|
|
1241
1241
|
let count2 = 0;
|
|
1242
1242
|
let delta;
|
|
@@ -1266,33 +1266,90 @@ function deviation(values2, valueof) {
|
|
|
1266
1266
|
const v = variance(values2, valueof);
|
|
1267
1267
|
return v ? Math.sqrt(v) : v;
|
|
1268
1268
|
}
|
|
1269
|
+
class Adder {
|
|
1270
|
+
constructor() {
|
|
1271
|
+
this._partials = new Float64Array(32);
|
|
1272
|
+
this._n = 0;
|
|
1273
|
+
}
|
|
1274
|
+
add(x2) {
|
|
1275
|
+
const p = this._partials;
|
|
1276
|
+
let i = 0;
|
|
1277
|
+
for (let j = 0; j < this._n && j < 32; j++) {
|
|
1278
|
+
const y2 = p[j], hi = x2 + y2, lo = Math.abs(x2) < Math.abs(y2) ? x2 - (hi - y2) : y2 - (hi - x2);
|
|
1279
|
+
if (lo) p[i++] = lo;
|
|
1280
|
+
x2 = hi;
|
|
1281
|
+
}
|
|
1282
|
+
p[i] = x2;
|
|
1283
|
+
this._n = i + 1;
|
|
1284
|
+
return this;
|
|
1285
|
+
}
|
|
1286
|
+
valueOf() {
|
|
1287
|
+
const p = this._partials;
|
|
1288
|
+
let n = this._n, x2, y2, lo, hi = 0;
|
|
1289
|
+
if (n > 0) {
|
|
1290
|
+
hi = p[--n];
|
|
1291
|
+
while (n > 0) {
|
|
1292
|
+
x2 = hi;
|
|
1293
|
+
y2 = p[--n];
|
|
1294
|
+
hi = x2 + y2;
|
|
1295
|
+
lo = y2 - (hi - x2);
|
|
1296
|
+
if (lo) break;
|
|
1297
|
+
}
|
|
1298
|
+
if (n > 0 && (lo < 0 && p[n - 1] < 0 || lo > 0 && p[n - 1] > 0)) {
|
|
1299
|
+
y2 = lo * 2;
|
|
1300
|
+
x2 = hi + y2;
|
|
1301
|
+
if (y2 == x2 - hi) hi = x2;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
return hi;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
class InternMap extends Map {
|
|
1308
|
+
constructor(entries2, key2 = keyof) {
|
|
1309
|
+
super();
|
|
1310
|
+
Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key2 } });
|
|
1311
|
+
if (entries2 != null) for (const [key22, value2] of entries2) this.set(key22, value2);
|
|
1312
|
+
}
|
|
1313
|
+
get(key2) {
|
|
1314
|
+
return super.get(intern_get(this, key2));
|
|
1315
|
+
}
|
|
1316
|
+
has(key2) {
|
|
1317
|
+
return super.has(intern_get(this, key2));
|
|
1318
|
+
}
|
|
1319
|
+
set(key2, value2) {
|
|
1320
|
+
return super.set(intern_set(this, key2), value2);
|
|
1321
|
+
}
|
|
1322
|
+
delete(key2) {
|
|
1323
|
+
return super.delete(intern_delete(this, key2));
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1269
1326
|
class InternSet extends Set {
|
|
1270
|
-
constructor(values2, key2 = keyof
|
|
1327
|
+
constructor(values2, key2 = keyof) {
|
|
1271
1328
|
super();
|
|
1272
1329
|
Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key2 } });
|
|
1273
1330
|
if (values2 != null) for (const value2 of values2) this.add(value2);
|
|
1274
1331
|
}
|
|
1275
1332
|
has(value2) {
|
|
1276
|
-
return super.has(intern_get
|
|
1333
|
+
return super.has(intern_get(this, value2));
|
|
1277
1334
|
}
|
|
1278
1335
|
add(value2) {
|
|
1279
|
-
return super.add(intern_set
|
|
1336
|
+
return super.add(intern_set(this, value2));
|
|
1280
1337
|
}
|
|
1281
1338
|
delete(value2) {
|
|
1282
|
-
return super.delete(intern_delete
|
|
1339
|
+
return super.delete(intern_delete(this, value2));
|
|
1283
1340
|
}
|
|
1284
1341
|
}
|
|
1285
|
-
function intern_get
|
|
1342
|
+
function intern_get({ _intern, _key }, value2) {
|
|
1286
1343
|
const key2 = _key(value2);
|
|
1287
1344
|
return _intern.has(key2) ? _intern.get(key2) : value2;
|
|
1288
1345
|
}
|
|
1289
|
-
function intern_set
|
|
1346
|
+
function intern_set({ _intern, _key }, value2) {
|
|
1290
1347
|
const key2 = _key(value2);
|
|
1291
1348
|
if (_intern.has(key2)) return _intern.get(key2);
|
|
1292
1349
|
_intern.set(key2, value2);
|
|
1293
1350
|
return value2;
|
|
1294
1351
|
}
|
|
1295
|
-
function intern_delete
|
|
1352
|
+
function intern_delete({ _intern, _key }, value2) {
|
|
1296
1353
|
const key2 = _key(value2);
|
|
1297
1354
|
if (_intern.has(key2)) {
|
|
1298
1355
|
value2 = _intern.get(key2);
|
|
@@ -1300,14 +1357,14 @@ function intern_delete$1({ _intern, _key }, value2) {
|
|
|
1300
1357
|
}
|
|
1301
1358
|
return value2;
|
|
1302
1359
|
}
|
|
1303
|
-
function keyof
|
|
1360
|
+
function keyof(value2) {
|
|
1304
1361
|
return value2 !== null && typeof value2 === "object" ? value2.valueOf() : value2;
|
|
1305
1362
|
}
|
|
1306
1363
|
function permute(source2, keys2) {
|
|
1307
1364
|
return Array.from(keys2, (key2) => source2[key2]);
|
|
1308
1365
|
}
|
|
1309
|
-
function compareDefined(compare2 = ascending$
|
|
1310
|
-
if (compare2 === ascending$
|
|
1366
|
+
function compareDefined(compare2 = ascending$2) {
|
|
1367
|
+
if (compare2 === ascending$2) return ascendingDefined;
|
|
1311
1368
|
if (typeof compare2 !== "function") throw new TypeError("compare is not a function");
|
|
1312
1369
|
return (a2, b2) => {
|
|
1313
1370
|
const x2 = compare2(a2, b2);
|
|
@@ -1318,12 +1375,39 @@ function compareDefined(compare2 = ascending$3) {
|
|
|
1318
1375
|
function ascendingDefined(a2, b2) {
|
|
1319
1376
|
return (a2 == null || !(a2 >= a2)) - (b2 == null || !(b2 >= b2)) || (a2 < b2 ? -1 : a2 > b2 ? 1 : 0);
|
|
1320
1377
|
}
|
|
1321
|
-
var e10
|
|
1322
|
-
function
|
|
1378
|
+
var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
|
|
1379
|
+
function ticks(start, stop3, count2) {
|
|
1380
|
+
var reverse2, i = -1, n, ticks2, step;
|
|
1381
|
+
stop3 = +stop3, start = +start, count2 = +count2;
|
|
1382
|
+
if (start === stop3 && count2 > 0) return [start];
|
|
1383
|
+
if (reverse2 = stop3 < start) n = start, start = stop3, stop3 = n;
|
|
1384
|
+
if ((step = tickIncrement(start, stop3, count2)) === 0 || !isFinite(step)) return [];
|
|
1385
|
+
if (step > 0) {
|
|
1386
|
+
let r0 = Math.round(start / step), r1 = Math.round(stop3 / step);
|
|
1387
|
+
if (r0 * step < start) ++r0;
|
|
1388
|
+
if (r1 * step > stop3) --r1;
|
|
1389
|
+
ticks2 = new Array(n = r1 - r0 + 1);
|
|
1390
|
+
while (++i < n) ticks2[i] = (r0 + i) * step;
|
|
1391
|
+
} else {
|
|
1392
|
+
step = -step;
|
|
1393
|
+
let r0 = Math.round(start * step), r1 = Math.round(stop3 * step);
|
|
1394
|
+
if (r0 / step < start) ++r0;
|
|
1395
|
+
if (r1 / step > stop3) --r1;
|
|
1396
|
+
ticks2 = new Array(n = r1 - r0 + 1);
|
|
1397
|
+
while (++i < n) ticks2[i] = (r0 + i) / step;
|
|
1398
|
+
}
|
|
1399
|
+
if (reverse2) ticks2.reverse();
|
|
1400
|
+
return ticks2;
|
|
1401
|
+
}
|
|
1402
|
+
function tickIncrement(start, stop3, count2) {
|
|
1403
|
+
var step = (stop3 - start) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error2 = step / Math.pow(10, power);
|
|
1404
|
+
return power >= 0 ? (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1);
|
|
1405
|
+
}
|
|
1406
|
+
function tickStep(start, stop3, count2) {
|
|
1323
1407
|
var step0 = Math.abs(stop3 - start) / Math.max(0, count2), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error2 = step0 / step1;
|
|
1324
|
-
if (error2 >= e10
|
|
1325
|
-
else if (error2 >= e5
|
|
1326
|
-
else if (error2 >= e2
|
|
1408
|
+
if (error2 >= e10) step1 *= 10;
|
|
1409
|
+
else if (error2 >= e5) step1 *= 5;
|
|
1410
|
+
else if (error2 >= e2) step1 *= 2;
|
|
1327
1411
|
return stop3 < start ? -step1 : step1;
|
|
1328
1412
|
}
|
|
1329
1413
|
function max$2(values2, valueof) {
|
|
@@ -1405,7 +1489,7 @@ function quantile$1(values2, p, valueof) {
|
|
|
1405
1489
|
var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = max$2(quickselect(values2, i0).subarray(0, i0 + 1)), value1 = min$2(values2.subarray(i0 + 1));
|
|
1406
1490
|
return value0 + (value1 - value0) * (i - i0);
|
|
1407
1491
|
}
|
|
1408
|
-
function quantileSorted
|
|
1492
|
+
function quantileSorted(values2, p, valueof = number$7) {
|
|
1409
1493
|
if (!(n = values2.length)) return;
|
|
1410
1494
|
if ((p = +p) <= 0 || n < 2) return +valueof(values2[0], 0, values2);
|
|
1411
1495
|
if (p >= 1) return +valueof(values2[n - 1], n - 1, values2);
|
|
@@ -1434,7 +1518,15 @@ function mean(values2, valueof) {
|
|
|
1434
1518
|
function median(values2, valueof) {
|
|
1435
1519
|
return quantile$1(values2, 0.5, valueof);
|
|
1436
1520
|
}
|
|
1437
|
-
function
|
|
1521
|
+
function* flatten(arrays) {
|
|
1522
|
+
for (const array2 of arrays) {
|
|
1523
|
+
yield* array2;
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
function merge$3(arrays) {
|
|
1527
|
+
return Array.from(flatten(arrays));
|
|
1528
|
+
}
|
|
1529
|
+
function range$6(start, stop3, step) {
|
|
1438
1530
|
start = +start, stop3 = +stop3, step = (n = arguments.length) < 2 ? (stop3 = start, start = 0, 1) : n < 3 ? 1 : +step;
|
|
1439
1531
|
var i = -1, n = Math.max(0, Math.ceil((stop3 - start) / step)) | 0, range2 = new Array(n);
|
|
1440
1532
|
while (++i < n) {
|
|
@@ -1927,189 +2019,6 @@ utcYear.every = function(k) {
|
|
|
1927
2019
|
});
|
|
1928
2020
|
};
|
|
1929
2021
|
utcYear.range;
|
|
1930
|
-
function ascending$2(a2, b2) {
|
|
1931
|
-
return a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
|
|
1932
|
-
}
|
|
1933
|
-
function bisector$1(f) {
|
|
1934
|
-
let delta = f;
|
|
1935
|
-
let compare2 = f;
|
|
1936
|
-
if (f.length === 1) {
|
|
1937
|
-
delta = (d, x2) => f(d) - x2;
|
|
1938
|
-
compare2 = ascendingComparator(f);
|
|
1939
|
-
}
|
|
1940
|
-
function left(a2, x2, lo, hi) {
|
|
1941
|
-
if (lo == null) lo = 0;
|
|
1942
|
-
if (hi == null) hi = a2.length;
|
|
1943
|
-
while (lo < hi) {
|
|
1944
|
-
const mid = lo + hi >>> 1;
|
|
1945
|
-
if (compare2(a2[mid], x2) < 0) lo = mid + 1;
|
|
1946
|
-
else hi = mid;
|
|
1947
|
-
}
|
|
1948
|
-
return lo;
|
|
1949
|
-
}
|
|
1950
|
-
function right(a2, x2, lo, hi) {
|
|
1951
|
-
if (lo == null) lo = 0;
|
|
1952
|
-
if (hi == null) hi = a2.length;
|
|
1953
|
-
while (lo < hi) {
|
|
1954
|
-
const mid = lo + hi >>> 1;
|
|
1955
|
-
if (compare2(a2[mid], x2) > 0) hi = mid;
|
|
1956
|
-
else lo = mid + 1;
|
|
1957
|
-
}
|
|
1958
|
-
return lo;
|
|
1959
|
-
}
|
|
1960
|
-
function center(a2, x2, lo, hi) {
|
|
1961
|
-
if (lo == null) lo = 0;
|
|
1962
|
-
if (hi == null) hi = a2.length;
|
|
1963
|
-
const i = left(a2, x2, lo, hi - 1);
|
|
1964
|
-
return i > lo && delta(a2[i - 1], x2) > -delta(a2[i], x2) ? i - 1 : i;
|
|
1965
|
-
}
|
|
1966
|
-
return { left, center, right };
|
|
1967
|
-
}
|
|
1968
|
-
function ascendingComparator(f) {
|
|
1969
|
-
return (d, x2) => ascending$2(f(d), x2);
|
|
1970
|
-
}
|
|
1971
|
-
function number$7(x2) {
|
|
1972
|
-
return x2 === null ? NaN : +x2;
|
|
1973
|
-
}
|
|
1974
|
-
const ascendingBisect = bisector$1(ascending$2);
|
|
1975
|
-
const bisectRight$1 = ascendingBisect.right;
|
|
1976
|
-
bisector$1(number$7).center;
|
|
1977
|
-
class Adder {
|
|
1978
|
-
constructor() {
|
|
1979
|
-
this._partials = new Float64Array(32);
|
|
1980
|
-
this._n = 0;
|
|
1981
|
-
}
|
|
1982
|
-
add(x2) {
|
|
1983
|
-
const p = this._partials;
|
|
1984
|
-
let i = 0;
|
|
1985
|
-
for (let j = 0; j < this._n && j < 32; j++) {
|
|
1986
|
-
const y2 = p[j], hi = x2 + y2, lo = Math.abs(x2) < Math.abs(y2) ? x2 - (hi - y2) : y2 - (hi - x2);
|
|
1987
|
-
if (lo) p[i++] = lo;
|
|
1988
|
-
x2 = hi;
|
|
1989
|
-
}
|
|
1990
|
-
p[i] = x2;
|
|
1991
|
-
this._n = i + 1;
|
|
1992
|
-
return this;
|
|
1993
|
-
}
|
|
1994
|
-
valueOf() {
|
|
1995
|
-
const p = this._partials;
|
|
1996
|
-
let n = this._n, x2, y2, lo, hi = 0;
|
|
1997
|
-
if (n > 0) {
|
|
1998
|
-
hi = p[--n];
|
|
1999
|
-
while (n > 0) {
|
|
2000
|
-
x2 = hi;
|
|
2001
|
-
y2 = p[--n];
|
|
2002
|
-
hi = x2 + y2;
|
|
2003
|
-
lo = y2 - (hi - x2);
|
|
2004
|
-
if (lo) break;
|
|
2005
|
-
}
|
|
2006
|
-
if (n > 0 && (lo < 0 && p[n - 1] < 0 || lo > 0 && p[n - 1] > 0)) {
|
|
2007
|
-
y2 = lo * 2;
|
|
2008
|
-
x2 = hi + y2;
|
|
2009
|
-
if (y2 == x2 - hi) hi = x2;
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
return hi;
|
|
2013
|
-
}
|
|
2014
|
-
}
|
|
2015
|
-
class InternMap extends Map {
|
|
2016
|
-
constructor(entries2, key2 = keyof) {
|
|
2017
|
-
super();
|
|
2018
|
-
Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: key2 } });
|
|
2019
|
-
if (entries2 != null) for (const [key22, value2] of entries2) this.set(key22, value2);
|
|
2020
|
-
}
|
|
2021
|
-
get(key2) {
|
|
2022
|
-
return super.get(intern_get(this, key2));
|
|
2023
|
-
}
|
|
2024
|
-
has(key2) {
|
|
2025
|
-
return super.has(intern_get(this, key2));
|
|
2026
|
-
}
|
|
2027
|
-
set(key2, value2) {
|
|
2028
|
-
return super.set(intern_set(this, key2), value2);
|
|
2029
|
-
}
|
|
2030
|
-
delete(key2) {
|
|
2031
|
-
return super.delete(intern_delete(this, key2));
|
|
2032
|
-
}
|
|
2033
|
-
}
|
|
2034
|
-
function intern_get({ _intern, _key }, value2) {
|
|
2035
|
-
const key2 = _key(value2);
|
|
2036
|
-
return _intern.has(key2) ? _intern.get(key2) : value2;
|
|
2037
|
-
}
|
|
2038
|
-
function intern_set({ _intern, _key }, value2) {
|
|
2039
|
-
const key2 = _key(value2);
|
|
2040
|
-
if (_intern.has(key2)) return _intern.get(key2);
|
|
2041
|
-
_intern.set(key2, value2);
|
|
2042
|
-
return value2;
|
|
2043
|
-
}
|
|
2044
|
-
function intern_delete({ _intern, _key }, value2) {
|
|
2045
|
-
const key2 = _key(value2);
|
|
2046
|
-
if (_intern.has(key2)) {
|
|
2047
|
-
value2 = _intern.get(value2);
|
|
2048
|
-
_intern.delete(key2);
|
|
2049
|
-
}
|
|
2050
|
-
return value2;
|
|
2051
|
-
}
|
|
2052
|
-
function keyof(value2) {
|
|
2053
|
-
return value2 !== null && typeof value2 === "object" ? value2.valueOf() : value2;
|
|
2054
|
-
}
|
|
2055
|
-
var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
|
|
2056
|
-
function ticks(start, stop3, count2) {
|
|
2057
|
-
var reverse2, i = -1, n, ticks2, step;
|
|
2058
|
-
stop3 = +stop3, start = +start, count2 = +count2;
|
|
2059
|
-
if (start === stop3 && count2 > 0) return [start];
|
|
2060
|
-
if (reverse2 = stop3 < start) n = start, start = stop3, stop3 = n;
|
|
2061
|
-
if ((step = tickIncrement(start, stop3, count2)) === 0 || !isFinite(step)) return [];
|
|
2062
|
-
if (step > 0) {
|
|
2063
|
-
let r0 = Math.round(start / step), r1 = Math.round(stop3 / step);
|
|
2064
|
-
if (r0 * step < start) ++r0;
|
|
2065
|
-
if (r1 * step > stop3) --r1;
|
|
2066
|
-
ticks2 = new Array(n = r1 - r0 + 1);
|
|
2067
|
-
while (++i < n) ticks2[i] = (r0 + i) * step;
|
|
2068
|
-
} else {
|
|
2069
|
-
step = -step;
|
|
2070
|
-
let r0 = Math.round(start * step), r1 = Math.round(stop3 * step);
|
|
2071
|
-
if (r0 / step < start) ++r0;
|
|
2072
|
-
if (r1 / step > stop3) --r1;
|
|
2073
|
-
ticks2 = new Array(n = r1 - r0 + 1);
|
|
2074
|
-
while (++i < n) ticks2[i] = (r0 + i) / step;
|
|
2075
|
-
}
|
|
2076
|
-
if (reverse2) ticks2.reverse();
|
|
2077
|
-
return ticks2;
|
|
2078
|
-
}
|
|
2079
|
-
function tickIncrement(start, stop3, count2) {
|
|
2080
|
-
var step = (stop3 - start) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error2 = step / Math.pow(10, power);
|
|
2081
|
-
return power >= 0 ? (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1);
|
|
2082
|
-
}
|
|
2083
|
-
function tickStep(start, stop3, count2) {
|
|
2084
|
-
var step0 = Math.abs(stop3 - start) / Math.max(0, count2), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error2 = step0 / step1;
|
|
2085
|
-
if (error2 >= e10) step1 *= 10;
|
|
2086
|
-
else if (error2 >= e5) step1 *= 5;
|
|
2087
|
-
else if (error2 >= e2) step1 *= 2;
|
|
2088
|
-
return stop3 < start ? -step1 : step1;
|
|
2089
|
-
}
|
|
2090
|
-
function quantileSorted(values2, p, valueof = number$7) {
|
|
2091
|
-
if (!(n = values2.length)) return;
|
|
2092
|
-
if ((p = +p) <= 0 || n < 2) return +valueof(values2[0], 0, values2);
|
|
2093
|
-
if (p >= 1) return +valueof(values2[n - 1], n - 1, values2);
|
|
2094
|
-
var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values2[i0], i0, values2), value1 = +valueof(values2[i0 + 1], i0 + 1, values2);
|
|
2095
|
-
return value0 + (value1 - value0) * (i - i0);
|
|
2096
|
-
}
|
|
2097
|
-
function* flatten(arrays) {
|
|
2098
|
-
for (const array2 of arrays) {
|
|
2099
|
-
yield* array2;
|
|
2100
|
-
}
|
|
2101
|
-
}
|
|
2102
|
-
function merge$3(arrays) {
|
|
2103
|
-
return Array.from(flatten(arrays));
|
|
2104
|
-
}
|
|
2105
|
-
function range$6(start, stop3, step) {
|
|
2106
|
-
start = +start, stop3 = +stop3, step = (n = arguments.length) < 2 ? (stop3 = start, start = 0, 1) : n < 3 ? 1 : +step;
|
|
2107
|
-
var i = -1, n = Math.max(0, Math.ceil((stop3 - start) / step)) | 0, range2 = new Array(n);
|
|
2108
|
-
while (++i < n) {
|
|
2109
|
-
range2[i] = start + i * step;
|
|
2110
|
-
}
|
|
2111
|
-
return range2;
|
|
2112
|
-
}
|
|
2113
2022
|
function ticker(year2, month2, week2, day2, hour2, minute2) {
|
|
2114
2023
|
const tickIntervals = [
|
|
2115
2024
|
[second, 1, durationSecond$1],
|
|
@@ -2197,7 +2106,7 @@ const defaultSpecifiers = {
|
|
|
2197
2106
|
["".concat(HOURS, "-").concat(MINUTES)]: "%H:%M"
|
|
2198
2107
|
};
|
|
2199
2108
|
function timeUnitSpecifier(units, specifiers) {
|
|
2200
|
-
const s = extend$
|
|
2109
|
+
const s = extend$3({}, defaultSpecifiers, specifiers), u2 = timeUnits(units), n = u2.length;
|
|
2201
2110
|
let fmt = "", start = 0, end, key2;
|
|
2202
2111
|
for (start = 0; start < n; ) {
|
|
2203
2112
|
for (end = u2.length; end > start; --end) {
|
|
@@ -2384,16 +2293,16 @@ const Milli = [YEAR, MONTH, DATE, HOURS, MINUTES, SECONDS, MILLISECONDS], Second
|
|
|
2384
2293
|
const intervals = [[Seconds, 1, durationSecond], [Seconds, 5, 5 * durationSecond], [Seconds, 15, 15 * durationSecond], [Seconds, 30, 30 * durationSecond], [Minutes, 1, durationMinute], [Minutes, 5, 5 * durationMinute], [Minutes, 15, 15 * durationMinute], [Minutes, 30, 30 * durationMinute], [Hours, 1, durationHour], [Hours, 3, 3 * durationHour], [Hours, 6, 6 * durationHour], [Hours, 12, 12 * durationHour], [Day, 1, durationDay], [Week, 1, durationWeek], [Month, 1, durationMonth], [Month, 3, 3 * durationMonth], [Year, 1, durationYear]];
|
|
2385
2294
|
function bin$1(opt) {
|
|
2386
2295
|
const ext = opt.extent, max2 = opt.maxbins || 40, target2 = Math.abs(span(ext)) / max2;
|
|
2387
|
-
let i = bisector$
|
|
2296
|
+
let i = bisector$1((i2) => i2[2]).right(intervals, target2), units, step;
|
|
2388
2297
|
if (i === intervals.length) {
|
|
2389
|
-
units = Year, step = tickStep
|
|
2298
|
+
units = Year, step = tickStep(ext[0] / durationYear, ext[1] / durationYear, max2);
|
|
2390
2299
|
} else if (i) {
|
|
2391
2300
|
i = intervals[target2 / intervals[i - 1][2] < intervals[i][2] / target2 ? i - 1 : i];
|
|
2392
2301
|
units = i[0];
|
|
2393
2302
|
step = i[1];
|
|
2394
2303
|
} else {
|
|
2395
2304
|
units = Milli;
|
|
2396
|
-
step = Math.max(tickStep
|
|
2305
|
+
step = Math.max(tickStep(ext[0], ext[1], max2), 1);
|
|
2397
2306
|
}
|
|
2398
2307
|
return {
|
|
2399
2308
|
units,
|
|
@@ -3013,7 +2922,7 @@ function numberLocale(locale2) {
|
|
|
3013
2922
|
},
|
|
3014
2923
|
formatSpan(start, stop3, count2, specifier) {
|
|
3015
2924
|
specifier = formatSpecifier(specifier == null ? ",f" : specifier);
|
|
3016
|
-
const step = tickStep
|
|
2925
|
+
const step = tickStep(start, stop3, count2), value2 = Math.max(Math.abs(start), Math.abs(stop3));
|
|
3017
2926
|
let precision;
|
|
3018
2927
|
if (specifier.precision == null) {
|
|
3019
2928
|
switch (specifier.type) {
|
|
@@ -3093,7 +3002,7 @@ function timeFormatLocale(definition2) {
|
|
|
3093
3002
|
function timeFormatDefaultLocale(definition2) {
|
|
3094
3003
|
return arguments.length ? defaultTimeLocale = timeFormatLocale(definition2) : defaultTimeLocale;
|
|
3095
3004
|
}
|
|
3096
|
-
const createLocale = (number2, time2) => extend$
|
|
3005
|
+
const createLocale = (number2, time2) => extend$3({}, number2, time2);
|
|
3097
3006
|
function locale(numberSpec, timeSpec) {
|
|
3098
3007
|
const number2 = numberSpec ? numberFormatLocale(numberSpec) : numberFormatDefaultLocale();
|
|
3099
3008
|
const time2 = timeSpec ? timeFormatLocale(timeSpec) : timeFormatDefaultLocale();
|
|
@@ -3130,7 +3039,7 @@ async function load$1(uri, options) {
|
|
|
3130
3039
|
return opt.localFile ? this.file(url) : this.http(url, options);
|
|
3131
3040
|
}
|
|
3132
3041
|
async function sanitize(uri, options) {
|
|
3133
|
-
options = extend$
|
|
3042
|
+
options = extend$3({}, this.options, options);
|
|
3134
3043
|
const fileAccess = this.fileAccess, result = {
|
|
3135
3044
|
href: null
|
|
3136
3045
|
};
|
|
@@ -3185,7 +3094,7 @@ async function fileReject() {
|
|
|
3185
3094
|
}
|
|
3186
3095
|
function httpLoader(fetch2) {
|
|
3187
3096
|
return fetch2 ? async function(url, options) {
|
|
3188
|
-
const opt = extend$
|
|
3097
|
+
const opt = extend$3({}, this.options.http, options), type2 = options && options.response, response = await fetch2(url, opt);
|
|
3189
3098
|
return !response.ok ? error(response.status + "" + response.statusText) : isFunction$3(response[type2]) ? response[type2]() : response.text();
|
|
3190
3099
|
} : httpReject;
|
|
3191
3100
|
}
|
|
@@ -3233,7 +3142,7 @@ function delimitedFormat(delimiter2) {
|
|
|
3233
3142
|
const delim = {
|
|
3234
3143
|
delimiter: delimiter2
|
|
3235
3144
|
};
|
|
3236
|
-
return dsv(data2, format2 ? extend$
|
|
3145
|
+
return dsv(data2, format2 ? extend$3(format2, delim) : delim);
|
|
3237
3146
|
};
|
|
3238
3147
|
parse2.responseType = "text";
|
|
3239
3148
|
return parse2;
|
|
@@ -3999,7 +3908,7 @@ function on(source2, target2, update2, params2, options) {
|
|
|
3999
3908
|
return this;
|
|
4000
3909
|
}
|
|
4001
3910
|
function onStream(df, stream2, target2, update2, params2, options) {
|
|
4002
|
-
const opt = extend$
|
|
3911
|
+
const opt = extend$3({}, options, SKIP$2);
|
|
4003
3912
|
let func, op;
|
|
4004
3913
|
if (!isFunction$3(target2)) target2 = constant$5(target2);
|
|
4005
3914
|
if (update2 === void 0) {
|
|
@@ -4881,8 +4790,8 @@ function* numbers$1(values2, valueof) {
|
|
|
4881
4790
|
}
|
|
4882
4791
|
function quantiles(array2, p, f) {
|
|
4883
4792
|
const values2 = Float64Array.from(numbers$1(array2, f));
|
|
4884
|
-
values2.sort(ascending$
|
|
4885
|
-
return p.map((_) => quantileSorted
|
|
4793
|
+
values2.sort(ascending$2);
|
|
4794
|
+
return p.map((_) => quantileSorted(values2, _));
|
|
4886
4795
|
}
|
|
4887
4796
|
function quartiles(array2, f) {
|
|
4888
4797
|
return quantiles(array2, [0.25, 0.5, 0.75], f);
|
|
@@ -4940,7 +4849,7 @@ function bootstrapCI(array2, samples, alpha2, f) {
|
|
|
4940
4849
|
}
|
|
4941
4850
|
mu[j] = a2 / n;
|
|
4942
4851
|
}
|
|
4943
|
-
mu.sort(ascending$
|
|
4852
|
+
mu.sort(ascending$2);
|
|
4944
4853
|
return [quantile$1(mu, alpha2 / 2), quantile$1(mu, 1 - alpha2 / 2)];
|
|
4945
4854
|
}
|
|
4946
4855
|
function dotbin(array2, step, smooth, f) {
|
|
@@ -5908,7 +5817,7 @@ const AggregateOps = {
|
|
|
5908
5817
|
};
|
|
5909
5818
|
const ValidAggregateOps = Object.keys(AggregateOps);
|
|
5910
5819
|
function measure(key2, value2) {
|
|
5911
|
-
return (out) => extend$
|
|
5820
|
+
return (out) => extend$3({
|
|
5912
5821
|
name: key2,
|
|
5913
5822
|
out: out || key2
|
|
5914
5823
|
}, base_op, value2);
|
|
@@ -7447,7 +7356,7 @@ inherits(JoinAggregate, Aggregate$1, {
|
|
|
7447
7356
|
}
|
|
7448
7357
|
aggr.changes();
|
|
7449
7358
|
pulse2.visit(pulse2.SOURCE, (t4) => {
|
|
7450
|
-
extend$
|
|
7359
|
+
extend$3(t4, cells[aggr.cellkey(t4)].tuple);
|
|
7451
7360
|
});
|
|
7452
7361
|
return pulse2.reflow(mod).modifies(this._outputs);
|
|
7453
7362
|
},
|
|
@@ -7775,7 +7684,7 @@ function pivotKeys(key2, limit, pulse2) {
|
|
|
7775
7684
|
list.push(k);
|
|
7776
7685
|
}
|
|
7777
7686
|
});
|
|
7778
|
-
list.sort(ascending$
|
|
7687
|
+
list.sort(ascending$3);
|
|
7779
7688
|
return limit ? list.slice(0, limit) : list;
|
|
7780
7689
|
}
|
|
7781
7690
|
function PreFacet$1(params2) {
|
|
@@ -7913,7 +7822,7 @@ inherits(Quantile$1, Transform, {
|
|
|
7913
7822
|
out.source = this.value;
|
|
7914
7823
|
return out;
|
|
7915
7824
|
}
|
|
7916
|
-
const source2 = pulse2.materialize(pulse2.SOURCE).source, groups = partition$1$1(source2, _.groupby, _.field), names = (_.groupby || []).map(accessorName), values2 = [], step = _.step || 0.01, p = _.probs || range$
|
|
7825
|
+
const source2 = pulse2.materialize(pulse2.SOURCE).source, groups = partition$1$1(source2, _.groupby, _.field), names = (_.groupby || []).map(accessorName), values2 = [], step = _.step || 0.01, p = _.probs || range$6(step / 2, 1 - EPSILON$2, step), n = p.length;
|
|
7917
7826
|
groups.forEach((g) => {
|
|
7918
7827
|
const q = quantiles(g, p);
|
|
7919
7828
|
for (let i = 0; i < n; ++i) {
|
|
@@ -8072,7 +7981,7 @@ inherits(Sequence, Transform, {
|
|
|
8072
7981
|
if (this.value && !_.modified()) return;
|
|
8073
7982
|
const out = pulse2.materialize().fork(pulse2.MOD), as = _.as || "data";
|
|
8074
7983
|
out.rem = this.value ? pulse2.rem.concat(this.value) : pulse2.rem;
|
|
8075
|
-
this.value = range$
|
|
7984
|
+
this.value = range$6(_.start, _.stop, _.step || 1).map((v) => {
|
|
8076
7985
|
const t4 = {};
|
|
8077
7986
|
t4[as] = v;
|
|
8078
7987
|
return ingest$1(t4);
|
|
@@ -8532,7 +8441,7 @@ inherits(Window, Transform, {
|
|
|
8532
8441
|
}
|
|
8533
8442
|
});
|
|
8534
8443
|
function processPartition(list, state, cmp2, _) {
|
|
8535
|
-
const sort2 = _.sort, range2 = sort2 && !_.ignorePeers, frame2 = _.frame || [null, 0], data2 = list.data(cmp2), n = data2.length, b2 = range2 ? bisector$
|
|
8444
|
+
const sort2 = _.sort, range2 = sort2 && !_.ignorePeers, frame2 = _.frame || [null, 0], data2 = list.data(cmp2), n = data2.length, b2 = range2 ? bisector$1(sort2) : null, w2 = {
|
|
8536
8445
|
i0: 0,
|
|
8537
8446
|
i1: 0,
|
|
8538
8447
|
p0: 0,
|
|
@@ -9923,21 +9832,21 @@ function ordinal() {
|
|
|
9923
9832
|
initRange.apply(scale2, arguments);
|
|
9924
9833
|
return scale2;
|
|
9925
9834
|
}
|
|
9926
|
-
function define$
|
|
9835
|
+
function define$2(constructor, factory, prototype2) {
|
|
9927
9836
|
constructor.prototype = factory.prototype = prototype2;
|
|
9928
9837
|
prototype2.constructor = constructor;
|
|
9929
9838
|
}
|
|
9930
|
-
function extend$
|
|
9839
|
+
function extend$2(parent, definition2) {
|
|
9931
9840
|
var prototype2 = Object.create(parent.prototype);
|
|
9932
9841
|
for (var key2 in definition2) prototype2[key2] = definition2[key2];
|
|
9933
9842
|
return prototype2;
|
|
9934
9843
|
}
|
|
9935
|
-
function Color$
|
|
9844
|
+
function Color$2() {
|
|
9936
9845
|
}
|
|
9937
|
-
var darker$
|
|
9938
|
-
var brighter$
|
|
9939
|
-
var reI$
|
|
9940
|
-
var named$
|
|
9846
|
+
var darker$2 = 0.7;
|
|
9847
|
+
var brighter$2 = 1 / darker$2;
|
|
9848
|
+
var reI$2 = "\\s*([+-]?\\d+)\\s*", reN$2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP$2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex$2 = /^#([0-9a-f]{3,8})$/, reRgbInteger$2 = new RegExp(`^rgb\\(${reI$2},${reI$2},${reI$2}\\)$`), reRgbPercent$2 = new RegExp(`^rgb\\(${reP$2},${reP$2},${reP$2}\\)$`), reRgbaInteger$2 = new RegExp(`^rgba\\(${reI$2},${reI$2},${reI$2},${reN$2}\\)$`), reRgbaPercent$2 = new RegExp(`^rgba\\(${reP$2},${reP$2},${reP$2},${reN$2}\\)$`), reHslPercent$2 = new RegExp(`^hsl\\(${reN$2},${reP$2},${reP$2}\\)$`), reHslaPercent$2 = new RegExp(`^hsla\\(${reN$2},${reP$2},${reP$2},${reN$2}\\)$`);
|
|
9849
|
+
var named$2 = {
|
|
9941
9850
|
aliceblue: 15792383,
|
|
9942
9851
|
antiquewhite: 16444375,
|
|
9943
9852
|
aqua: 65535,
|
|
@@ -10087,92 +9996,92 @@ var named$1 = {
|
|
|
10087
9996
|
yellow: 16776960,
|
|
10088
9997
|
yellowgreen: 10145074
|
|
10089
9998
|
};
|
|
10090
|
-
define$
|
|
9999
|
+
define$2(Color$2, color$6, {
|
|
10091
10000
|
copy(channels) {
|
|
10092
10001
|
return Object.assign(new this.constructor(), this, channels);
|
|
10093
10002
|
},
|
|
10094
10003
|
displayable() {
|
|
10095
10004
|
return this.rgb().displayable();
|
|
10096
10005
|
},
|
|
10097
|
-
hex: color_formatHex$
|
|
10006
|
+
hex: color_formatHex$2,
|
|
10098
10007
|
// Deprecated! Use color.formatHex.
|
|
10099
|
-
formatHex: color_formatHex$
|
|
10008
|
+
formatHex: color_formatHex$2,
|
|
10100
10009
|
formatHex8: color_formatHex8,
|
|
10101
|
-
formatHsl: color_formatHsl$
|
|
10102
|
-
formatRgb: color_formatRgb$
|
|
10103
|
-
toString: color_formatRgb$
|
|
10010
|
+
formatHsl: color_formatHsl$2,
|
|
10011
|
+
formatRgb: color_formatRgb$2,
|
|
10012
|
+
toString: color_formatRgb$2
|
|
10104
10013
|
});
|
|
10105
|
-
function color_formatHex$
|
|
10014
|
+
function color_formatHex$2() {
|
|
10106
10015
|
return this.rgb().formatHex();
|
|
10107
10016
|
}
|
|
10108
10017
|
function color_formatHex8() {
|
|
10109
10018
|
return this.rgb().formatHex8();
|
|
10110
10019
|
}
|
|
10111
|
-
function color_formatHsl$
|
|
10112
|
-
return hslConvert$
|
|
10020
|
+
function color_formatHsl$2() {
|
|
10021
|
+
return hslConvert$2(this).formatHsl();
|
|
10113
10022
|
}
|
|
10114
|
-
function color_formatRgb$
|
|
10023
|
+
function color_formatRgb$2() {
|
|
10115
10024
|
return this.rgb().formatRgb();
|
|
10116
10025
|
}
|
|
10117
|
-
function color$
|
|
10026
|
+
function color$6(format2) {
|
|
10118
10027
|
var m2, l;
|
|
10119
10028
|
format2 = (format2 + "").trim().toLowerCase();
|
|
10120
|
-
return (m2 = reHex$
|
|
10029
|
+
return (m2 = reHex$2.exec(format2)) ? (l = m2[1].length, m2 = parseInt(m2[1], 16), l === 6 ? rgbn$2(m2) : l === 3 ? new Rgb$2(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l === 8 ? rgba$2(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l === 4 ? rgba$2(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger$2.exec(format2)) ? new Rgb$2(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent$2.exec(format2)) ? new Rgb$2(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger$2.exec(format2)) ? rgba$2(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent$2.exec(format2)) ? rgba$2(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent$2.exec(format2)) ? hsla$2(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent$2.exec(format2)) ? hsla$2(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named$2.hasOwnProperty(format2) ? rgbn$2(named$2[format2]) : format2 === "transparent" ? new Rgb$2(NaN, NaN, NaN, 0) : null;
|
|
10121
10030
|
}
|
|
10122
|
-
function rgbn$
|
|
10123
|
-
return new Rgb$
|
|
10031
|
+
function rgbn$2(n) {
|
|
10032
|
+
return new Rgb$2(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
10124
10033
|
}
|
|
10125
|
-
function rgba$
|
|
10034
|
+
function rgba$2(r2, g, b2, a2) {
|
|
10126
10035
|
if (a2 <= 0) r2 = g = b2 = NaN;
|
|
10127
|
-
return new Rgb$
|
|
10036
|
+
return new Rgb$2(r2, g, b2, a2);
|
|
10128
10037
|
}
|
|
10129
|
-
function rgbConvert$
|
|
10130
|
-
if (!(o instanceof Color$
|
|
10131
|
-
if (!o) return new Rgb$
|
|
10038
|
+
function rgbConvert$2(o) {
|
|
10039
|
+
if (!(o instanceof Color$2)) o = color$6(o);
|
|
10040
|
+
if (!o) return new Rgb$2();
|
|
10132
10041
|
o = o.rgb();
|
|
10133
|
-
return new Rgb$
|
|
10042
|
+
return new Rgb$2(o.r, o.g, o.b, o.opacity);
|
|
10134
10043
|
}
|
|
10135
|
-
function rgb$
|
|
10136
|
-
return arguments.length === 1 ? rgbConvert$
|
|
10044
|
+
function rgb$3(r2, g, b2, opacity2) {
|
|
10045
|
+
return arguments.length === 1 ? rgbConvert$2(r2) : new Rgb$2(r2, g, b2, opacity2 == null ? 1 : opacity2);
|
|
10137
10046
|
}
|
|
10138
|
-
function Rgb$
|
|
10047
|
+
function Rgb$2(r2, g, b2, opacity2) {
|
|
10139
10048
|
this.r = +r2;
|
|
10140
10049
|
this.g = +g;
|
|
10141
10050
|
this.b = +b2;
|
|
10142
10051
|
this.opacity = +opacity2;
|
|
10143
10052
|
}
|
|
10144
|
-
define$
|
|
10053
|
+
define$2(Rgb$2, rgb$3, extend$2(Color$2, {
|
|
10145
10054
|
brighter(k) {
|
|
10146
|
-
k = k == null ? brighter$
|
|
10147
|
-
return new Rgb$
|
|
10055
|
+
k = k == null ? brighter$2 : Math.pow(brighter$2, k);
|
|
10056
|
+
return new Rgb$2(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
10148
10057
|
},
|
|
10149
10058
|
darker(k) {
|
|
10150
|
-
k = k == null ? darker$
|
|
10151
|
-
return new Rgb$
|
|
10059
|
+
k = k == null ? darker$2 : Math.pow(darker$2, k);
|
|
10060
|
+
return new Rgb$2(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
10152
10061
|
},
|
|
10153
10062
|
rgb() {
|
|
10154
10063
|
return this;
|
|
10155
10064
|
},
|
|
10156
10065
|
clamp() {
|
|
10157
|
-
return new Rgb$
|
|
10066
|
+
return new Rgb$2(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
10158
10067
|
},
|
|
10159
10068
|
displayable() {
|
|
10160
10069
|
return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
|
|
10161
10070
|
},
|
|
10162
|
-
hex: rgb_formatHex$
|
|
10071
|
+
hex: rgb_formatHex$2,
|
|
10163
10072
|
// Deprecated! Use color.formatHex.
|
|
10164
|
-
formatHex: rgb_formatHex$
|
|
10073
|
+
formatHex: rgb_formatHex$2,
|
|
10165
10074
|
formatHex8: rgb_formatHex8,
|
|
10166
|
-
formatRgb: rgb_formatRgb$
|
|
10167
|
-
toString: rgb_formatRgb$
|
|
10075
|
+
formatRgb: rgb_formatRgb$2,
|
|
10076
|
+
toString: rgb_formatRgb$2
|
|
10168
10077
|
}));
|
|
10169
|
-
function rgb_formatHex$
|
|
10170
|
-
return `#${hex$
|
|
10078
|
+
function rgb_formatHex$2() {
|
|
10079
|
+
return `#${hex$2(this.r)}${hex$2(this.g)}${hex$2(this.b)}`;
|
|
10171
10080
|
}
|
|
10172
10081
|
function rgb_formatHex8() {
|
|
10173
|
-
return `#${hex$
|
|
10082
|
+
return `#${hex$2(this.r)}${hex$2(this.g)}${hex$2(this.b)}${hex$2((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
10174
10083
|
}
|
|
10175
|
-
function rgb_formatRgb$
|
|
10084
|
+
function rgb_formatRgb$2() {
|
|
10176
10085
|
const a2 = clampa(this.opacity);
|
|
10177
10086
|
return `${a2 === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a2 === 1 ? ")" : `, ${a2})`}`;
|
|
10178
10087
|
}
|
|
@@ -10182,21 +10091,21 @@ function clampa(opacity2) {
|
|
|
10182
10091
|
function clampi(value2) {
|
|
10183
10092
|
return Math.max(0, Math.min(255, Math.round(value2) || 0));
|
|
10184
10093
|
}
|
|
10185
|
-
function hex$
|
|
10094
|
+
function hex$2(value2) {
|
|
10186
10095
|
value2 = clampi(value2);
|
|
10187
10096
|
return (value2 < 16 ? "0" : "") + value2.toString(16);
|
|
10188
10097
|
}
|
|
10189
|
-
function hsla$
|
|
10098
|
+
function hsla$2(h2, s, l, a2) {
|
|
10190
10099
|
if (a2 <= 0) h2 = s = l = NaN;
|
|
10191
10100
|
else if (l <= 0 || l >= 1) h2 = s = NaN;
|
|
10192
10101
|
else if (s <= 0) h2 = NaN;
|
|
10193
|
-
return new Hsl$
|
|
10102
|
+
return new Hsl$2(h2, s, l, a2);
|
|
10194
10103
|
}
|
|
10195
|
-
function hslConvert$
|
|
10196
|
-
if (o instanceof Hsl$
|
|
10197
|
-
if (!(o instanceof Color$
|
|
10198
|
-
if (!o) return new Hsl$
|
|
10199
|
-
if (o instanceof Hsl$
|
|
10104
|
+
function hslConvert$2(o) {
|
|
10105
|
+
if (o instanceof Hsl$2) return new Hsl$2(o.h, o.s, o.l, o.opacity);
|
|
10106
|
+
if (!(o instanceof Color$2)) o = color$6(o);
|
|
10107
|
+
if (!o) return new Hsl$2();
|
|
10108
|
+
if (o instanceof Hsl$2) return o;
|
|
10200
10109
|
o = o.rgb();
|
|
10201
10110
|
var r2 = o.r / 255, g = o.g / 255, b2 = o.b / 255, min2 = Math.min(r2, g, b2), max2 = Math.max(r2, g, b2), h2 = NaN, s = max2 - min2, l = (max2 + min2) / 2;
|
|
10202
10111
|
if (s) {
|
|
@@ -10208,37 +10117,37 @@ function hslConvert$1(o) {
|
|
|
10208
10117
|
} else {
|
|
10209
10118
|
s = l > 0 && l < 1 ? 0 : h2;
|
|
10210
10119
|
}
|
|
10211
|
-
return new Hsl$
|
|
10120
|
+
return new Hsl$2(h2, s, l, o.opacity);
|
|
10212
10121
|
}
|
|
10213
|
-
function hsl$
|
|
10214
|
-
return arguments.length === 1 ? hslConvert$
|
|
10122
|
+
function hsl$4(h2, s, l, opacity2) {
|
|
10123
|
+
return arguments.length === 1 ? hslConvert$2(h2) : new Hsl$2(h2, s, l, opacity2 == null ? 1 : opacity2);
|
|
10215
10124
|
}
|
|
10216
|
-
function Hsl$
|
|
10125
|
+
function Hsl$2(h2, s, l, opacity2) {
|
|
10217
10126
|
this.h = +h2;
|
|
10218
10127
|
this.s = +s;
|
|
10219
10128
|
this.l = +l;
|
|
10220
10129
|
this.opacity = +opacity2;
|
|
10221
10130
|
}
|
|
10222
|
-
define$
|
|
10131
|
+
define$2(Hsl$2, hsl$4, extend$2(Color$2, {
|
|
10223
10132
|
brighter(k) {
|
|
10224
|
-
k = k == null ? brighter$
|
|
10225
|
-
return new Hsl$
|
|
10133
|
+
k = k == null ? brighter$2 : Math.pow(brighter$2, k);
|
|
10134
|
+
return new Hsl$2(this.h, this.s, this.l * k, this.opacity);
|
|
10226
10135
|
},
|
|
10227
10136
|
darker(k) {
|
|
10228
|
-
k = k == null ? darker$
|
|
10229
|
-
return new Hsl$
|
|
10137
|
+
k = k == null ? darker$2 : Math.pow(darker$2, k);
|
|
10138
|
+
return new Hsl$2(this.h, this.s, this.l * k, this.opacity);
|
|
10230
10139
|
},
|
|
10231
10140
|
rgb() {
|
|
10232
10141
|
var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
|
|
10233
|
-
return new Rgb$
|
|
10234
|
-
hsl2rgb$
|
|
10235
|
-
hsl2rgb$
|
|
10236
|
-
hsl2rgb$
|
|
10142
|
+
return new Rgb$2(
|
|
10143
|
+
hsl2rgb$2(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m2),
|
|
10144
|
+
hsl2rgb$2(h2, m1, m2),
|
|
10145
|
+
hsl2rgb$2(h2 < 120 ? h2 + 240 : h2 - 120, m1, m2),
|
|
10237
10146
|
this.opacity
|
|
10238
10147
|
);
|
|
10239
10148
|
},
|
|
10240
10149
|
clamp() {
|
|
10241
|
-
return new Hsl$
|
|
10150
|
+
return new Hsl$2(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
10242
10151
|
},
|
|
10243
10152
|
displayable() {
|
|
10244
10153
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
|
|
@@ -10255,7 +10164,7 @@ function clamph(value2) {
|
|
|
10255
10164
|
function clampt(value2) {
|
|
10256
10165
|
return Math.max(0, Math.min(1, value2 || 0));
|
|
10257
10166
|
}
|
|
10258
|
-
function hsl2rgb$
|
|
10167
|
+
function hsl2rgb$2(h2, m1, m2) {
|
|
10259
10168
|
return (h2 < 60 ? m1 + (m2 - m1) * h2 / 60 : h2 < 180 ? m2 : h2 < 240 ? m1 + (m2 - m1) * (240 - h2) / 60 : m1) * 255;
|
|
10260
10169
|
}
|
|
10261
10170
|
const radians$1 = Math.PI / 180;
|
|
@@ -10264,7 +10173,7 @@ const K = 18, Xn = 0.96422, Yn = 1, Zn = 0.82521, t0 = 4 / 29, t1 = 6 / 29, t2 =
|
|
|
10264
10173
|
function labConvert(o) {
|
|
10265
10174
|
if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
|
|
10266
10175
|
if (o instanceof Hcl) return hcl2lab(o);
|
|
10267
|
-
if (!(o instanceof Rgb$
|
|
10176
|
+
if (!(o instanceof Rgb$2)) o = rgbConvert$2(o);
|
|
10268
10177
|
var r2 = rgb2lrgb(o.r), g = rgb2lrgb(o.g), b2 = rgb2lrgb(o.b), y2 = xyz2lab((0.2225045 * r2 + 0.7168786 * g + 0.0606169 * b2) / Yn), x2, z2;
|
|
10269
10178
|
if (r2 === g && g === b2) x2 = z2 = y2;
|
|
10270
10179
|
else {
|
|
@@ -10282,7 +10191,7 @@ function Lab(l, a2, b2, opacity2) {
|
|
|
10282
10191
|
this.b = +b2;
|
|
10283
10192
|
this.opacity = +opacity2;
|
|
10284
10193
|
}
|
|
10285
|
-
define$
|
|
10194
|
+
define$2(Lab, lab$1, extend$2(Color$2, {
|
|
10286
10195
|
brighter(k) {
|
|
10287
10196
|
return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
10288
10197
|
},
|
|
@@ -10294,7 +10203,7 @@ define$1(Lab, lab$1, extend$1(Color$1, {
|
|
|
10294
10203
|
x2 = Xn * lab2xyz(x2);
|
|
10295
10204
|
y2 = Yn * lab2xyz(y2);
|
|
10296
10205
|
z2 = Zn * lab2xyz(z2);
|
|
10297
|
-
return new Rgb$
|
|
10206
|
+
return new Rgb$2(
|
|
10298
10207
|
lrgb2rgb(3.1338561 * x2 - 1.6168667 * y2 - 0.4906146 * z2),
|
|
10299
10208
|
lrgb2rgb(-0.9787684 * x2 + 1.9161415 * y2 + 0.033454 * z2),
|
|
10300
10209
|
lrgb2rgb(0.0719453 * x2 - 0.2289914 * y2 + 1.4052427 * z2),
|
|
@@ -10335,7 +10244,7 @@ function hcl2lab(o) {
|
|
|
10335
10244
|
var h2 = o.h * radians$1;
|
|
10336
10245
|
return new Lab(o.l, Math.cos(h2) * o.c, Math.sin(h2) * o.c, o.opacity);
|
|
10337
10246
|
}
|
|
10338
|
-
define$
|
|
10247
|
+
define$2(Hcl, hcl$2, extend$2(Color$2, {
|
|
10339
10248
|
brighter(k) {
|
|
10340
10249
|
return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
|
|
10341
10250
|
},
|
|
@@ -10349,7 +10258,7 @@ define$1(Hcl, hcl$2, extend$1(Color$1, {
|
|
|
10349
10258
|
var A = -0.14861, B$1 = 1.78277, C$1 = -0.29227, D$1 = -0.90649, E = 1.97294, ED = E * D$1, EB = E * B$1, BC_DA = B$1 * C$1 - D$1 * A;
|
|
10350
10259
|
function cubehelixConvert(o) {
|
|
10351
10260
|
if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
|
|
10352
|
-
if (!(o instanceof Rgb$
|
|
10261
|
+
if (!(o instanceof Rgb$2)) o = rgbConvert$2(o);
|
|
10353
10262
|
var r2 = o.r / 255, g = o.g / 255, b2 = o.b / 255, l = (BC_DA * b2 + ED * r2 - EB * g) / (BC_DA + ED - EB), bl2 = b2 - l, k = (E * (g - l) - C$1 * bl2) / D$1, s = Math.sqrt(k * k + bl2 * bl2) / (E * l * (1 - l)), h2 = s ? Math.atan2(k, bl2) * degrees$2 - 120 : NaN;
|
|
10354
10263
|
return new Cubehelix(h2 < 0 ? h2 + 360 : h2, s, l, o.opacity);
|
|
10355
10264
|
}
|
|
@@ -10362,18 +10271,18 @@ function Cubehelix(h2, s, l, opacity2) {
|
|
|
10362
10271
|
this.l = +l;
|
|
10363
10272
|
this.opacity = +opacity2;
|
|
10364
10273
|
}
|
|
10365
|
-
define$
|
|
10274
|
+
define$2(Cubehelix, cubehelix$2, extend$2(Color$2, {
|
|
10366
10275
|
brighter(k) {
|
|
10367
|
-
k = k == null ? brighter$
|
|
10276
|
+
k = k == null ? brighter$2 : Math.pow(brighter$2, k);
|
|
10368
10277
|
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
10369
10278
|
},
|
|
10370
10279
|
darker(k) {
|
|
10371
|
-
k = k == null ? darker$
|
|
10280
|
+
k = k == null ? darker$2 : Math.pow(darker$2, k);
|
|
10372
10281
|
return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
|
|
10373
10282
|
},
|
|
10374
10283
|
rgb() {
|
|
10375
10284
|
var h2 = isNaN(this.h) ? 0 : (this.h + 120) * radians$1, l = +this.l, a2 = isNaN(this.s) ? 0 : this.s * l * (1 - l), cosh2 = Math.cos(h2), sinh2 = Math.sin(h2);
|
|
10376
|
-
return new Rgb$
|
|
10285
|
+
return new Rgb$2(
|
|
10377
10286
|
255 * (l + a2 * (A * cosh2 + B$1 * sinh2)),
|
|
10378
10287
|
255 * (l + a2 * (C$1 * cosh2 + D$1 * sinh2)),
|
|
10379
10288
|
255 * (l + a2 * (E * cosh2)),
|
|
@@ -10423,10 +10332,10 @@ function nogamma$1(a2, b2) {
|
|
|
10423
10332
|
var d = b2 - a2;
|
|
10424
10333
|
return d ? linear$2(a2, d) : constant$3(isNaN(a2) ? b2 : a2);
|
|
10425
10334
|
}
|
|
10426
|
-
const rgb$
|
|
10335
|
+
const rgb$2 = function rgbGamma(y2) {
|
|
10427
10336
|
var color2 = gamma$1(y2);
|
|
10428
10337
|
function rgb2(start, end) {
|
|
10429
|
-
var r2 = color2((start = rgb$
|
|
10338
|
+
var r2 = color2((start = rgb$3(start)).r, (end = rgb$3(end)).r), g = color2(start.g, end.g), b2 = color2(start.b, end.b), opacity2 = nogamma$1(start.opacity, end.opacity);
|
|
10430
10339
|
return function(t4) {
|
|
10431
10340
|
start.r = r2(t4);
|
|
10432
10341
|
start.g = g(t4);
|
|
@@ -10442,7 +10351,7 @@ function rgbSpline$1(spline) {
|
|
|
10442
10351
|
return function(colors2) {
|
|
10443
10352
|
var n = colors2.length, r2 = new Array(n), g = new Array(n), b2 = new Array(n), i, color2;
|
|
10444
10353
|
for (i = 0; i < n; ++i) {
|
|
10445
|
-
color2 = rgb$
|
|
10354
|
+
color2 = rgb$3(colors2[i]);
|
|
10446
10355
|
r2[i] = color2.r || 0;
|
|
10447
10356
|
g[i] = color2.g || 0;
|
|
10448
10357
|
b2[i] = color2.b || 0;
|
|
@@ -10552,7 +10461,7 @@ function string$1(a2, b2) {
|
|
|
10552
10461
|
}
|
|
10553
10462
|
function interpolate$1$1(a2, b2) {
|
|
10554
10463
|
var t4 = typeof b2, c2;
|
|
10555
|
-
return b2 == null || t4 === "boolean" ? constant$3(b2) : (t4 === "number" ? interpolateNumber : t4 === "string" ? (c2 = color$
|
|
10464
|
+
return b2 == null || t4 === "boolean" ? constant$3(b2) : (t4 === "number" ? interpolateNumber : t4 === "string" ? (c2 = color$6(b2)) ? (b2 = c2, rgb$2) : string$1 : b2 instanceof color$6 ? rgb$2 : b2 instanceof Date ? date$2 : isNumberArray$1(b2) ? numberArray$1 : Array.isArray(b2) ? genericArray$1 : typeof b2.valueOf !== "function" && typeof b2.toString !== "function" || isNaN(b2) ? object$1 : interpolateNumber)(a2, b2);
|
|
10556
10465
|
}
|
|
10557
10466
|
function discrete$1(range2) {
|
|
10558
10467
|
var n = range2.length;
|
|
@@ -10705,9 +10614,9 @@ const zoom$1 = function zoomRho(rho, rho2, rho4) {
|
|
|
10705
10614
|
};
|
|
10706
10615
|
return zoom2;
|
|
10707
10616
|
}(Math.SQRT2, 2, 4);
|
|
10708
|
-
function hsl$
|
|
10617
|
+
function hsl$2(hue2) {
|
|
10709
10618
|
return function(start, end) {
|
|
10710
|
-
var h2 = hue2((start = hsl$
|
|
10619
|
+
var h2 = hue2((start = hsl$4(start)).h, (end = hsl$4(end)).h), s = nogamma$1(start.s, end.s), l = nogamma$1(start.l, end.l), opacity2 = nogamma$1(start.opacity, end.opacity);
|
|
10711
10620
|
return function(t4) {
|
|
10712
10621
|
start.h = h2(t4);
|
|
10713
10622
|
start.s = s(t4);
|
|
@@ -10717,8 +10626,8 @@ function hsl$1(hue2) {
|
|
|
10717
10626
|
};
|
|
10718
10627
|
};
|
|
10719
10628
|
}
|
|
10720
|
-
const hsl$
|
|
10721
|
-
var hslLong = hsl$
|
|
10629
|
+
const hsl$3 = hsl$2(hue$1);
|
|
10630
|
+
var hslLong = hsl$2(nogamma$1);
|
|
10722
10631
|
function lab(start, end) {
|
|
10723
10632
|
var l = nogamma$1((start = lab$1(start)).l, (end = lab$1(end)).l), a2 = nogamma$1(start.a, end.a), b2 = nogamma$1(start.b, end.b), opacity2 = nogamma$1(start.opacity, end.opacity);
|
|
10724
10633
|
return function(t4) {
|
|
@@ -10788,14 +10697,14 @@ const $$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
10788
10697
|
interpolateDiscrete: discrete$1,
|
|
10789
10698
|
interpolateHcl: hcl$1,
|
|
10790
10699
|
interpolateHclLong: hclLong,
|
|
10791
|
-
interpolateHsl: hsl$
|
|
10700
|
+
interpolateHsl: hsl$3,
|
|
10792
10701
|
interpolateHslLong: hslLong,
|
|
10793
10702
|
interpolateHue: hue,
|
|
10794
10703
|
interpolateLab: lab,
|
|
10795
10704
|
interpolateNumber,
|
|
10796
10705
|
interpolateNumberArray: numberArray$1,
|
|
10797
10706
|
interpolateObject: object$1,
|
|
10798
|
-
interpolateRgb: rgb$
|
|
10707
|
+
interpolateRgb: rgb$2,
|
|
10799
10708
|
interpolateRgbBasis: rgbBasis,
|
|
10800
10709
|
interpolateRgbBasisClosed: rgbBasisClosed,
|
|
10801
10710
|
interpolateRound,
|
|
@@ -11506,7 +11415,7 @@ function band() {
|
|
|
11506
11415
|
start = Math.round(start);
|
|
11507
11416
|
bandwidth2 = Math.round(bandwidth2);
|
|
11508
11417
|
}
|
|
11509
|
-
const values2 = range$
|
|
11418
|
+
const values2 = range$6(n).map((i) => start + step * i);
|
|
11510
11419
|
return ordinalRange(reverse2 ? values2.reverse() : values2);
|
|
11511
11420
|
}
|
|
11512
11421
|
scale2.domain = function(_) {
|
|
@@ -11588,8 +11497,8 @@ function band() {
|
|
|
11588
11497
|
hi = t4;
|
|
11589
11498
|
}
|
|
11590
11499
|
if (hi < values2[0] || lo > range$12[1 - reverse2]) return;
|
|
11591
|
-
a2 = Math.max(0, bisectRight$
|
|
11592
|
-
b2 = lo === hi ? a2 : bisectRight$
|
|
11500
|
+
a2 = Math.max(0, bisectRight$1(values2, lo) - 1);
|
|
11501
|
+
b2 = lo === hi ? a2 : bisectRight$1(values2, hi) - 1;
|
|
11593
11502
|
if (lo - values2[a2] > bandwidth2 + 1e-10) ++a2;
|
|
11594
11503
|
if (reverse2) {
|
|
11595
11504
|
t4 = a2;
|
|
@@ -11627,7 +11536,7 @@ const slice$3 = Array.prototype.slice;
|
|
|
11627
11536
|
function scaleBinOrdinal() {
|
|
11628
11537
|
let domain2 = [], range2 = [];
|
|
11629
11538
|
function scale2(x2) {
|
|
11630
|
-
return x2 == null || x2 !== x2 ? void 0 : range2[(bisectRight$
|
|
11539
|
+
return x2 == null || x2 !== x2 ? void 0 : range2[(bisectRight$1(domain2, x2) - 1) % range2.length];
|
|
11631
11540
|
}
|
|
11632
11541
|
scale2.domain = function(_) {
|
|
11633
11542
|
if (arguments.length) {
|
|
@@ -13288,14 +13197,14 @@ function gradient$2(context2, spec, bounds2) {
|
|
|
13288
13197
|
}
|
|
13289
13198
|
return addStops(gradient2, spec.stops);
|
|
13290
13199
|
}
|
|
13291
|
-
function color$
|
|
13200
|
+
function color$5(context2, item, value2) {
|
|
13292
13201
|
return isGradient(value2) ? gradient$2(context2, value2, item.bounds) : value2;
|
|
13293
13202
|
}
|
|
13294
13203
|
function fill(context2, item, opacity2) {
|
|
13295
13204
|
opacity2 *= item.fillOpacity == null ? 1 : item.fillOpacity;
|
|
13296
13205
|
if (opacity2 > 0) {
|
|
13297
13206
|
context2.globalAlpha = opacity2;
|
|
13298
|
-
context2.fillStyle = color$
|
|
13207
|
+
context2.fillStyle = color$5(context2, item, item.fill);
|
|
13299
13208
|
return true;
|
|
13300
13209
|
} else {
|
|
13301
13210
|
return false;
|
|
@@ -13308,7 +13217,7 @@ function stroke(context2, item, opacity2) {
|
|
|
13308
13217
|
opacity2 *= item.strokeOpacity == null ? 1 : item.strokeOpacity;
|
|
13309
13218
|
if (opacity2 > 0) {
|
|
13310
13219
|
context2.globalAlpha = opacity2;
|
|
13311
|
-
context2.strokeStyle = color$
|
|
13220
|
+
context2.strokeStyle = color$5(context2, item, item.stroke);
|
|
13312
13221
|
context2.lineWidth = lw;
|
|
13313
13222
|
context2.lineCap = item.strokeCap || "butt";
|
|
13314
13223
|
context2.lineJoin = item.strokeJoin || "miter";
|
|
@@ -13891,7 +13800,7 @@ var rule$2 = {
|
|
|
13891
13800
|
};
|
|
13892
13801
|
var shape$2 = markItemPath("shape", shape$1);
|
|
13893
13802
|
var symbol = markItemPath("symbol", symbol$1, intersectPoint);
|
|
13894
|
-
const widthCache = lruCache$
|
|
13803
|
+
const widthCache = lruCache$1();
|
|
13895
13804
|
var textMetrics = {
|
|
13896
13805
|
height: fontSize,
|
|
13897
13806
|
measureWidth,
|
|
@@ -15695,7 +15604,7 @@ inherits(SVGStringRenderer, Renderer, {
|
|
|
15695
15604
|
*/
|
|
15696
15605
|
_render(scene) {
|
|
15697
15606
|
const m2 = markup();
|
|
15698
|
-
m2.open("svg", extend$
|
|
15607
|
+
m2.open("svg", extend$3({}, metadata, {
|
|
15699
15608
|
class: "marks",
|
|
15700
15609
|
width: this._width * this._scale,
|
|
15701
15610
|
height: this._height * this._scale,
|
|
@@ -17350,7 +17259,7 @@ Pie.Definition = {
|
|
|
17350
17259
|
};
|
|
17351
17260
|
inherits(Pie, Transform, {
|
|
17352
17261
|
transform(_, pulse2) {
|
|
17353
|
-
var as = _.as || ["startAngle", "endAngle"], startAngle = as[0], endAngle = as[1], field2 = _.field || one$3, start = _.startAngle || 0, stop3 = _.endAngle != null ? _.endAngle : 2 * Math.PI, data2 = pulse2.source, values2 = data2.map(field2), n = values2.length, a2 = start, k = (stop3 - start) / sum$1(values2), index2 = range$
|
|
17262
|
+
var as = _.as || ["startAngle", "endAngle"], startAngle = as[0], endAngle = as[1], field2 = _.field || one$3, start = _.startAngle || 0, stop3 = _.endAngle != null ? _.endAngle : 2 * Math.PI, data2 = pulse2.source, values2 = data2.map(field2), n = values2.length, a2 = start, k = (stop3 - start) / sum$1(values2), index2 = range$6(n), i, t4, v;
|
|
17354
17263
|
if (_.sort) {
|
|
17355
17264
|
index2.sort((a3, b2) => values2[a3] - values2[b2]);
|
|
17356
17265
|
}
|
|
@@ -17468,7 +17377,7 @@ function configureBins(scale2, _, count2) {
|
|
|
17468
17377
|
if (!step) error("Scale bins parameter missing step property.");
|
|
17469
17378
|
if (start < lo) start = step * Math.ceil(lo / step);
|
|
17470
17379
|
if (stop3 > hi) stop3 = step * Math.floor(hi / step);
|
|
17471
|
-
bins2 = range$
|
|
17380
|
+
bins2 = range$6(start, stop3 + step / 2, step);
|
|
17472
17381
|
}
|
|
17473
17382
|
if (bins2) {
|
|
17474
17383
|
scale2.bins = bins2;
|
|
@@ -19986,8 +19895,8 @@ function within(p, q, r2) {
|
|
|
19986
19895
|
}
|
|
19987
19896
|
function quantize(k, nice2, zero2) {
|
|
19988
19897
|
return function(values2) {
|
|
19989
|
-
var ex = extent(values2), start = zero2 ? Math.min(ex[0], 0) : ex[0], stop3 = ex[1], span2 = stop3 - start, step = nice2 ? tickStep
|
|
19990
|
-
return range$
|
|
19898
|
+
var ex = extent(values2), start = zero2 ? Math.min(ex[0], 0) : ex[0], stop3 = ex[1], span2 = stop3 - start, step = nice2 ? tickStep(start, stop3, k) : span2 / (k + 1);
|
|
19899
|
+
return range$6(start + step, stop3, step);
|
|
19991
19900
|
};
|
|
19992
19901
|
}
|
|
19993
19902
|
function Isocontour(params2) {
|
|
@@ -20684,7 +20593,7 @@ inherits(Heatmap, Transform, {
|
|
|
20684
20593
|
};
|
|
20685
20594
|
source2.forEach((t4) => {
|
|
20686
20595
|
const v = field2(t4);
|
|
20687
|
-
const o = extend$
|
|
20596
|
+
const o = extend$3({}, t4, obj);
|
|
20688
20597
|
if (!shared) o.$max = max$2(v.values || []);
|
|
20689
20598
|
t4[as] = toCanvas(v, o, color2.dep ? color2 : constant$5(color2(o)), opacity2.dep ? opacity2 : constant$5(opacity2(o)));
|
|
20690
20599
|
});
|
|
@@ -20694,10 +20603,10 @@ inherits(Heatmap, Transform, {
|
|
|
20694
20603
|
function color_(color2, _) {
|
|
20695
20604
|
let f;
|
|
20696
20605
|
if (isFunction$3(color2)) {
|
|
20697
|
-
f = (obj) => rgb$
|
|
20606
|
+
f = (obj) => rgb$3(color2(obj, _));
|
|
20698
20607
|
f.dep = dependency(color2);
|
|
20699
20608
|
} else {
|
|
20700
|
-
f = constant$5(rgb$
|
|
20609
|
+
f = constant$5(rgb$3(color2 || "#888"));
|
|
20701
20610
|
}
|
|
20702
20611
|
return f;
|
|
20703
20612
|
}
|
|
@@ -25927,7 +25836,7 @@ function SortedIndex() {
|
|
|
25927
25836
|
array2 = value2;
|
|
25928
25837
|
n = size;
|
|
25929
25838
|
}
|
|
25930
|
-
return [bisectLeft$1(array2, range2[0], 0, n), bisectRight$
|
|
25839
|
+
return [bisectLeft$1(array2, range2[0], 0, n), bisectRight$1(array2, range2[1], 0, n)];
|
|
25931
25840
|
}
|
|
25932
25841
|
return {
|
|
25933
25842
|
insert: insert2,
|
|
@@ -27711,7 +27620,7 @@ function selectionIdTest(name, datum2, op) {
|
|
|
27711
27620
|
return true;
|
|
27712
27621
|
}
|
|
27713
27622
|
function selectionTuples(array2, base2) {
|
|
27714
|
-
return array2.map((x2) => extend$
|
|
27623
|
+
return array2.map((x2) => extend$3(base2.fields ? {
|
|
27715
27624
|
values: base2.fields.map((f) => (f.getter || (f.getter = field$1(f.field)))(x2.datum))
|
|
27716
27625
|
} : {
|
|
27717
27626
|
[SelectionId]: $selectionId(x2.datum)
|
|
@@ -27979,7 +27888,7 @@ function channel_luminance_value(channelValue) {
|
|
|
27979
27888
|
return Math.pow((val + 0.055) / 1.055, 2.4);
|
|
27980
27889
|
}
|
|
27981
27890
|
function luminance(color2) {
|
|
27982
|
-
const c2 = rgb$
|
|
27891
|
+
const c2 = rgb$3(color2), r2 = channel_luminance_value(c2.r), g = channel_luminance_value(c2.g), b2 = channel_luminance_value(c2.b);
|
|
27983
27892
|
return 0.2126 * r2 + 0.7152 * g + 0.0722 * b2;
|
|
27984
27893
|
}
|
|
27985
27894
|
function contrast(color1, color2) {
|
|
@@ -27989,7 +27898,7 @@ function contrast(color1, color2) {
|
|
|
27989
27898
|
function merge$1() {
|
|
27990
27899
|
const args = [].slice.call(arguments);
|
|
27991
27900
|
args.unshift({});
|
|
27992
|
-
return extend$
|
|
27901
|
+
return extend$3(...args);
|
|
27993
27902
|
}
|
|
27994
27903
|
function equal$1(a2, b2) {
|
|
27995
27904
|
return a2 === b2 || a2 !== a2 && b2 !== b2 ? true : isArray$1(a2) ? isArray$1(b2) && a2.length === b2.length ? equalArray(a2, b2) : false : isObject$1(a2) && isObject$1(b2) ? equalObject(a2, b2) : false;
|
|
@@ -28286,13 +28195,13 @@ const functionContext = {
|
|
|
28286
28195
|
span,
|
|
28287
28196
|
inrange,
|
|
28288
28197
|
truncate: truncate$1,
|
|
28289
|
-
rgb: rgb$
|
|
28198
|
+
rgb: rgb$3,
|
|
28290
28199
|
lab: lab$1,
|
|
28291
28200
|
hcl: hcl$2,
|
|
28292
|
-
hsl: hsl$
|
|
28201
|
+
hsl: hsl$4,
|
|
28293
28202
|
luminance,
|
|
28294
28203
|
contrast,
|
|
28295
|
-
sequence: range$
|
|
28204
|
+
sequence: range$6,
|
|
28296
28205
|
format,
|
|
28297
28206
|
utcFormat,
|
|
28298
28207
|
utcParse,
|
|
@@ -28362,7 +28271,7 @@ function buildFunctions(codegen2) {
|
|
|
28362
28271
|
for (const name in functionContext) {
|
|
28363
28272
|
fn[name] = thisPrefix + name;
|
|
28364
28273
|
}
|
|
28365
|
-
extend$
|
|
28274
|
+
extend$3(fn, internalScaleFunctions(codegen2, functionContext, astVisitors));
|
|
28366
28275
|
return fn;
|
|
28367
28276
|
}
|
|
28368
28277
|
function expressionFunction(name, fn, visitor) {
|
|
@@ -28415,7 +28324,7 @@ function parser(expr2, scope) {
|
|
|
28415
28324
|
}
|
|
28416
28325
|
});
|
|
28417
28326
|
return {
|
|
28418
|
-
$expr: extend$
|
|
28327
|
+
$expr: extend$3({
|
|
28419
28328
|
code: gen.code
|
|
28420
28329
|
}, scope.options.ast ? {
|
|
28421
28330
|
ast
|
|
@@ -29035,7 +28944,7 @@ const VIEW$1 = "view", TIMER = "timer", WINDOW = "window", NO_TRAP = {
|
|
|
29035
28944
|
trap: false
|
|
29036
28945
|
};
|
|
29037
28946
|
function initializeEventConfig(config) {
|
|
29038
|
-
const events2 = extend$
|
|
28947
|
+
const events2 = extend$3({
|
|
29039
28948
|
defaults: {}
|
|
29040
28949
|
}, config);
|
|
29041
28950
|
const unpack = (obj, keys2) => {
|
|
@@ -29302,7 +29211,7 @@ function radio(bind2, el, param2, value2) {
|
|
|
29302
29211
|
}
|
|
29303
29212
|
function range$3(bind2, el, param2, value2) {
|
|
29304
29213
|
value2 = value2 !== void 0 ? value2 : (+param2.max + +param2.min) / 2;
|
|
29305
|
-
const max2 = param2.max != null ? param2.max : Math.max(100, +value2) || 100, min2 = param2.min || Math.min(0, max2, +value2) || 0, step = param2.step || tickStep
|
|
29214
|
+
const max2 = param2.max != null ? param2.max : Math.max(100, +value2) || 100, min2 = param2.min || Math.min(0, max2, +value2) || 0, step = param2.step || tickStep(min2, max2, 100);
|
|
29306
29215
|
const node2 = element("input", {
|
|
29307
29216
|
type: "range",
|
|
29308
29217
|
name: param2.signal,
|
|
@@ -29575,7 +29484,7 @@ function View$1(spec, options) {
|
|
|
29575
29484
|
if (options.logger) view.logger(options.logger);
|
|
29576
29485
|
if (options.logLevel != null) view.logLevel(options.logLevel);
|
|
29577
29486
|
if (options.locale || spec.locale) {
|
|
29578
|
-
const loc = extend$
|
|
29487
|
+
const loc = extend$3({}, spec.locale, options.locale);
|
|
29579
29488
|
view.locale(locale(loc.number, loc.time));
|
|
29580
29489
|
}
|
|
29581
29490
|
view._el = null;
|
|
@@ -29598,7 +29507,7 @@ function View$1(spec, options) {
|
|
|
29598
29507
|
view._signals = ctx.signals;
|
|
29599
29508
|
view._bind = (spec.bindings || []).map((_) => ({
|
|
29600
29509
|
state: null,
|
|
29601
|
-
param: extend$
|
|
29510
|
+
param: extend$3({}, _)
|
|
29602
29511
|
}));
|
|
29603
29512
|
if (ctx.root) ctx.root.set(root2);
|
|
29604
29513
|
root2.source = ctx.data.root.input;
|
|
@@ -29998,7 +29907,7 @@ function parsePadding(spec) {
|
|
|
29998
29907
|
right: number$1(spec.right)
|
|
29999
29908
|
};
|
|
30000
29909
|
}
|
|
30001
|
-
const encoder = (_) => isObject$1(_) && !isArray$1(_) ? extend$
|
|
29910
|
+
const encoder = (_) => isObject$1(_) && !isArray$1(_) ? extend$3({}, _) : {
|
|
30002
29911
|
value: _
|
|
30003
29912
|
};
|
|
30004
29913
|
function addEncode(object2, name, value2, set2) {
|
|
@@ -30027,7 +29936,7 @@ function addEncoders(object2, enter, update2) {
|
|
|
30027
29936
|
function extendEncode(encode2, extra, skip) {
|
|
30028
29937
|
for (const name in extra) {
|
|
30029
29938
|
if (skip && has$2(skip, name)) continue;
|
|
30030
|
-
encode2[name] = extend$
|
|
29939
|
+
encode2[name] = extend$3(encode2[name] || {}, extra[name]);
|
|
30031
29940
|
}
|
|
30032
29941
|
return encode2;
|
|
30033
29942
|
}
|
|
@@ -30063,7 +29972,7 @@ function applyDefaults(encode2, type2, role, style2, config) {
|
|
|
30063
29972
|
if (role == "legend" || String(role).startsWith("axis")) {
|
|
30064
29973
|
role = null;
|
|
30065
29974
|
}
|
|
30066
|
-
props = role === FrameRole ? config.group : role === MarkRole ? extend$
|
|
29975
|
+
props = role === FrameRole ? config.group : role === MarkRole ? extend$3({}, config.mark, config[type2]) : null;
|
|
30067
29976
|
for (key2 in props) {
|
|
30068
29977
|
skip = has$1(key2, encode2) || (key2 === "fill" || key2 === "stroke") && (has$1("fill", encode2) || has$1("stroke", encode2));
|
|
30069
29978
|
if (!skip) applyDefault(defaults2, key2, props[key2]);
|
|
@@ -30076,7 +29985,7 @@ function applyDefaults(encode2, type2, role, style2, config) {
|
|
|
30076
29985
|
}
|
|
30077
29986
|
}
|
|
30078
29987
|
});
|
|
30079
|
-
encode2 = extend$
|
|
29988
|
+
encode2 = extend$3({}, encode2);
|
|
30080
29989
|
for (key2 in defaults2) {
|
|
30081
29990
|
props = defaults2[key2];
|
|
30082
29991
|
if (props.signal) {
|
|
@@ -30085,8 +29994,8 @@ function applyDefaults(encode2, type2, role, style2, config) {
|
|
|
30085
29994
|
enter[key2] = props;
|
|
30086
29995
|
}
|
|
30087
29996
|
}
|
|
30088
|
-
encode2.enter = extend$
|
|
30089
|
-
if (update2) encode2.update = extend$
|
|
29997
|
+
encode2.enter = extend$3(enter, encode2.enter);
|
|
29998
|
+
if (update2) encode2.update = extend$3(update2, encode2.update);
|
|
30090
29999
|
return encode2;
|
|
30091
30000
|
}
|
|
30092
30001
|
function applyDefault(defaults2, key2, value2) {
|
|
@@ -30101,7 +30010,7 @@ function entry$1(enc) {
|
|
|
30101
30010
|
if (enc.gradient != null) {
|
|
30102
30011
|
return gradient$1(enc);
|
|
30103
30012
|
}
|
|
30104
|
-
let value2 = enc.signal ? `(${enc.signal})` : enc.color ? color$
|
|
30013
|
+
let value2 = enc.signal ? `(${enc.signal})` : enc.color ? color$4(enc.color) : enc.field != null ? field(enc.field) : enc.value !== void 0 ? $(enc.value) : void 0;
|
|
30105
30014
|
if (enc.scale != null) {
|
|
30106
30015
|
value2 = scale(enc, value2);
|
|
30107
30016
|
}
|
|
@@ -30123,7 +30032,7 @@ function entry$1(enc) {
|
|
|
30123
30032
|
return value2;
|
|
30124
30033
|
}
|
|
30125
30034
|
const _color = (type2, x2, y2, z2) => `(${type2}(${[x2, y2, z2].map(entry$1).join(",")})+'')`;
|
|
30126
|
-
function color$
|
|
30035
|
+
function color$4(enc) {
|
|
30127
30036
|
return enc.c ? _color("hcl", enc.h, enc.c, enc.l) : enc.h || enc.s ? _color("hsl", enc.h, enc.s, enc.l) : enc.l || enc.a ? _color("lab", enc.l, enc.a, enc.b) : enc.r || enc.g || enc.b ? _color("rgb", enc.r, enc.g, enc.b) : null;
|
|
30128
30037
|
}
|
|
30129
30038
|
function gradient$1(enc) {
|
|
@@ -30229,7 +30138,7 @@ function expr(enc) {
|
|
|
30229
30138
|
function parse$1(code, scope, params2, fields) {
|
|
30230
30139
|
const expr2 = parser(code, scope);
|
|
30231
30140
|
expr2.$fields.forEach((name) => fields[name] = 1);
|
|
30232
|
-
extend$
|
|
30141
|
+
extend$3(params2, expr2.$params);
|
|
30233
30142
|
return expr2.$expr;
|
|
30234
30143
|
}
|
|
30235
30144
|
const OUTER = "outer", OUTER_INVALID = ["value", "update", "init", "react", "bind"];
|
|
@@ -30431,7 +30340,7 @@ function parseUpdate(spec, scope, target2) {
|
|
|
30431
30340
|
force: true
|
|
30432
30341
|
};
|
|
30433
30342
|
}
|
|
30434
|
-
sources.forEach((source2) => scope.addUpdate(extend$
|
|
30343
|
+
sources.forEach((source2) => scope.addUpdate(extend$3(streamSource(source2, scope), entry2)));
|
|
30435
30344
|
}
|
|
30436
30345
|
function streamSource(stream2, scope) {
|
|
30437
30346
|
return {
|
|
@@ -30671,7 +30580,7 @@ function parseScaleRange$1(spec, scope, params2) {
|
|
|
30671
30580
|
return scope.signalRef(range2.signal);
|
|
30672
30581
|
} else if (isString(range2)) {
|
|
30673
30582
|
if (config && has$2(config, range2)) {
|
|
30674
|
-
spec = extend$
|
|
30583
|
+
spec = extend$3({}, spec, {
|
|
30675
30584
|
range: config[range2]
|
|
30676
30585
|
});
|
|
30677
30586
|
return parseScaleRange$1(spec, scope, params2);
|
|
@@ -30863,7 +30772,7 @@ function legendGradient(spec, scale2, config, userEncode) {
|
|
|
30863
30772
|
width: encoder(width2),
|
|
30864
30773
|
height: encoder(height2)
|
|
30865
30774
|
},
|
|
30866
|
-
update: extend$
|
|
30775
|
+
update: extend$3({}, enter, {
|
|
30867
30776
|
opacity: one$1,
|
|
30868
30777
|
fill: {
|
|
30869
30778
|
gradient: scale2,
|
|
@@ -30911,7 +30820,7 @@ function legendGradientDiscrete(spec, scale2, config, userEncode, dataRef) {
|
|
|
30911
30820
|
enter[vv] = encoder(thickness);
|
|
30912
30821
|
const encode2 = {
|
|
30913
30822
|
enter,
|
|
30914
|
-
update: extend$
|
|
30823
|
+
update: extend$3({}, enter, {
|
|
30915
30824
|
opacity: one$1
|
|
30916
30825
|
}),
|
|
30917
30826
|
exit: {
|
|
@@ -31339,7 +31248,7 @@ function parseSubParameter(def2, value2, scope) {
|
|
|
31339
31248
|
if (pdef) break;
|
|
31340
31249
|
}
|
|
31341
31250
|
if (!pdef) error("Unsupported parameter: " + $(value2));
|
|
31342
|
-
const params2 = extend$
|
|
31251
|
+
const params2 = extend$3(parseParameters(pdef, value2, scope), pdef.key);
|
|
31343
31252
|
return ref(scope.add(Params(params2)));
|
|
31344
31253
|
}
|
|
31345
31254
|
const outerExpr = (_) => _ && _.expr;
|
|
@@ -31358,7 +31267,7 @@ function parseData$1(from2, group2, scope) {
|
|
|
31358
31267
|
dataRef = parent = getDataRef(facet, scope);
|
|
31359
31268
|
} else {
|
|
31360
31269
|
if (!from2.data) {
|
|
31361
|
-
op = parseTransform(extend$
|
|
31270
|
+
op = parseTransform(extend$3({
|
|
31362
31271
|
type: "aggregate",
|
|
31363
31272
|
groupby: array$5(facet.groupby)
|
|
31364
31273
|
}, facet.aggregate), scope);
|
|
@@ -31799,7 +31708,7 @@ function parseTitle(spec, scope) {
|
|
|
31799
31708
|
}
|
|
31800
31709
|
function titleEncode(spec) {
|
|
31801
31710
|
const encode2 = spec.encode;
|
|
31802
|
-
return encode2 && encode2.title || extend$
|
|
31711
|
+
return encode2 && encode2.title || extend$3({
|
|
31803
31712
|
name: spec.name,
|
|
31804
31713
|
interactive: spec.interactive,
|
|
31805
31714
|
style: spec.style
|
|
@@ -32037,7 +31946,7 @@ const ifEnc = (test2, a2, b2) => {
|
|
|
32037
31946
|
signal: `${test2} ? (${a2}) : (${b2})`
|
|
32038
31947
|
};
|
|
32039
31948
|
} else {
|
|
32040
|
-
return [extend$
|
|
31949
|
+
return [extend$3({
|
|
32041
31950
|
test: test2
|
|
32042
31951
|
}, a2)].concat(b2 || []);
|
|
32043
31952
|
}
|
|
@@ -32115,7 +32024,7 @@ function axisConfig(spec, scope) {
|
|
|
32115
32024
|
xy = orient2 === Top || orient2 === Bottom ? config.axisX : config.axisY;
|
|
32116
32025
|
or2 = config["axis" + orient2[0].toUpperCase() + orient2.slice(1)];
|
|
32117
32026
|
}
|
|
32118
|
-
const result = xy || or2 || band2 ? extend$
|
|
32027
|
+
const result = xy || or2 || band2 ? extend$3({}, axis, xy, or2, band2) : axis;
|
|
32119
32028
|
return result;
|
|
32120
32029
|
}
|
|
32121
32030
|
function axisDomain(spec, config, userEncode, dataRef) {
|
|
@@ -32208,7 +32117,7 @@ function axisGrid(spec, config, userEncode, dataRef, band2) {
|
|
|
32208
32117
|
range: 1,
|
|
32209
32118
|
mult: sign2,
|
|
32210
32119
|
offset: offset2
|
|
32211
|
-
} : extend$
|
|
32120
|
+
} : extend$3(sz2, {
|
|
32212
32121
|
mult: sign2,
|
|
32213
32122
|
offset: offset2
|
|
32214
32123
|
});
|
|
@@ -32233,7 +32142,7 @@ function offsetValue(offset2, sign2) {
|
|
|
32233
32142
|
signal: `(${sign2.signal}) * (${offset2 || 0})`
|
|
32234
32143
|
} : sign2 * (offset2 || 0);
|
|
32235
32144
|
} else {
|
|
32236
|
-
let entry2 = offset2 = extend$
|
|
32145
|
+
let entry2 = offset2 = extend$3({}, offset2);
|
|
32237
32146
|
while (entry2.mult != null) {
|
|
32238
32147
|
if (!isObject$1(entry2.mult)) {
|
|
32239
32148
|
entry2.mult = isSignal(sign2) ? {
|
|
@@ -32241,7 +32150,7 @@ function offsetValue(offset2, sign2) {
|
|
|
32241
32150
|
} : entry2.mult * sign2;
|
|
32242
32151
|
return offset2;
|
|
32243
32152
|
} else {
|
|
32244
|
-
entry2 = entry2.mult = extend$
|
|
32153
|
+
entry2 = entry2.mult = extend$3({}, entry2.mult);
|
|
32245
32154
|
}
|
|
32246
32155
|
}
|
|
32247
32156
|
entry2.mult = sign2;
|
|
@@ -32400,7 +32309,7 @@ function axisTitle(spec, config, userEncode, dataRef) {
|
|
|
32400
32309
|
signal: alignExpr$1
|
|
32401
32310
|
}
|
|
32402
32311
|
},
|
|
32403
|
-
update: update2 = extend$
|
|
32312
|
+
update: update2 = extend$3({}, enter, {
|
|
32404
32313
|
opacity: one$1,
|
|
32405
32314
|
text: encoder(spec.title)
|
|
32406
32315
|
}),
|
|
@@ -32608,7 +32517,7 @@ function collectSignals(spec, config) {
|
|
|
32608
32517
|
const _ = (name) => value(spec[name], config[name]), signals = [signalObject("background", _("background")), signalObject("autosize", parseAutosize(_("autosize"))), signalObject("padding", parsePadding(_("padding"))), signalObject("width", _("width") || 0), signalObject("height", _("height") || 0)], pre = signals.reduce((p, s) => (p[s.name] = s, p), {}), map2 = {};
|
|
32609
32518
|
array$5(spec.signals).forEach((s) => {
|
|
32610
32519
|
if (has$2(pre, s.name)) {
|
|
32611
|
-
s = extend$
|
|
32520
|
+
s = extend$3(pre[s.name], s);
|
|
32612
32521
|
} else {
|
|
32613
32522
|
signals.push(s);
|
|
32614
32523
|
}
|
|
@@ -32881,7 +32790,7 @@ Scope.prototype = Subscope.prototype = {
|
|
|
32881
32790
|
if (!this.bindings) {
|
|
32882
32791
|
error("Nested signals do not support binding: " + $(name));
|
|
32883
32792
|
}
|
|
32884
|
-
this.bindings.push(extend$
|
|
32793
|
+
this.bindings.push(extend$3({
|
|
32885
32794
|
signal: name
|
|
32886
32795
|
}, bind2));
|
|
32887
32796
|
},
|
|
@@ -33177,7 +33086,7 @@ function parse$2(spec, config, options) {
|
|
|
33177
33086
|
return parseView(spec, new Scope(config, options)).toRuntime();
|
|
33178
33087
|
}
|
|
33179
33088
|
var version$4 = "5.22.1";
|
|
33180
|
-
extend$
|
|
33089
|
+
extend$3(transforms, tx, vtx, encode$1, geo, force, label, tree, reg, voronoi, wordcloud, xf);
|
|
33181
33090
|
const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
33182
33091
|
__proto__: null,
|
|
33183
33092
|
Bounds,
|
|
@@ -33224,7 +33133,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
33224
33133
|
accessorFields,
|
|
33225
33134
|
accessorName,
|
|
33226
33135
|
array: array$5,
|
|
33227
|
-
ascending: ascending$
|
|
33136
|
+
ascending: ascending$3,
|
|
33228
33137
|
bandwidthNRD: estimateBandwidth,
|
|
33229
33138
|
bin,
|
|
33230
33139
|
bootstrapCI,
|
|
@@ -33255,7 +33164,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
33255
33164
|
dotbin,
|
|
33256
33165
|
error,
|
|
33257
33166
|
expressionFunction,
|
|
33258
|
-
extend: extend$
|
|
33167
|
+
extend: extend$3,
|
|
33259
33168
|
extent,
|
|
33260
33169
|
extentIndex,
|
|
33261
33170
|
falsy,
|
|
@@ -33300,7 +33209,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
33300
33209
|
loader,
|
|
33301
33210
|
locale,
|
|
33302
33211
|
logger,
|
|
33303
|
-
lruCache: lruCache$
|
|
33212
|
+
lruCache: lruCache$1,
|
|
33304
33213
|
markup,
|
|
33305
33214
|
merge: merge$4,
|
|
33306
33215
|
mergeConfig,
|
|
@@ -34174,9 +34083,9 @@ function requireReactJsxRuntime_development() {
|
|
|
34174
34083
|
var iteratorFn = getIteratorFn(node2);
|
|
34175
34084
|
if (typeof iteratorFn === "function") {
|
|
34176
34085
|
if (iteratorFn !== node2.entries) {
|
|
34177
|
-
var
|
|
34086
|
+
var iterator = iteratorFn.call(node2);
|
|
34178
34087
|
var step;
|
|
34179
|
-
while (!(step =
|
|
34088
|
+
while (!(step = iterator.next()).done) {
|
|
34180
34089
|
if (isValidElement(step.value)) {
|
|
34181
34090
|
validateExplicitKey(step.value, parentType);
|
|
34182
34091
|
}
|
|
@@ -34234,6 +34143,7 @@ function requireReactJsxRuntime_development() {
|
|
|
34234
34143
|
}
|
|
34235
34144
|
}
|
|
34236
34145
|
}
|
|
34146
|
+
var didWarnAboutKeySpread = {};
|
|
34237
34147
|
function jsxWithValidation(type2, props, key2, isStaticChildren, source2, self2) {
|
|
34238
34148
|
{
|
|
34239
34149
|
var validType = isValidElementType(type2);
|
|
@@ -34284,6 +34194,20 @@ function requireReactJsxRuntime_development() {
|
|
|
34284
34194
|
}
|
|
34285
34195
|
}
|
|
34286
34196
|
}
|
|
34197
|
+
{
|
|
34198
|
+
if (hasOwnProperty2.call(props, "key")) {
|
|
34199
|
+
var componentName = getComponentNameFromType(type2);
|
|
34200
|
+
var keys2 = Object.keys(props).filter(function(k) {
|
|
34201
|
+
return k !== "key";
|
|
34202
|
+
});
|
|
34203
|
+
var beforeExample = keys2.length > 0 ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
34204
|
+
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
34205
|
+
var afterExample = keys2.length > 0 ? "{" + keys2.join(": ..., ") + ": ...}" : "{}";
|
|
34206
|
+
error2('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
34207
|
+
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
34208
|
+
}
|
|
34209
|
+
}
|
|
34210
|
+
}
|
|
34287
34211
|
if (type2 === REACT_FRAGMENT_TYPE) {
|
|
34288
34212
|
validateFragmentProps(element2);
|
|
34289
34213
|
} else {
|
|
@@ -37024,16 +36948,16 @@ function requireFactoryWithTypeCheckers() {
|
|
|
37024
36948
|
}
|
|
37025
36949
|
var iteratorFn = getIteratorFn(propValue);
|
|
37026
36950
|
if (iteratorFn) {
|
|
37027
|
-
var
|
|
36951
|
+
var iterator = iteratorFn.call(propValue);
|
|
37028
36952
|
var step;
|
|
37029
36953
|
if (iteratorFn !== propValue.entries) {
|
|
37030
|
-
while (!(step =
|
|
36954
|
+
while (!(step = iterator.next()).done) {
|
|
37031
36955
|
if (!isNode(step.value)) {
|
|
37032
36956
|
return false;
|
|
37033
36957
|
}
|
|
37034
36958
|
}
|
|
37035
36959
|
} else {
|
|
37036
|
-
while (!(step =
|
|
36960
|
+
while (!(step = iterator.next()).done) {
|
|
37037
36961
|
var entry2 = step.value;
|
|
37038
36962
|
if (entry2) {
|
|
37039
36963
|
if (!isNode(entry2[1])) {
|
|
@@ -37889,7 +37813,7 @@ function paletteTransform(value2, userValue) {
|
|
|
37889
37813
|
}
|
|
37890
37814
|
return value2;
|
|
37891
37815
|
}
|
|
37892
|
-
const color$
|
|
37816
|
+
const color$3 = style$1({
|
|
37893
37817
|
prop: "color",
|
|
37894
37818
|
themeKey: "palette",
|
|
37895
37819
|
transform: paletteTransform
|
|
@@ -37905,7 +37829,7 @@ const backgroundColor$3 = style$1({
|
|
|
37905
37829
|
themeKey: "palette",
|
|
37906
37830
|
transform: paletteTransform
|
|
37907
37831
|
});
|
|
37908
|
-
compose(color$
|
|
37832
|
+
compose(color$3, bgcolor, backgroundColor$3);
|
|
37909
37833
|
function sizingTransform(value2) {
|
|
37910
37834
|
return value2 <= 1 && value2 !== 0 ? `${value2 * 100}%` : value2;
|
|
37911
37835
|
}
|
|
@@ -43398,21 +43322,21 @@ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
|
43398
43322
|
function cloneDeep(value2) {
|
|
43399
43323
|
return baseClone(value2, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
43400
43324
|
}
|
|
43401
|
-
function define(constructor, factory, prototype2) {
|
|
43325
|
+
function define$1(constructor, factory, prototype2) {
|
|
43402
43326
|
constructor.prototype = factory.prototype = prototype2;
|
|
43403
43327
|
prototype2.constructor = constructor;
|
|
43404
43328
|
}
|
|
43405
|
-
function extend(parent, definition2) {
|
|
43329
|
+
function extend$1(parent, definition2) {
|
|
43406
43330
|
var prototype2 = Object.create(parent.prototype);
|
|
43407
43331
|
for (var key2 in definition2) prototype2[key2] = definition2[key2];
|
|
43408
43332
|
return prototype2;
|
|
43409
43333
|
}
|
|
43410
|
-
function Color() {
|
|
43334
|
+
function Color$1() {
|
|
43411
43335
|
}
|
|
43412
|
-
var darker = 0.7;
|
|
43413
|
-
var brighter = 1 / darker;
|
|
43414
|
-
var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"), reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"), reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"), reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"), reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"), reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
|
|
43415
|
-
var named = {
|
|
43336
|
+
var darker$1 = 0.7;
|
|
43337
|
+
var brighter$1 = 1 / darker$1;
|
|
43338
|
+
var reI$1 = "\\s*([+-]?\\d+)\\s*", reN$1 = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP$1 = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex$1 = /^#([0-9a-f]{3,8})$/, reRgbInteger$1 = new RegExp("^rgb\\(" + [reI$1, reI$1, reI$1] + "\\)$"), reRgbPercent$1 = new RegExp("^rgb\\(" + [reP$1, reP$1, reP$1] + "\\)$"), reRgbaInteger$1 = new RegExp("^rgba\\(" + [reI$1, reI$1, reI$1, reN$1] + "\\)$"), reRgbaPercent$1 = new RegExp("^rgba\\(" + [reP$1, reP$1, reP$1, reN$1] + "\\)$"), reHslPercent$1 = new RegExp("^hsl\\(" + [reN$1, reP$1, reP$1] + "\\)$"), reHslaPercent$1 = new RegExp("^hsla\\(" + [reN$1, reP$1, reP$1, reN$1] + "\\)$");
|
|
43339
|
+
var named$1 = {
|
|
43416
43340
|
aliceblue: 15792383,
|
|
43417
43341
|
antiquewhite: 16444375,
|
|
43418
43342
|
aqua: 65535,
|
|
@@ -43562,64 +43486,64 @@ var named = {
|
|
|
43562
43486
|
yellow: 16776960,
|
|
43563
43487
|
yellowgreen: 10145074
|
|
43564
43488
|
};
|
|
43565
|
-
define(Color, color$
|
|
43489
|
+
define$1(Color$1, color$2, {
|
|
43566
43490
|
copy: function(channels) {
|
|
43567
43491
|
return Object.assign(new this.constructor(), this, channels);
|
|
43568
43492
|
},
|
|
43569
43493
|
displayable: function() {
|
|
43570
43494
|
return this.rgb().displayable();
|
|
43571
43495
|
},
|
|
43572
|
-
hex: color_formatHex,
|
|
43496
|
+
hex: color_formatHex$1,
|
|
43573
43497
|
// Deprecated! Use color.formatHex.
|
|
43574
|
-
formatHex: color_formatHex,
|
|
43575
|
-
formatHsl: color_formatHsl,
|
|
43576
|
-
formatRgb: color_formatRgb,
|
|
43577
|
-
toString: color_formatRgb
|
|
43498
|
+
formatHex: color_formatHex$1,
|
|
43499
|
+
formatHsl: color_formatHsl$1,
|
|
43500
|
+
formatRgb: color_formatRgb$1,
|
|
43501
|
+
toString: color_formatRgb$1
|
|
43578
43502
|
});
|
|
43579
|
-
function color_formatHex() {
|
|
43503
|
+
function color_formatHex$1() {
|
|
43580
43504
|
return this.rgb().formatHex();
|
|
43581
43505
|
}
|
|
43582
|
-
function color_formatHsl() {
|
|
43583
|
-
return hslConvert(this).formatHsl();
|
|
43506
|
+
function color_formatHsl$1() {
|
|
43507
|
+
return hslConvert$1(this).formatHsl();
|
|
43584
43508
|
}
|
|
43585
|
-
function color_formatRgb() {
|
|
43509
|
+
function color_formatRgb$1() {
|
|
43586
43510
|
return this.rgb().formatRgb();
|
|
43587
43511
|
}
|
|
43588
|
-
function color$
|
|
43512
|
+
function color$2(format2) {
|
|
43589
43513
|
var m2, l;
|
|
43590
43514
|
format2 = (format2 + "").trim().toLowerCase();
|
|
43591
|
-
return (m2 = reHex.exec(format2)) ? (l = m2[1].length, m2 = parseInt(m2[1], 16), l === 6 ? rgbn(m2) : l === 3 ? new Rgb(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l === 8 ? rgba(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l === 4 ? rgba(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger.exec(format2)) ? new Rgb(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent.exec(format2)) ? new Rgb(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger.exec(format2)) ? rgba(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent.exec(format2)) ? rgba(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named.hasOwnProperty(format2) ? rgbn(named[format2]) : format2 === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
|
|
43515
|
+
return (m2 = reHex$1.exec(format2)) ? (l = m2[1].length, m2 = parseInt(m2[1], 16), l === 6 ? rgbn$1(m2) : l === 3 ? new Rgb$1(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l === 8 ? rgba$1(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l === 4 ? rgba$1(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger$1.exec(format2)) ? new Rgb$1(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent$1.exec(format2)) ? new Rgb$1(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger$1.exec(format2)) ? rgba$1(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent$1.exec(format2)) ? rgba$1(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent$1.exec(format2)) ? hsla$1(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent$1.exec(format2)) ? hsla$1(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named$1.hasOwnProperty(format2) ? rgbn$1(named$1[format2]) : format2 === "transparent" ? new Rgb$1(NaN, NaN, NaN, 0) : null;
|
|
43592
43516
|
}
|
|
43593
|
-
function rgbn(n) {
|
|
43594
|
-
return new Rgb(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
43517
|
+
function rgbn$1(n) {
|
|
43518
|
+
return new Rgb$1(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
43595
43519
|
}
|
|
43596
|
-
function rgba(r2, g, b2, a2) {
|
|
43520
|
+
function rgba$1(r2, g, b2, a2) {
|
|
43597
43521
|
if (a2 <= 0) r2 = g = b2 = NaN;
|
|
43598
|
-
return new Rgb(r2, g, b2, a2);
|
|
43522
|
+
return new Rgb$1(r2, g, b2, a2);
|
|
43599
43523
|
}
|
|
43600
|
-
function rgbConvert(o) {
|
|
43601
|
-
if (!(o instanceof Color)) o = color$
|
|
43602
|
-
if (!o) return new Rgb();
|
|
43524
|
+
function rgbConvert$1(o) {
|
|
43525
|
+
if (!(o instanceof Color$1)) o = color$2(o);
|
|
43526
|
+
if (!o) return new Rgb$1();
|
|
43603
43527
|
o = o.rgb();
|
|
43604
|
-
return new Rgb(o.r, o.g, o.b, o.opacity);
|
|
43528
|
+
return new Rgb$1(o.r, o.g, o.b, o.opacity);
|
|
43605
43529
|
}
|
|
43606
|
-
function rgb(r2, g, b2, opacity2) {
|
|
43607
|
-
return arguments.length === 1 ? rgbConvert(r2) : new Rgb(r2, g, b2, opacity2 == null ? 1 : opacity2);
|
|
43530
|
+
function rgb$1(r2, g, b2, opacity2) {
|
|
43531
|
+
return arguments.length === 1 ? rgbConvert$1(r2) : new Rgb$1(r2, g, b2, opacity2 == null ? 1 : opacity2);
|
|
43608
43532
|
}
|
|
43609
|
-
function Rgb(r2, g, b2, opacity2) {
|
|
43533
|
+
function Rgb$1(r2, g, b2, opacity2) {
|
|
43610
43534
|
this.r = +r2;
|
|
43611
43535
|
this.g = +g;
|
|
43612
43536
|
this.b = +b2;
|
|
43613
43537
|
this.opacity = +opacity2;
|
|
43614
43538
|
}
|
|
43615
|
-
define(Rgb, rgb, extend(Color, {
|
|
43539
|
+
define$1(Rgb$1, rgb$1, extend$1(Color$1, {
|
|
43616
43540
|
brighter: function(k) {
|
|
43617
|
-
k = k == null ? brighter : Math.pow(brighter, k);
|
|
43618
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
43541
|
+
k = k == null ? brighter$1 : Math.pow(brighter$1, k);
|
|
43542
|
+
return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
43619
43543
|
},
|
|
43620
43544
|
darker: function(k) {
|
|
43621
|
-
k = k == null ? darker : Math.pow(darker, k);
|
|
43622
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
43545
|
+
k = k == null ? darker$1 : Math.pow(darker$1, k);
|
|
43546
|
+
return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
43623
43547
|
},
|
|
43624
43548
|
rgb: function() {
|
|
43625
43549
|
return this;
|
|
@@ -43627,35 +43551,35 @@ define(Rgb, rgb, extend(Color, {
|
|
|
43627
43551
|
displayable: function() {
|
|
43628
43552
|
return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
|
|
43629
43553
|
},
|
|
43630
|
-
hex: rgb_formatHex,
|
|
43554
|
+
hex: rgb_formatHex$1,
|
|
43631
43555
|
// Deprecated! Use color.formatHex.
|
|
43632
|
-
formatHex: rgb_formatHex,
|
|
43633
|
-
formatRgb: rgb_formatRgb,
|
|
43634
|
-
toString: rgb_formatRgb
|
|
43556
|
+
formatHex: rgb_formatHex$1,
|
|
43557
|
+
formatRgb: rgb_formatRgb$1,
|
|
43558
|
+
toString: rgb_formatRgb$1
|
|
43635
43559
|
}));
|
|
43636
|
-
function rgb_formatHex() {
|
|
43637
|
-
return "#" + hex(this.r) + hex(this.g) + hex(this.b);
|
|
43560
|
+
function rgb_formatHex$1() {
|
|
43561
|
+
return "#" + hex$1(this.r) + hex$1(this.g) + hex$1(this.b);
|
|
43638
43562
|
}
|
|
43639
|
-
function rgb_formatRgb() {
|
|
43563
|
+
function rgb_formatRgb$1() {
|
|
43640
43564
|
var a2 = this.opacity;
|
|
43641
43565
|
a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
|
|
43642
43566
|
return (a2 === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a2 === 1 ? ")" : ", " + a2 + ")");
|
|
43643
43567
|
}
|
|
43644
|
-
function hex(value2) {
|
|
43568
|
+
function hex$1(value2) {
|
|
43645
43569
|
value2 = Math.max(0, Math.min(255, Math.round(value2) || 0));
|
|
43646
43570
|
return (value2 < 16 ? "0" : "") + value2.toString(16);
|
|
43647
43571
|
}
|
|
43648
|
-
function hsla(h2, s, l, a2) {
|
|
43572
|
+
function hsla$1(h2, s, l, a2) {
|
|
43649
43573
|
if (a2 <= 0) h2 = s = l = NaN;
|
|
43650
43574
|
else if (l <= 0 || l >= 1) h2 = s = NaN;
|
|
43651
43575
|
else if (s <= 0) h2 = NaN;
|
|
43652
|
-
return new Hsl(h2, s, l, a2);
|
|
43576
|
+
return new Hsl$1(h2, s, l, a2);
|
|
43653
43577
|
}
|
|
43654
|
-
function hslConvert(o) {
|
|
43655
|
-
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
|
43656
|
-
if (!(o instanceof Color)) o = color$
|
|
43657
|
-
if (!o) return new Hsl();
|
|
43658
|
-
if (o instanceof Hsl) return o;
|
|
43578
|
+
function hslConvert$1(o) {
|
|
43579
|
+
if (o instanceof Hsl$1) return new Hsl$1(o.h, o.s, o.l, o.opacity);
|
|
43580
|
+
if (!(o instanceof Color$1)) o = color$2(o);
|
|
43581
|
+
if (!o) return new Hsl$1();
|
|
43582
|
+
if (o instanceof Hsl$1) return o;
|
|
43659
43583
|
o = o.rgb();
|
|
43660
43584
|
var r2 = o.r / 255, g = o.g / 255, b2 = o.b / 255, min2 = Math.min(r2, g, b2), max2 = Math.max(r2, g, b2), h2 = NaN, s = max2 - min2, l = (max2 + min2) / 2;
|
|
43661
43585
|
if (s) {
|
|
@@ -43667,32 +43591,32 @@ function hslConvert(o) {
|
|
|
43667
43591
|
} else {
|
|
43668
43592
|
s = l > 0 && l < 1 ? 0 : h2;
|
|
43669
43593
|
}
|
|
43670
|
-
return new Hsl(h2, s, l, o.opacity);
|
|
43594
|
+
return new Hsl$1(h2, s, l, o.opacity);
|
|
43671
43595
|
}
|
|
43672
|
-
function hsl(h2, s, l, opacity2) {
|
|
43673
|
-
return arguments.length === 1 ? hslConvert(h2) : new Hsl(h2, s, l, opacity2 == null ? 1 : opacity2);
|
|
43596
|
+
function hsl$1(h2, s, l, opacity2) {
|
|
43597
|
+
return arguments.length === 1 ? hslConvert$1(h2) : new Hsl$1(h2, s, l, opacity2 == null ? 1 : opacity2);
|
|
43674
43598
|
}
|
|
43675
|
-
function Hsl(h2, s, l, opacity2) {
|
|
43599
|
+
function Hsl$1(h2, s, l, opacity2) {
|
|
43676
43600
|
this.h = +h2;
|
|
43677
43601
|
this.s = +s;
|
|
43678
43602
|
this.l = +l;
|
|
43679
43603
|
this.opacity = +opacity2;
|
|
43680
43604
|
}
|
|
43681
|
-
define(Hsl, hsl, extend(Color, {
|
|
43605
|
+
define$1(Hsl$1, hsl$1, extend$1(Color$1, {
|
|
43682
43606
|
brighter: function(k) {
|
|
43683
|
-
k = k == null ? brighter : Math.pow(brighter, k);
|
|
43684
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
43607
|
+
k = k == null ? brighter$1 : Math.pow(brighter$1, k);
|
|
43608
|
+
return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
|
|
43685
43609
|
},
|
|
43686
43610
|
darker: function(k) {
|
|
43687
|
-
k = k == null ? darker : Math.pow(darker, k);
|
|
43688
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
43611
|
+
k = k == null ? darker$1 : Math.pow(darker$1, k);
|
|
43612
|
+
return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
|
|
43689
43613
|
},
|
|
43690
43614
|
rgb: function() {
|
|
43691
43615
|
var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
|
|
43692
|
-
return new Rgb(
|
|
43693
|
-
hsl2rgb(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m2),
|
|
43694
|
-
hsl2rgb(h2, m1, m2),
|
|
43695
|
-
hsl2rgb(h2 < 120 ? h2 + 240 : h2 - 120, m1, m2),
|
|
43616
|
+
return new Rgb$1(
|
|
43617
|
+
hsl2rgb$1(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m2),
|
|
43618
|
+
hsl2rgb$1(h2, m1, m2),
|
|
43619
|
+
hsl2rgb$1(h2 < 120 ? h2 + 240 : h2 - 120, m1, m2),
|
|
43696
43620
|
this.opacity
|
|
43697
43621
|
);
|
|
43698
43622
|
},
|
|
@@ -43705,7 +43629,7 @@ define(Hsl, hsl, extend(Color, {
|
|
|
43705
43629
|
return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")");
|
|
43706
43630
|
}
|
|
43707
43631
|
}));
|
|
43708
|
-
function hsl2rgb(h2, m1, m2) {
|
|
43632
|
+
function hsl2rgb$1(h2, m1, m2) {
|
|
43709
43633
|
return (h2 < 60 ? m1 + (m2 - m1) * h2 / 60 : h2 < 180 ? m2 : h2 < 240 ? m1 + (m2 - m1) * (240 - h2) / 60 : m1) * 255;
|
|
43710
43634
|
}
|
|
43711
43635
|
const constant = (x2) => () => x2;
|
|
@@ -43730,8 +43654,8 @@ function nogamma(a2, b2) {
|
|
|
43730
43654
|
}
|
|
43731
43655
|
const interpolateRgb = function rgbGamma2(y2) {
|
|
43732
43656
|
var color2 = gamma(y2);
|
|
43733
|
-
function
|
|
43734
|
-
var r2 = color2((start = rgb(start)).r, (end = rgb(end)).r), g = color2(start.g, end.g), b2 = color2(start.b, end.b), opacity2 = nogamma(start.opacity, end.opacity);
|
|
43657
|
+
function rgb2(start, end) {
|
|
43658
|
+
var r2 = color2((start = rgb$1(start)).r, (end = rgb$1(end)).r), g = color2(start.g, end.g), b2 = color2(start.b, end.b), opacity2 = nogamma(start.opacity, end.opacity);
|
|
43735
43659
|
return function(t4) {
|
|
43736
43660
|
start.r = r2(t4);
|
|
43737
43661
|
start.g = g(t4);
|
|
@@ -43740,8 +43664,8 @@ const interpolateRgb = function rgbGamma2(y2) {
|
|
|
43740
43664
|
return start + "";
|
|
43741
43665
|
};
|
|
43742
43666
|
}
|
|
43743
|
-
|
|
43744
|
-
return
|
|
43667
|
+
rgb2.gamma = rgbGamma2;
|
|
43668
|
+
return rgb2;
|
|
43745
43669
|
}(1);
|
|
43746
43670
|
function numberArray(a2, b2) {
|
|
43747
43671
|
if (!b2) b2 = [];
|
|
@@ -43831,7 +43755,7 @@ function string(a2, b2) {
|
|
|
43831
43755
|
}
|
|
43832
43756
|
function interpolate$1(a2, b2) {
|
|
43833
43757
|
var t4 = typeof b2, c2;
|
|
43834
|
-
return b2 == null || t4 === "boolean" ? constant(b2) : (t4 === "number" ? number : t4 === "string" ? (c2 = color$
|
|
43758
|
+
return b2 == null || t4 === "boolean" ? constant(b2) : (t4 === "number" ? number : t4 === "string" ? (c2 = color$2(b2)) ? (b2 = c2, interpolateRgb) : string : b2 instanceof color$2 ? interpolateRgb : b2 instanceof Date ? date : isNumberArray(b2) ? numberArray : Array.isArray(b2) ? genericArray : typeof b2.valueOf !== "function" && typeof b2.toString !== "function" || isNaN(b2) ? object : number)(a2, b2);
|
|
43835
43759
|
}
|
|
43836
43760
|
function piecewise(interpolate2, values2) {
|
|
43837
43761
|
if (values2 === void 0) values2 = interpolate2, interpolate2 = interpolate$1;
|
|
@@ -43842,6 +43766,316 @@ function piecewise(interpolate2, values2) {
|
|
|
43842
43766
|
return I[i2](t4 - i2);
|
|
43843
43767
|
};
|
|
43844
43768
|
}
|
|
43769
|
+
function define(constructor, factory, prototype2) {
|
|
43770
|
+
constructor.prototype = factory.prototype = prototype2;
|
|
43771
|
+
prototype2.constructor = constructor;
|
|
43772
|
+
}
|
|
43773
|
+
function extend(parent, definition2) {
|
|
43774
|
+
var prototype2 = Object.create(parent.prototype);
|
|
43775
|
+
for (var key2 in definition2) prototype2[key2] = definition2[key2];
|
|
43776
|
+
return prototype2;
|
|
43777
|
+
}
|
|
43778
|
+
function Color() {
|
|
43779
|
+
}
|
|
43780
|
+
var darker = 0.7;
|
|
43781
|
+
var brighter = 1 / darker;
|
|
43782
|
+
var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"), reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"), reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"), reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"), reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"), reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
|
|
43783
|
+
var named = {
|
|
43784
|
+
aliceblue: 15792383,
|
|
43785
|
+
antiquewhite: 16444375,
|
|
43786
|
+
aqua: 65535,
|
|
43787
|
+
aquamarine: 8388564,
|
|
43788
|
+
azure: 15794175,
|
|
43789
|
+
beige: 16119260,
|
|
43790
|
+
bisque: 16770244,
|
|
43791
|
+
black: 0,
|
|
43792
|
+
blanchedalmond: 16772045,
|
|
43793
|
+
blue: 255,
|
|
43794
|
+
blueviolet: 9055202,
|
|
43795
|
+
brown: 10824234,
|
|
43796
|
+
burlywood: 14596231,
|
|
43797
|
+
cadetblue: 6266528,
|
|
43798
|
+
chartreuse: 8388352,
|
|
43799
|
+
chocolate: 13789470,
|
|
43800
|
+
coral: 16744272,
|
|
43801
|
+
cornflowerblue: 6591981,
|
|
43802
|
+
cornsilk: 16775388,
|
|
43803
|
+
crimson: 14423100,
|
|
43804
|
+
cyan: 65535,
|
|
43805
|
+
darkblue: 139,
|
|
43806
|
+
darkcyan: 35723,
|
|
43807
|
+
darkgoldenrod: 12092939,
|
|
43808
|
+
darkgray: 11119017,
|
|
43809
|
+
darkgreen: 25600,
|
|
43810
|
+
darkgrey: 11119017,
|
|
43811
|
+
darkkhaki: 12433259,
|
|
43812
|
+
darkmagenta: 9109643,
|
|
43813
|
+
darkolivegreen: 5597999,
|
|
43814
|
+
darkorange: 16747520,
|
|
43815
|
+
darkorchid: 10040012,
|
|
43816
|
+
darkred: 9109504,
|
|
43817
|
+
darksalmon: 15308410,
|
|
43818
|
+
darkseagreen: 9419919,
|
|
43819
|
+
darkslateblue: 4734347,
|
|
43820
|
+
darkslategray: 3100495,
|
|
43821
|
+
darkslategrey: 3100495,
|
|
43822
|
+
darkturquoise: 52945,
|
|
43823
|
+
darkviolet: 9699539,
|
|
43824
|
+
deeppink: 16716947,
|
|
43825
|
+
deepskyblue: 49151,
|
|
43826
|
+
dimgray: 6908265,
|
|
43827
|
+
dimgrey: 6908265,
|
|
43828
|
+
dodgerblue: 2003199,
|
|
43829
|
+
firebrick: 11674146,
|
|
43830
|
+
floralwhite: 16775920,
|
|
43831
|
+
forestgreen: 2263842,
|
|
43832
|
+
fuchsia: 16711935,
|
|
43833
|
+
gainsboro: 14474460,
|
|
43834
|
+
ghostwhite: 16316671,
|
|
43835
|
+
gold: 16766720,
|
|
43836
|
+
goldenrod: 14329120,
|
|
43837
|
+
gray: 8421504,
|
|
43838
|
+
green: 32768,
|
|
43839
|
+
greenyellow: 11403055,
|
|
43840
|
+
grey: 8421504,
|
|
43841
|
+
honeydew: 15794160,
|
|
43842
|
+
hotpink: 16738740,
|
|
43843
|
+
indianred: 13458524,
|
|
43844
|
+
indigo: 4915330,
|
|
43845
|
+
ivory: 16777200,
|
|
43846
|
+
khaki: 15787660,
|
|
43847
|
+
lavender: 15132410,
|
|
43848
|
+
lavenderblush: 16773365,
|
|
43849
|
+
lawngreen: 8190976,
|
|
43850
|
+
lemonchiffon: 16775885,
|
|
43851
|
+
lightblue: 11393254,
|
|
43852
|
+
lightcoral: 15761536,
|
|
43853
|
+
lightcyan: 14745599,
|
|
43854
|
+
lightgoldenrodyellow: 16448210,
|
|
43855
|
+
lightgray: 13882323,
|
|
43856
|
+
lightgreen: 9498256,
|
|
43857
|
+
lightgrey: 13882323,
|
|
43858
|
+
lightpink: 16758465,
|
|
43859
|
+
lightsalmon: 16752762,
|
|
43860
|
+
lightseagreen: 2142890,
|
|
43861
|
+
lightskyblue: 8900346,
|
|
43862
|
+
lightslategray: 7833753,
|
|
43863
|
+
lightslategrey: 7833753,
|
|
43864
|
+
lightsteelblue: 11584734,
|
|
43865
|
+
lightyellow: 16777184,
|
|
43866
|
+
lime: 65280,
|
|
43867
|
+
limegreen: 3329330,
|
|
43868
|
+
linen: 16445670,
|
|
43869
|
+
magenta: 16711935,
|
|
43870
|
+
maroon: 8388608,
|
|
43871
|
+
mediumaquamarine: 6737322,
|
|
43872
|
+
mediumblue: 205,
|
|
43873
|
+
mediumorchid: 12211667,
|
|
43874
|
+
mediumpurple: 9662683,
|
|
43875
|
+
mediumseagreen: 3978097,
|
|
43876
|
+
mediumslateblue: 8087790,
|
|
43877
|
+
mediumspringgreen: 64154,
|
|
43878
|
+
mediumturquoise: 4772300,
|
|
43879
|
+
mediumvioletred: 13047173,
|
|
43880
|
+
midnightblue: 1644912,
|
|
43881
|
+
mintcream: 16121850,
|
|
43882
|
+
mistyrose: 16770273,
|
|
43883
|
+
moccasin: 16770229,
|
|
43884
|
+
navajowhite: 16768685,
|
|
43885
|
+
navy: 128,
|
|
43886
|
+
oldlace: 16643558,
|
|
43887
|
+
olive: 8421376,
|
|
43888
|
+
olivedrab: 7048739,
|
|
43889
|
+
orange: 16753920,
|
|
43890
|
+
orangered: 16729344,
|
|
43891
|
+
orchid: 14315734,
|
|
43892
|
+
palegoldenrod: 15657130,
|
|
43893
|
+
palegreen: 10025880,
|
|
43894
|
+
paleturquoise: 11529966,
|
|
43895
|
+
palevioletred: 14381203,
|
|
43896
|
+
papayawhip: 16773077,
|
|
43897
|
+
peachpuff: 16767673,
|
|
43898
|
+
peru: 13468991,
|
|
43899
|
+
pink: 16761035,
|
|
43900
|
+
plum: 14524637,
|
|
43901
|
+
powderblue: 11591910,
|
|
43902
|
+
purple: 8388736,
|
|
43903
|
+
rebeccapurple: 6697881,
|
|
43904
|
+
red: 16711680,
|
|
43905
|
+
rosybrown: 12357519,
|
|
43906
|
+
royalblue: 4286945,
|
|
43907
|
+
saddlebrown: 9127187,
|
|
43908
|
+
salmon: 16416882,
|
|
43909
|
+
sandybrown: 16032864,
|
|
43910
|
+
seagreen: 3050327,
|
|
43911
|
+
seashell: 16774638,
|
|
43912
|
+
sienna: 10506797,
|
|
43913
|
+
silver: 12632256,
|
|
43914
|
+
skyblue: 8900331,
|
|
43915
|
+
slateblue: 6970061,
|
|
43916
|
+
slategray: 7372944,
|
|
43917
|
+
slategrey: 7372944,
|
|
43918
|
+
snow: 16775930,
|
|
43919
|
+
springgreen: 65407,
|
|
43920
|
+
steelblue: 4620980,
|
|
43921
|
+
tan: 13808780,
|
|
43922
|
+
teal: 32896,
|
|
43923
|
+
thistle: 14204888,
|
|
43924
|
+
tomato: 16737095,
|
|
43925
|
+
turquoise: 4251856,
|
|
43926
|
+
violet: 15631086,
|
|
43927
|
+
wheat: 16113331,
|
|
43928
|
+
white: 16777215,
|
|
43929
|
+
whitesmoke: 16119285,
|
|
43930
|
+
yellow: 16776960,
|
|
43931
|
+
yellowgreen: 10145074
|
|
43932
|
+
};
|
|
43933
|
+
define(Color, color$1, {
|
|
43934
|
+
copy: function(channels) {
|
|
43935
|
+
return Object.assign(new this.constructor(), this, channels);
|
|
43936
|
+
},
|
|
43937
|
+
displayable: function() {
|
|
43938
|
+
return this.rgb().displayable();
|
|
43939
|
+
},
|
|
43940
|
+
hex: color_formatHex,
|
|
43941
|
+
// Deprecated! Use color.formatHex.
|
|
43942
|
+
formatHex: color_formatHex,
|
|
43943
|
+
formatHsl: color_formatHsl,
|
|
43944
|
+
formatRgb: color_formatRgb,
|
|
43945
|
+
toString: color_formatRgb
|
|
43946
|
+
});
|
|
43947
|
+
function color_formatHex() {
|
|
43948
|
+
return this.rgb().formatHex();
|
|
43949
|
+
}
|
|
43950
|
+
function color_formatHsl() {
|
|
43951
|
+
return hslConvert(this).formatHsl();
|
|
43952
|
+
}
|
|
43953
|
+
function color_formatRgb() {
|
|
43954
|
+
return this.rgb().formatRgb();
|
|
43955
|
+
}
|
|
43956
|
+
function color$1(format2) {
|
|
43957
|
+
var m2, l;
|
|
43958
|
+
format2 = (format2 + "").trim().toLowerCase();
|
|
43959
|
+
return (m2 = reHex.exec(format2)) ? (l = m2[1].length, m2 = parseInt(m2[1], 16), l === 6 ? rgbn(m2) : l === 3 ? new Rgb(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l === 8 ? rgba(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l === 4 ? rgba(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger.exec(format2)) ? new Rgb(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent.exec(format2)) ? new Rgb(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger.exec(format2)) ? rgba(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent.exec(format2)) ? rgba(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named.hasOwnProperty(format2) ? rgbn(named[format2]) : format2 === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
|
|
43960
|
+
}
|
|
43961
|
+
function rgbn(n) {
|
|
43962
|
+
return new Rgb(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
43963
|
+
}
|
|
43964
|
+
function rgba(r2, g, b2, a2) {
|
|
43965
|
+
if (a2 <= 0) r2 = g = b2 = NaN;
|
|
43966
|
+
return new Rgb(r2, g, b2, a2);
|
|
43967
|
+
}
|
|
43968
|
+
function rgbConvert(o) {
|
|
43969
|
+
if (!(o instanceof Color)) o = color$1(o);
|
|
43970
|
+
if (!o) return new Rgb();
|
|
43971
|
+
o = o.rgb();
|
|
43972
|
+
return new Rgb(o.r, o.g, o.b, o.opacity);
|
|
43973
|
+
}
|
|
43974
|
+
function rgb(r2, g, b2, opacity2) {
|
|
43975
|
+
return arguments.length === 1 ? rgbConvert(r2) : new Rgb(r2, g, b2, opacity2 == null ? 1 : opacity2);
|
|
43976
|
+
}
|
|
43977
|
+
function Rgb(r2, g, b2, opacity2) {
|
|
43978
|
+
this.r = +r2;
|
|
43979
|
+
this.g = +g;
|
|
43980
|
+
this.b = +b2;
|
|
43981
|
+
this.opacity = +opacity2;
|
|
43982
|
+
}
|
|
43983
|
+
define(Rgb, rgb, extend(Color, {
|
|
43984
|
+
brighter: function(k) {
|
|
43985
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
43986
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
43987
|
+
},
|
|
43988
|
+
darker: function(k) {
|
|
43989
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
43990
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
43991
|
+
},
|
|
43992
|
+
rgb: function() {
|
|
43993
|
+
return this;
|
|
43994
|
+
},
|
|
43995
|
+
displayable: function() {
|
|
43996
|
+
return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
|
|
43997
|
+
},
|
|
43998
|
+
hex: rgb_formatHex,
|
|
43999
|
+
// Deprecated! Use color.formatHex.
|
|
44000
|
+
formatHex: rgb_formatHex,
|
|
44001
|
+
formatRgb: rgb_formatRgb,
|
|
44002
|
+
toString: rgb_formatRgb
|
|
44003
|
+
}));
|
|
44004
|
+
function rgb_formatHex() {
|
|
44005
|
+
return "#" + hex(this.r) + hex(this.g) + hex(this.b);
|
|
44006
|
+
}
|
|
44007
|
+
function rgb_formatRgb() {
|
|
44008
|
+
var a2 = this.opacity;
|
|
44009
|
+
a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
|
|
44010
|
+
return (a2 === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a2 === 1 ? ")" : ", " + a2 + ")");
|
|
44011
|
+
}
|
|
44012
|
+
function hex(value2) {
|
|
44013
|
+
value2 = Math.max(0, Math.min(255, Math.round(value2) || 0));
|
|
44014
|
+
return (value2 < 16 ? "0" : "") + value2.toString(16);
|
|
44015
|
+
}
|
|
44016
|
+
function hsla(h2, s, l, a2) {
|
|
44017
|
+
if (a2 <= 0) h2 = s = l = NaN;
|
|
44018
|
+
else if (l <= 0 || l >= 1) h2 = s = NaN;
|
|
44019
|
+
else if (s <= 0) h2 = NaN;
|
|
44020
|
+
return new Hsl(h2, s, l, a2);
|
|
44021
|
+
}
|
|
44022
|
+
function hslConvert(o) {
|
|
44023
|
+
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
|
44024
|
+
if (!(o instanceof Color)) o = color$1(o);
|
|
44025
|
+
if (!o) return new Hsl();
|
|
44026
|
+
if (o instanceof Hsl) return o;
|
|
44027
|
+
o = o.rgb();
|
|
44028
|
+
var r2 = o.r / 255, g = o.g / 255, b2 = o.b / 255, min2 = Math.min(r2, g, b2), max2 = Math.max(r2, g, b2), h2 = NaN, s = max2 - min2, l = (max2 + min2) / 2;
|
|
44029
|
+
if (s) {
|
|
44030
|
+
if (r2 === max2) h2 = (g - b2) / s + (g < b2) * 6;
|
|
44031
|
+
else if (g === max2) h2 = (b2 - r2) / s + 2;
|
|
44032
|
+
else h2 = (r2 - g) / s + 4;
|
|
44033
|
+
s /= l < 0.5 ? max2 + min2 : 2 - max2 - min2;
|
|
44034
|
+
h2 *= 60;
|
|
44035
|
+
} else {
|
|
44036
|
+
s = l > 0 && l < 1 ? 0 : h2;
|
|
44037
|
+
}
|
|
44038
|
+
return new Hsl(h2, s, l, o.opacity);
|
|
44039
|
+
}
|
|
44040
|
+
function hsl(h2, s, l, opacity2) {
|
|
44041
|
+
return arguments.length === 1 ? hslConvert(h2) : new Hsl(h2, s, l, opacity2 == null ? 1 : opacity2);
|
|
44042
|
+
}
|
|
44043
|
+
function Hsl(h2, s, l, opacity2) {
|
|
44044
|
+
this.h = +h2;
|
|
44045
|
+
this.s = +s;
|
|
44046
|
+
this.l = +l;
|
|
44047
|
+
this.opacity = +opacity2;
|
|
44048
|
+
}
|
|
44049
|
+
define(Hsl, hsl, extend(Color, {
|
|
44050
|
+
brighter: function(k) {
|
|
44051
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
44052
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
44053
|
+
},
|
|
44054
|
+
darker: function(k) {
|
|
44055
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
44056
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
44057
|
+
},
|
|
44058
|
+
rgb: function() {
|
|
44059
|
+
var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
|
|
44060
|
+
return new Rgb(
|
|
44061
|
+
hsl2rgb(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m2),
|
|
44062
|
+
hsl2rgb(h2, m1, m2),
|
|
44063
|
+
hsl2rgb(h2 < 120 ? h2 + 240 : h2 - 120, m1, m2),
|
|
44064
|
+
this.opacity
|
|
44065
|
+
);
|
|
44066
|
+
},
|
|
44067
|
+
displayable: function() {
|
|
44068
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
|
|
44069
|
+
},
|
|
44070
|
+
formatHsl: function() {
|
|
44071
|
+
var a2 = this.opacity;
|
|
44072
|
+
a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
|
|
44073
|
+
return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")");
|
|
44074
|
+
}
|
|
44075
|
+
}));
|
|
44076
|
+
function hsl2rgb(h2, m1, m2) {
|
|
44077
|
+
return (h2 < 60 ? m1 + (m2 - m1) * h2 / 60 : h2 < 180 ? m2 : h2 < 240 ? m1 + (m2 - m1) * (240 - h2) / 60 : m1) * 255;
|
|
44078
|
+
}
|
|
43845
44079
|
var colorScale;
|
|
43846
44080
|
var hasRequiredColorScale;
|
|
43847
44081
|
function requireColorScale() {
|
|
@@ -49181,11 +49415,25 @@ function requireConstants() {
|
|
|
49181
49415
|
const MAX_SAFE_INTEGER2 = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
49182
49416
|
9007199254740991;
|
|
49183
49417
|
const MAX_SAFE_COMPONENT_LENGTH2 = 16;
|
|
49418
|
+
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH2 - 6;
|
|
49419
|
+
const RELEASE_TYPES = [
|
|
49420
|
+
"major",
|
|
49421
|
+
"premajor",
|
|
49422
|
+
"minor",
|
|
49423
|
+
"preminor",
|
|
49424
|
+
"patch",
|
|
49425
|
+
"prepatch",
|
|
49426
|
+
"prerelease"
|
|
49427
|
+
];
|
|
49184
49428
|
constants$1 = {
|
|
49185
|
-
SEMVER_SPEC_VERSION,
|
|
49186
49429
|
MAX_LENGTH: MAX_LENGTH2,
|
|
49430
|
+
MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH2,
|
|
49431
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
49187
49432
|
MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2,
|
|
49188
|
-
|
|
49433
|
+
RELEASE_TYPES,
|
|
49434
|
+
SEMVER_SPEC_VERSION,
|
|
49435
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
49436
|
+
FLAG_LOOSE: 2
|
|
49189
49437
|
};
|
|
49190
49438
|
return constants$1;
|
|
49191
49439
|
}
|
|
@@ -49204,30 +49452,49 @@ function requireRe() {
|
|
|
49204
49452
|
if (hasRequiredRe) return re$2.exports;
|
|
49205
49453
|
hasRequiredRe = 1;
|
|
49206
49454
|
(function(module2, exports2) {
|
|
49207
|
-
const {
|
|
49455
|
+
const {
|
|
49456
|
+
MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH2,
|
|
49457
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
49458
|
+
MAX_LENGTH: MAX_LENGTH2
|
|
49459
|
+
} = requireConstants();
|
|
49208
49460
|
const debug2 = requireDebug();
|
|
49209
49461
|
exports2 = module2.exports = {};
|
|
49210
49462
|
const re2 = exports2.re = [];
|
|
49463
|
+
const safeRe = exports2.safeRe = [];
|
|
49211
49464
|
const src = exports2.src = [];
|
|
49212
49465
|
const t4 = exports2.t = {};
|
|
49213
49466
|
let R = 0;
|
|
49467
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
49468
|
+
const safeRegexReplacements = [
|
|
49469
|
+
["\\s", 1],
|
|
49470
|
+
["\\d", MAX_LENGTH2],
|
|
49471
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
49472
|
+
];
|
|
49473
|
+
const makeSafeRegex = (value2) => {
|
|
49474
|
+
for (const [token2, max2] of safeRegexReplacements) {
|
|
49475
|
+
value2 = value2.split(`${token2}*`).join(`${token2}{0,${max2}}`).split(`${token2}+`).join(`${token2}{1,${max2}}`);
|
|
49476
|
+
}
|
|
49477
|
+
return value2;
|
|
49478
|
+
};
|
|
49214
49479
|
const createToken = (name, value2, isGlobal) => {
|
|
49480
|
+
const safe = makeSafeRegex(value2);
|
|
49215
49481
|
const index2 = R++;
|
|
49216
49482
|
debug2(name, index2, value2);
|
|
49217
49483
|
t4[name] = index2;
|
|
49218
49484
|
src[index2] = value2;
|
|
49219
49485
|
re2[index2] = new RegExp(value2, isGlobal ? "g" : void 0);
|
|
49486
|
+
safeRe[index2] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
49220
49487
|
};
|
|
49221
49488
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
49222
|
-
createToken("NUMERICIDENTIFIERLOOSE", "
|
|
49223
|
-
createToken("NONNUMERICIDENTIFIER",
|
|
49489
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
49490
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
49224
49491
|
createToken("MAINVERSION", `(${src[t4.NUMERICIDENTIFIER]})\\.(${src[t4.NUMERICIDENTIFIER]})\\.(${src[t4.NUMERICIDENTIFIER]})`);
|
|
49225
49492
|
createToken("MAINVERSIONLOOSE", `(${src[t4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t4.NUMERICIDENTIFIERLOOSE]})\\.(${src[t4.NUMERICIDENTIFIERLOOSE]})`);
|
|
49226
49493
|
createToken("PRERELEASEIDENTIFIER", `(?:${src[t4.NUMERICIDENTIFIER]}|${src[t4.NONNUMERICIDENTIFIER]})`);
|
|
49227
49494
|
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t4.NUMERICIDENTIFIERLOOSE]}|${src[t4.NONNUMERICIDENTIFIER]})`);
|
|
49228
49495
|
createToken("PRERELEASE", `(?:-(${src[t4.PRERELEASEIDENTIFIER]}(?:\\.${src[t4.PRERELEASEIDENTIFIER]})*))`);
|
|
49229
49496
|
createToken("PRERELEASELOOSE", `(?:-?(${src[t4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t4.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
49230
|
-
createToken("BUILDIDENTIFIER",
|
|
49497
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
49231
49498
|
createToken("BUILD", `(?:\\+(${src[t4.BUILDIDENTIFIER]}(?:\\.${src[t4.BUILDIDENTIFIER]})*))`);
|
|
49232
49499
|
createToken("FULLPLAIN", `v?${src[t4.MAINVERSION]}${src[t4.PRERELEASE]}?${src[t4.BUILD]}?`);
|
|
49233
49500
|
createToken("FULL", `^${src[t4.FULLPLAIN]}$`);
|
|
@@ -49240,8 +49507,11 @@ function requireRe() {
|
|
|
49240
49507
|
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t4.XRANGEIDENTIFIERLOOSE]})(?:${src[t4.PRERELEASELOOSE]})?${src[t4.BUILD]}?)?)?`);
|
|
49241
49508
|
createToken("XRANGE", `^${src[t4.GTLT]}\\s*${src[t4.XRANGEPLAIN]}$`);
|
|
49242
49509
|
createToken("XRANGELOOSE", `^${src[t4.GTLT]}\\s*${src[t4.XRANGEPLAINLOOSE]}$`);
|
|
49243
|
-
createToken("
|
|
49510
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH2}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH2}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH2}}))?`);
|
|
49511
|
+
createToken("COERCE", `${src[t4.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
49512
|
+
createToken("COERCEFULL", src[t4.COERCEPLAIN] + `(?:${src[t4.PRERELEASE]})?(?:${src[t4.BUILD]})?(?:$|[^\\d])`);
|
|
49244
49513
|
createToken("COERCERTL", src[t4.COERCE], true);
|
|
49514
|
+
createToken("COERCERTLFULL", src[t4.COERCEFULL], true);
|
|
49245
49515
|
createToken("LONETILDE", "(?:~>?)");
|
|
49246
49516
|
createToken("TILDETRIM", `(\\s*)${src[t4.LONETILDE]}\\s+`, true);
|
|
49247
49517
|
exports2.tildeTrimReplace = "$1~";
|
|
@@ -49269,11 +49539,17 @@ var hasRequiredParseOptions;
|
|
|
49269
49539
|
function requireParseOptions() {
|
|
49270
49540
|
if (hasRequiredParseOptions) return parseOptions_1$1;
|
|
49271
49541
|
hasRequiredParseOptions = 1;
|
|
49272
|
-
const
|
|
49273
|
-
const
|
|
49274
|
-
|
|
49275
|
-
|
|
49276
|
-
|
|
49542
|
+
const looseOption = Object.freeze({ loose: true });
|
|
49543
|
+
const emptyOpts = Object.freeze({});
|
|
49544
|
+
const parseOptions2 = (options) => {
|
|
49545
|
+
if (!options) {
|
|
49546
|
+
return emptyOpts;
|
|
49547
|
+
}
|
|
49548
|
+
if (typeof options !== "object") {
|
|
49549
|
+
return looseOption;
|
|
49550
|
+
}
|
|
49551
|
+
return options;
|
|
49552
|
+
};
|
|
49277
49553
|
parseOptions_1$1 = parseOptions2;
|
|
49278
49554
|
return parseOptions_1$1;
|
|
49279
49555
|
}
|
|
@@ -49306,7 +49582,7 @@ function requireSemver$1() {
|
|
|
49306
49582
|
hasRequiredSemver$1 = 1;
|
|
49307
49583
|
const debug2 = requireDebug();
|
|
49308
49584
|
const { MAX_LENGTH: MAX_LENGTH2, MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2 } = requireConstants();
|
|
49309
|
-
const {
|
|
49585
|
+
const { safeRe: re2, t: t4 } = requireRe();
|
|
49310
49586
|
const parseOptions2 = requireParseOptions();
|
|
49311
49587
|
const { compareIdentifiers: compareIdentifiers2 } = requireIdentifiers();
|
|
49312
49588
|
class SemVer2 {
|
|
@@ -49319,7 +49595,7 @@ function requireSemver$1() {
|
|
|
49319
49595
|
version2 = version2.version;
|
|
49320
49596
|
}
|
|
49321
49597
|
} else if (typeof version2 !== "string") {
|
|
49322
|
-
throw new TypeError(`Invalid
|
|
49598
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
|
|
49323
49599
|
}
|
|
49324
49600
|
if (version2.length > MAX_LENGTH2) {
|
|
49325
49601
|
throw new TypeError(
|
|
@@ -49429,7 +49705,7 @@ function requireSemver$1() {
|
|
|
49429
49705
|
do {
|
|
49430
49706
|
const a2 = this.build[i];
|
|
49431
49707
|
const b2 = other.build[i];
|
|
49432
|
-
debug2("
|
|
49708
|
+
debug2("build compare", i, a2, b2);
|
|
49433
49709
|
if (a2 === void 0 && b2 === void 0) {
|
|
49434
49710
|
return 0;
|
|
49435
49711
|
} else if (b2 === void 0) {
|
|
@@ -49445,33 +49721,33 @@ function requireSemver$1() {
|
|
|
49445
49721
|
}
|
|
49446
49722
|
// preminor will bump the version up to the next minor release, and immediately
|
|
49447
49723
|
// down to pre-release. premajor and prepatch work the same way.
|
|
49448
|
-
inc(release, identifier2) {
|
|
49724
|
+
inc(release, identifier2, identifierBase) {
|
|
49449
49725
|
switch (release) {
|
|
49450
49726
|
case "premajor":
|
|
49451
49727
|
this.prerelease.length = 0;
|
|
49452
49728
|
this.patch = 0;
|
|
49453
49729
|
this.minor = 0;
|
|
49454
49730
|
this.major++;
|
|
49455
|
-
this.inc("pre", identifier2);
|
|
49731
|
+
this.inc("pre", identifier2, identifierBase);
|
|
49456
49732
|
break;
|
|
49457
49733
|
case "preminor":
|
|
49458
49734
|
this.prerelease.length = 0;
|
|
49459
49735
|
this.patch = 0;
|
|
49460
49736
|
this.minor++;
|
|
49461
|
-
this.inc("pre", identifier2);
|
|
49737
|
+
this.inc("pre", identifier2, identifierBase);
|
|
49462
49738
|
break;
|
|
49463
49739
|
case "prepatch":
|
|
49464
49740
|
this.prerelease.length = 0;
|
|
49465
|
-
this.inc("patch", identifier2);
|
|
49466
|
-
this.inc("pre", identifier2);
|
|
49741
|
+
this.inc("patch", identifier2, identifierBase);
|
|
49742
|
+
this.inc("pre", identifier2, identifierBase);
|
|
49467
49743
|
break;
|
|
49468
49744
|
// If the input is a non-prerelease version, this acts the same as
|
|
49469
49745
|
// prepatch.
|
|
49470
49746
|
case "prerelease":
|
|
49471
49747
|
if (this.prerelease.length === 0) {
|
|
49472
|
-
this.inc("patch", identifier2);
|
|
49748
|
+
this.inc("patch", identifier2, identifierBase);
|
|
49473
49749
|
}
|
|
49474
|
-
this.inc("pre", identifier2);
|
|
49750
|
+
this.inc("pre", identifier2, identifierBase);
|
|
49475
49751
|
break;
|
|
49476
49752
|
case "major":
|
|
49477
49753
|
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
@@ -49496,9 +49772,13 @@ function requireSemver$1() {
|
|
|
49496
49772
|
break;
|
|
49497
49773
|
// This probably shouldn't be used publicly.
|
|
49498
49774
|
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
49499
|
-
case "pre":
|
|
49775
|
+
case "pre": {
|
|
49776
|
+
const base2 = Number(identifierBase) ? 1 : 0;
|
|
49777
|
+
if (!identifier2 && identifierBase === false) {
|
|
49778
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
49779
|
+
}
|
|
49500
49780
|
if (this.prerelease.length === 0) {
|
|
49501
|
-
this.prerelease = [
|
|
49781
|
+
this.prerelease = [base2];
|
|
49502
49782
|
} else {
|
|
49503
49783
|
let i = this.prerelease.length;
|
|
49504
49784
|
while (--i >= 0) {
|
|
@@ -49508,24 +49788,34 @@ function requireSemver$1() {
|
|
|
49508
49788
|
}
|
|
49509
49789
|
}
|
|
49510
49790
|
if (i === -1) {
|
|
49511
|
-
this.prerelease.
|
|
49791
|
+
if (identifier2 === this.prerelease.join(".") && identifierBase === false) {
|
|
49792
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
49793
|
+
}
|
|
49794
|
+
this.prerelease.push(base2);
|
|
49512
49795
|
}
|
|
49513
49796
|
}
|
|
49514
49797
|
if (identifier2) {
|
|
49798
|
+
let prerelease = [identifier2, base2];
|
|
49799
|
+
if (identifierBase === false) {
|
|
49800
|
+
prerelease = [identifier2];
|
|
49801
|
+
}
|
|
49515
49802
|
if (compareIdentifiers2(this.prerelease[0], identifier2) === 0) {
|
|
49516
49803
|
if (isNaN(this.prerelease[1])) {
|
|
49517
|
-
this.prerelease =
|
|
49804
|
+
this.prerelease = prerelease;
|
|
49518
49805
|
}
|
|
49519
49806
|
} else {
|
|
49520
|
-
this.prerelease =
|
|
49807
|
+
this.prerelease = prerelease;
|
|
49521
49808
|
}
|
|
49522
49809
|
}
|
|
49523
49810
|
break;
|
|
49811
|
+
}
|
|
49524
49812
|
default:
|
|
49525
49813
|
throw new Error(`invalid increment argument: ${release}`);
|
|
49526
49814
|
}
|
|
49527
|
-
this.format();
|
|
49528
|
-
this.
|
|
49815
|
+
this.raw = this.format();
|
|
49816
|
+
if (this.build.length) {
|
|
49817
|
+
this.raw += `+${this.build.join(".")}`;
|
|
49818
|
+
}
|
|
49529
49819
|
return this;
|
|
49530
49820
|
}
|
|
49531
49821
|
}
|
|
@@ -49537,29 +49827,18 @@ var hasRequiredParse;
|
|
|
49537
49827
|
function requireParse() {
|
|
49538
49828
|
if (hasRequiredParse) return parse_1;
|
|
49539
49829
|
hasRequiredParse = 1;
|
|
49540
|
-
const { MAX_LENGTH: MAX_LENGTH2 } = requireConstants();
|
|
49541
|
-
const { re: re2, t: t4 } = requireRe();
|
|
49542
49830
|
const SemVer2 = requireSemver$1();
|
|
49543
|
-
const
|
|
49544
|
-
const parse2 = (version2, options) => {
|
|
49545
|
-
options = parseOptions2(options);
|
|
49831
|
+
const parse2 = (version2, options, throwErrors = false) => {
|
|
49546
49832
|
if (version2 instanceof SemVer2) {
|
|
49547
49833
|
return version2;
|
|
49548
49834
|
}
|
|
49549
|
-
if (typeof version2 !== "string") {
|
|
49550
|
-
return null;
|
|
49551
|
-
}
|
|
49552
|
-
if (version2.length > MAX_LENGTH2) {
|
|
49553
|
-
return null;
|
|
49554
|
-
}
|
|
49555
|
-
const r2 = options.loose ? re2[t4.LOOSE] : re2[t4.FULL];
|
|
49556
|
-
if (!r2.test(version2)) {
|
|
49557
|
-
return null;
|
|
49558
|
-
}
|
|
49559
49835
|
try {
|
|
49560
49836
|
return new SemVer2(version2, options);
|
|
49561
49837
|
} catch (er) {
|
|
49562
|
-
|
|
49838
|
+
if (!throwErrors) {
|
|
49839
|
+
return null;
|
|
49840
|
+
}
|
|
49841
|
+
throw er;
|
|
49563
49842
|
}
|
|
49564
49843
|
};
|
|
49565
49844
|
parse_1 = parse2;
|
|
@@ -49597,8 +49876,9 @@ function requireInc() {
|
|
|
49597
49876
|
if (hasRequiredInc) return inc_1;
|
|
49598
49877
|
hasRequiredInc = 1;
|
|
49599
49878
|
const SemVer2 = requireSemver$1();
|
|
49600
|
-
const inc = (version2, release, options, identifier2) => {
|
|
49879
|
+
const inc = (version2, release, options, identifier2, identifierBase) => {
|
|
49601
49880
|
if (typeof options === "string") {
|
|
49881
|
+
identifierBase = identifier2;
|
|
49602
49882
|
identifier2 = options;
|
|
49603
49883
|
options = void 0;
|
|
49604
49884
|
}
|
|
@@ -49606,7 +49886,7 @@ function requireInc() {
|
|
|
49606
49886
|
return new SemVer2(
|
|
49607
49887
|
version2 instanceof SemVer2 ? version2.version : version2,
|
|
49608
49888
|
options
|
|
49609
|
-
).inc(release, identifier2).version;
|
|
49889
|
+
).inc(release, identifier2, identifierBase).version;
|
|
49610
49890
|
} catch (er) {
|
|
49611
49891
|
return null;
|
|
49612
49892
|
}
|
|
@@ -49614,51 +49894,47 @@ function requireInc() {
|
|
|
49614
49894
|
inc_1 = inc;
|
|
49615
49895
|
return inc_1;
|
|
49616
49896
|
}
|
|
49617
|
-
var compare_1$1;
|
|
49618
|
-
var hasRequiredCompare;
|
|
49619
|
-
function requireCompare() {
|
|
49620
|
-
if (hasRequiredCompare) return compare_1$1;
|
|
49621
|
-
hasRequiredCompare = 1;
|
|
49622
|
-
const SemVer2 = requireSemver$1();
|
|
49623
|
-
const compare2 = (a2, b2, loose) => new SemVer2(a2, loose).compare(new SemVer2(b2, loose));
|
|
49624
|
-
compare_1$1 = compare2;
|
|
49625
|
-
return compare_1$1;
|
|
49626
|
-
}
|
|
49627
|
-
var eq_1$1;
|
|
49628
|
-
var hasRequiredEq;
|
|
49629
|
-
function requireEq() {
|
|
49630
|
-
if (hasRequiredEq) return eq_1$1;
|
|
49631
|
-
hasRequiredEq = 1;
|
|
49632
|
-
const compare2 = requireCompare();
|
|
49633
|
-
const eq2 = (a2, b2, loose) => compare2(a2, b2, loose) === 0;
|
|
49634
|
-
eq_1$1 = eq2;
|
|
49635
|
-
return eq_1$1;
|
|
49636
|
-
}
|
|
49637
49897
|
var diff_1;
|
|
49638
49898
|
var hasRequiredDiff;
|
|
49639
49899
|
function requireDiff() {
|
|
49640
49900
|
if (hasRequiredDiff) return diff_1;
|
|
49641
49901
|
hasRequiredDiff = 1;
|
|
49642
49902
|
const parse2 = requireParse();
|
|
49643
|
-
const eq2 = requireEq();
|
|
49644
49903
|
const diff = (version1, version2) => {
|
|
49645
|
-
|
|
49904
|
+
const v1 = parse2(version1, null, true);
|
|
49905
|
+
const v2 = parse2(version2, null, true);
|
|
49906
|
+
const comparison = v1.compare(v2);
|
|
49907
|
+
if (comparison === 0) {
|
|
49646
49908
|
return null;
|
|
49647
|
-
}
|
|
49648
|
-
|
|
49649
|
-
|
|
49650
|
-
|
|
49651
|
-
|
|
49652
|
-
|
|
49653
|
-
|
|
49654
|
-
|
|
49655
|
-
|
|
49656
|
-
|
|
49657
|
-
|
|
49658
|
-
|
|
49909
|
+
}
|
|
49910
|
+
const v1Higher = comparison > 0;
|
|
49911
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
49912
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
49913
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
49914
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
49915
|
+
if (lowHasPre && !highHasPre) {
|
|
49916
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
49917
|
+
return "major";
|
|
49918
|
+
}
|
|
49919
|
+
if (highVersion.patch) {
|
|
49920
|
+
return "patch";
|
|
49659
49921
|
}
|
|
49660
|
-
|
|
49922
|
+
if (highVersion.minor) {
|
|
49923
|
+
return "minor";
|
|
49924
|
+
}
|
|
49925
|
+
return "major";
|
|
49926
|
+
}
|
|
49927
|
+
const prefix2 = highHasPre ? "pre" : "";
|
|
49928
|
+
if (v1.major !== v2.major) {
|
|
49929
|
+
return prefix2 + "major";
|
|
49661
49930
|
}
|
|
49931
|
+
if (v1.minor !== v2.minor) {
|
|
49932
|
+
return prefix2 + "minor";
|
|
49933
|
+
}
|
|
49934
|
+
if (v1.patch !== v2.patch) {
|
|
49935
|
+
return prefix2 + "patch";
|
|
49936
|
+
}
|
|
49937
|
+
return "prerelease";
|
|
49662
49938
|
};
|
|
49663
49939
|
diff_1 = diff;
|
|
49664
49940
|
return diff_1;
|
|
@@ -49706,6 +49982,16 @@ function requirePrerelease() {
|
|
|
49706
49982
|
prerelease_1 = prerelease;
|
|
49707
49983
|
return prerelease_1;
|
|
49708
49984
|
}
|
|
49985
|
+
var compare_1$1;
|
|
49986
|
+
var hasRequiredCompare;
|
|
49987
|
+
function requireCompare() {
|
|
49988
|
+
if (hasRequiredCompare) return compare_1$1;
|
|
49989
|
+
hasRequiredCompare = 1;
|
|
49990
|
+
const SemVer2 = requireSemver$1();
|
|
49991
|
+
const compare2 = (a2, b2, loose) => new SemVer2(a2, loose).compare(new SemVer2(b2, loose));
|
|
49992
|
+
compare_1$1 = compare2;
|
|
49993
|
+
return compare_1$1;
|
|
49994
|
+
}
|
|
49709
49995
|
var rcompare_1;
|
|
49710
49996
|
var hasRequiredRcompare;
|
|
49711
49997
|
function requireRcompare() {
|
|
@@ -49780,6 +50066,16 @@ function requireLt() {
|
|
|
49780
50066
|
lt_1$1 = lt2;
|
|
49781
50067
|
return lt_1$1;
|
|
49782
50068
|
}
|
|
50069
|
+
var eq_1$1;
|
|
50070
|
+
var hasRequiredEq;
|
|
50071
|
+
function requireEq() {
|
|
50072
|
+
if (hasRequiredEq) return eq_1$1;
|
|
50073
|
+
hasRequiredEq = 1;
|
|
50074
|
+
const compare2 = requireCompare();
|
|
50075
|
+
const eq2 = (a2, b2, loose) => compare2(a2, b2, loose) === 0;
|
|
50076
|
+
eq_1$1 = eq2;
|
|
50077
|
+
return eq_1$1;
|
|
50078
|
+
}
|
|
49783
50079
|
var neq_1$1;
|
|
49784
50080
|
var hasRequiredNeq;
|
|
49785
50081
|
function requireNeq() {
|
|
@@ -49867,7 +50163,7 @@ function requireCoerce() {
|
|
|
49867
50163
|
hasRequiredCoerce = 1;
|
|
49868
50164
|
const SemVer2 = requireSemver$1();
|
|
49869
50165
|
const parse2 = requireParse();
|
|
49870
|
-
const {
|
|
50166
|
+
const { safeRe: re2, t: t4 } = requireRe();
|
|
49871
50167
|
const coerce2 = (version2, options) => {
|
|
49872
50168
|
if (version2 instanceof SemVer2) {
|
|
49873
50169
|
return version2;
|
|
@@ -49881,682 +50177,75 @@ function requireCoerce() {
|
|
|
49881
50177
|
options = options || {};
|
|
49882
50178
|
let match2 = null;
|
|
49883
50179
|
if (!options.rtl) {
|
|
49884
|
-
match2 = version2.match(re2[t4.COERCE]);
|
|
50180
|
+
match2 = version2.match(options.includePrerelease ? re2[t4.COERCEFULL] : re2[t4.COERCE]);
|
|
49885
50181
|
} else {
|
|
50182
|
+
const coerceRtlRegex = options.includePrerelease ? re2[t4.COERCERTLFULL] : re2[t4.COERCERTL];
|
|
49886
50183
|
let next2;
|
|
49887
|
-
while ((next2 =
|
|
50184
|
+
while ((next2 = coerceRtlRegex.exec(version2)) && (!match2 || match2.index + match2[0].length !== version2.length)) {
|
|
49888
50185
|
if (!match2 || next2.index + next2[0].length !== match2.index + match2[0].length) {
|
|
49889
50186
|
match2 = next2;
|
|
49890
50187
|
}
|
|
49891
|
-
|
|
50188
|
+
coerceRtlRegex.lastIndex = next2.index + next2[1].length + next2[2].length;
|
|
49892
50189
|
}
|
|
49893
|
-
|
|
50190
|
+
coerceRtlRegex.lastIndex = -1;
|
|
49894
50191
|
}
|
|
49895
50192
|
if (match2 === null) {
|
|
49896
50193
|
return null;
|
|
49897
50194
|
}
|
|
49898
|
-
|
|
50195
|
+
const major = match2[2];
|
|
50196
|
+
const minor = match2[3] || "0";
|
|
50197
|
+
const patch2 = match2[4] || "0";
|
|
50198
|
+
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
50199
|
+
const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
50200
|
+
return parse2(`${major}.${minor}.${patch2}${prerelease}${build}`, options);
|
|
49899
50201
|
};
|
|
49900
50202
|
coerce_1 = coerce2;
|
|
49901
50203
|
return coerce_1;
|
|
49902
50204
|
}
|
|
49903
|
-
var
|
|
49904
|
-
var
|
|
49905
|
-
function
|
|
49906
|
-
if (
|
|
49907
|
-
|
|
49908
|
-
iterator = function(Yallist2) {
|
|
49909
|
-
Yallist2.prototype[Symbol.iterator] = function* () {
|
|
49910
|
-
for (let walker = this.head; walker; walker = walker.next) {
|
|
49911
|
-
yield walker.value;
|
|
49912
|
-
}
|
|
49913
|
-
};
|
|
49914
|
-
};
|
|
49915
|
-
return iterator;
|
|
49916
|
-
}
|
|
49917
|
-
var yallist$1;
|
|
49918
|
-
var hasRequiredYallist;
|
|
49919
|
-
function requireYallist() {
|
|
49920
|
-
if (hasRequiredYallist) return yallist$1;
|
|
49921
|
-
hasRequiredYallist = 1;
|
|
49922
|
-
yallist$1 = Yallist2;
|
|
49923
|
-
Yallist2.Node = Node2;
|
|
49924
|
-
Yallist2.create = Yallist2;
|
|
49925
|
-
function Yallist2(list) {
|
|
49926
|
-
var self2 = this;
|
|
49927
|
-
if (!(self2 instanceof Yallist2)) {
|
|
49928
|
-
self2 = new Yallist2();
|
|
49929
|
-
}
|
|
49930
|
-
self2.tail = null;
|
|
49931
|
-
self2.head = null;
|
|
49932
|
-
self2.length = 0;
|
|
49933
|
-
if (list && typeof list.forEach === "function") {
|
|
49934
|
-
list.forEach(function(item) {
|
|
49935
|
-
self2.push(item);
|
|
49936
|
-
});
|
|
49937
|
-
} else if (arguments.length > 0) {
|
|
49938
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
49939
|
-
self2.push(arguments[i]);
|
|
49940
|
-
}
|
|
49941
|
-
}
|
|
49942
|
-
return self2;
|
|
49943
|
-
}
|
|
49944
|
-
Yallist2.prototype.removeNode = function(node2) {
|
|
49945
|
-
if (node2.list !== this) {
|
|
49946
|
-
throw new Error("removing node which does not belong to this list");
|
|
49947
|
-
}
|
|
49948
|
-
var next2 = node2.next;
|
|
49949
|
-
var prev2 = node2.prev;
|
|
49950
|
-
if (next2) {
|
|
49951
|
-
next2.prev = prev2;
|
|
49952
|
-
}
|
|
49953
|
-
if (prev2) {
|
|
49954
|
-
prev2.next = next2;
|
|
49955
|
-
}
|
|
49956
|
-
if (node2 === this.head) {
|
|
49957
|
-
this.head = next2;
|
|
49958
|
-
}
|
|
49959
|
-
if (node2 === this.tail) {
|
|
49960
|
-
this.tail = prev2;
|
|
49961
|
-
}
|
|
49962
|
-
node2.list.length--;
|
|
49963
|
-
node2.next = null;
|
|
49964
|
-
node2.prev = null;
|
|
49965
|
-
node2.list = null;
|
|
49966
|
-
return next2;
|
|
49967
|
-
};
|
|
49968
|
-
Yallist2.prototype.unshiftNode = function(node2) {
|
|
49969
|
-
if (node2 === this.head) {
|
|
49970
|
-
return;
|
|
49971
|
-
}
|
|
49972
|
-
if (node2.list) {
|
|
49973
|
-
node2.list.removeNode(node2);
|
|
49974
|
-
}
|
|
49975
|
-
var head = this.head;
|
|
49976
|
-
node2.list = this;
|
|
49977
|
-
node2.next = head;
|
|
49978
|
-
if (head) {
|
|
49979
|
-
head.prev = node2;
|
|
49980
|
-
}
|
|
49981
|
-
this.head = node2;
|
|
49982
|
-
if (!this.tail) {
|
|
49983
|
-
this.tail = node2;
|
|
49984
|
-
}
|
|
49985
|
-
this.length++;
|
|
49986
|
-
};
|
|
49987
|
-
Yallist2.prototype.pushNode = function(node2) {
|
|
49988
|
-
if (node2 === this.tail) {
|
|
49989
|
-
return;
|
|
49990
|
-
}
|
|
49991
|
-
if (node2.list) {
|
|
49992
|
-
node2.list.removeNode(node2);
|
|
49993
|
-
}
|
|
49994
|
-
var tail = this.tail;
|
|
49995
|
-
node2.list = this;
|
|
49996
|
-
node2.prev = tail;
|
|
49997
|
-
if (tail) {
|
|
49998
|
-
tail.next = node2;
|
|
49999
|
-
}
|
|
50000
|
-
this.tail = node2;
|
|
50001
|
-
if (!this.head) {
|
|
50002
|
-
this.head = node2;
|
|
50003
|
-
}
|
|
50004
|
-
this.length++;
|
|
50005
|
-
};
|
|
50006
|
-
Yallist2.prototype.push = function() {
|
|
50007
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
50008
|
-
push2(this, arguments[i]);
|
|
50009
|
-
}
|
|
50010
|
-
return this.length;
|
|
50011
|
-
};
|
|
50012
|
-
Yallist2.prototype.unshift = function() {
|
|
50013
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
50014
|
-
unshift2(this, arguments[i]);
|
|
50015
|
-
}
|
|
50016
|
-
return this.length;
|
|
50017
|
-
};
|
|
50018
|
-
Yallist2.prototype.pop = function() {
|
|
50019
|
-
if (!this.tail) {
|
|
50020
|
-
return void 0;
|
|
50021
|
-
}
|
|
50022
|
-
var res = this.tail.value;
|
|
50023
|
-
this.tail = this.tail.prev;
|
|
50024
|
-
if (this.tail) {
|
|
50025
|
-
this.tail.next = null;
|
|
50026
|
-
} else {
|
|
50027
|
-
this.head = null;
|
|
50028
|
-
}
|
|
50029
|
-
this.length--;
|
|
50030
|
-
return res;
|
|
50031
|
-
};
|
|
50032
|
-
Yallist2.prototype.shift = function() {
|
|
50033
|
-
if (!this.head) {
|
|
50034
|
-
return void 0;
|
|
50035
|
-
}
|
|
50036
|
-
var res = this.head.value;
|
|
50037
|
-
this.head = this.head.next;
|
|
50038
|
-
if (this.head) {
|
|
50039
|
-
this.head.prev = null;
|
|
50040
|
-
} else {
|
|
50041
|
-
this.tail = null;
|
|
50042
|
-
}
|
|
50043
|
-
this.length--;
|
|
50044
|
-
return res;
|
|
50045
|
-
};
|
|
50046
|
-
Yallist2.prototype.forEach = function(fn, thisp) {
|
|
50047
|
-
thisp = thisp || this;
|
|
50048
|
-
for (var walker = this.head, i = 0; walker !== null; i++) {
|
|
50049
|
-
fn.call(thisp, walker.value, i, this);
|
|
50050
|
-
walker = walker.next;
|
|
50051
|
-
}
|
|
50052
|
-
};
|
|
50053
|
-
Yallist2.prototype.forEachReverse = function(fn, thisp) {
|
|
50054
|
-
thisp = thisp || this;
|
|
50055
|
-
for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
|
|
50056
|
-
fn.call(thisp, walker.value, i, this);
|
|
50057
|
-
walker = walker.prev;
|
|
50058
|
-
}
|
|
50059
|
-
};
|
|
50060
|
-
Yallist2.prototype.get = function(n) {
|
|
50061
|
-
for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
|
|
50062
|
-
walker = walker.next;
|
|
50063
|
-
}
|
|
50064
|
-
if (i === n && walker !== null) {
|
|
50065
|
-
return walker.value;
|
|
50066
|
-
}
|
|
50067
|
-
};
|
|
50068
|
-
Yallist2.prototype.getReverse = function(n) {
|
|
50069
|
-
for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
|
|
50070
|
-
walker = walker.prev;
|
|
50071
|
-
}
|
|
50072
|
-
if (i === n && walker !== null) {
|
|
50073
|
-
return walker.value;
|
|
50074
|
-
}
|
|
50075
|
-
};
|
|
50076
|
-
Yallist2.prototype.map = function(fn, thisp) {
|
|
50077
|
-
thisp = thisp || this;
|
|
50078
|
-
var res = new Yallist2();
|
|
50079
|
-
for (var walker = this.head; walker !== null; ) {
|
|
50080
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
50081
|
-
walker = walker.next;
|
|
50082
|
-
}
|
|
50083
|
-
return res;
|
|
50084
|
-
};
|
|
50085
|
-
Yallist2.prototype.mapReverse = function(fn, thisp) {
|
|
50086
|
-
thisp = thisp || this;
|
|
50087
|
-
var res = new Yallist2();
|
|
50088
|
-
for (var walker = this.tail; walker !== null; ) {
|
|
50089
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
50090
|
-
walker = walker.prev;
|
|
50091
|
-
}
|
|
50092
|
-
return res;
|
|
50093
|
-
};
|
|
50094
|
-
Yallist2.prototype.reduce = function(fn, initial) {
|
|
50095
|
-
var acc;
|
|
50096
|
-
var walker = this.head;
|
|
50097
|
-
if (arguments.length > 1) {
|
|
50098
|
-
acc = initial;
|
|
50099
|
-
} else if (this.head) {
|
|
50100
|
-
walker = this.head.next;
|
|
50101
|
-
acc = this.head.value;
|
|
50102
|
-
} else {
|
|
50103
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
|
50104
|
-
}
|
|
50105
|
-
for (var i = 0; walker !== null; i++) {
|
|
50106
|
-
acc = fn(acc, walker.value, i);
|
|
50107
|
-
walker = walker.next;
|
|
50108
|
-
}
|
|
50109
|
-
return acc;
|
|
50110
|
-
};
|
|
50111
|
-
Yallist2.prototype.reduceReverse = function(fn, initial) {
|
|
50112
|
-
var acc;
|
|
50113
|
-
var walker = this.tail;
|
|
50114
|
-
if (arguments.length > 1) {
|
|
50115
|
-
acc = initial;
|
|
50116
|
-
} else if (this.tail) {
|
|
50117
|
-
walker = this.tail.prev;
|
|
50118
|
-
acc = this.tail.value;
|
|
50119
|
-
} else {
|
|
50120
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
|
50121
|
-
}
|
|
50122
|
-
for (var i = this.length - 1; walker !== null; i--) {
|
|
50123
|
-
acc = fn(acc, walker.value, i);
|
|
50124
|
-
walker = walker.prev;
|
|
50125
|
-
}
|
|
50126
|
-
return acc;
|
|
50127
|
-
};
|
|
50128
|
-
Yallist2.prototype.toArray = function() {
|
|
50129
|
-
var arr = new Array(this.length);
|
|
50130
|
-
for (var i = 0, walker = this.head; walker !== null; i++) {
|
|
50131
|
-
arr[i] = walker.value;
|
|
50132
|
-
walker = walker.next;
|
|
50133
|
-
}
|
|
50134
|
-
return arr;
|
|
50135
|
-
};
|
|
50136
|
-
Yallist2.prototype.toArrayReverse = function() {
|
|
50137
|
-
var arr = new Array(this.length);
|
|
50138
|
-
for (var i = 0, walker = this.tail; walker !== null; i++) {
|
|
50139
|
-
arr[i] = walker.value;
|
|
50140
|
-
walker = walker.prev;
|
|
50141
|
-
}
|
|
50142
|
-
return arr;
|
|
50143
|
-
};
|
|
50144
|
-
Yallist2.prototype.slice = function(from2, to) {
|
|
50145
|
-
to = to || this.length;
|
|
50146
|
-
if (to < 0) {
|
|
50147
|
-
to += this.length;
|
|
50148
|
-
}
|
|
50149
|
-
from2 = from2 || 0;
|
|
50150
|
-
if (from2 < 0) {
|
|
50151
|
-
from2 += this.length;
|
|
50152
|
-
}
|
|
50153
|
-
var ret = new Yallist2();
|
|
50154
|
-
if (to < from2 || to < 0) {
|
|
50155
|
-
return ret;
|
|
50156
|
-
}
|
|
50157
|
-
if (from2 < 0) {
|
|
50158
|
-
from2 = 0;
|
|
50159
|
-
}
|
|
50160
|
-
if (to > this.length) {
|
|
50161
|
-
to = this.length;
|
|
50162
|
-
}
|
|
50163
|
-
for (var i = 0, walker = this.head; walker !== null && i < from2; i++) {
|
|
50164
|
-
walker = walker.next;
|
|
50165
|
-
}
|
|
50166
|
-
for (; walker !== null && i < to; i++, walker = walker.next) {
|
|
50167
|
-
ret.push(walker.value);
|
|
50168
|
-
}
|
|
50169
|
-
return ret;
|
|
50170
|
-
};
|
|
50171
|
-
Yallist2.prototype.sliceReverse = function(from2, to) {
|
|
50172
|
-
to = to || this.length;
|
|
50173
|
-
if (to < 0) {
|
|
50174
|
-
to += this.length;
|
|
50175
|
-
}
|
|
50176
|
-
from2 = from2 || 0;
|
|
50177
|
-
if (from2 < 0) {
|
|
50178
|
-
from2 += this.length;
|
|
50179
|
-
}
|
|
50180
|
-
var ret = new Yallist2();
|
|
50181
|
-
if (to < from2 || to < 0) {
|
|
50182
|
-
return ret;
|
|
50183
|
-
}
|
|
50184
|
-
if (from2 < 0) {
|
|
50185
|
-
from2 = 0;
|
|
50186
|
-
}
|
|
50187
|
-
if (to > this.length) {
|
|
50188
|
-
to = this.length;
|
|
50189
|
-
}
|
|
50190
|
-
for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
|
|
50191
|
-
walker = walker.prev;
|
|
50192
|
-
}
|
|
50193
|
-
for (; walker !== null && i > from2; i--, walker = walker.prev) {
|
|
50194
|
-
ret.push(walker.value);
|
|
50195
|
-
}
|
|
50196
|
-
return ret;
|
|
50197
|
-
};
|
|
50198
|
-
Yallist2.prototype.splice = function(start, deleteCount, ...nodes) {
|
|
50199
|
-
if (start > this.length) {
|
|
50200
|
-
start = this.length - 1;
|
|
50201
|
-
}
|
|
50202
|
-
if (start < 0) {
|
|
50203
|
-
start = this.length + start;
|
|
50204
|
-
}
|
|
50205
|
-
for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
|
|
50206
|
-
walker = walker.next;
|
|
50207
|
-
}
|
|
50208
|
-
var ret = [];
|
|
50209
|
-
for (var i = 0; walker && i < deleteCount; i++) {
|
|
50210
|
-
ret.push(walker.value);
|
|
50211
|
-
walker = this.removeNode(walker);
|
|
50212
|
-
}
|
|
50213
|
-
if (walker === null) {
|
|
50214
|
-
walker = this.tail;
|
|
50215
|
-
}
|
|
50216
|
-
if (walker !== this.head && walker !== this.tail) {
|
|
50217
|
-
walker = walker.prev;
|
|
50218
|
-
}
|
|
50219
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
50220
|
-
walker = insert2(this, walker, nodes[i]);
|
|
50221
|
-
}
|
|
50222
|
-
return ret;
|
|
50223
|
-
};
|
|
50224
|
-
Yallist2.prototype.reverse = function() {
|
|
50225
|
-
var head = this.head;
|
|
50226
|
-
var tail = this.tail;
|
|
50227
|
-
for (var walker = head; walker !== null; walker = walker.prev) {
|
|
50228
|
-
var p = walker.prev;
|
|
50229
|
-
walker.prev = walker.next;
|
|
50230
|
-
walker.next = p;
|
|
50231
|
-
}
|
|
50232
|
-
this.head = tail;
|
|
50233
|
-
this.tail = head;
|
|
50234
|
-
return this;
|
|
50235
|
-
};
|
|
50236
|
-
function insert2(self2, node2, value2) {
|
|
50237
|
-
var inserted = node2 === self2.head ? new Node2(value2, null, node2, self2) : new Node2(value2, node2, node2.next, self2);
|
|
50238
|
-
if (inserted.next === null) {
|
|
50239
|
-
self2.tail = inserted;
|
|
50240
|
-
}
|
|
50241
|
-
if (inserted.prev === null) {
|
|
50242
|
-
self2.head = inserted;
|
|
50243
|
-
}
|
|
50244
|
-
self2.length++;
|
|
50245
|
-
return inserted;
|
|
50246
|
-
}
|
|
50247
|
-
function push2(self2, item) {
|
|
50248
|
-
self2.tail = new Node2(item, self2.tail, null, self2);
|
|
50249
|
-
if (!self2.head) {
|
|
50250
|
-
self2.head = self2.tail;
|
|
50251
|
-
}
|
|
50252
|
-
self2.length++;
|
|
50253
|
-
}
|
|
50254
|
-
function unshift2(self2, item) {
|
|
50255
|
-
self2.head = new Node2(item, null, self2.head, self2);
|
|
50256
|
-
if (!self2.tail) {
|
|
50257
|
-
self2.tail = self2.head;
|
|
50258
|
-
}
|
|
50259
|
-
self2.length++;
|
|
50260
|
-
}
|
|
50261
|
-
function Node2(value2, prev2, next2, list) {
|
|
50262
|
-
if (!(this instanceof Node2)) {
|
|
50263
|
-
return new Node2(value2, prev2, next2, list);
|
|
50264
|
-
}
|
|
50265
|
-
this.list = list;
|
|
50266
|
-
this.value = value2;
|
|
50267
|
-
if (prev2) {
|
|
50268
|
-
prev2.next = this;
|
|
50269
|
-
this.prev = prev2;
|
|
50270
|
-
} else {
|
|
50271
|
-
this.prev = null;
|
|
50272
|
-
}
|
|
50273
|
-
if (next2) {
|
|
50274
|
-
next2.prev = this;
|
|
50275
|
-
this.next = next2;
|
|
50276
|
-
} else {
|
|
50277
|
-
this.next = null;
|
|
50278
|
-
}
|
|
50279
|
-
}
|
|
50280
|
-
try {
|
|
50281
|
-
requireIterator()(Yallist2);
|
|
50282
|
-
} catch (er) {
|
|
50283
|
-
}
|
|
50284
|
-
return yallist$1;
|
|
50285
|
-
}
|
|
50286
|
-
var lruCache$1;
|
|
50287
|
-
var hasRequiredLruCache;
|
|
50288
|
-
function requireLruCache() {
|
|
50289
|
-
if (hasRequiredLruCache) return lruCache$1;
|
|
50290
|
-
hasRequiredLruCache = 1;
|
|
50291
|
-
const Yallist2 = requireYallist();
|
|
50292
|
-
const MAX2 = Symbol("max");
|
|
50293
|
-
const LENGTH2 = Symbol("length");
|
|
50294
|
-
const LENGTH_CALCULATOR2 = Symbol("lengthCalculator");
|
|
50295
|
-
const ALLOW_STALE2 = Symbol("allowStale");
|
|
50296
|
-
const MAX_AGE2 = Symbol("maxAge");
|
|
50297
|
-
const DISPOSE2 = Symbol("dispose");
|
|
50298
|
-
const NO_DISPOSE_ON_SET2 = Symbol("noDisposeOnSet");
|
|
50299
|
-
const LRU_LIST2 = Symbol("lruList");
|
|
50300
|
-
const CACHE2 = Symbol("cache");
|
|
50301
|
-
const UPDATE_AGE_ON_GET2 = Symbol("updateAgeOnGet");
|
|
50302
|
-
const naiveLength2 = () => 1;
|
|
50205
|
+
var lrucache;
|
|
50206
|
+
var hasRequiredLrucache;
|
|
50207
|
+
function requireLrucache() {
|
|
50208
|
+
if (hasRequiredLrucache) return lrucache;
|
|
50209
|
+
hasRequiredLrucache = 1;
|
|
50303
50210
|
class LRUCache2 {
|
|
50304
|
-
constructor(
|
|
50305
|
-
|
|
50306
|
-
|
|
50307
|
-
if (!options)
|
|
50308
|
-
options = {};
|
|
50309
|
-
if (options.max && (typeof options.max !== "number" || options.max < 0))
|
|
50310
|
-
throw new TypeError("max must be a non-negative number");
|
|
50311
|
-
this[MAX2] = options.max || Infinity;
|
|
50312
|
-
const lc = options.length || naiveLength2;
|
|
50313
|
-
this[LENGTH_CALCULATOR2] = typeof lc !== "function" ? naiveLength2 : lc;
|
|
50314
|
-
this[ALLOW_STALE2] = options.stale || false;
|
|
50315
|
-
if (options.maxAge && typeof options.maxAge !== "number")
|
|
50316
|
-
throw new TypeError("maxAge must be a number");
|
|
50317
|
-
this[MAX_AGE2] = options.maxAge || 0;
|
|
50318
|
-
this[DISPOSE2] = options.dispose;
|
|
50319
|
-
this[NO_DISPOSE_ON_SET2] = options.noDisposeOnSet || false;
|
|
50320
|
-
this[UPDATE_AGE_ON_GET2] = options.updateAgeOnGet || false;
|
|
50321
|
-
this.reset();
|
|
50322
|
-
}
|
|
50323
|
-
// resize the cache when the max changes.
|
|
50324
|
-
set max(mL) {
|
|
50325
|
-
if (typeof mL !== "number" || mL < 0)
|
|
50326
|
-
throw new TypeError("max must be a non-negative number");
|
|
50327
|
-
this[MAX2] = mL || Infinity;
|
|
50328
|
-
trim2(this);
|
|
50329
|
-
}
|
|
50330
|
-
get max() {
|
|
50331
|
-
return this[MAX2];
|
|
50332
|
-
}
|
|
50333
|
-
set allowStale(allowStale) {
|
|
50334
|
-
this[ALLOW_STALE2] = !!allowStale;
|
|
50335
|
-
}
|
|
50336
|
-
get allowStale() {
|
|
50337
|
-
return this[ALLOW_STALE2];
|
|
50338
|
-
}
|
|
50339
|
-
set maxAge(mA) {
|
|
50340
|
-
if (typeof mA !== "number")
|
|
50341
|
-
throw new TypeError("maxAge must be a non-negative number");
|
|
50342
|
-
this[MAX_AGE2] = mA;
|
|
50343
|
-
trim2(this);
|
|
50344
|
-
}
|
|
50345
|
-
get maxAge() {
|
|
50346
|
-
return this[MAX_AGE2];
|
|
50347
|
-
}
|
|
50348
|
-
// resize the cache when the lengthCalculator changes.
|
|
50349
|
-
set lengthCalculator(lC) {
|
|
50350
|
-
if (typeof lC !== "function")
|
|
50351
|
-
lC = naiveLength2;
|
|
50352
|
-
if (lC !== this[LENGTH_CALCULATOR2]) {
|
|
50353
|
-
this[LENGTH_CALCULATOR2] = lC;
|
|
50354
|
-
this[LENGTH2] = 0;
|
|
50355
|
-
this[LRU_LIST2].forEach((hit2) => {
|
|
50356
|
-
hit2.length = this[LENGTH_CALCULATOR2](hit2.value, hit2.key);
|
|
50357
|
-
this[LENGTH2] += hit2.length;
|
|
50358
|
-
});
|
|
50359
|
-
}
|
|
50360
|
-
trim2(this);
|
|
50361
|
-
}
|
|
50362
|
-
get lengthCalculator() {
|
|
50363
|
-
return this[LENGTH_CALCULATOR2];
|
|
50364
|
-
}
|
|
50365
|
-
get length() {
|
|
50366
|
-
return this[LENGTH2];
|
|
50367
|
-
}
|
|
50368
|
-
get itemCount() {
|
|
50369
|
-
return this[LRU_LIST2].length;
|
|
50370
|
-
}
|
|
50371
|
-
rforEach(fn, thisp) {
|
|
50372
|
-
thisp = thisp || this;
|
|
50373
|
-
for (let walker = this[LRU_LIST2].tail; walker !== null; ) {
|
|
50374
|
-
const prev2 = walker.prev;
|
|
50375
|
-
forEachStep2(this, fn, walker, thisp);
|
|
50376
|
-
walker = prev2;
|
|
50377
|
-
}
|
|
50378
|
-
}
|
|
50379
|
-
forEach(fn, thisp) {
|
|
50380
|
-
thisp = thisp || this;
|
|
50381
|
-
for (let walker = this[LRU_LIST2].head; walker !== null; ) {
|
|
50382
|
-
const next2 = walker.next;
|
|
50383
|
-
forEachStep2(this, fn, walker, thisp);
|
|
50384
|
-
walker = next2;
|
|
50385
|
-
}
|
|
50386
|
-
}
|
|
50387
|
-
keys() {
|
|
50388
|
-
return this[LRU_LIST2].toArray().map((k) => k.key);
|
|
50389
|
-
}
|
|
50390
|
-
values() {
|
|
50391
|
-
return this[LRU_LIST2].toArray().map((k) => k.value);
|
|
50392
|
-
}
|
|
50393
|
-
reset() {
|
|
50394
|
-
if (this[DISPOSE2] && this[LRU_LIST2] && this[LRU_LIST2].length) {
|
|
50395
|
-
this[LRU_LIST2].forEach((hit2) => this[DISPOSE2](hit2.key, hit2.value));
|
|
50396
|
-
}
|
|
50397
|
-
this[CACHE2] = /* @__PURE__ */ new Map();
|
|
50398
|
-
this[LRU_LIST2] = new Yallist2();
|
|
50399
|
-
this[LENGTH2] = 0;
|
|
50400
|
-
}
|
|
50401
|
-
dump() {
|
|
50402
|
-
return this[LRU_LIST2].map((hit2) => isStale2(this, hit2) ? false : {
|
|
50403
|
-
k: hit2.key,
|
|
50404
|
-
v: hit2.value,
|
|
50405
|
-
e: hit2.now + (hit2.maxAge || 0)
|
|
50406
|
-
}).toArray().filter((h2) => h2);
|
|
50407
|
-
}
|
|
50408
|
-
dumpLru() {
|
|
50409
|
-
return this[LRU_LIST2];
|
|
50410
|
-
}
|
|
50411
|
-
set(key2, value2, maxAge) {
|
|
50412
|
-
maxAge = maxAge || this[MAX_AGE2];
|
|
50413
|
-
if (maxAge && typeof maxAge !== "number")
|
|
50414
|
-
throw new TypeError("maxAge must be a number");
|
|
50415
|
-
const now2 = maxAge ? Date.now() : 0;
|
|
50416
|
-
const len = this[LENGTH_CALCULATOR2](value2, key2);
|
|
50417
|
-
if (this[CACHE2].has(key2)) {
|
|
50418
|
-
if (len > this[MAX2]) {
|
|
50419
|
-
del2(this, this[CACHE2].get(key2));
|
|
50420
|
-
return false;
|
|
50421
|
-
}
|
|
50422
|
-
const node2 = this[CACHE2].get(key2);
|
|
50423
|
-
const item = node2.value;
|
|
50424
|
-
if (this[DISPOSE2]) {
|
|
50425
|
-
if (!this[NO_DISPOSE_ON_SET2])
|
|
50426
|
-
this[DISPOSE2](key2, item.value);
|
|
50427
|
-
}
|
|
50428
|
-
item.now = now2;
|
|
50429
|
-
item.maxAge = maxAge;
|
|
50430
|
-
item.value = value2;
|
|
50431
|
-
this[LENGTH2] += len - item.length;
|
|
50432
|
-
item.length = len;
|
|
50433
|
-
this.get(key2);
|
|
50434
|
-
trim2(this);
|
|
50435
|
-
return true;
|
|
50436
|
-
}
|
|
50437
|
-
const hit2 = new Entry2(key2, value2, len, now2, maxAge);
|
|
50438
|
-
if (hit2.length > this[MAX2]) {
|
|
50439
|
-
if (this[DISPOSE2])
|
|
50440
|
-
this[DISPOSE2](key2, value2);
|
|
50441
|
-
return false;
|
|
50442
|
-
}
|
|
50443
|
-
this[LENGTH2] += hit2.length;
|
|
50444
|
-
this[LRU_LIST2].unshift(hit2);
|
|
50445
|
-
this[CACHE2].set(key2, this[LRU_LIST2].head);
|
|
50446
|
-
trim2(this);
|
|
50447
|
-
return true;
|
|
50448
|
-
}
|
|
50449
|
-
has(key2) {
|
|
50450
|
-
if (!this[CACHE2].has(key2)) return false;
|
|
50451
|
-
const hit2 = this[CACHE2].get(key2).value;
|
|
50452
|
-
return !isStale2(this, hit2);
|
|
50211
|
+
constructor() {
|
|
50212
|
+
this.max = 1e3;
|
|
50213
|
+
this.map = /* @__PURE__ */ new Map();
|
|
50453
50214
|
}
|
|
50454
50215
|
get(key2) {
|
|
50455
|
-
|
|
50456
|
-
|
|
50457
|
-
|
|
50458
|
-
|
|
50459
|
-
|
|
50460
|
-
|
|
50461
|
-
|
|
50462
|
-
if (!node2)
|
|
50463
|
-
return null;
|
|
50464
|
-
del2(this, node2);
|
|
50465
|
-
return node2.value;
|
|
50466
|
-
}
|
|
50467
|
-
del(key2) {
|
|
50468
|
-
del2(this, this[CACHE2].get(key2));
|
|
50469
|
-
}
|
|
50470
|
-
load(arr) {
|
|
50471
|
-
this.reset();
|
|
50472
|
-
const now2 = Date.now();
|
|
50473
|
-
for (let l = arr.length - 1; l >= 0; l--) {
|
|
50474
|
-
const hit2 = arr[l];
|
|
50475
|
-
const expiresAt = hit2.e || 0;
|
|
50476
|
-
if (expiresAt === 0)
|
|
50477
|
-
this.set(hit2.k, hit2.v);
|
|
50478
|
-
else {
|
|
50479
|
-
const maxAge = expiresAt - now2;
|
|
50480
|
-
if (maxAge > 0) {
|
|
50481
|
-
this.set(hit2.k, hit2.v, maxAge);
|
|
50482
|
-
}
|
|
50483
|
-
}
|
|
50216
|
+
const value2 = this.map.get(key2);
|
|
50217
|
+
if (value2 === void 0) {
|
|
50218
|
+
return void 0;
|
|
50219
|
+
} else {
|
|
50220
|
+
this.map.delete(key2);
|
|
50221
|
+
this.map.set(key2, value2);
|
|
50222
|
+
return value2;
|
|
50484
50223
|
}
|
|
50485
50224
|
}
|
|
50486
|
-
|
|
50487
|
-
this
|
|
50225
|
+
delete(key2) {
|
|
50226
|
+
return this.map.delete(key2);
|
|
50488
50227
|
}
|
|
50489
|
-
|
|
50490
|
-
|
|
50491
|
-
|
|
50492
|
-
|
|
50493
|
-
|
|
50494
|
-
|
|
50495
|
-
del2(self2, node2);
|
|
50496
|
-
if (!self2[ALLOW_STALE2])
|
|
50497
|
-
return void 0;
|
|
50498
|
-
} else {
|
|
50499
|
-
if (doUse) {
|
|
50500
|
-
if (self2[UPDATE_AGE_ON_GET2])
|
|
50501
|
-
node2.value.now = Date.now();
|
|
50502
|
-
self2[LRU_LIST2].unshiftNode(node2);
|
|
50228
|
+
set(key2, value2) {
|
|
50229
|
+
const deleted = this.delete(key2);
|
|
50230
|
+
if (!deleted && value2 !== void 0) {
|
|
50231
|
+
if (this.map.size >= this.max) {
|
|
50232
|
+
const firstKey = this.map.keys().next().value;
|
|
50233
|
+
this.delete(firstKey);
|
|
50503
50234
|
}
|
|
50235
|
+
this.map.set(key2, value2);
|
|
50504
50236
|
}
|
|
50505
|
-
return
|
|
50506
|
-
}
|
|
50507
|
-
};
|
|
50508
|
-
const isStale2 = (self2, hit2) => {
|
|
50509
|
-
if (!hit2 || !hit2.maxAge && !self2[MAX_AGE2])
|
|
50510
|
-
return false;
|
|
50511
|
-
const diff = Date.now() - hit2.now;
|
|
50512
|
-
return hit2.maxAge ? diff > hit2.maxAge : self2[MAX_AGE2] && diff > self2[MAX_AGE2];
|
|
50513
|
-
};
|
|
50514
|
-
const trim2 = (self2) => {
|
|
50515
|
-
if (self2[LENGTH2] > self2[MAX2]) {
|
|
50516
|
-
for (let walker = self2[LRU_LIST2].tail; self2[LENGTH2] > self2[MAX2] && walker !== null; ) {
|
|
50517
|
-
const prev2 = walker.prev;
|
|
50518
|
-
del2(self2, walker);
|
|
50519
|
-
walker = prev2;
|
|
50520
|
-
}
|
|
50521
|
-
}
|
|
50522
|
-
};
|
|
50523
|
-
const del2 = (self2, node2) => {
|
|
50524
|
-
if (node2) {
|
|
50525
|
-
const hit2 = node2.value;
|
|
50526
|
-
if (self2[DISPOSE2])
|
|
50527
|
-
self2[DISPOSE2](hit2.key, hit2.value);
|
|
50528
|
-
self2[LENGTH2] -= hit2.length;
|
|
50529
|
-
self2[CACHE2].delete(hit2.key);
|
|
50530
|
-
self2[LRU_LIST2].removeNode(node2);
|
|
50531
|
-
}
|
|
50532
|
-
};
|
|
50533
|
-
class Entry2 {
|
|
50534
|
-
constructor(key2, value2, length2, now2, maxAge) {
|
|
50535
|
-
this.key = key2;
|
|
50536
|
-
this.value = value2;
|
|
50537
|
-
this.length = length2;
|
|
50538
|
-
this.now = now2;
|
|
50539
|
-
this.maxAge = maxAge || 0;
|
|
50237
|
+
return this;
|
|
50540
50238
|
}
|
|
50541
50239
|
}
|
|
50542
|
-
|
|
50543
|
-
|
|
50544
|
-
if (isStale2(self2, hit2)) {
|
|
50545
|
-
del2(self2, node2);
|
|
50546
|
-
if (!self2[ALLOW_STALE2])
|
|
50547
|
-
hit2 = void 0;
|
|
50548
|
-
}
|
|
50549
|
-
if (hit2)
|
|
50550
|
-
fn.call(thisp, hit2.value, hit2.key, self2);
|
|
50551
|
-
};
|
|
50552
|
-
lruCache$1 = LRUCache2;
|
|
50553
|
-
return lruCache$1;
|
|
50240
|
+
lrucache = LRUCache2;
|
|
50241
|
+
return lrucache;
|
|
50554
50242
|
}
|
|
50555
50243
|
var range$2;
|
|
50556
50244
|
var hasRequiredRange$1;
|
|
50557
50245
|
function requireRange$1() {
|
|
50558
50246
|
if (hasRequiredRange$1) return range$2;
|
|
50559
50247
|
hasRequiredRange$1 = 1;
|
|
50248
|
+
const SPACE_CHARACTERS = /\s+/g;
|
|
50560
50249
|
class Range2 {
|
|
50561
50250
|
constructor(range2, options) {
|
|
50562
50251
|
options = parseOptions2(options);
|
|
@@ -50570,16 +50259,16 @@ function requireRange$1() {
|
|
|
50570
50259
|
if (range2 instanceof Comparator) {
|
|
50571
50260
|
this.raw = range2.value;
|
|
50572
50261
|
this.set = [[range2]];
|
|
50573
|
-
this.
|
|
50262
|
+
this.formatted = void 0;
|
|
50574
50263
|
return this;
|
|
50575
50264
|
}
|
|
50576
50265
|
this.options = options;
|
|
50577
50266
|
this.loose = !!options.loose;
|
|
50578
50267
|
this.includePrerelease = !!options.includePrerelease;
|
|
50579
|
-
this.raw = range2;
|
|
50580
|
-
this.set =
|
|
50268
|
+
this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
|
|
50269
|
+
this.set = this.raw.split("||").map((r2) => this.parseRange(r2.trim())).filter((c2) => c2.length);
|
|
50581
50270
|
if (!this.set.length) {
|
|
50582
|
-
throw new TypeError(`Invalid SemVer Range: ${
|
|
50271
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
50583
50272
|
}
|
|
50584
50273
|
if (this.set.length > 1) {
|
|
50585
50274
|
const first = this.set[0];
|
|
@@ -50595,21 +50284,35 @@ function requireRange$1() {
|
|
|
50595
50284
|
}
|
|
50596
50285
|
}
|
|
50597
50286
|
}
|
|
50598
|
-
this.
|
|
50287
|
+
this.formatted = void 0;
|
|
50288
|
+
}
|
|
50289
|
+
get range() {
|
|
50290
|
+
if (this.formatted === void 0) {
|
|
50291
|
+
this.formatted = "";
|
|
50292
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
50293
|
+
if (i > 0) {
|
|
50294
|
+
this.formatted += "||";
|
|
50295
|
+
}
|
|
50296
|
+
const comps = this.set[i];
|
|
50297
|
+
for (let k = 0; k < comps.length; k++) {
|
|
50298
|
+
if (k > 0) {
|
|
50299
|
+
this.formatted += " ";
|
|
50300
|
+
}
|
|
50301
|
+
this.formatted += comps[k].toString().trim();
|
|
50302
|
+
}
|
|
50303
|
+
}
|
|
50304
|
+
}
|
|
50305
|
+
return this.formatted;
|
|
50599
50306
|
}
|
|
50600
50307
|
format() {
|
|
50601
|
-
this.range = this.set.map((comps) => {
|
|
50602
|
-
return comps.join(" ").trim();
|
|
50603
|
-
}).join("||").trim();
|
|
50604
50308
|
return this.range;
|
|
50605
50309
|
}
|
|
50606
50310
|
toString() {
|
|
50607
50311
|
return this.range;
|
|
50608
50312
|
}
|
|
50609
50313
|
parseRange(range2) {
|
|
50610
|
-
|
|
50611
|
-
const
|
|
50612
|
-
const memoKey = `parseRange:${memoOpts}:${range2}`;
|
|
50314
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
50315
|
+
const memoKey = memoOpts + ":" + range2;
|
|
50613
50316
|
const cached = cache2.get(memoKey);
|
|
50614
50317
|
if (cached) {
|
|
50615
50318
|
return cached;
|
|
@@ -50621,8 +50324,9 @@ function requireRange$1() {
|
|
|
50621
50324
|
range2 = range2.replace(re2[t4.COMPARATORTRIM], comparatorTrimReplace);
|
|
50622
50325
|
debug2("comparator trim", range2);
|
|
50623
50326
|
range2 = range2.replace(re2[t4.TILDETRIM], tildeTrimReplace);
|
|
50327
|
+
debug2("tilde trim", range2);
|
|
50624
50328
|
range2 = range2.replace(re2[t4.CARETTRIM], caretTrimReplace);
|
|
50625
|
-
|
|
50329
|
+
debug2("caret trim", range2);
|
|
50626
50330
|
let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
50627
50331
|
if (loose) {
|
|
50628
50332
|
rangeList = rangeList.filter((comp) => {
|
|
@@ -50681,19 +50385,20 @@ function requireRange$1() {
|
|
|
50681
50385
|
}
|
|
50682
50386
|
}
|
|
50683
50387
|
range$2 = Range2;
|
|
50684
|
-
const LRU =
|
|
50685
|
-
const cache2 = new LRU(
|
|
50388
|
+
const LRU = requireLrucache();
|
|
50389
|
+
const cache2 = new LRU();
|
|
50686
50390
|
const parseOptions2 = requireParseOptions();
|
|
50687
50391
|
const Comparator = requireComparator$1();
|
|
50688
50392
|
const debug2 = requireDebug();
|
|
50689
50393
|
const SemVer2 = requireSemver$1();
|
|
50690
50394
|
const {
|
|
50691
|
-
|
|
50395
|
+
safeRe: re2,
|
|
50692
50396
|
t: t4,
|
|
50693
50397
|
comparatorTrimReplace,
|
|
50694
50398
|
tildeTrimReplace,
|
|
50695
50399
|
caretTrimReplace
|
|
50696
50400
|
} = requireRe();
|
|
50401
|
+
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = requireConstants();
|
|
50697
50402
|
const isNullSet = (c2) => c2.value === "<0.0.0-0";
|
|
50698
50403
|
const isAny = (c2) => c2.value === "";
|
|
50699
50404
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -50721,9 +50426,9 @@ function requireRange$1() {
|
|
|
50721
50426
|
return comp;
|
|
50722
50427
|
};
|
|
50723
50428
|
const isX2 = (id2) => !id2 || id2.toLowerCase() === "x" || id2 === "*";
|
|
50724
|
-
const replaceTildes = (comp, options) =>
|
|
50725
|
-
return replaceTilde(c2, options);
|
|
50726
|
-
}
|
|
50429
|
+
const replaceTildes = (comp, options) => {
|
|
50430
|
+
return comp.trim().split(/\s+/).map((c2) => replaceTilde(c2, options)).join(" ");
|
|
50431
|
+
};
|
|
50727
50432
|
const replaceTilde = (comp, options) => {
|
|
50728
50433
|
const r2 = options.loose ? re2[t4.TILDELOOSE] : re2[t4.TILDE];
|
|
50729
50434
|
return comp.replace(r2, (_, M2, m2, p, pr) => {
|
|
@@ -50745,9 +50450,9 @@ function requireRange$1() {
|
|
|
50745
50450
|
return ret;
|
|
50746
50451
|
});
|
|
50747
50452
|
};
|
|
50748
|
-
const replaceCarets = (comp, options) =>
|
|
50749
|
-
return replaceCaret(c2, options);
|
|
50750
|
-
}
|
|
50453
|
+
const replaceCarets = (comp, options) => {
|
|
50454
|
+
return comp.trim().split(/\s+/).map((c2) => replaceCaret(c2, options)).join(" ");
|
|
50455
|
+
};
|
|
50751
50456
|
const replaceCaret = (comp, options) => {
|
|
50752
50457
|
debug2("caret", comp, options);
|
|
50753
50458
|
const r2 = options.loose ? re2[t4.CARETLOOSE] : re2[t4.CARET];
|
|
@@ -50794,9 +50499,7 @@ function requireRange$1() {
|
|
|
50794
50499
|
};
|
|
50795
50500
|
const replaceXRanges = (comp, options) => {
|
|
50796
50501
|
debug2("replaceXRanges", comp, options);
|
|
50797
|
-
return comp.split(/\s+/).map((c2) =>
|
|
50798
|
-
return replaceXRange(c2, options);
|
|
50799
|
-
}).join(" ");
|
|
50502
|
+
return comp.split(/\s+/).map((c2) => replaceXRange(c2, options)).join(" ");
|
|
50800
50503
|
};
|
|
50801
50504
|
const replaceXRange = (comp, options) => {
|
|
50802
50505
|
comp = comp.trim();
|
|
@@ -50861,7 +50564,7 @@ function requireRange$1() {
|
|
|
50861
50564
|
debug2("replaceGTE0", comp, options);
|
|
50862
50565
|
return comp.trim().replace(re2[options.includePrerelease ? t4.GTE0PRE : t4.GTE0], "");
|
|
50863
50566
|
};
|
|
50864
|
-
const hyphenReplace = (incPr) => ($0, from2, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr
|
|
50567
|
+
const hyphenReplace = (incPr) => ($0, from2, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
50865
50568
|
if (isX2(fM)) {
|
|
50866
50569
|
from2 = "";
|
|
50867
50570
|
} else if (isX2(fm)) {
|
|
@@ -50932,6 +50635,7 @@ function requireComparator$1() {
|
|
|
50932
50635
|
comp = comp.value;
|
|
50933
50636
|
}
|
|
50934
50637
|
}
|
|
50638
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
50935
50639
|
debug2("comparator", comp, options);
|
|
50936
50640
|
this.options = options;
|
|
50937
50641
|
this.loose = !!options.loose;
|
|
@@ -50980,12 +50684,6 @@ function requireComparator$1() {
|
|
|
50980
50684
|
if (!(comp instanceof Comparator)) {
|
|
50981
50685
|
throw new TypeError("a Comparator is required");
|
|
50982
50686
|
}
|
|
50983
|
-
if (!options || typeof options !== "object") {
|
|
50984
|
-
options = {
|
|
50985
|
-
loose: !!options,
|
|
50986
|
-
includePrerelease: false
|
|
50987
|
-
};
|
|
50988
|
-
}
|
|
50989
50687
|
if (this.operator === "") {
|
|
50990
50688
|
if (this.value === "") {
|
|
50991
50689
|
return true;
|
|
@@ -50997,18 +50695,34 @@ function requireComparator$1() {
|
|
|
50997
50695
|
}
|
|
50998
50696
|
return new Range2(this.value, options).test(comp.semver);
|
|
50999
50697
|
}
|
|
51000
|
-
|
|
51001
|
-
|
|
51002
|
-
|
|
51003
|
-
|
|
51004
|
-
|
|
51005
|
-
|
|
51006
|
-
|
|
50698
|
+
options = parseOptions2(options);
|
|
50699
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
50700
|
+
return false;
|
|
50701
|
+
}
|
|
50702
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
50703
|
+
return false;
|
|
50704
|
+
}
|
|
50705
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
50706
|
+
return true;
|
|
50707
|
+
}
|
|
50708
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
50709
|
+
return true;
|
|
50710
|
+
}
|
|
50711
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
50712
|
+
return true;
|
|
50713
|
+
}
|
|
50714
|
+
if (cmp2(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
50715
|
+
return true;
|
|
50716
|
+
}
|
|
50717
|
+
if (cmp2(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
50718
|
+
return true;
|
|
50719
|
+
}
|
|
50720
|
+
return false;
|
|
51007
50721
|
}
|
|
51008
50722
|
}
|
|
51009
50723
|
comparator$1 = Comparator;
|
|
51010
50724
|
const parseOptions2 = requireParseOptions();
|
|
51011
|
-
const {
|
|
50725
|
+
const { safeRe: re2, t: t4 } = requireRe();
|
|
51012
50726
|
const cmp2 = requireCmp();
|
|
51013
50727
|
const debug2 = requireDebug();
|
|
51014
50728
|
const SemVer2 = requireSemver$1();
|
|
@@ -51273,7 +50987,7 @@ function requireIntersects() {
|
|
|
51273
50987
|
const intersects2 = (r1, r2, options) => {
|
|
51274
50988
|
r1 = new Range2(r1, options);
|
|
51275
50989
|
r2 = new Range2(r2, options);
|
|
51276
|
-
return r1.intersects(r2);
|
|
50990
|
+
return r1.intersects(r2, options);
|
|
51277
50991
|
};
|
|
51278
50992
|
intersects_1 = intersects2;
|
|
51279
50993
|
return intersects_1;
|
|
@@ -51359,6 +51073,8 @@ function requireSubset() {
|
|
|
51359
51073
|
}
|
|
51360
51074
|
return true;
|
|
51361
51075
|
};
|
|
51076
|
+
const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
51077
|
+
const minimumVersion = [new Comparator(">=0.0.0")];
|
|
51362
51078
|
const simpleSubset = (sub, dom, options) => {
|
|
51363
51079
|
if (sub === dom) {
|
|
51364
51080
|
return true;
|
|
@@ -51367,16 +51083,16 @@ function requireSubset() {
|
|
|
51367
51083
|
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
51368
51084
|
return true;
|
|
51369
51085
|
} else if (options.includePrerelease) {
|
|
51370
|
-
sub =
|
|
51086
|
+
sub = minimumVersionWithPreRelease;
|
|
51371
51087
|
} else {
|
|
51372
|
-
sub =
|
|
51088
|
+
sub = minimumVersion;
|
|
51373
51089
|
}
|
|
51374
51090
|
}
|
|
51375
51091
|
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
51376
51092
|
if (options.includePrerelease) {
|
|
51377
51093
|
return true;
|
|
51378
51094
|
} else {
|
|
51379
|
-
dom =
|
|
51095
|
+
dom = minimumVersion;
|
|
51380
51096
|
}
|
|
51381
51097
|
}
|
|
51382
51098
|
const eqSet = /* @__PURE__ */ new Set();
|
|
@@ -51577,6 +51293,7 @@ function requireSemver() {
|
|
|
51577
51293
|
src: internalRe.src,
|
|
51578
51294
|
tokens: internalRe.t,
|
|
51579
51295
|
SEMVER_SPEC_VERSION: constants2.SEMVER_SPEC_VERSION,
|
|
51296
|
+
RELEASE_TYPES: constants2.RELEASE_TYPES,
|
|
51580
51297
|
compareIdentifiers: identifiers2.compareIdentifiers,
|
|
51581
51298
|
rcompareIdentifiers: identifiers2.rcompareIdentifiers
|
|
51582
51299
|
};
|
|
@@ -52132,11 +51849,45 @@ const CoordinationType$1 = {
|
|
|
52132
51849
|
CoordinationType$1.EMBEDDING_OBS_SET_LABEL_SIZE,
|
|
52133
51850
|
CoordinationType$1.EMBEDDING_OBS_RADIUS,
|
|
52134
51851
|
CoordinationType$1.EMBEDDING_OBS_OPACITY,
|
|
51852
|
+
CoordinationType$1.SPATIAL_ZOOM,
|
|
51853
|
+
CoordinationType$1.SPATIAL_ROTATION,
|
|
51854
|
+
CoordinationType$1.SPATIAL_ROTATION_X,
|
|
51855
|
+
CoordinationType$1.SPATIAL_ROTATION_Y,
|
|
51856
|
+
CoordinationType$1.SPATIAL_ROTATION_Z,
|
|
51857
|
+
CoordinationType$1.SPATIAL_ROTATION_ORBIT,
|
|
51858
|
+
CoordinationType$1.SPATIAL_TARGET_X,
|
|
51859
|
+
CoordinationType$1.SPATIAL_TARGET_Y,
|
|
51860
|
+
CoordinationType$1.SPATIAL_TARGET_Z,
|
|
51861
|
+
CoordinationType$1.SPATIAL_AXIS_FIXED,
|
|
51862
|
+
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
52135
51863
|
CoordinationType$1.FEATURE_AGGREGATION_STRATEGY
|
|
52136
51864
|
];
|
|
52137
51865
|
({
|
|
52138
51866
|
[ViewType$1.NEUROGLANCER]: [
|
|
52139
|
-
CoordinationType$1.DATASET
|
|
51867
|
+
CoordinationType$1.DATASET,
|
|
51868
|
+
CoordinationType$1.SPATIAL_TARGET_X,
|
|
51869
|
+
CoordinationType$1.SPATIAL_TARGET_Y,
|
|
51870
|
+
CoordinationType$1.SPATIAL_TARGET_Z,
|
|
51871
|
+
CoordinationType$1.SPATIAL_ROTATION_X,
|
|
51872
|
+
CoordinationType$1.SPATIAL_ROTATION_Y,
|
|
51873
|
+
CoordinationType$1.SPATIAL_ROTATION_Z,
|
|
51874
|
+
CoordinationType$1.SPATIAL_AXIS_FIXED,
|
|
51875
|
+
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
51876
|
+
CoordinationType$1.SPATIAL_ZOOM,
|
|
51877
|
+
CoordinationType$1.OBS_FILTER,
|
|
51878
|
+
CoordinationType$1.OBS_HIGHLIGHT,
|
|
51879
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
51880
|
+
CoordinationType$1.OBS_SET_FILTER,
|
|
51881
|
+
CoordinationType$1.OBS_SET_HIGHLIGHT,
|
|
51882
|
+
CoordinationType$1.OBS_SET_COLOR,
|
|
51883
|
+
CoordinationType$1.OBS_TYPE,
|
|
51884
|
+
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
51885
|
+
CoordinationType$1.OBS_SET_COLOR,
|
|
51886
|
+
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
51887
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
51888
|
+
CoordinationType$1.EMBEDDING_TYPE,
|
|
51889
|
+
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
51890
|
+
CoordinationType$1.TOOLTIPS_VISIBLE
|
|
52140
51891
|
],
|
|
52141
51892
|
[ViewType$1.SCATTERPLOT]: [
|
|
52142
51893
|
CoordinationType$1.DATASET,
|