@hpcc-js/common 2.71.16 → 2.71.18
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.es6.js +87 -233
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +95 -243
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +5 -5
- package/src/Palette.ts +1 -1
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
})(this, (function (exports, util) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/common";
|
|
8
|
-
var PKG_VERSION = "2.71.
|
|
9
|
-
var BUILD_VERSION = "2.105.
|
|
8
|
+
var PKG_VERSION = "2.71.18";
|
|
9
|
+
var BUILD_VERSION = "2.105.12";
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -3464,12 +3464,12 @@
|
|
|
3464
3464
|
return null;
|
|
3465
3465
|
}
|
|
3466
3466
|
|
|
3467
|
-
function
|
|
3467
|
+
function ascending(a, b) {
|
|
3468
3468
|
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
3469
3469
|
}
|
|
3470
3470
|
|
|
3471
|
-
function bisector
|
|
3472
|
-
if (compare.length === 1) compare = ascendingComparator
|
|
3471
|
+
function bisector(compare) {
|
|
3472
|
+
if (compare.length === 1) compare = ascendingComparator(compare);
|
|
3473
3473
|
return {
|
|
3474
3474
|
left: function(a, x, lo, hi) {
|
|
3475
3475
|
if (lo == null) lo = 0;
|
|
@@ -3494,15 +3494,15 @@
|
|
|
3494
3494
|
};
|
|
3495
3495
|
}
|
|
3496
3496
|
|
|
3497
|
-
function ascendingComparator
|
|
3497
|
+
function ascendingComparator(f) {
|
|
3498
3498
|
return function(d, x) {
|
|
3499
|
-
return
|
|
3499
|
+
return ascending(f(d), x);
|
|
3500
3500
|
};
|
|
3501
3501
|
}
|
|
3502
3502
|
|
|
3503
|
-
var ascendingBisect
|
|
3504
|
-
var bisectRight
|
|
3505
|
-
var bisectLeft = ascendingBisect
|
|
3503
|
+
var ascendingBisect = bisector(ascending);
|
|
3504
|
+
var bisectRight = ascendingBisect.right;
|
|
3505
|
+
var bisectLeft = ascendingBisect.left;
|
|
3506
3506
|
|
|
3507
3507
|
function pairs(array, f) {
|
|
3508
3508
|
if (f == null) f = pair;
|
|
@@ -3539,7 +3539,7 @@
|
|
|
3539
3539
|
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
3540
3540
|
}
|
|
3541
3541
|
|
|
3542
|
-
function number$
|
|
3542
|
+
function number$2(x) {
|
|
3543
3543
|
return x === null ? NaN : +x;
|
|
3544
3544
|
}
|
|
3545
3545
|
|
|
@@ -3554,7 +3554,7 @@
|
|
|
3554
3554
|
|
|
3555
3555
|
if (valueof == null) {
|
|
3556
3556
|
while (++i < n) {
|
|
3557
|
-
if (!isNaN(value = number$
|
|
3557
|
+
if (!isNaN(value = number$2(values[i]))) {
|
|
3558
3558
|
delta = value - mean;
|
|
3559
3559
|
mean += delta / ++m;
|
|
3560
3560
|
sum += delta * (value - mean);
|
|
@@ -3564,7 +3564,7 @@
|
|
|
3564
3564
|
|
|
3565
3565
|
else {
|
|
3566
3566
|
while (++i < n) {
|
|
3567
|
-
if (!isNaN(value = number$
|
|
3567
|
+
if (!isNaN(value = number$2(valueof(values[i], i, values)))) {
|
|
3568
3568
|
delta = value - mean;
|
|
3569
3569
|
mean += delta / ++m;
|
|
3570
3570
|
sum += delta * (value - mean);
|
|
@@ -3633,7 +3633,7 @@
|
|
|
3633
3633
|
return x;
|
|
3634
3634
|
}
|
|
3635
3635
|
|
|
3636
|
-
function
|
|
3636
|
+
function sequence(start, stop, step) {
|
|
3637
3637
|
start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
|
|
3638
3638
|
|
|
3639
3639
|
var i = -1,
|
|
@@ -3647,11 +3647,11 @@
|
|
|
3647
3647
|
return range;
|
|
3648
3648
|
}
|
|
3649
3649
|
|
|
3650
|
-
var e10
|
|
3651
|
-
e5
|
|
3652
|
-
e2
|
|
3650
|
+
var e10 = Math.sqrt(50),
|
|
3651
|
+
e5 = Math.sqrt(10),
|
|
3652
|
+
e2 = Math.sqrt(2);
|
|
3653
3653
|
|
|
3654
|
-
function ticks
|
|
3654
|
+
function ticks(start, stop, count) {
|
|
3655
3655
|
var reverse,
|
|
3656
3656
|
i = -1,
|
|
3657
3657
|
n,
|
|
@@ -3661,7 +3661,7 @@
|
|
|
3661
3661
|
stop = +stop, start = +start, count = +count;
|
|
3662
3662
|
if (start === stop && count > 0) return [start];
|
|
3663
3663
|
if (reverse = stop < start) n = start, start = stop, stop = n;
|
|
3664
|
-
if ((step = tickIncrement
|
|
3664
|
+
if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
|
|
3665
3665
|
|
|
3666
3666
|
if (step > 0) {
|
|
3667
3667
|
start = Math.ceil(start / step);
|
|
@@ -3680,22 +3680,22 @@
|
|
|
3680
3680
|
return ticks;
|
|
3681
3681
|
}
|
|
3682
3682
|
|
|
3683
|
-
function tickIncrement
|
|
3683
|
+
function tickIncrement(start, stop, count) {
|
|
3684
3684
|
var step = (stop - start) / Math.max(0, count),
|
|
3685
3685
|
power = Math.floor(Math.log(step) / Math.LN10),
|
|
3686
3686
|
error = step / Math.pow(10, power);
|
|
3687
3687
|
return power >= 0
|
|
3688
|
-
? (error >= e10
|
|
3689
|
-
: -Math.pow(10, -power) / (error >= e10
|
|
3688
|
+
? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
|
|
3689
|
+
: -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
|
|
3690
3690
|
}
|
|
3691
3691
|
|
|
3692
|
-
function tickStep
|
|
3692
|
+
function tickStep(start, stop, count) {
|
|
3693
3693
|
var step0 = Math.abs(stop - start) / Math.max(0, count),
|
|
3694
3694
|
step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
|
|
3695
3695
|
error = step0 / step1;
|
|
3696
|
-
if (error >= e10
|
|
3697
|
-
else if (error >= e5
|
|
3698
|
-
else if (error >= e2
|
|
3696
|
+
if (error >= e10) step1 *= 10;
|
|
3697
|
+
else if (error >= e5) step1 *= 5;
|
|
3698
|
+
else if (error >= e2) step1 *= 2;
|
|
3699
3699
|
return stop < start ? -step1 : step1;
|
|
3700
3700
|
}
|
|
3701
3701
|
|
|
@@ -3725,8 +3725,8 @@
|
|
|
3725
3725
|
|
|
3726
3726
|
// Convert number of thresholds into uniform thresholds.
|
|
3727
3727
|
if (!Array.isArray(tz)) {
|
|
3728
|
-
tz = tickStep
|
|
3729
|
-
tz =
|
|
3728
|
+
tz = tickStep(x0, x1, tz);
|
|
3729
|
+
tz = sequence(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive
|
|
3730
3730
|
}
|
|
3731
3731
|
|
|
3732
3732
|
// Remove any thresholds outside the domain.
|
|
@@ -3748,7 +3748,7 @@
|
|
|
3748
3748
|
for (i = 0; i < n; ++i) {
|
|
3749
3749
|
x = values[i];
|
|
3750
3750
|
if (x0 <= x && x <= x1) {
|
|
3751
|
-
bins[bisectRight
|
|
3751
|
+
bins[bisectRight(tz, x, 0, m)].push(data[i]);
|
|
3752
3752
|
}
|
|
3753
3753
|
}
|
|
3754
3754
|
|
|
@@ -3770,8 +3770,8 @@
|
|
|
3770
3770
|
return histogram;
|
|
3771
3771
|
}
|
|
3772
3772
|
|
|
3773
|
-
function
|
|
3774
|
-
if (valueof == null) valueof = number$
|
|
3773
|
+
function threshold$1(values, p, valueof) {
|
|
3774
|
+
if (valueof == null) valueof = number$2;
|
|
3775
3775
|
if (!(n = values.length)) return;
|
|
3776
3776
|
if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);
|
|
3777
3777
|
if (p >= 1) return +valueof(values[n - 1], n - 1, values);
|
|
@@ -3784,8 +3784,8 @@
|
|
|
3784
3784
|
}
|
|
3785
3785
|
|
|
3786
3786
|
function freedmanDiaconis(values, min, max) {
|
|
3787
|
-
values = map$3.call(values, number$
|
|
3788
|
-
return Math.ceil((max - min) / (2 * (
|
|
3787
|
+
values = map$3.call(values, number$2).sort(ascending);
|
|
3788
|
+
return Math.ceil((max - min) / (2 * (threshold$1(values, 0.75) - threshold$1(values, 0.25)) * Math.pow(values.length, -1 / 3)));
|
|
3789
3789
|
}
|
|
3790
3790
|
|
|
3791
3791
|
function scott(values, min, max) {
|
|
@@ -3836,14 +3836,14 @@
|
|
|
3836
3836
|
|
|
3837
3837
|
if (valueof == null) {
|
|
3838
3838
|
while (++i < n) {
|
|
3839
|
-
if (!isNaN(value = number$
|
|
3839
|
+
if (!isNaN(value = number$2(values[i]))) sum += value;
|
|
3840
3840
|
else --m;
|
|
3841
3841
|
}
|
|
3842
3842
|
}
|
|
3843
3843
|
|
|
3844
3844
|
else {
|
|
3845
3845
|
while (++i < n) {
|
|
3846
|
-
if (!isNaN(value = number$
|
|
3846
|
+
if (!isNaN(value = number$2(valueof(values[i], i, values)))) sum += value;
|
|
3847
3847
|
else --m;
|
|
3848
3848
|
}
|
|
3849
3849
|
}
|
|
@@ -3859,7 +3859,7 @@
|
|
|
3859
3859
|
|
|
3860
3860
|
if (valueof == null) {
|
|
3861
3861
|
while (++i < n) {
|
|
3862
|
-
if (!isNaN(value = number$
|
|
3862
|
+
if (!isNaN(value = number$2(values[i]))) {
|
|
3863
3863
|
numbers.push(value);
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
@@ -3867,13 +3867,13 @@
|
|
|
3867
3867
|
|
|
3868
3868
|
else {
|
|
3869
3869
|
while (++i < n) {
|
|
3870
|
-
if (!isNaN(value = number$
|
|
3870
|
+
if (!isNaN(value = number$2(valueof(values[i], i, values)))) {
|
|
3871
3871
|
numbers.push(value);
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
3874
|
}
|
|
3875
3875
|
|
|
3876
|
-
return
|
|
3876
|
+
return threshold$1(numbers.sort(ascending), 0.5);
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
3879
3879
|
function merge(arrays) {
|
|
@@ -3947,7 +3947,7 @@
|
|
|
3947
3947
|
xi,
|
|
3948
3948
|
xj = values[j];
|
|
3949
3949
|
|
|
3950
|
-
if (compare == null) compare =
|
|
3950
|
+
if (compare == null) compare = ascending;
|
|
3951
3951
|
|
|
3952
3952
|
while (++i < n) {
|
|
3953
3953
|
if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {
|
|
@@ -4839,8 +4839,6 @@
|
|
|
4839
4839
|
return (end - start) / k;
|
|
4840
4840
|
});
|
|
4841
4841
|
};
|
|
4842
|
-
|
|
4843
|
-
var utcMillisecond = millisecond;
|
|
4844
4842
|
millisecond.range;
|
|
4845
4843
|
|
|
4846
4844
|
var durationSecond$1 = 1e3;
|
|
@@ -4858,8 +4856,6 @@
|
|
|
4858
4856
|
}, function(date) {
|
|
4859
4857
|
return date.getUTCSeconds();
|
|
4860
4858
|
});
|
|
4861
|
-
|
|
4862
|
-
var utcSecond = second;
|
|
4863
4859
|
second.range;
|
|
4864
4860
|
|
|
4865
4861
|
var minute = newInterval(function(date) {
|
|
@@ -4871,8 +4867,6 @@
|
|
|
4871
4867
|
}, function(date) {
|
|
4872
4868
|
return date.getMinutes();
|
|
4873
4869
|
});
|
|
4874
|
-
|
|
4875
|
-
var timeMinute = minute;
|
|
4876
4870
|
minute.range;
|
|
4877
4871
|
|
|
4878
4872
|
var hour = newInterval(function(date) {
|
|
@@ -4884,8 +4878,6 @@
|
|
|
4884
4878
|
}, function(date) {
|
|
4885
4879
|
return date.getHours();
|
|
4886
4880
|
});
|
|
4887
|
-
|
|
4888
|
-
var timeHour = hour;
|
|
4889
4881
|
hour.range;
|
|
4890
4882
|
|
|
4891
4883
|
var day = newInterval(function(date) {
|
|
@@ -4897,8 +4889,6 @@
|
|
|
4897
4889
|
}, function(date) {
|
|
4898
4890
|
return date.getDate() - 1;
|
|
4899
4891
|
});
|
|
4900
|
-
|
|
4901
|
-
var timeDay = day;
|
|
4902
4892
|
day.range;
|
|
4903
4893
|
|
|
4904
4894
|
function weekday(i) {
|
|
@@ -4938,8 +4928,6 @@
|
|
|
4938
4928
|
}, function(date) {
|
|
4939
4929
|
return date.getMonth();
|
|
4940
4930
|
});
|
|
4941
|
-
|
|
4942
|
-
var timeMonth = month;
|
|
4943
4931
|
month.range;
|
|
4944
4932
|
|
|
4945
4933
|
var year = newInterval(function(date) {
|
|
@@ -4963,8 +4951,6 @@
|
|
|
4963
4951
|
date.setFullYear(date.getFullYear() + step * k);
|
|
4964
4952
|
});
|
|
4965
4953
|
};
|
|
4966
|
-
|
|
4967
|
-
var timeYear = year;
|
|
4968
4954
|
year.range;
|
|
4969
4955
|
|
|
4970
4956
|
var utcMinute = newInterval(function(date) {
|
|
@@ -4976,8 +4962,6 @@
|
|
|
4976
4962
|
}, function(date) {
|
|
4977
4963
|
return date.getUTCMinutes();
|
|
4978
4964
|
});
|
|
4979
|
-
|
|
4980
|
-
var utcMinute$1 = utcMinute;
|
|
4981
4965
|
utcMinute.range;
|
|
4982
4966
|
|
|
4983
4967
|
var utcHour = newInterval(function(date) {
|
|
@@ -4989,8 +4973,6 @@
|
|
|
4989
4973
|
}, function(date) {
|
|
4990
4974
|
return date.getUTCHours();
|
|
4991
4975
|
});
|
|
4992
|
-
|
|
4993
|
-
var utcHour$1 = utcHour;
|
|
4994
4976
|
utcHour.range;
|
|
4995
4977
|
|
|
4996
4978
|
var utcDay = newInterval(function(date) {
|
|
@@ -5002,8 +4984,6 @@
|
|
|
5002
4984
|
}, function(date) {
|
|
5003
4985
|
return date.getUTCDate() - 1;
|
|
5004
4986
|
});
|
|
5005
|
-
|
|
5006
|
-
var utcDay$1 = utcDay;
|
|
5007
4987
|
utcDay.range;
|
|
5008
4988
|
|
|
5009
4989
|
function utcWeekday(i) {
|
|
@@ -5043,8 +5023,6 @@
|
|
|
5043
5023
|
}, function(date) {
|
|
5044
5024
|
return date.getUTCMonth();
|
|
5045
5025
|
});
|
|
5046
|
-
|
|
5047
|
-
var utcMonth$1 = utcMonth;
|
|
5048
5026
|
utcMonth.range;
|
|
5049
5027
|
|
|
5050
5028
|
var utcYear = newInterval(function(date) {
|
|
@@ -5068,8 +5046,6 @@
|
|
|
5068
5046
|
date.setUTCFullYear(date.getUTCFullYear() + step * k);
|
|
5069
5047
|
});
|
|
5070
5048
|
};
|
|
5071
|
-
|
|
5072
|
-
var utcYear$1 = utcYear;
|
|
5073
5049
|
utcYear.range;
|
|
5074
5050
|
|
|
5075
5051
|
function localDate(d) {
|
|
@@ -5260,7 +5236,7 @@
|
|
|
5260
5236
|
return function(string) {
|
|
5261
5237
|
var d = newDate(1900, undefined, 1),
|
|
5262
5238
|
i = parseSpecifier(d, specifier, string += "", 0),
|
|
5263
|
-
week, day;
|
|
5239
|
+
week, day$1;
|
|
5264
5240
|
if (i != string.length) return null;
|
|
5265
5241
|
|
|
5266
5242
|
// If a UNIX timestamp is specified, return it.
|
|
@@ -5281,25 +5257,25 @@
|
|
|
5281
5257
|
if (d.V < 1 || d.V > 53) return null;
|
|
5282
5258
|
if (!("w" in d)) d.w = 1;
|
|
5283
5259
|
if ("Z" in d) {
|
|
5284
|
-
week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
|
|
5285
|
-
week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);
|
|
5286
|
-
week = utcDay
|
|
5260
|
+
week = utcDate(newDate(d.y, 0, 1)), day$1 = week.getUTCDay();
|
|
5261
|
+
week = day$1 > 4 || day$1 === 0 ? utcMonday.ceil(week) : utcMonday(week);
|
|
5262
|
+
week = utcDay.offset(week, (d.V - 1) * 7);
|
|
5287
5263
|
d.y = week.getUTCFullYear();
|
|
5288
5264
|
d.m = week.getUTCMonth();
|
|
5289
5265
|
d.d = week.getUTCDate() + (d.w + 6) % 7;
|
|
5290
5266
|
} else {
|
|
5291
|
-
week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
|
|
5292
|
-
week = day > 4 || day === 0 ? monday.ceil(week) : monday(week);
|
|
5293
|
-
week =
|
|
5267
|
+
week = localDate(newDate(d.y, 0, 1)), day$1 = week.getDay();
|
|
5268
|
+
week = day$1 > 4 || day$1 === 0 ? monday.ceil(week) : monday(week);
|
|
5269
|
+
week = day.offset(week, (d.V - 1) * 7);
|
|
5294
5270
|
d.y = week.getFullYear();
|
|
5295
5271
|
d.m = week.getMonth();
|
|
5296
5272
|
d.d = week.getDate() + (d.w + 6) % 7;
|
|
5297
5273
|
}
|
|
5298
5274
|
} else if ("W" in d || "U" in d) {
|
|
5299
5275
|
if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
|
|
5300
|
-
day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
|
|
5276
|
+
day$1 = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
|
|
5301
5277
|
d.m = 0;
|
|
5302
|
-
d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
|
|
5278
|
+
d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day$1 + 5) % 7 : d.w + d.U * 7 - (day$1 + 6) % 7;
|
|
5303
5279
|
}
|
|
5304
5280
|
|
|
5305
5281
|
// If a time zone is specified, all fields are interpreted as UTC and then
|
|
@@ -5585,7 +5561,7 @@
|
|
|
5585
5561
|
}
|
|
5586
5562
|
|
|
5587
5563
|
function formatDayOfYear(d, p) {
|
|
5588
|
-
return pad(1 +
|
|
5564
|
+
return pad(1 + day.count(year(d), d), p, 3);
|
|
5589
5565
|
}
|
|
5590
5566
|
|
|
5591
5567
|
function formatMilliseconds(d, p) {
|
|
@@ -5614,7 +5590,7 @@
|
|
|
5614
5590
|
}
|
|
5615
5591
|
|
|
5616
5592
|
function formatWeekNumberSunday(d, p) {
|
|
5617
|
-
return pad(sunday.count(
|
|
5593
|
+
return pad(sunday.count(year(d) - 1, d), p, 2);
|
|
5618
5594
|
}
|
|
5619
5595
|
|
|
5620
5596
|
function dISO(d) {
|
|
@@ -5624,7 +5600,7 @@
|
|
|
5624
5600
|
|
|
5625
5601
|
function formatWeekNumberISO(d, p) {
|
|
5626
5602
|
d = dISO(d);
|
|
5627
|
-
return pad(thursday.count(
|
|
5603
|
+
return pad(thursday.count(year(d), d) + (year(d).getDay() === 4), p, 2);
|
|
5628
5604
|
}
|
|
5629
5605
|
|
|
5630
5606
|
function formatWeekdayNumberSunday(d) {
|
|
@@ -5632,7 +5608,7 @@
|
|
|
5632
5608
|
}
|
|
5633
5609
|
|
|
5634
5610
|
function formatWeekNumberMonday(d, p) {
|
|
5635
|
-
return pad(monday.count(
|
|
5611
|
+
return pad(monday.count(year(d) - 1, d), p, 2);
|
|
5636
5612
|
}
|
|
5637
5613
|
|
|
5638
5614
|
function formatYear(d, p) {
|
|
@@ -5674,7 +5650,7 @@
|
|
|
5674
5650
|
}
|
|
5675
5651
|
|
|
5676
5652
|
function formatUTCDayOfYear(d, p) {
|
|
5677
|
-
return pad(1 + utcDay
|
|
5653
|
+
return pad(1 + utcDay.count(utcYear(d), d), p, 3);
|
|
5678
5654
|
}
|
|
5679
5655
|
|
|
5680
5656
|
function formatUTCMilliseconds(d, p) {
|
|
@@ -5703,7 +5679,7 @@
|
|
|
5703
5679
|
}
|
|
5704
5680
|
|
|
5705
5681
|
function formatUTCWeekNumberSunday(d, p) {
|
|
5706
|
-
return pad(utcSunday.count(utcYear
|
|
5682
|
+
return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
|
|
5707
5683
|
}
|
|
5708
5684
|
|
|
5709
5685
|
function UTCdISO(d) {
|
|
@@ -5713,7 +5689,7 @@
|
|
|
5713
5689
|
|
|
5714
5690
|
function formatUTCWeekNumberISO(d, p) {
|
|
5715
5691
|
d = UTCdISO(d);
|
|
5716
|
-
return pad(utcThursday.count(utcYear
|
|
5692
|
+
return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
|
|
5717
5693
|
}
|
|
5718
5694
|
|
|
5719
5695
|
function formatUTCWeekdayNumberSunday(d) {
|
|
@@ -5721,7 +5697,7 @@
|
|
|
5721
5697
|
}
|
|
5722
5698
|
|
|
5723
5699
|
function formatUTCWeekNumberMonday(d, p) {
|
|
5724
|
-
return pad(utcMonday.count(utcYear
|
|
5700
|
+
return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
|
|
5725
5701
|
}
|
|
5726
5702
|
|
|
5727
5703
|
function formatUTCYear(d, p) {
|
|
@@ -7028,7 +7004,7 @@
|
|
|
7028
7004
|
var lVal = l[sortBy[i].idx];
|
|
7029
7005
|
var rVal = r[sortBy[i].idx];
|
|
7030
7006
|
if (lVal !== rVal) {
|
|
7031
|
-
return sortBy[i].reverse ? d3Descending(lVal, rVal) :
|
|
7007
|
+
return sortBy[i].reverse ? d3Descending(lVal, rVal) : ascending(lVal, rVal);
|
|
7032
7008
|
}
|
|
7033
7009
|
}
|
|
7034
7010
|
return 0;
|
|
@@ -7374,38 +7350,38 @@
|
|
|
7374
7350
|
|
|
7375
7351
|
var Utility = /*#__PURE__*/Object.freeze({
|
|
7376
7352
|
__proto__: null,
|
|
7377
|
-
|
|
7353
|
+
Selection: Selection,
|
|
7378
7354
|
SelectionBag: SelectionBag,
|
|
7355
|
+
SelectionBase: SelectionBase,
|
|
7379
7356
|
SimpleSelection: SimpleSelection,
|
|
7380
7357
|
SimpleSelectionMixin: SimpleSelectionMixin,
|
|
7381
|
-
|
|
7382
|
-
fa5Class: fa5Class,
|
|
7383
|
-
faChar: faChar,
|
|
7384
|
-
faCode: faCode,
|
|
7385
|
-
removeHTMLFromString: removeHTMLFromString,
|
|
7386
|
-
templateFields: templateFields,
|
|
7387
|
-
template: template,
|
|
7388
|
-
naturalSort: naturalSort,
|
|
7389
|
-
multiSort: multiSort,
|
|
7390
|
-
Selection: Selection,
|
|
7391
|
-
urlParams: urlParams,
|
|
7392
|
-
endsWith: endsWith,
|
|
7358
|
+
checksum: checksum,
|
|
7393
7359
|
d3ArrayAdapter: d3ArrayAdapter,
|
|
7360
|
+
debounce: debounce,
|
|
7394
7361
|
downloadBlob: downloadBlob,
|
|
7395
|
-
timestamp: timestamp,
|
|
7396
7362
|
downloadString: downloadString,
|
|
7397
|
-
|
|
7398
|
-
parseClassID: parseClassID,
|
|
7399
|
-
checksum: checksum,
|
|
7400
|
-
getTime: getTime,
|
|
7401
|
-
mixin: mixin,
|
|
7363
|
+
endsWith: endsWith,
|
|
7402
7364
|
exists: exists,
|
|
7365
|
+
fa5Class: fa5Class,
|
|
7366
|
+
faChar: faChar,
|
|
7367
|
+
faCode: faCode,
|
|
7368
|
+
faKeys: faKeys,
|
|
7369
|
+
getTime: getTime,
|
|
7403
7370
|
logStringify: logStringify,
|
|
7404
|
-
|
|
7371
|
+
mixin: mixin,
|
|
7372
|
+
multiSort: multiSort,
|
|
7373
|
+
naturalSort: naturalSort,
|
|
7374
|
+
parseClassID: parseClassID,
|
|
7405
7375
|
parseVersionString: parseVersionString,
|
|
7406
|
-
|
|
7376
|
+
removeHTMLFromString: removeHTMLFromString,
|
|
7377
|
+
safeRaise: safeRaise,
|
|
7378
|
+
template: template,
|
|
7379
|
+
templateFields: templateFields,
|
|
7407
7380
|
textRect: textRect,
|
|
7408
|
-
|
|
7381
|
+
textSize: textSize,
|
|
7382
|
+
timestamp: timestamp,
|
|
7383
|
+
urlParams: urlParams,
|
|
7384
|
+
widgetPath: widgetPath
|
|
7409
7385
|
});
|
|
7410
7386
|
|
|
7411
7387
|
var d3Aggr = {
|
|
@@ -9109,11 +9085,11 @@
|
|
|
9109
9085
|
|
|
9110
9086
|
var Platform = /*#__PURE__*/Object.freeze({
|
|
9111
9087
|
__proto__: null,
|
|
9112
|
-
|
|
9088
|
+
getScrollbarWidth: getScrollbarWidth,
|
|
9113
9089
|
ieVersion: ieVersion,
|
|
9114
9090
|
isIE: isIE,
|
|
9115
9091
|
svgMarkerGlitch: svgMarkerGlitch,
|
|
9116
|
-
|
|
9092
|
+
version: version
|
|
9117
9093
|
});
|
|
9118
9094
|
|
|
9119
9095
|
var Transition = /** @class */ (function () {
|
|
@@ -10118,131 +10094,9 @@
|
|
|
10118
10094
|
|
|
10119
10095
|
var _colorbrewer = /*#__PURE__*/Object.freeze({
|
|
10120
10096
|
__proto__: null,
|
|
10121
|
-
|
|
10097
|
+
default: index
|
|
10122
10098
|
});
|
|
10123
10099
|
|
|
10124
|
-
function ascending(a, b) {
|
|
10125
|
-
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
10126
|
-
}
|
|
10127
|
-
|
|
10128
|
-
function bisector(compare) {
|
|
10129
|
-
if (compare.length === 1) compare = ascendingComparator(compare);
|
|
10130
|
-
return {
|
|
10131
|
-
left: function(a, x, lo, hi) {
|
|
10132
|
-
if (lo == null) lo = 0;
|
|
10133
|
-
if (hi == null) hi = a.length;
|
|
10134
|
-
while (lo < hi) {
|
|
10135
|
-
var mid = lo + hi >>> 1;
|
|
10136
|
-
if (compare(a[mid], x) < 0) lo = mid + 1;
|
|
10137
|
-
else hi = mid;
|
|
10138
|
-
}
|
|
10139
|
-
return lo;
|
|
10140
|
-
},
|
|
10141
|
-
right: function(a, x, lo, hi) {
|
|
10142
|
-
if (lo == null) lo = 0;
|
|
10143
|
-
if (hi == null) hi = a.length;
|
|
10144
|
-
while (lo < hi) {
|
|
10145
|
-
var mid = lo + hi >>> 1;
|
|
10146
|
-
if (compare(a[mid], x) > 0) hi = mid;
|
|
10147
|
-
else lo = mid + 1;
|
|
10148
|
-
}
|
|
10149
|
-
return lo;
|
|
10150
|
-
}
|
|
10151
|
-
};
|
|
10152
|
-
}
|
|
10153
|
-
|
|
10154
|
-
function ascendingComparator(f) {
|
|
10155
|
-
return function(d, x) {
|
|
10156
|
-
return ascending(f(d), x);
|
|
10157
|
-
};
|
|
10158
|
-
}
|
|
10159
|
-
|
|
10160
|
-
var ascendingBisect = bisector(ascending);
|
|
10161
|
-
var bisectRight = ascendingBisect.right;
|
|
10162
|
-
|
|
10163
|
-
function number$2(x) {
|
|
10164
|
-
return x === null ? NaN : +x;
|
|
10165
|
-
}
|
|
10166
|
-
|
|
10167
|
-
function sequence(start, stop, step) {
|
|
10168
|
-
start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
|
|
10169
|
-
|
|
10170
|
-
var i = -1,
|
|
10171
|
-
n = Math.max(0, Math.ceil((stop - start) / step)) | 0,
|
|
10172
|
-
range = new Array(n);
|
|
10173
|
-
|
|
10174
|
-
while (++i < n) {
|
|
10175
|
-
range[i] = start + i * step;
|
|
10176
|
-
}
|
|
10177
|
-
|
|
10178
|
-
return range;
|
|
10179
|
-
}
|
|
10180
|
-
|
|
10181
|
-
var e10 = Math.sqrt(50),
|
|
10182
|
-
e5 = Math.sqrt(10),
|
|
10183
|
-
e2 = Math.sqrt(2);
|
|
10184
|
-
|
|
10185
|
-
function ticks(start, stop, count) {
|
|
10186
|
-
var reverse,
|
|
10187
|
-
i = -1,
|
|
10188
|
-
n,
|
|
10189
|
-
ticks,
|
|
10190
|
-
step;
|
|
10191
|
-
|
|
10192
|
-
stop = +stop, start = +start, count = +count;
|
|
10193
|
-
if (start === stop && count > 0) return [start];
|
|
10194
|
-
if (reverse = stop < start) n = start, start = stop, stop = n;
|
|
10195
|
-
if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
|
|
10196
|
-
|
|
10197
|
-
if (step > 0) {
|
|
10198
|
-
start = Math.ceil(start / step);
|
|
10199
|
-
stop = Math.floor(stop / step);
|
|
10200
|
-
ticks = new Array(n = Math.ceil(stop - start + 1));
|
|
10201
|
-
while (++i < n) ticks[i] = (start + i) * step;
|
|
10202
|
-
} else {
|
|
10203
|
-
start = Math.floor(start * step);
|
|
10204
|
-
stop = Math.ceil(stop * step);
|
|
10205
|
-
ticks = new Array(n = Math.ceil(start - stop + 1));
|
|
10206
|
-
while (++i < n) ticks[i] = (start - i) / step;
|
|
10207
|
-
}
|
|
10208
|
-
|
|
10209
|
-
if (reverse) ticks.reverse();
|
|
10210
|
-
|
|
10211
|
-
return ticks;
|
|
10212
|
-
}
|
|
10213
|
-
|
|
10214
|
-
function tickIncrement(start, stop, count) {
|
|
10215
|
-
var step = (stop - start) / Math.max(0, count),
|
|
10216
|
-
power = Math.floor(Math.log(step) / Math.LN10),
|
|
10217
|
-
error = step / Math.pow(10, power);
|
|
10218
|
-
return power >= 0
|
|
10219
|
-
? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
|
|
10220
|
-
: -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
|
|
10221
|
-
}
|
|
10222
|
-
|
|
10223
|
-
function tickStep(start, stop, count) {
|
|
10224
|
-
var step0 = Math.abs(stop - start) / Math.max(0, count),
|
|
10225
|
-
step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
|
|
10226
|
-
error = step0 / step1;
|
|
10227
|
-
if (error >= e10) step1 *= 10;
|
|
10228
|
-
else if (error >= e5) step1 *= 5;
|
|
10229
|
-
else if (error >= e2) step1 *= 2;
|
|
10230
|
-
return stop < start ? -step1 : step1;
|
|
10231
|
-
}
|
|
10232
|
-
|
|
10233
|
-
function threshold$1(values, p, valueof) {
|
|
10234
|
-
if (valueof == null) valueof = number$2;
|
|
10235
|
-
if (!(n = values.length)) return;
|
|
10236
|
-
if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);
|
|
10237
|
-
if (p >= 1) return +valueof(values[n - 1], n - 1, values);
|
|
10238
|
-
var n,
|
|
10239
|
-
i = (n - 1) * p,
|
|
10240
|
-
i0 = Math.floor(i),
|
|
10241
|
-
value0 = +valueof(values[i0], i0, values),
|
|
10242
|
-
value1 = +valueof(values[i0 + 1], i0 + 1, values);
|
|
10243
|
-
return value0 + (value1 - value0) * (i - i0);
|
|
10244
|
-
}
|
|
10245
|
-
|
|
10246
10100
|
var array = Array.prototype;
|
|
10247
10101
|
|
|
10248
10102
|
var map = array.map;
|
|
@@ -11048,11 +10902,11 @@
|
|
|
11048
10902
|
}
|
|
11049
10903
|
|
|
11050
10904
|
function time() {
|
|
11051
|
-
return calendar(
|
|
10905
|
+
return calendar(year, month, sunday, day, hour, minute, second, millisecond, exports.timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]);
|
|
11052
10906
|
}
|
|
11053
10907
|
|
|
11054
10908
|
function utcTime() {
|
|
11055
|
-
return calendar(utcYear
|
|
10909
|
+
return calendar(utcYear, utcMonth, utcSunday, utcDay, utcHour, utcMinute, second, millisecond, exports.utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]);
|
|
11056
10910
|
}
|
|
11057
10911
|
|
|
11058
10912
|
function colors(s) {
|
|
@@ -11213,7 +11067,7 @@
|
|
|
11213
11067
|
}
|
|
11214
11068
|
scale = ordinal$1().range(newColors);
|
|
11215
11069
|
}
|
|
11216
|
-
else if (brewerOrdinal.indexOf(id)
|
|
11070
|
+
else if (brewerOrdinal.indexOf(id) >= 0) {
|
|
11217
11071
|
var largestPalette = 12;
|
|
11218
11072
|
while (largestPalette > 0) {
|
|
11219
11073
|
if (m_colorbrewer[id][largestPalette]) {
|
|
@@ -11440,9 +11294,9 @@
|
|
|
11440
11294
|
__proto__: null,
|
|
11441
11295
|
fetchOrdinalItem: fetchOrdinalItem,
|
|
11442
11296
|
fetchRainbowItem: fetchRainbowItem,
|
|
11443
|
-
test: test,
|
|
11444
11297
|
ordinal: ordinal,
|
|
11445
11298
|
rainbow: rainbow,
|
|
11299
|
+
test: test,
|
|
11446
11300
|
textColor: textColor
|
|
11447
11301
|
});
|
|
11448
11302
|
|
|
@@ -15262,12 +15116,12 @@
|
|
|
15262
15116
|
exports.Widget = Widget;
|
|
15263
15117
|
exports.WidgetArray = WidgetArray;
|
|
15264
15118
|
exports.active = active;
|
|
15265
|
-
exports.ascending =
|
|
15119
|
+
exports.ascending = ascending;
|
|
15266
15120
|
exports.autoType = autoType;
|
|
15267
|
-
exports.bisect = bisectRight
|
|
15121
|
+
exports.bisect = bisectRight;
|
|
15268
15122
|
exports.bisectLeft = bisectLeft;
|
|
15269
|
-
exports.bisectRight = bisectRight
|
|
15270
|
-
exports.bisector = bisector
|
|
15123
|
+
exports.bisectRight = bisectRight;
|
|
15124
|
+
exports.bisector = bisector;
|
|
15271
15125
|
exports.brush = brush;
|
|
15272
15126
|
exports.brushSelection = brushSelection;
|
|
15273
15127
|
exports.brushX = brushX;
|
|
@@ -15400,9 +15254,9 @@
|
|
|
15400
15254
|
exports.precisionRound = precisionRound;
|
|
15401
15255
|
exports.publish = publish;
|
|
15402
15256
|
exports.publishProxy = publishProxy;
|
|
15403
|
-
exports.quantile =
|
|
15257
|
+
exports.quantile = threshold$1;
|
|
15404
15258
|
exports.quantize = quantize$1;
|
|
15405
|
-
exports.range =
|
|
15259
|
+
exports.range = sequence;
|
|
15406
15260
|
exports.rgb = rgb;
|
|
15407
15261
|
exports.scaleBand = band;
|
|
15408
15262
|
exports.scaleIdentity = identity$1;
|
|
@@ -15436,9 +15290,9 @@
|
|
|
15436
15290
|
exports.thresholdFreedmanDiaconis = freedmanDiaconis;
|
|
15437
15291
|
exports.thresholdScott = scott;
|
|
15438
15292
|
exports.thresholdSturges = sturges;
|
|
15439
|
-
exports.tickIncrement = tickIncrement
|
|
15440
|
-
exports.tickStep = tickStep
|
|
15441
|
-
exports.ticks = ticks
|
|
15293
|
+
exports.tickIncrement = tickIncrement;
|
|
15294
|
+
exports.tickStep = tickStep;
|
|
15295
|
+
exports.ticks = ticks;
|
|
15442
15296
|
exports.timeFormatDefaultLocale = defaultLocale;
|
|
15443
15297
|
exports.timeFormatLocale = formatLocale;
|
|
15444
15298
|
exports.touch = touch;
|
|
@@ -15460,7 +15314,5 @@
|
|
|
15460
15314
|
exports.zoomIdentity = identity;
|
|
15461
15315
|
exports.zoomTransform = transform;
|
|
15462
15316
|
|
|
15463
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
15464
|
-
|
|
15465
15317
|
}));
|
|
15466
15318
|
//# sourceMappingURL=index.js.map
|