Upload folder using huggingface_hub (part 13)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- node_modules/d3-shape/src/offset/none.js +9 -0
- node_modules/d3-shape/src/offset/silhouette.js +10 -0
- node_modules/d3-shape/src/offset/wiggle.js +24 -0
- node_modules/d3-shape/src/order/appearance.js +12 -0
- node_modules/d3-shape/src/order/ascending.js +12 -0
- node_modules/d3-shape/src/order/descending.js +5 -0
- node_modules/d3-shape/src/order/insideOut.js +27 -0
- node_modules/d3-shape/src/order/none.js +5 -0
- node_modules/d3-shape/src/order/reverse.js +5 -0
- node_modules/d3-shape/src/pie.js +79 -0
- node_modules/d3-shape/src/point.js +7 -0
- node_modules/d3-shape/src/pointRadial.js +3 -0
- node_modules/d3-shape/src/stack.js +57 -0
- node_modules/d3-shape/src/symbol.js +46 -0
- node_modules/d3-shape/src/symbol/circle.js +9 -0
- node_modules/d3-shape/src/symbol/cross.js +18 -0
- node_modules/d3-shape/src/symbol/diamond.js +14 -0
- node_modules/d3-shape/src/symbol/square.js +7 -0
- node_modules/d3-shape/src/symbol/star.js +24 -0
- node_modules/d3-shape/src/symbol/triangle.js +11 -0
- node_modules/d3-shape/src/symbol/wye.js +26 -0
- node_modules/d3-time-format/LICENSE +27 -0
- node_modules/d3-time-format/README.md +199 -0
- node_modules/d3-time-format/dist/d3-time-format.js +743 -0
- node_modules/d3-time-format/dist/d3-time-format.min.js +2 -0
- node_modules/d3-time-format/locale/ar-EG.json +10 -0
- node_modules/d3-time-format/locale/ca-ES.json +10 -0
- node_modules/d3-time-format/locale/cs-CZ.json +10 -0
- node_modules/d3-time-format/locale/da-DK.json +10 -0
- node_modules/d3-time-format/locale/de-CH.json +10 -0
- node_modules/d3-time-format/locale/de-DE.json +10 -0
- node_modules/d3-time-format/locale/en-CA.json +10 -0
- node_modules/d3-time-format/locale/en-GB.json +10 -0
- node_modules/d3-time-format/locale/en-US.json +10 -0
- node_modules/d3-time-format/locale/es-ES.json +10 -0
- node_modules/d3-time-format/locale/es-MX.json +10 -0
- node_modules/d3-time-format/locale/fa-IR.json +10 -0
- node_modules/d3-time-format/locale/fi-FI.json +10 -0
- node_modules/d3-time-format/locale/fr-CA.json +10 -0
- node_modules/d3-time-format/locale/fr-FR.json +10 -0
- node_modules/d3-time-format/locale/he-IL.json +10 -0
- node_modules/d3-time-format/locale/hu-HU.json +10 -0
- node_modules/d3-time-format/locale/it-IT.json +10 -0
- node_modules/d3-time-format/locale/ja-JP.json +10 -0
- node_modules/d3-time-format/locale/ko-KR.json +10 -0
- node_modules/d3-time-format/locale/mk-MK.json +10 -0
- node_modules/d3-time-format/locale/nb-NO.json +10 -0
- node_modules/d3-time-format/locale/nl-NL.json +10 -0
- node_modules/d3-time-format/locale/pl-PL.json +10 -0
- node_modules/d3-time-format/locale/pt-BR.json +10 -0
node_modules/d3-shape/src/offset/none.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default function(series, order) {
|
| 2 |
+
if (!((n = series.length) > 1)) return;
|
| 3 |
+
for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {
|
| 4 |
+
s0 = s1, s1 = series[order[i]];
|
| 5 |
+
for (j = 0; j < m; ++j) {
|
| 6 |
+
s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];
|
| 7 |
+
}
|
| 8 |
+
}
|
| 9 |
+
}
|
node_modules/d3-shape/src/offset/silhouette.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import none from "./none.js";
|
| 2 |
+
|
| 3 |
+
export default function(series, order) {
|
| 4 |
+
if (!((n = series.length) > 0)) return;
|
| 5 |
+
for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {
|
| 6 |
+
for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;
|
| 7 |
+
s0[j][1] += s0[j][0] = -y / 2;
|
| 8 |
+
}
|
| 9 |
+
none(series, order);
|
| 10 |
+
}
|
node_modules/d3-shape/src/offset/wiggle.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import none from "./none.js";
|
| 2 |
+
|
| 3 |
+
export default function(series, order) {
|
| 4 |
+
if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;
|
| 5 |
+
for (var y = 0, j = 1, s0, m, n; j < m; ++j) {
|
| 6 |
+
for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {
|
| 7 |
+
var si = series[order[i]],
|
| 8 |
+
sij0 = si[j][1] || 0,
|
| 9 |
+
sij1 = si[j - 1][1] || 0,
|
| 10 |
+
s3 = (sij0 - sij1) / 2;
|
| 11 |
+
for (var k = 0; k < i; ++k) {
|
| 12 |
+
var sk = series[order[k]],
|
| 13 |
+
skj0 = sk[j][1] || 0,
|
| 14 |
+
skj1 = sk[j - 1][1] || 0;
|
| 15 |
+
s3 += skj0 - skj1;
|
| 16 |
+
}
|
| 17 |
+
s1 += sij0, s2 += s3 * sij0;
|
| 18 |
+
}
|
| 19 |
+
s0[j - 1][1] += s0[j - 1][0] = y;
|
| 20 |
+
if (s1) y -= s2 / s1;
|
| 21 |
+
}
|
| 22 |
+
s0[j - 1][1] += s0[j - 1][0] = y;
|
| 23 |
+
none(series, order);
|
| 24 |
+
}
|
node_modules/d3-shape/src/order/appearance.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import none from "./none.js";
|
| 2 |
+
|
| 3 |
+
export default function(series) {
|
| 4 |
+
var peaks = series.map(peak);
|
| 5 |
+
return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; });
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
function peak(series) {
|
| 9 |
+
var i = -1, j = 0, n = series.length, vi, vj = -Infinity;
|
| 10 |
+
while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;
|
| 11 |
+
return j;
|
| 12 |
+
}
|
node_modules/d3-shape/src/order/ascending.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import none from "./none.js";
|
| 2 |
+
|
| 3 |
+
export default function(series) {
|
| 4 |
+
var sums = series.map(sum);
|
| 5 |
+
return none(series).sort(function(a, b) { return sums[a] - sums[b]; });
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
export function sum(series) {
|
| 9 |
+
var s = 0, i = -1, n = series.length, v;
|
| 10 |
+
while (++i < n) if (v = +series[i][1]) s += v;
|
| 11 |
+
return s;
|
| 12 |
+
}
|
node_modules/d3-shape/src/order/descending.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ascending from "./ascending.js";
|
| 2 |
+
|
| 3 |
+
export default function(series) {
|
| 4 |
+
return ascending(series).reverse();
|
| 5 |
+
}
|
node_modules/d3-shape/src/order/insideOut.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import appearance from "./appearance.js";
|
| 2 |
+
import {sum} from "./ascending.js";
|
| 3 |
+
|
| 4 |
+
export default function(series) {
|
| 5 |
+
var n = series.length,
|
| 6 |
+
i,
|
| 7 |
+
j,
|
| 8 |
+
sums = series.map(sum),
|
| 9 |
+
order = appearance(series),
|
| 10 |
+
top = 0,
|
| 11 |
+
bottom = 0,
|
| 12 |
+
tops = [],
|
| 13 |
+
bottoms = [];
|
| 14 |
+
|
| 15 |
+
for (i = 0; i < n; ++i) {
|
| 16 |
+
j = order[i];
|
| 17 |
+
if (top < bottom) {
|
| 18 |
+
top += sums[j];
|
| 19 |
+
tops.push(j);
|
| 20 |
+
} else {
|
| 21 |
+
bottom += sums[j];
|
| 22 |
+
bottoms.push(j);
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
return bottoms.reverse().concat(tops);
|
| 27 |
+
}
|
node_modules/d3-shape/src/order/none.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default function(series) {
|
| 2 |
+
var n = series.length, o = new Array(n);
|
| 3 |
+
while (--n >= 0) o[n] = n;
|
| 4 |
+
return o;
|
| 5 |
+
}
|
node_modules/d3-shape/src/order/reverse.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import none from "./none.js";
|
| 2 |
+
|
| 3 |
+
export default function(series) {
|
| 4 |
+
return none(series).reverse();
|
| 5 |
+
}
|
node_modules/d3-shape/src/pie.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import constant from "./constant.js";
|
| 2 |
+
import descending from "./descending.js";
|
| 3 |
+
import identity from "./identity.js";
|
| 4 |
+
import {tau} from "./math.js";
|
| 5 |
+
|
| 6 |
+
export default function() {
|
| 7 |
+
var value = identity,
|
| 8 |
+
sortValues = descending,
|
| 9 |
+
sort = null,
|
| 10 |
+
startAngle = constant(0),
|
| 11 |
+
endAngle = constant(tau),
|
| 12 |
+
padAngle = constant(0);
|
| 13 |
+
|
| 14 |
+
function pie(data) {
|
| 15 |
+
var i,
|
| 16 |
+
n = data.length,
|
| 17 |
+
j,
|
| 18 |
+
k,
|
| 19 |
+
sum = 0,
|
| 20 |
+
index = new Array(n),
|
| 21 |
+
arcs = new Array(n),
|
| 22 |
+
a0 = +startAngle.apply(this, arguments),
|
| 23 |
+
da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),
|
| 24 |
+
a1,
|
| 25 |
+
p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),
|
| 26 |
+
pa = p * (da < 0 ? -1 : 1),
|
| 27 |
+
v;
|
| 28 |
+
|
| 29 |
+
for (i = 0; i < n; ++i) {
|
| 30 |
+
if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {
|
| 31 |
+
sum += v;
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
// Optionally sort the arcs by previously-computed values or by data.
|
| 36 |
+
if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });
|
| 37 |
+
else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });
|
| 38 |
+
|
| 39 |
+
// Compute the arcs! They are stored in the original data's order.
|
| 40 |
+
for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {
|
| 41 |
+
j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {
|
| 42 |
+
data: data[j],
|
| 43 |
+
index: i,
|
| 44 |
+
value: v,
|
| 45 |
+
startAngle: a0,
|
| 46 |
+
endAngle: a1,
|
| 47 |
+
padAngle: p
|
| 48 |
+
};
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
return arcs;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
pie.value = function(_) {
|
| 55 |
+
return arguments.length ? (value = typeof _ === "function" ? _ : constant(+_), pie) : value;
|
| 56 |
+
};
|
| 57 |
+
|
| 58 |
+
pie.sortValues = function(_) {
|
| 59 |
+
return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;
|
| 60 |
+
};
|
| 61 |
+
|
| 62 |
+
pie.sort = function(_) {
|
| 63 |
+
return arguments.length ? (sort = _, sortValues = null, pie) : sort;
|
| 64 |
+
};
|
| 65 |
+
|
| 66 |
+
pie.startAngle = function(_) {
|
| 67 |
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), pie) : startAngle;
|
| 68 |
+
};
|
| 69 |
+
|
| 70 |
+
pie.endAngle = function(_) {
|
| 71 |
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), pie) : endAngle;
|
| 72 |
+
};
|
| 73 |
+
|
| 74 |
+
pie.padAngle = function(_) {
|
| 75 |
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), pie) : padAngle;
|
| 76 |
+
};
|
| 77 |
+
|
| 78 |
+
return pie;
|
| 79 |
+
}
|
node_modules/d3-shape/src/point.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export function x(p) {
|
| 2 |
+
return p[0];
|
| 3 |
+
}
|
| 4 |
+
|
| 5 |
+
export function y(p) {
|
| 6 |
+
return p[1];
|
| 7 |
+
}
|
node_modules/d3-shape/src/pointRadial.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default function(x, y) {
|
| 2 |
+
return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
|
| 3 |
+
}
|
node_modules/d3-shape/src/stack.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {slice} from "./array.js";
|
| 2 |
+
import constant from "./constant.js";
|
| 3 |
+
import offsetNone from "./offset/none.js";
|
| 4 |
+
import orderNone from "./order/none.js";
|
| 5 |
+
|
| 6 |
+
function stackValue(d, key) {
|
| 7 |
+
return d[key];
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
export default function() {
|
| 11 |
+
var keys = constant([]),
|
| 12 |
+
order = orderNone,
|
| 13 |
+
offset = offsetNone,
|
| 14 |
+
value = stackValue;
|
| 15 |
+
|
| 16 |
+
function stack(data) {
|
| 17 |
+
var kz = keys.apply(this, arguments),
|
| 18 |
+
i,
|
| 19 |
+
m = data.length,
|
| 20 |
+
n = kz.length,
|
| 21 |
+
sz = new Array(n),
|
| 22 |
+
oz;
|
| 23 |
+
|
| 24 |
+
for (i = 0; i < n; ++i) {
|
| 25 |
+
for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {
|
| 26 |
+
si[j] = sij = [0, +value(data[j], ki, j, data)];
|
| 27 |
+
sij.data = data[j];
|
| 28 |
+
}
|
| 29 |
+
si.key = ki;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
for (i = 0, oz = order(sz); i < n; ++i) {
|
| 33 |
+
sz[oz[i]].index = i;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
offset(sz, oz);
|
| 37 |
+
return sz;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
stack.keys = function(_) {
|
| 41 |
+
return arguments.length ? (keys = typeof _ === "function" ? _ : constant(slice.call(_)), stack) : keys;
|
| 42 |
+
};
|
| 43 |
+
|
| 44 |
+
stack.value = function(_) {
|
| 45 |
+
return arguments.length ? (value = typeof _ === "function" ? _ : constant(+_), stack) : value;
|
| 46 |
+
};
|
| 47 |
+
|
| 48 |
+
stack.order = function(_) {
|
| 49 |
+
return arguments.length ? (order = _ == null ? orderNone : typeof _ === "function" ? _ : constant(slice.call(_)), stack) : order;
|
| 50 |
+
};
|
| 51 |
+
|
| 52 |
+
stack.offset = function(_) {
|
| 53 |
+
return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;
|
| 54 |
+
};
|
| 55 |
+
|
| 56 |
+
return stack;
|
| 57 |
+
}
|
node_modules/d3-shape/src/symbol.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {path} from "d3-path";
|
| 2 |
+
import circle from "./symbol/circle.js";
|
| 3 |
+
import cross from "./symbol/cross.js";
|
| 4 |
+
import diamond from "./symbol/diamond.js";
|
| 5 |
+
import star from "./symbol/star.js";
|
| 6 |
+
import square from "./symbol/square.js";
|
| 7 |
+
import triangle from "./symbol/triangle.js";
|
| 8 |
+
import wye from "./symbol/wye.js";
|
| 9 |
+
import constant from "./constant.js";
|
| 10 |
+
|
| 11 |
+
export var symbols = [
|
| 12 |
+
circle,
|
| 13 |
+
cross,
|
| 14 |
+
diamond,
|
| 15 |
+
square,
|
| 16 |
+
star,
|
| 17 |
+
triangle,
|
| 18 |
+
wye
|
| 19 |
+
];
|
| 20 |
+
|
| 21 |
+
export default function() {
|
| 22 |
+
var type = constant(circle),
|
| 23 |
+
size = constant(64),
|
| 24 |
+
context = null;
|
| 25 |
+
|
| 26 |
+
function symbol() {
|
| 27 |
+
var buffer;
|
| 28 |
+
if (!context) context = buffer = path();
|
| 29 |
+
type.apply(this, arguments).draw(context, +size.apply(this, arguments));
|
| 30 |
+
if (buffer) return context = null, buffer + "" || null;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
symbol.type = function(_) {
|
| 34 |
+
return arguments.length ? (type = typeof _ === "function" ? _ : constant(_), symbol) : type;
|
| 35 |
+
};
|
| 36 |
+
|
| 37 |
+
symbol.size = function(_) {
|
| 38 |
+
return arguments.length ? (size = typeof _ === "function" ? _ : constant(+_), symbol) : size;
|
| 39 |
+
};
|
| 40 |
+
|
| 41 |
+
symbol.context = function(_) {
|
| 42 |
+
return arguments.length ? (context = _ == null ? null : _, symbol) : context;
|
| 43 |
+
};
|
| 44 |
+
|
| 45 |
+
return symbol;
|
| 46 |
+
}
|
node_modules/d3-shape/src/symbol/circle.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {pi, tau} from "../math.js";
|
| 2 |
+
|
| 3 |
+
export default {
|
| 4 |
+
draw: function(context, size) {
|
| 5 |
+
var r = Math.sqrt(size / pi);
|
| 6 |
+
context.moveTo(r, 0);
|
| 7 |
+
context.arc(0, 0, r, 0, tau);
|
| 8 |
+
}
|
| 9 |
+
};
|
node_modules/d3-shape/src/symbol/cross.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default {
|
| 2 |
+
draw: function(context, size) {
|
| 3 |
+
var r = Math.sqrt(size / 5) / 2;
|
| 4 |
+
context.moveTo(-3 * r, -r);
|
| 5 |
+
context.lineTo(-r, -r);
|
| 6 |
+
context.lineTo(-r, -3 * r);
|
| 7 |
+
context.lineTo(r, -3 * r);
|
| 8 |
+
context.lineTo(r, -r);
|
| 9 |
+
context.lineTo(3 * r, -r);
|
| 10 |
+
context.lineTo(3 * r, r);
|
| 11 |
+
context.lineTo(r, r);
|
| 12 |
+
context.lineTo(r, 3 * r);
|
| 13 |
+
context.lineTo(-r, 3 * r);
|
| 14 |
+
context.lineTo(-r, r);
|
| 15 |
+
context.lineTo(-3 * r, r);
|
| 16 |
+
context.closePath();
|
| 17 |
+
}
|
| 18 |
+
};
|
node_modules/d3-shape/src/symbol/diamond.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var tan30 = Math.sqrt(1 / 3),
|
| 2 |
+
tan30_2 = tan30 * 2;
|
| 3 |
+
|
| 4 |
+
export default {
|
| 5 |
+
draw: function(context, size) {
|
| 6 |
+
var y = Math.sqrt(size / tan30_2),
|
| 7 |
+
x = y * tan30;
|
| 8 |
+
context.moveTo(0, -y);
|
| 9 |
+
context.lineTo(x, 0);
|
| 10 |
+
context.lineTo(0, y);
|
| 11 |
+
context.lineTo(-x, 0);
|
| 12 |
+
context.closePath();
|
| 13 |
+
}
|
| 14 |
+
};
|
node_modules/d3-shape/src/symbol/square.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export default {
|
| 2 |
+
draw: function(context, size) {
|
| 3 |
+
var w = Math.sqrt(size),
|
| 4 |
+
x = -w / 2;
|
| 5 |
+
context.rect(x, x, w, w);
|
| 6 |
+
}
|
| 7 |
+
};
|
node_modules/d3-shape/src/symbol/star.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import {pi, tau} from "../math.js";
|
| 2 |
+
|
| 3 |
+
var ka = 0.89081309152928522810,
|
| 4 |
+
kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10),
|
| 5 |
+
kx = Math.sin(tau / 10) * kr,
|
| 6 |
+
ky = -Math.cos(tau / 10) * kr;
|
| 7 |
+
|
| 8 |
+
export default {
|
| 9 |
+
draw: function(context, size) {
|
| 10 |
+
var r = Math.sqrt(size * ka),
|
| 11 |
+
x = kx * r,
|
| 12 |
+
y = ky * r;
|
| 13 |
+
context.moveTo(0, -r);
|
| 14 |
+
context.lineTo(x, y);
|
| 15 |
+
for (var i = 1; i < 5; ++i) {
|
| 16 |
+
var a = tau * i / 5,
|
| 17 |
+
c = Math.cos(a),
|
| 18 |
+
s = Math.sin(a);
|
| 19 |
+
context.lineTo(s * r, -c * r);
|
| 20 |
+
context.lineTo(c * x - s * y, s * x + c * y);
|
| 21 |
+
}
|
| 22 |
+
context.closePath();
|
| 23 |
+
}
|
| 24 |
+
};
|
node_modules/d3-shape/src/symbol/triangle.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var sqrt3 = Math.sqrt(3);
|
| 2 |
+
|
| 3 |
+
export default {
|
| 4 |
+
draw: function(context, size) {
|
| 5 |
+
var y = -Math.sqrt(size / (sqrt3 * 3));
|
| 6 |
+
context.moveTo(0, y * 2);
|
| 7 |
+
context.lineTo(-sqrt3 * y, -y);
|
| 8 |
+
context.lineTo(sqrt3 * y, -y);
|
| 9 |
+
context.closePath();
|
| 10 |
+
}
|
| 11 |
+
};
|
node_modules/d3-shape/src/symbol/wye.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
var c = -0.5,
|
| 2 |
+
s = Math.sqrt(3) / 2,
|
| 3 |
+
k = 1 / Math.sqrt(12),
|
| 4 |
+
a = (k / 2 + 1) * 3;
|
| 5 |
+
|
| 6 |
+
export default {
|
| 7 |
+
draw: function(context, size) {
|
| 8 |
+
var r = Math.sqrt(size / a),
|
| 9 |
+
x0 = r / 2,
|
| 10 |
+
y0 = r * k,
|
| 11 |
+
x1 = x0,
|
| 12 |
+
y1 = r * k + r,
|
| 13 |
+
x2 = -x1,
|
| 14 |
+
y2 = y1;
|
| 15 |
+
context.moveTo(x0, y0);
|
| 16 |
+
context.lineTo(x1, y1);
|
| 17 |
+
context.lineTo(x2, y2);
|
| 18 |
+
context.lineTo(c * x0 - s * y0, s * x0 + c * y0);
|
| 19 |
+
context.lineTo(c * x1 - s * y1, s * x1 + c * y1);
|
| 20 |
+
context.lineTo(c * x2 - s * y2, s * x2 + c * y2);
|
| 21 |
+
context.lineTo(c * x0 + s * y0, c * y0 - s * x0);
|
| 22 |
+
context.lineTo(c * x1 + s * y1, c * y1 - s * x1);
|
| 23 |
+
context.lineTo(c * x2 + s * y2, c * y2 - s * x2);
|
| 24 |
+
context.closePath();
|
| 25 |
+
}
|
| 26 |
+
};
|
node_modules/d3-time-format/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright 2010-2017 Mike Bostock
|
| 2 |
+
All rights reserved.
|
| 3 |
+
|
| 4 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 5 |
+
are permitted provided that the following conditions are met:
|
| 6 |
+
|
| 7 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 8 |
+
list of conditions and the following disclaimer.
|
| 9 |
+
|
| 10 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 11 |
+
this list of conditions and the following disclaimer in the documentation
|
| 12 |
+
and/or other materials provided with the distribution.
|
| 13 |
+
|
| 14 |
+
* Neither the name of the author nor the names of contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific prior
|
| 16 |
+
written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 21 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
| 22 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 23 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
| 24 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
| 25 |
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 26 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 27 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
node_modules/d3-time-format/README.md
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# d3-time-format
|
| 2 |
+
|
| 3 |
+
This module provides a JavaScript implementation of the venerable [strptime](http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html) and [strftime](http://pubs.opengroup.org/onlinepubs/007908799/xsh/strftime.html) functions from the C standard library, and can be used to parse or format [dates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) in a variety of locale-specific representations. To format a date, create a [formatter](#locale_format) from a specifier (a string with the desired format *directives*, indicated by `%`); then pass a date to the formatter, which returns a string. For example, to convert the current date to a human-readable string:
|
| 4 |
+
|
| 5 |
+
```js
|
| 6 |
+
var formatTime = d3.timeFormat("%B %d, %Y");
|
| 7 |
+
formatTime(new Date); // "June 30, 2015"
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
Likewise, to convert a string back to a date, create a [parser](#locale_parse):
|
| 11 |
+
|
| 12 |
+
```js
|
| 13 |
+
var parseTime = d3.timeParse("%B %d, %Y");
|
| 14 |
+
parseTime("June 30, 2015"); // Tue Jun 30 2015 00:00:00 GMT-0700 (PDT)
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
You can implement more elaborate conditional time formats, too. For example, here’s a [multi-scale time format](http://bl.ocks.org/mbostock/4149176) using [time intervals](https://github.com/d3/d3-time):
|
| 18 |
+
|
| 19 |
+
```js
|
| 20 |
+
var formatMillisecond = d3.timeFormat(".%L"),
|
| 21 |
+
formatSecond = d3.timeFormat(":%S"),
|
| 22 |
+
formatMinute = d3.timeFormat("%I:%M"),
|
| 23 |
+
formatHour = d3.timeFormat("%I %p"),
|
| 24 |
+
formatDay = d3.timeFormat("%a %d"),
|
| 25 |
+
formatWeek = d3.timeFormat("%b %d"),
|
| 26 |
+
formatMonth = d3.timeFormat("%B"),
|
| 27 |
+
formatYear = d3.timeFormat("%Y");
|
| 28 |
+
|
| 29 |
+
function multiFormat(date) {
|
| 30 |
+
return (d3.timeSecond(date) < date ? formatMillisecond
|
| 31 |
+
: d3.timeMinute(date) < date ? formatSecond
|
| 32 |
+
: d3.timeHour(date) < date ? formatMinute
|
| 33 |
+
: d3.timeDay(date) < date ? formatHour
|
| 34 |
+
: d3.timeMonth(date) < date ? (d3.timeWeek(date) < date ? formatDay : formatWeek)
|
| 35 |
+
: d3.timeYear(date) < date ? formatMonth
|
| 36 |
+
: formatYear)(date);
|
| 37 |
+
}
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
This module is used by D3 [time scales](https://github.com/d3/d3-scale/blob/master/README.md#time-scales) to generate human-readable ticks.
|
| 41 |
+
|
| 42 |
+
## Installing
|
| 43 |
+
|
| 44 |
+
If you use NPM, `npm install d3-time-format`. Otherwise, download the [latest release](https://github.com/d3/d3-time-format/releases/latest). You can also load directly from [d3js.org](https://d3js.org), either as a [standalone library](https://d3js.org/d3-time-format.v2.min.js) or as part of [D3](https://github.com/d3/d3). AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported:
|
| 45 |
+
|
| 46 |
+
```html
|
| 47 |
+
<script src="https://d3js.org/d3-time.v1.min.js"></script>
|
| 48 |
+
<script src="https://d3js.org/d3-time-format.v2.min.js"></script>
|
| 49 |
+
<script>
|
| 50 |
+
|
| 51 |
+
var format = d3.timeFormat("%x");
|
| 52 |
+
|
| 53 |
+
</script>
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
Locale files are published to npm and can be loaded using [d3.json](https://github.com/d3/d3-request/blob/master/README.md#json). For example, to set Russian as the default locale:
|
| 57 |
+
|
| 58 |
+
```js
|
| 59 |
+
d3.json("https://cdn.jsdelivr.net/npm/d3-time-format@2/locale/ru-RU.json", function(error, locale) {
|
| 60 |
+
if (error) throw error;
|
| 61 |
+
|
| 62 |
+
d3.timeFormatDefaultLocale(locale);
|
| 63 |
+
|
| 64 |
+
var format = d3.timeFormat("%c");
|
| 65 |
+
|
| 66 |
+
console.log(format(new Date)); // понедельник, 5 декабря 2016 г. 10:31:59
|
| 67 |
+
});
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## API Reference
|
| 71 |
+
|
| 72 |
+
<a name="timeFormat" href="#timeFormat">#</a> d3.<b>timeFormat</b>(<i>specifier</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/defaultLocale.js#L4 "Source")
|
| 73 |
+
|
| 74 |
+
An alias for [*locale*.format](#locale_format) on the [default locale](#timeFormatDefaultLocale).
|
| 75 |
+
|
| 76 |
+
<a name="timeParse" href="#timeParse">#</a> d3.<b>timeParse</b>(<i>specifier</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/defaultLocale.js#L5 "Source")
|
| 77 |
+
|
| 78 |
+
An alias for [*locale*.parse](#locale_parse) on the [default locale](#timeFormatDefaultLocale).
|
| 79 |
+
|
| 80 |
+
<a name="utcFormat" href="#utcFormat">#</a> d3.<b>utcFormat</b>(<i>specifier</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/defaultLocale.js#L6 "Source")
|
| 81 |
+
|
| 82 |
+
An alias for [*locale*.utcFormat](#locale_utcFormat) on the [default locale](#timeFormatDefaultLocale).
|
| 83 |
+
|
| 84 |
+
<a name="utcParse" href="#utcParse">#</a> d3.<b>utcParse</b>(<i>specifier</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/defaultLocale.js#L7 "Source")
|
| 85 |
+
|
| 86 |
+
An alias for [*locale*.utcParse](#locale_utcParse) on the [default locale](#timeFormatDefaultLocale).
|
| 87 |
+
|
| 88 |
+
<a name="isoFormat" href="#isoFormat">#</a> d3.<b>isoFormat</b> [<>](https://github.com/d3/d3-time-format/blob/master/src/isoFormat.js "Source")
|
| 89 |
+
|
| 90 |
+
The full [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC time formatter. Where available, this method will use [Date.toISOString](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toISOString) to format.
|
| 91 |
+
|
| 92 |
+
<a name="isoParse" href="#isoParse">#</a> d3.<b>isoParse</b> [<>](https://github.com/d3/d3-time-format/blob/master/src/isoParse.js "Source")
|
| 93 |
+
|
| 94 |
+
The full [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC time parser. Where available, this method will use the [Date constructor](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date) to parse strings. If you depend on strict validation of the input format according to ISO 8601, you should construct a [UTC parser function](#utcParse):
|
| 95 |
+
|
| 96 |
+
```js
|
| 97 |
+
var strictIsoParse = d3.utcParse("%Y-%m-%dT%H:%M:%S.%LZ");
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
<a name="locale_format" href="#locale_format">#</a> <i>locale</i>.<b>format</b>(<i>specifier</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/locale.js#L293 "Source")
|
| 101 |
+
|
| 102 |
+
Returns a new formatter for the given string *specifier*. The specifier string may contain the following directives:
|
| 103 |
+
|
| 104 |
+
* `%a` - abbreviated weekday name.*
|
| 105 |
+
* `%A` - full weekday name.*
|
| 106 |
+
* `%b` - abbreviated month name.*
|
| 107 |
+
* `%B` - full month name.*
|
| 108 |
+
* `%c` - the locale’s date and time, such as `%x, %X`.*
|
| 109 |
+
* `%d` - zero-padded day of the month as a decimal number [01,31].
|
| 110 |
+
* `%e` - space-padded day of the month as a decimal number [ 1,31]; equivalent to `%_d`.
|
| 111 |
+
* `%f` - microseconds as a decimal number [000000, 999999].
|
| 112 |
+
* `%g` - ISO 8601 week-based year without century as a decimal number [00,99].
|
| 113 |
+
* `%G` - ISO 8601 week-based year with century as a decimal number.
|
| 114 |
+
* `%H` - hour (24-hour clock) as a decimal number [00,23].
|
| 115 |
+
* `%I` - hour (12-hour clock) as a decimal number [01,12].
|
| 116 |
+
* `%j` - day of the year as a decimal number [001,366].
|
| 117 |
+
* `%m` - month as a decimal number [01,12].
|
| 118 |
+
* `%M` - minute as a decimal number [00,59].
|
| 119 |
+
* `%L` - milliseconds as a decimal number [000, 999].
|
| 120 |
+
* `%p` - either AM or PM.*
|
| 121 |
+
* `%q` - quarter of the year as a decimal number [1,4].
|
| 122 |
+
* `%Q` - milliseconds since UNIX epoch.
|
| 123 |
+
* `%s` - seconds since UNIX epoch.
|
| 124 |
+
* `%S` - second as a decimal number [00,61].
|
| 125 |
+
* `%u` - Monday-based (ISO 8601) weekday as a decimal number [1,7].
|
| 126 |
+
* `%U` - Sunday-based week of the year as a decimal number [00,53].
|
| 127 |
+
* `%V` - ISO 8601 week of the year as a decimal number [01, 53].
|
| 128 |
+
* `%w` - Sunday-based weekday as a decimal number [0,6].
|
| 129 |
+
* `%W` - Monday-based week of the year as a decimal number [00,53].
|
| 130 |
+
* `%x` - the locale’s date, such as `%-m/%-d/%Y`.*
|
| 131 |
+
* `%X` - the locale’s time, such as `%-I:%M:%S %p`.*
|
| 132 |
+
* `%y` - year without century as a decimal number [00,99].
|
| 133 |
+
* `%Y` - year with century as a decimal number, such as `1999`.
|
| 134 |
+
* `%Z` - time zone offset, such as `-0700`, `-07:00`, `-07`, or `Z`.
|
| 135 |
+
* `%%` - a literal percent sign (`%`).
|
| 136 |
+
|
| 137 |
+
Directives marked with an asterisk (\*) may be affected by the [locale definition](#locales).
|
| 138 |
+
|
| 139 |
+
For `%U`, all days in a new year preceding the first Sunday are considered to be in week 0. For `%W`, all days in a new year preceding the first Monday are considered to be in week 0. Week numbers are computed using [*interval*.count](https://github.com/d3/d3-time/blob/master/README.md#interval_count). For example, 2015-52 and 2016-00 represent Monday, December 28, 2015, while 2015-53 and 2016-01 represent Monday, January 4, 2016. This differs from the [ISO week date](https://en.wikipedia.org/wiki/ISO_week_date) specification (`%V`), which uses a more complicated definition!
|
| 140 |
+
|
| 141 |
+
For `%V`,`%g` and `%G`, per the [strftime man page](http://man7.org/linux/man-pages/man3/strftime.3.html):
|
| 142 |
+
|
| 143 |
+
> In this system, weeks start on a Monday, and are numbered from 01, for the first week, up to 52 or 53, for the last week. Week 1 is the first week where four or more days fall within the new year (or, synonymously, week 01 is: the first week of the year that contains a Thursday; or, the week that has 4 January in it). If the ISO week number belongs to the previous or next year, that year is used instead.
|
| 144 |
+
|
| 145 |
+
The `%` sign indicating a directive may be immediately followed by a padding modifier:
|
| 146 |
+
|
| 147 |
+
* `0` - zero-padding
|
| 148 |
+
* `_` - space-padding
|
| 149 |
+
* `-` - disable padding
|
| 150 |
+
|
| 151 |
+
If no padding modifier is specified, the default is `0` for all directives except `%e`, which defaults to `_`. (In some implementations of strftime and strptime, a directive may include an optional field width or precision; this feature is not yet implemented.)
|
| 152 |
+
|
| 153 |
+
The returned function formats a specified *[date](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date)*, returning the corresponding string.
|
| 154 |
+
|
| 155 |
+
```js
|
| 156 |
+
var formatMonth = d3.timeFormat("%B"),
|
| 157 |
+
formatDay = d3.timeFormat("%A"),
|
| 158 |
+
date = new Date(2014, 4, 1); // Thu May 01 2014 00:00:00 GMT-0700 (PDT)
|
| 159 |
+
|
| 160 |
+
formatMonth(date); // "May"
|
| 161 |
+
formatDay(date); // "Thursday"
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
<a name="locale_parse" href="#locale_parse">#</a> <i>locale</i>.<b>parse</b>(<i>specifier</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/locale.js#L298 "Source")
|
| 165 |
+
|
| 166 |
+
Returns a new parser for the given string *specifier*. The specifier string may contain the same directives as [*locale*.format](#locale_format). The `%d` and `%e` directives are considered equivalent for parsing.
|
| 167 |
+
|
| 168 |
+
The returned function parses a specified *string*, returning the corresponding [date](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date) or null if the string could not be parsed according to this format’s specifier. Parsing is strict: if the specified <i>string</i> does not exactly match the associated specifier, this method returns null. For example, if the associated specifier is `%Y-%m-%dT%H:%M:%SZ`, then the string `"2011-07-01T19:15:28Z"` will be parsed as expected, but `"2011-07-01T19:15:28"`, `"2011-07-01 19:15:28"` and `"2011-07-01"` will return null. (Note that the literal `Z` here is different from the time zone offset directive `%Z`.) If a more flexible parser is desired, try multiple formats sequentially until one returns non-null.
|
| 169 |
+
|
| 170 |
+
<a name="locale_utcFormat" href="#locale_utcFormat">#</a> <i>locale</i>.<b>utcFormat</b>(<i>specifier</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/locale.js#L303 "Source")
|
| 171 |
+
|
| 172 |
+
Equivalent to [*locale*.format](#locale_format), except all directives are interpreted as [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) rather than local time.
|
| 173 |
+
|
| 174 |
+
<a name="locale_utcParse" href="#locale_utcParse">#</a> <i>locale</i>.<b>utcParse</b>(<i>specifier</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/locale.js#L308 "Source")
|
| 175 |
+
|
| 176 |
+
Equivalent to [*locale*.parse](#locale_parse), except all directives are interpreted as [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) rather than local time.
|
| 177 |
+
|
| 178 |
+
### Locales
|
| 179 |
+
|
| 180 |
+
<a name="timeFormatLocale" href="#timeFormatLocale">#</a> d3.<b>timeFormatLocale</b>(<i>definition</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/locale.js "Source")
|
| 181 |
+
|
| 182 |
+
Returns a *locale* object for the specified *definition* with [*locale*.format](#locale_format), [*locale*.parse](#locale_parse), [*locale*.utcFormat](#locale_utcFormat), [*locale*.utcParse](#locale_utcParse) methods. The *definition* must include the following properties:
|
| 183 |
+
|
| 184 |
+
* `dateTime` - the date and time (`%c`) format specifier (<i>e.g.</i>, `"%a %b %e %X %Y"`).
|
| 185 |
+
* `date` - the date (`%x`) format specifier (<i>e.g.</i>, `"%m/%d/%Y"`).
|
| 186 |
+
* `time` - the time (`%X`) format specifier (<i>e.g.</i>, `"%H:%M:%S"`).
|
| 187 |
+
* `periods` - the A.M. and P.M. equivalents (<i>e.g.</i>, `["AM", "PM"]`).
|
| 188 |
+
* `days` - the full names of the weekdays, starting with Sunday.
|
| 189 |
+
* `shortDays` - the abbreviated names of the weekdays, starting with Sunday.
|
| 190 |
+
* `months` - the full names of the months (starting with January).
|
| 191 |
+
* `shortMonths` - the abbreviated names of the months (starting with January).
|
| 192 |
+
|
| 193 |
+
For an example, see [Localized Time Axis II](https://bl.ocks.org/mbostock/805115ebaa574e771db1875a6d828949).
|
| 194 |
+
|
| 195 |
+
<a name="timeFormatDefaultLocale" href="#timeFormatDefaultLocale">#</a> d3.<b>timeFormatDefaultLocale</b>(<i>definition</i>) [<>](https://github.com/d3/d3-time-format/blob/master/src/defaultLocale.js "Source")
|
| 196 |
+
|
| 197 |
+
Equivalent to [d3.timeFormatLocale](#timeFormatLocale), except it also redefines [d3.timeFormat](#timeFormat), [d3.timeParse](#timeParse), [d3.utcFormat](#utcFormat) and [d3.utcParse](#utcParse) to the new locale’s [*locale*.format](#locale_format), [*locale*.parse](#locale_parse), [*locale*.utcFormat](#locale_utcFormat) and [*locale*.utcParse](#locale_utcParse). If you do not set a default locale, it defaults to [U.S. English](https://github.com/d3/d3-time-format/blob/master/locale/en-US.json).
|
| 198 |
+
|
| 199 |
+
For an example, see [Localized Time Axis](https://bl.ocks.org/mbostock/6f1cc065d4d172bcaf322e399aa8d62f).
|
node_modules/d3-time-format/dist/d3-time-format.js
ADDED
|
@@ -0,0 +1,743 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// https://d3js.org/d3-time-format/ v2.3.0 Copyright 2020 Mike Bostock
|
| 2 |
+
(function (global, factory) {
|
| 3 |
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-time')) :
|
| 4 |
+
typeof define === 'function' && define.amd ? define(['exports', 'd3-time'], factory) :
|
| 5 |
+
(global = global || self, factory(global.d3 = global.d3 || {}, global.d3));
|
| 6 |
+
}(this, function (exports, d3Time) { 'use strict';
|
| 7 |
+
|
| 8 |
+
function localDate(d) {
|
| 9 |
+
if (0 <= d.y && d.y < 100) {
|
| 10 |
+
var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
|
| 11 |
+
date.setFullYear(d.y);
|
| 12 |
+
return date;
|
| 13 |
+
}
|
| 14 |
+
return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
function utcDate(d) {
|
| 18 |
+
if (0 <= d.y && d.y < 100) {
|
| 19 |
+
var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
|
| 20 |
+
date.setUTCFullYear(d.y);
|
| 21 |
+
return date;
|
| 22 |
+
}
|
| 23 |
+
return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
function newDate(y, m, d) {
|
| 27 |
+
return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
function formatLocale(locale) {
|
| 31 |
+
var locale_dateTime = locale.dateTime,
|
| 32 |
+
locale_date = locale.date,
|
| 33 |
+
locale_time = locale.time,
|
| 34 |
+
locale_periods = locale.periods,
|
| 35 |
+
locale_weekdays = locale.days,
|
| 36 |
+
locale_shortWeekdays = locale.shortDays,
|
| 37 |
+
locale_months = locale.months,
|
| 38 |
+
locale_shortMonths = locale.shortMonths;
|
| 39 |
+
|
| 40 |
+
var periodRe = formatRe(locale_periods),
|
| 41 |
+
periodLookup = formatLookup(locale_periods),
|
| 42 |
+
weekdayRe = formatRe(locale_weekdays),
|
| 43 |
+
weekdayLookup = formatLookup(locale_weekdays),
|
| 44 |
+
shortWeekdayRe = formatRe(locale_shortWeekdays),
|
| 45 |
+
shortWeekdayLookup = formatLookup(locale_shortWeekdays),
|
| 46 |
+
monthRe = formatRe(locale_months),
|
| 47 |
+
monthLookup = formatLookup(locale_months),
|
| 48 |
+
shortMonthRe = formatRe(locale_shortMonths),
|
| 49 |
+
shortMonthLookup = formatLookup(locale_shortMonths);
|
| 50 |
+
|
| 51 |
+
var formats = {
|
| 52 |
+
"a": formatShortWeekday,
|
| 53 |
+
"A": formatWeekday,
|
| 54 |
+
"b": formatShortMonth,
|
| 55 |
+
"B": formatMonth,
|
| 56 |
+
"c": null,
|
| 57 |
+
"d": formatDayOfMonth,
|
| 58 |
+
"e": formatDayOfMonth,
|
| 59 |
+
"f": formatMicroseconds,
|
| 60 |
+
"g": formatYearISO,
|
| 61 |
+
"G": formatFullYearISO,
|
| 62 |
+
"H": formatHour24,
|
| 63 |
+
"I": formatHour12,
|
| 64 |
+
"j": formatDayOfYear,
|
| 65 |
+
"L": formatMilliseconds,
|
| 66 |
+
"m": formatMonthNumber,
|
| 67 |
+
"M": formatMinutes,
|
| 68 |
+
"p": formatPeriod,
|
| 69 |
+
"q": formatQuarter,
|
| 70 |
+
"Q": formatUnixTimestamp,
|
| 71 |
+
"s": formatUnixTimestampSeconds,
|
| 72 |
+
"S": formatSeconds,
|
| 73 |
+
"u": formatWeekdayNumberMonday,
|
| 74 |
+
"U": formatWeekNumberSunday,
|
| 75 |
+
"V": formatWeekNumberISO,
|
| 76 |
+
"w": formatWeekdayNumberSunday,
|
| 77 |
+
"W": formatWeekNumberMonday,
|
| 78 |
+
"x": null,
|
| 79 |
+
"X": null,
|
| 80 |
+
"y": formatYear,
|
| 81 |
+
"Y": formatFullYear,
|
| 82 |
+
"Z": formatZone,
|
| 83 |
+
"%": formatLiteralPercent
|
| 84 |
+
};
|
| 85 |
+
|
| 86 |
+
var utcFormats = {
|
| 87 |
+
"a": formatUTCShortWeekday,
|
| 88 |
+
"A": formatUTCWeekday,
|
| 89 |
+
"b": formatUTCShortMonth,
|
| 90 |
+
"B": formatUTCMonth,
|
| 91 |
+
"c": null,
|
| 92 |
+
"d": formatUTCDayOfMonth,
|
| 93 |
+
"e": formatUTCDayOfMonth,
|
| 94 |
+
"f": formatUTCMicroseconds,
|
| 95 |
+
"g": formatUTCYearISO,
|
| 96 |
+
"G": formatUTCFullYearISO,
|
| 97 |
+
"H": formatUTCHour24,
|
| 98 |
+
"I": formatUTCHour12,
|
| 99 |
+
"j": formatUTCDayOfYear,
|
| 100 |
+
"L": formatUTCMilliseconds,
|
| 101 |
+
"m": formatUTCMonthNumber,
|
| 102 |
+
"M": formatUTCMinutes,
|
| 103 |
+
"p": formatUTCPeriod,
|
| 104 |
+
"q": formatUTCQuarter,
|
| 105 |
+
"Q": formatUnixTimestamp,
|
| 106 |
+
"s": formatUnixTimestampSeconds,
|
| 107 |
+
"S": formatUTCSeconds,
|
| 108 |
+
"u": formatUTCWeekdayNumberMonday,
|
| 109 |
+
"U": formatUTCWeekNumberSunday,
|
| 110 |
+
"V": formatUTCWeekNumberISO,
|
| 111 |
+
"w": formatUTCWeekdayNumberSunday,
|
| 112 |
+
"W": formatUTCWeekNumberMonday,
|
| 113 |
+
"x": null,
|
| 114 |
+
"X": null,
|
| 115 |
+
"y": formatUTCYear,
|
| 116 |
+
"Y": formatUTCFullYear,
|
| 117 |
+
"Z": formatUTCZone,
|
| 118 |
+
"%": formatLiteralPercent
|
| 119 |
+
};
|
| 120 |
+
|
| 121 |
+
var parses = {
|
| 122 |
+
"a": parseShortWeekday,
|
| 123 |
+
"A": parseWeekday,
|
| 124 |
+
"b": parseShortMonth,
|
| 125 |
+
"B": parseMonth,
|
| 126 |
+
"c": parseLocaleDateTime,
|
| 127 |
+
"d": parseDayOfMonth,
|
| 128 |
+
"e": parseDayOfMonth,
|
| 129 |
+
"f": parseMicroseconds,
|
| 130 |
+
"g": parseYear,
|
| 131 |
+
"G": parseFullYear,
|
| 132 |
+
"H": parseHour24,
|
| 133 |
+
"I": parseHour24,
|
| 134 |
+
"j": parseDayOfYear,
|
| 135 |
+
"L": parseMilliseconds,
|
| 136 |
+
"m": parseMonthNumber,
|
| 137 |
+
"M": parseMinutes,
|
| 138 |
+
"p": parsePeriod,
|
| 139 |
+
"q": parseQuarter,
|
| 140 |
+
"Q": parseUnixTimestamp,
|
| 141 |
+
"s": parseUnixTimestampSeconds,
|
| 142 |
+
"S": parseSeconds,
|
| 143 |
+
"u": parseWeekdayNumberMonday,
|
| 144 |
+
"U": parseWeekNumberSunday,
|
| 145 |
+
"V": parseWeekNumberISO,
|
| 146 |
+
"w": parseWeekdayNumberSunday,
|
| 147 |
+
"W": parseWeekNumberMonday,
|
| 148 |
+
"x": parseLocaleDate,
|
| 149 |
+
"X": parseLocaleTime,
|
| 150 |
+
"y": parseYear,
|
| 151 |
+
"Y": parseFullYear,
|
| 152 |
+
"Z": parseZone,
|
| 153 |
+
"%": parseLiteralPercent
|
| 154 |
+
};
|
| 155 |
+
|
| 156 |
+
// These recursive directive definitions must be deferred.
|
| 157 |
+
formats.x = newFormat(locale_date, formats);
|
| 158 |
+
formats.X = newFormat(locale_time, formats);
|
| 159 |
+
formats.c = newFormat(locale_dateTime, formats);
|
| 160 |
+
utcFormats.x = newFormat(locale_date, utcFormats);
|
| 161 |
+
utcFormats.X = newFormat(locale_time, utcFormats);
|
| 162 |
+
utcFormats.c = newFormat(locale_dateTime, utcFormats);
|
| 163 |
+
|
| 164 |
+
function newFormat(specifier, formats) {
|
| 165 |
+
return function(date) {
|
| 166 |
+
var string = [],
|
| 167 |
+
i = -1,
|
| 168 |
+
j = 0,
|
| 169 |
+
n = specifier.length,
|
| 170 |
+
c,
|
| 171 |
+
pad,
|
| 172 |
+
format;
|
| 173 |
+
|
| 174 |
+
if (!(date instanceof Date)) date = new Date(+date);
|
| 175 |
+
|
| 176 |
+
while (++i < n) {
|
| 177 |
+
if (specifier.charCodeAt(i) === 37) {
|
| 178 |
+
string.push(specifier.slice(j, i));
|
| 179 |
+
if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);
|
| 180 |
+
else pad = c === "e" ? " " : "0";
|
| 181 |
+
if (format = formats[c]) c = format(date, pad);
|
| 182 |
+
string.push(c);
|
| 183 |
+
j = i + 1;
|
| 184 |
+
}
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
string.push(specifier.slice(j, i));
|
| 188 |
+
return string.join("");
|
| 189 |
+
};
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
function newParse(specifier, Z) {
|
| 193 |
+
return function(string) {
|
| 194 |
+
var d = newDate(1900, undefined, 1),
|
| 195 |
+
i = parseSpecifier(d, specifier, string += "", 0),
|
| 196 |
+
week, day;
|
| 197 |
+
if (i != string.length) return null;
|
| 198 |
+
|
| 199 |
+
// If a UNIX timestamp is specified, return it.
|
| 200 |
+
if ("Q" in d) return new Date(d.Q);
|
| 201 |
+
if ("s" in d) return new Date(d.s * 1000 + ("L" in d ? d.L : 0));
|
| 202 |
+
|
| 203 |
+
// If this is utcParse, never use the local timezone.
|
| 204 |
+
if (Z && !("Z" in d)) d.Z = 0;
|
| 205 |
+
|
| 206 |
+
// The am-pm flag is 0 for AM, and 1 for PM.
|
| 207 |
+
if ("p" in d) d.H = d.H % 12 + d.p * 12;
|
| 208 |
+
|
| 209 |
+
// If the month was not specified, inherit from the quarter.
|
| 210 |
+
if (d.m === undefined) d.m = "q" in d ? d.q : 0;
|
| 211 |
+
|
| 212 |
+
// Convert day-of-week and week-of-year to day-of-year.
|
| 213 |
+
if ("V" in d) {
|
| 214 |
+
if (d.V < 1 || d.V > 53) return null;
|
| 215 |
+
if (!("w" in d)) d.w = 1;
|
| 216 |
+
if ("Z" in d) {
|
| 217 |
+
week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
|
| 218 |
+
week = day > 4 || day === 0 ? d3Time.utcMonday.ceil(week) : d3Time.utcMonday(week);
|
| 219 |
+
week = d3Time.utcDay.offset(week, (d.V - 1) * 7);
|
| 220 |
+
d.y = week.getUTCFullYear();
|
| 221 |
+
d.m = week.getUTCMonth();
|
| 222 |
+
d.d = week.getUTCDate() + (d.w + 6) % 7;
|
| 223 |
+
} else {
|
| 224 |
+
week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
|
| 225 |
+
week = day > 4 || day === 0 ? d3Time.timeMonday.ceil(week) : d3Time.timeMonday(week);
|
| 226 |
+
week = d3Time.timeDay.offset(week, (d.V - 1) * 7);
|
| 227 |
+
d.y = week.getFullYear();
|
| 228 |
+
d.m = week.getMonth();
|
| 229 |
+
d.d = week.getDate() + (d.w + 6) % 7;
|
| 230 |
+
}
|
| 231 |
+
} else if ("W" in d || "U" in d) {
|
| 232 |
+
if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
|
| 233 |
+
day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
|
| 234 |
+
d.m = 0;
|
| 235 |
+
d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
// If a time zone is specified, all fields are interpreted as UTC and then
|
| 239 |
+
// offset according to the specified time zone.
|
| 240 |
+
if ("Z" in d) {
|
| 241 |
+
d.H += d.Z / 100 | 0;
|
| 242 |
+
d.M += d.Z % 100;
|
| 243 |
+
return utcDate(d);
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
// Otherwise, all fields are in local time.
|
| 247 |
+
return localDate(d);
|
| 248 |
+
};
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
function parseSpecifier(d, specifier, string, j) {
|
| 252 |
+
var i = 0,
|
| 253 |
+
n = specifier.length,
|
| 254 |
+
m = string.length,
|
| 255 |
+
c,
|
| 256 |
+
parse;
|
| 257 |
+
|
| 258 |
+
while (i < n) {
|
| 259 |
+
if (j >= m) return -1;
|
| 260 |
+
c = specifier.charCodeAt(i++);
|
| 261 |
+
if (c === 37) {
|
| 262 |
+
c = specifier.charAt(i++);
|
| 263 |
+
parse = parses[c in pads ? specifier.charAt(i++) : c];
|
| 264 |
+
if (!parse || ((j = parse(d, string, j)) < 0)) return -1;
|
| 265 |
+
} else if (c != string.charCodeAt(j++)) {
|
| 266 |
+
return -1;
|
| 267 |
+
}
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
return j;
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
function parsePeriod(d, string, i) {
|
| 274 |
+
var n = periodRe.exec(string.slice(i));
|
| 275 |
+
return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
function parseShortWeekday(d, string, i) {
|
| 279 |
+
var n = shortWeekdayRe.exec(string.slice(i));
|
| 280 |
+
return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
function parseWeekday(d, string, i) {
|
| 284 |
+
var n = weekdayRe.exec(string.slice(i));
|
| 285 |
+
return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
function parseShortMonth(d, string, i) {
|
| 289 |
+
var n = shortMonthRe.exec(string.slice(i));
|
| 290 |
+
return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
function parseMonth(d, string, i) {
|
| 294 |
+
var n = monthRe.exec(string.slice(i));
|
| 295 |
+
return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
function parseLocaleDateTime(d, string, i) {
|
| 299 |
+
return parseSpecifier(d, locale_dateTime, string, i);
|
| 300 |
+
}
|
| 301 |
+
|
| 302 |
+
function parseLocaleDate(d, string, i) {
|
| 303 |
+
return parseSpecifier(d, locale_date, string, i);
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
function parseLocaleTime(d, string, i) {
|
| 307 |
+
return parseSpecifier(d, locale_time, string, i);
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
function formatShortWeekday(d) {
|
| 311 |
+
return locale_shortWeekdays[d.getDay()];
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
function formatWeekday(d) {
|
| 315 |
+
return locale_weekdays[d.getDay()];
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
function formatShortMonth(d) {
|
| 319 |
+
return locale_shortMonths[d.getMonth()];
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
function formatMonth(d) {
|
| 323 |
+
return locale_months[d.getMonth()];
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
function formatPeriod(d) {
|
| 327 |
+
return locale_periods[+(d.getHours() >= 12)];
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
function formatQuarter(d) {
|
| 331 |
+
return 1 + ~~(d.getMonth() / 3);
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
function formatUTCShortWeekday(d) {
|
| 335 |
+
return locale_shortWeekdays[d.getUTCDay()];
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
function formatUTCWeekday(d) {
|
| 339 |
+
return locale_weekdays[d.getUTCDay()];
|
| 340 |
+
}
|
| 341 |
+
|
| 342 |
+
function formatUTCShortMonth(d) {
|
| 343 |
+
return locale_shortMonths[d.getUTCMonth()];
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
function formatUTCMonth(d) {
|
| 347 |
+
return locale_months[d.getUTCMonth()];
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
function formatUTCPeriod(d) {
|
| 351 |
+
return locale_periods[+(d.getUTCHours() >= 12)];
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
function formatUTCQuarter(d) {
|
| 355 |
+
return 1 + ~~(d.getUTCMonth() / 3);
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
return {
|
| 359 |
+
format: function(specifier) {
|
| 360 |
+
var f = newFormat(specifier += "", formats);
|
| 361 |
+
f.toString = function() { return specifier; };
|
| 362 |
+
return f;
|
| 363 |
+
},
|
| 364 |
+
parse: function(specifier) {
|
| 365 |
+
var p = newParse(specifier += "", false);
|
| 366 |
+
p.toString = function() { return specifier; };
|
| 367 |
+
return p;
|
| 368 |
+
},
|
| 369 |
+
utcFormat: function(specifier) {
|
| 370 |
+
var f = newFormat(specifier += "", utcFormats);
|
| 371 |
+
f.toString = function() { return specifier; };
|
| 372 |
+
return f;
|
| 373 |
+
},
|
| 374 |
+
utcParse: function(specifier) {
|
| 375 |
+
var p = newParse(specifier += "", true);
|
| 376 |
+
p.toString = function() { return specifier; };
|
| 377 |
+
return p;
|
| 378 |
+
}
|
| 379 |
+
};
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
var pads = {"-": "", "_": " ", "0": "0"},
|
| 383 |
+
numberRe = /^\s*\d+/, // note: ignores next directive
|
| 384 |
+
percentRe = /^%/,
|
| 385 |
+
requoteRe = /[\\^$*+?|[\]().{}]/g;
|
| 386 |
+
|
| 387 |
+
function pad(value, fill, width) {
|
| 388 |
+
var sign = value < 0 ? "-" : "",
|
| 389 |
+
string = (sign ? -value : value) + "",
|
| 390 |
+
length = string.length;
|
| 391 |
+
return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
|
| 392 |
+
}
|
| 393 |
+
|
| 394 |
+
function requote(s) {
|
| 395 |
+
return s.replace(requoteRe, "\\$&");
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
function formatRe(names) {
|
| 399 |
+
return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
|
| 400 |
+
}
|
| 401 |
+
|
| 402 |
+
function formatLookup(names) {
|
| 403 |
+
var map = {}, i = -1, n = names.length;
|
| 404 |
+
while (++i < n) map[names[i].toLowerCase()] = i;
|
| 405 |
+
return map;
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
function parseWeekdayNumberSunday(d, string, i) {
|
| 409 |
+
var n = numberRe.exec(string.slice(i, i + 1));
|
| 410 |
+
return n ? (d.w = +n[0], i + n[0].length) : -1;
|
| 411 |
+
}
|
| 412 |
+
|
| 413 |
+
function parseWeekdayNumberMonday(d, string, i) {
|
| 414 |
+
var n = numberRe.exec(string.slice(i, i + 1));
|
| 415 |
+
return n ? (d.u = +n[0], i + n[0].length) : -1;
|
| 416 |
+
}
|
| 417 |
+
|
| 418 |
+
function parseWeekNumberSunday(d, string, i) {
|
| 419 |
+
var n = numberRe.exec(string.slice(i, i + 2));
|
| 420 |
+
return n ? (d.U = +n[0], i + n[0].length) : -1;
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
function parseWeekNumberISO(d, string, i) {
|
| 424 |
+
var n = numberRe.exec(string.slice(i, i + 2));
|
| 425 |
+
return n ? (d.V = +n[0], i + n[0].length) : -1;
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
function parseWeekNumberMonday(d, string, i) {
|
| 429 |
+
var n = numberRe.exec(string.slice(i, i + 2));
|
| 430 |
+
return n ? (d.W = +n[0], i + n[0].length) : -1;
|
| 431 |
+
}
|
| 432 |
+
|
| 433 |
+
function parseFullYear(d, string, i) {
|
| 434 |
+
var n = numberRe.exec(string.slice(i, i + 4));
|
| 435 |
+
return n ? (d.y = +n[0], i + n[0].length) : -1;
|
| 436 |
+
}
|
| 437 |
+
|
| 438 |
+
function parseYear(d, string, i) {
|
| 439 |
+
var n = numberRe.exec(string.slice(i, i + 2));
|
| 440 |
+
return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;
|
| 441 |
+
}
|
| 442 |
+
|
| 443 |
+
function parseZone(d, string, i) {
|
| 444 |
+
var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
|
| 445 |
+
return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
|
| 446 |
+
}
|
| 447 |
+
|
| 448 |
+
function parseQuarter(d, string, i) {
|
| 449 |
+
var n = numberRe.exec(string.slice(i, i + 1));
|
| 450 |
+
return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;
|
| 451 |
+
}
|
| 452 |
+
|
| 453 |
+
function parseMonthNumber(d, string, i) {
|
| 454 |
+
var n = numberRe.exec(string.slice(i, i + 2));
|
| 455 |
+
return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
|
| 456 |
+
}
|
| 457 |
+
|
| 458 |
+
function parseDayOfMonth(d, string, i) {
|
| 459 |
+
var n = numberRe.exec(string.slice(i, i + 2));
|
| 460 |
+
return n ? (d.d = +n[0], i + n[0].length) : -1;
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
function parseDayOfYear(d, string, i) {
|
| 464 |
+
var n = numberRe.exec(string.slice(i, i + 3));
|
| 465 |
+
return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
|
| 466 |
+
}
|
| 467 |
+
|
| 468 |
+
function parseHour24(d, string, i) {
|
| 469 |
+
var n = numberRe.exec(string.slice(i, i + 2));
|
| 470 |
+
return n ? (d.H = +n[0], i + n[0].length) : -1;
|
| 471 |
+
}
|
| 472 |
+
|
| 473 |
+
function parseMinutes(d, string, i) {
|
| 474 |
+
var n = numberRe.exec(string.slice(i, i + 2));
|
| 475 |
+
return n ? (d.M = +n[0], i + n[0].length) : -1;
|
| 476 |
+
}
|
| 477 |
+
|
| 478 |
+
function parseSeconds(d, string, i) {
|
| 479 |
+
var n = numberRe.exec(string.slice(i, i + 2));
|
| 480 |
+
return n ? (d.S = +n[0], i + n[0].length) : -1;
|
| 481 |
+
}
|
| 482 |
+
|
| 483 |
+
function parseMilliseconds(d, string, i) {
|
| 484 |
+
var n = numberRe.exec(string.slice(i, i + 3));
|
| 485 |
+
return n ? (d.L = +n[0], i + n[0].length) : -1;
|
| 486 |
+
}
|
| 487 |
+
|
| 488 |
+
function parseMicroseconds(d, string, i) {
|
| 489 |
+
var n = numberRe.exec(string.slice(i, i + 6));
|
| 490 |
+
return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;
|
| 491 |
+
}
|
| 492 |
+
|
| 493 |
+
function parseLiteralPercent(d, string, i) {
|
| 494 |
+
var n = percentRe.exec(string.slice(i, i + 1));
|
| 495 |
+
return n ? i + n[0].length : -1;
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
function parseUnixTimestamp(d, string, i) {
|
| 499 |
+
var n = numberRe.exec(string.slice(i));
|
| 500 |
+
return n ? (d.Q = +n[0], i + n[0].length) : -1;
|
| 501 |
+
}
|
| 502 |
+
|
| 503 |
+
function parseUnixTimestampSeconds(d, string, i) {
|
| 504 |
+
var n = numberRe.exec(string.slice(i));
|
| 505 |
+
return n ? (d.s = +n[0], i + n[0].length) : -1;
|
| 506 |
+
}
|
| 507 |
+
|
| 508 |
+
function formatDayOfMonth(d, p) {
|
| 509 |
+
return pad(d.getDate(), p, 2);
|
| 510 |
+
}
|
| 511 |
+
|
| 512 |
+
function formatHour24(d, p) {
|
| 513 |
+
return pad(d.getHours(), p, 2);
|
| 514 |
+
}
|
| 515 |
+
|
| 516 |
+
function formatHour12(d, p) {
|
| 517 |
+
return pad(d.getHours() % 12 || 12, p, 2);
|
| 518 |
+
}
|
| 519 |
+
|
| 520 |
+
function formatDayOfYear(d, p) {
|
| 521 |
+
return pad(1 + d3Time.timeDay.count(d3Time.timeYear(d), d), p, 3);
|
| 522 |
+
}
|
| 523 |
+
|
| 524 |
+
function formatMilliseconds(d, p) {
|
| 525 |
+
return pad(d.getMilliseconds(), p, 3);
|
| 526 |
+
}
|
| 527 |
+
|
| 528 |
+
function formatMicroseconds(d, p) {
|
| 529 |
+
return formatMilliseconds(d, p) + "000";
|
| 530 |
+
}
|
| 531 |
+
|
| 532 |
+
function formatMonthNumber(d, p) {
|
| 533 |
+
return pad(d.getMonth() + 1, p, 2);
|
| 534 |
+
}
|
| 535 |
+
|
| 536 |
+
function formatMinutes(d, p) {
|
| 537 |
+
return pad(d.getMinutes(), p, 2);
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
function formatSeconds(d, p) {
|
| 541 |
+
return pad(d.getSeconds(), p, 2);
|
| 542 |
+
}
|
| 543 |
+
|
| 544 |
+
function formatWeekdayNumberMonday(d) {
|
| 545 |
+
var day = d.getDay();
|
| 546 |
+
return day === 0 ? 7 : day;
|
| 547 |
+
}
|
| 548 |
+
|
| 549 |
+
function formatWeekNumberSunday(d, p) {
|
| 550 |
+
return pad(d3Time.timeSunday.count(d3Time.timeYear(d) - 1, d), p, 2);
|
| 551 |
+
}
|
| 552 |
+
|
| 553 |
+
function dISO(d) {
|
| 554 |
+
var day = d.getDay();
|
| 555 |
+
return (day >= 4 || day === 0) ? d3Time.timeThursday(d) : d3Time.timeThursday.ceil(d);
|
| 556 |
+
}
|
| 557 |
+
|
| 558 |
+
function formatWeekNumberISO(d, p) {
|
| 559 |
+
d = dISO(d);
|
| 560 |
+
return pad(d3Time.timeThursday.count(d3Time.timeYear(d), d) + (d3Time.timeYear(d).getDay() === 4), p, 2);
|
| 561 |
+
}
|
| 562 |
+
|
| 563 |
+
function formatWeekdayNumberSunday(d) {
|
| 564 |
+
return d.getDay();
|
| 565 |
+
}
|
| 566 |
+
|
| 567 |
+
function formatWeekNumberMonday(d, p) {
|
| 568 |
+
return pad(d3Time.timeMonday.count(d3Time.timeYear(d) - 1, d), p, 2);
|
| 569 |
+
}
|
| 570 |
+
|
| 571 |
+
function formatYear(d, p) {
|
| 572 |
+
return pad(d.getFullYear() % 100, p, 2);
|
| 573 |
+
}
|
| 574 |
+
|
| 575 |
+
function formatYearISO(d, p) {
|
| 576 |
+
d = dISO(d);
|
| 577 |
+
return pad(d.getFullYear() % 100, p, 2);
|
| 578 |
+
}
|
| 579 |
+
|
| 580 |
+
function formatFullYear(d, p) {
|
| 581 |
+
return pad(d.getFullYear() % 10000, p, 4);
|
| 582 |
+
}
|
| 583 |
+
|
| 584 |
+
function formatFullYearISO(d, p) {
|
| 585 |
+
var day = d.getDay();
|
| 586 |
+
d = (day >= 4 || day === 0) ? d3Time.timeThursday(d) : d3Time.timeThursday.ceil(d);
|
| 587 |
+
return pad(d.getFullYear() % 10000, p, 4);
|
| 588 |
+
}
|
| 589 |
+
|
| 590 |
+
function formatZone(d) {
|
| 591 |
+
var z = d.getTimezoneOffset();
|
| 592 |
+
return (z > 0 ? "-" : (z *= -1, "+"))
|
| 593 |
+
+ pad(z / 60 | 0, "0", 2)
|
| 594 |
+
+ pad(z % 60, "0", 2);
|
| 595 |
+
}
|
| 596 |
+
|
| 597 |
+
function formatUTCDayOfMonth(d, p) {
|
| 598 |
+
return pad(d.getUTCDate(), p, 2);
|
| 599 |
+
}
|
| 600 |
+
|
| 601 |
+
function formatUTCHour24(d, p) {
|
| 602 |
+
return pad(d.getUTCHours(), p, 2);
|
| 603 |
+
}
|
| 604 |
+
|
| 605 |
+
function formatUTCHour12(d, p) {
|
| 606 |
+
return pad(d.getUTCHours() % 12 || 12, p, 2);
|
| 607 |
+
}
|
| 608 |
+
|
| 609 |
+
function formatUTCDayOfYear(d, p) {
|
| 610 |
+
return pad(1 + d3Time.utcDay.count(d3Time.utcYear(d), d), p, 3);
|
| 611 |
+
}
|
| 612 |
+
|
| 613 |
+
function formatUTCMilliseconds(d, p) {
|
| 614 |
+
return pad(d.getUTCMilliseconds(), p, 3);
|
| 615 |
+
}
|
| 616 |
+
|
| 617 |
+
function formatUTCMicroseconds(d, p) {
|
| 618 |
+
return formatUTCMilliseconds(d, p) + "000";
|
| 619 |
+
}
|
| 620 |
+
|
| 621 |
+
function formatUTCMonthNumber(d, p) {
|
| 622 |
+
return pad(d.getUTCMonth() + 1, p, 2);
|
| 623 |
+
}
|
| 624 |
+
|
| 625 |
+
function formatUTCMinutes(d, p) {
|
| 626 |
+
return pad(d.getUTCMinutes(), p, 2);
|
| 627 |
+
}
|
| 628 |
+
|
| 629 |
+
function formatUTCSeconds(d, p) {
|
| 630 |
+
return pad(d.getUTCSeconds(), p, 2);
|
| 631 |
+
}
|
| 632 |
+
|
| 633 |
+
function formatUTCWeekdayNumberMonday(d) {
|
| 634 |
+
var dow = d.getUTCDay();
|
| 635 |
+
return dow === 0 ? 7 : dow;
|
| 636 |
+
}
|
| 637 |
+
|
| 638 |
+
function formatUTCWeekNumberSunday(d, p) {
|
| 639 |
+
return pad(d3Time.utcSunday.count(d3Time.utcYear(d) - 1, d), p, 2);
|
| 640 |
+
}
|
| 641 |
+
|
| 642 |
+
function UTCdISO(d) {
|
| 643 |
+
var day = d.getUTCDay();
|
| 644 |
+
return (day >= 4 || day === 0) ? d3Time.utcThursday(d) : d3Time.utcThursday.ceil(d);
|
| 645 |
+
}
|
| 646 |
+
|
| 647 |
+
function formatUTCWeekNumberISO(d, p) {
|
| 648 |
+
d = UTCdISO(d);
|
| 649 |
+
return pad(d3Time.utcThursday.count(d3Time.utcYear(d), d) + (d3Time.utcYear(d).getUTCDay() === 4), p, 2);
|
| 650 |
+
}
|
| 651 |
+
|
| 652 |
+
function formatUTCWeekdayNumberSunday(d) {
|
| 653 |
+
return d.getUTCDay();
|
| 654 |
+
}
|
| 655 |
+
|
| 656 |
+
function formatUTCWeekNumberMonday(d, p) {
|
| 657 |
+
return pad(d3Time.utcMonday.count(d3Time.utcYear(d) - 1, d), p, 2);
|
| 658 |
+
}
|
| 659 |
+
|
| 660 |
+
function formatUTCYear(d, p) {
|
| 661 |
+
return pad(d.getUTCFullYear() % 100, p, 2);
|
| 662 |
+
}
|
| 663 |
+
|
| 664 |
+
function formatUTCYearISO(d, p) {
|
| 665 |
+
d = UTCdISO(d);
|
| 666 |
+
return pad(d.getUTCFullYear() % 100, p, 2);
|
| 667 |
+
}
|
| 668 |
+
|
| 669 |
+
function formatUTCFullYear(d, p) {
|
| 670 |
+
return pad(d.getUTCFullYear() % 10000, p, 4);
|
| 671 |
+
}
|
| 672 |
+
|
| 673 |
+
function formatUTCFullYearISO(d, p) {
|
| 674 |
+
var day = d.getUTCDay();
|
| 675 |
+
d = (day >= 4 || day === 0) ? d3Time.utcThursday(d) : d3Time.utcThursday.ceil(d);
|
| 676 |
+
return pad(d.getUTCFullYear() % 10000, p, 4);
|
| 677 |
+
}
|
| 678 |
+
|
| 679 |
+
function formatUTCZone() {
|
| 680 |
+
return "+0000";
|
| 681 |
+
}
|
| 682 |
+
|
| 683 |
+
function formatLiteralPercent() {
|
| 684 |
+
return "%";
|
| 685 |
+
}
|
| 686 |
+
|
| 687 |
+
function formatUnixTimestamp(d) {
|
| 688 |
+
return +d;
|
| 689 |
+
}
|
| 690 |
+
|
| 691 |
+
function formatUnixTimestampSeconds(d) {
|
| 692 |
+
return Math.floor(+d / 1000);
|
| 693 |
+
}
|
| 694 |
+
|
| 695 |
+
var locale;
|
| 696 |
+
|
| 697 |
+
defaultLocale({
|
| 698 |
+
dateTime: "%x, %X",
|
| 699 |
+
date: "%-m/%-d/%Y",
|
| 700 |
+
time: "%-I:%M:%S %p",
|
| 701 |
+
periods: ["AM", "PM"],
|
| 702 |
+
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
| 703 |
+
shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
| 704 |
+
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
| 705 |
+
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
| 706 |
+
});
|
| 707 |
+
|
| 708 |
+
function defaultLocale(definition) {
|
| 709 |
+
locale = formatLocale(definition);
|
| 710 |
+
exports.timeFormat = locale.format;
|
| 711 |
+
exports.timeParse = locale.parse;
|
| 712 |
+
exports.utcFormat = locale.utcFormat;
|
| 713 |
+
exports.utcParse = locale.utcParse;
|
| 714 |
+
return locale;
|
| 715 |
+
}
|
| 716 |
+
|
| 717 |
+
var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ";
|
| 718 |
+
|
| 719 |
+
function formatIsoNative(date) {
|
| 720 |
+
return date.toISOString();
|
| 721 |
+
}
|
| 722 |
+
|
| 723 |
+
var formatIso = Date.prototype.toISOString
|
| 724 |
+
? formatIsoNative
|
| 725 |
+
: exports.utcFormat(isoSpecifier);
|
| 726 |
+
|
| 727 |
+
function parseIsoNative(string) {
|
| 728 |
+
var date = new Date(string);
|
| 729 |
+
return isNaN(date) ? null : date;
|
| 730 |
+
}
|
| 731 |
+
|
| 732 |
+
var parseIso = +new Date("2000-01-01T00:00:00.000Z")
|
| 733 |
+
? parseIsoNative
|
| 734 |
+
: exports.utcParse(isoSpecifier);
|
| 735 |
+
|
| 736 |
+
exports.isoFormat = formatIso;
|
| 737 |
+
exports.isoParse = parseIso;
|
| 738 |
+
exports.timeFormatDefaultLocale = defaultLocale;
|
| 739 |
+
exports.timeFormatLocale = formatLocale;
|
| 740 |
+
|
| 741 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
| 742 |
+
|
| 743 |
+
}));
|
node_modules/d3-time-format/dist/d3-time-format.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// https://d3js.org/d3-time-format/ v2.3.0 Copyright 2020 Mike Bostock
|
| 2 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("d3-time")):"function"==typeof define&&define.amd?define(["exports","d3-time"],t):t((e=e||self).d3=e.d3||{},e.d3)}(this,function(e,t){"use strict";function n(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function r(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function u(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function i(e){var i=e.dateTime,c=e.date,a=e.time,f=e.periods,l=e.days,s=e.shortDays,g=e.months,G=e.shortMonths,ge=y(f),we=d(f),pe=y(l),Se=d(l),Ye=y(s),Fe=d(s),Le=y(g),He=d(g),Ae=y(G),Ze=d(G),be={a:function(e){return s[e.getDay()]},A:function(e){return l[e.getDay()]},b:function(e){return G[e.getMonth()]},B:function(e){return g[e.getMonth()]},c:null,d:V,e:V,f:J,g:R,G:K,H:j,I:P,j:q,L:I,m:O,M:Q,p:function(e){return f[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Ue,s:xe,S:X,u:N,U:B,V:_,w:$,W:z,x:null,X:null,y:E,Y:k,Z:ee,"%":Ce},We={a:function(e){return s[e.getUTCDay()]},A:function(e){return l[e.getUTCDay()]},b:function(e){return G[e.getUTCMonth()]},B:function(e){return g[e.getUTCMonth()]},c:null,d:te,e:te,f:ce,g:ve,G:Me,H:ne,I:re,j:ue,L:ie,m:oe,M:ae,p:function(e){return f[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Ue,s:xe,S:fe,u:le,U:se,V:ye,w:de,W:he,x:null,X:null,y:me,Y:Te,Z:De,"%":Ce},Ve={a:function(e,t,n){var r=Ye.exec(t.slice(n));return r?(e.w=Fe[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=pe.exec(t.slice(n));return r?(e.w=Se[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=Ae.exec(t.slice(n));return r?(e.m=Ze[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=Le.exec(t.slice(n));return r?(e.m=He[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,t,n){return qe(e,i,t,n)},d:p,e:p,f:A,g:C,G:D,H:Y,I:Y,j:S,L:H,m:w,M:F,p:function(e,t,n){var r=ge.exec(t.slice(n));return r?(e.p=we[r[0].toLowerCase()],n+r[0].length):-1},q:x,Q:b,s:W,S:L,u:m,U:v,V:T,w:h,W:M,x:function(e,t,n){return qe(e,c,t,n)},X:function(e,t,n){return qe(e,a,t,n)},y:C,Y:D,Z:U,"%":Z};function je(e,t){return function(n){var r,u,i,c=[],a=-1,f=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++a<l;)37===e.charCodeAt(a)&&(c.push(e.slice(f,a)),null!=(u=o[r=e.charAt(++a)])?r=e.charAt(++a):u="e"===r?" ":"0",(i=t[r])&&(r=i(n,u)),c.push(r),f=a+1);return c.push(e.slice(f,a)),c.join("")}}function Pe(e,i){return function(c){var o,a,f=u(1900,void 0,1);if(qe(f,e,c+="",0)!=c.length)return null;if("Q"in f)return new Date(f.Q);if("s"in f)return new Date(1e3*f.s+("L"in f?f.L:0));if(!i||"Z"in f||(f.Z=0),"p"in f&&(f.H=f.H%12+12*f.p),void 0===f.m&&(f.m="q"in f?f.q:0),"V"in f){if(f.V<1||f.V>53)return null;"w"in f||(f.w=1),"Z"in f?(a=(o=r(u(f.y,0,1))).getUTCDay(),o=a>4||0===a?t.utcMonday.ceil(o):t.utcMonday(o),o=t.utcDay.offset(o,7*(f.V-1)),f.y=o.getUTCFullYear(),f.m=o.getUTCMonth(),f.d=o.getUTCDate()+(f.w+6)%7):(a=(o=n(u(f.y,0,1))).getDay(),o=a>4||0===a?t.timeMonday.ceil(o):t.timeMonday(o),o=t.timeDay.offset(o,7*(f.V-1)),f.y=o.getFullYear(),f.m=o.getMonth(),f.d=o.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),a="Z"in f?r(u(f.y,0,1)).getUTCDay():n(u(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+7*f.W-(a+5)%7:f.w+7*f.U-(a+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,r(f)):n(f)}}function qe(e,t,n,r){for(var u,i,c=0,a=t.length,f=n.length;c<a;){if(r>=f)return-1;if(37===(u=t.charCodeAt(c++))){if(u=t.charAt(c++),!(i=Ve[u in o?t.charAt(c++):u])||(r=i(e,n,r))<0)return-1}else if(u!=n.charCodeAt(r++))return-1}return r}return be.x=je(c,be),be.X=je(a,be),be.c=je(i,be),We.x=je(c,We),We.X=je(a,We),We.c=je(i,We),{format:function(e){var t=je(e+="",be);return t.toString=function(){return e},t},parse:function(e){var t=Pe(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=je(e+="",We);return t.toString=function(){return e},t},utcParse:function(e){var t=Pe(e+="",!0);return t.toString=function(){return e},t}}}var c,o={"-":"",_:" ",0:"0"},a=/^\s*\d+/,f=/^%/,l=/[\\^$*+?|[\]().{}]/g;function s(e,t,n){var r=e<0?"-":"",u=(r?-e:e)+"",i=u.length;return r+(i<n?new Array(n-i+1).join(t)+u:u)}function g(e){return e.replace(l,"\\$&")}function y(e){return new RegExp("^(?:"+e.map(g).join("|")+")","i")}function d(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function h(e,t,n){var r=a.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function m(e,t,n){var r=a.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function v(e,t,n){var r=a.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function T(e,t,n){var r=a.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function M(e,t,n){var r=a.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D(e,t,n){var r=a.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function C(e,t,n){var r=a.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function U(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function x(e,t,n){var r=a.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function w(e,t,n){var r=a.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function p(e,t,n){var r=a.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function S(e,t,n){var r=a.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Y(e,t,n){var r=a.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function F(e,t,n){var r=a.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function L(e,t,n){var r=a.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function H(e,t,n){var r=a.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function A(e,t,n){var r=a.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Z(e,t,n){var r=f.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function b(e,t,n){var r=a.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function W(e,t,n){var r=a.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function V(e,t){return s(e.getDate(),t,2)}function j(e,t){return s(e.getHours(),t,2)}function P(e,t){return s(e.getHours()%12||12,t,2)}function q(e,n){return s(1+t.timeDay.count(t.timeYear(e),e),n,3)}function I(e,t){return s(e.getMilliseconds(),t,3)}function J(e,t){return I(e,t)+"000"}function O(e,t){return s(e.getMonth()+1,t,2)}function Q(e,t){return s(e.getMinutes(),t,2)}function X(e,t){return s(e.getSeconds(),t,2)}function N(e){var t=e.getDay();return 0===t?7:t}function B(e,n){return s(t.timeSunday.count(t.timeYear(e)-1,e),n,2)}function G(e){var n=e.getDay();return n>=4||0===n?t.timeThursday(e):t.timeThursday.ceil(e)}function _(e,n){return e=G(e),s(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),n,2)}function $(e){return e.getDay()}function z(e,n){return s(t.timeMonday.count(t.timeYear(e)-1,e),n,2)}function E(e,t){return s(e.getFullYear()%100,t,2)}function R(e,t){return s((e=G(e)).getFullYear()%100,t,2)}function k(e,t){return s(e.getFullYear()%1e4,t,4)}function K(e,n){var r=e.getDay();return s((e=r>=4||0===r?t.timeThursday(e):t.timeThursday.ceil(e)).getFullYear()%1e4,n,4)}function ee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+s(t/60|0,"0",2)+s(t%60,"0",2)}function te(e,t){return s(e.getUTCDate(),t,2)}function ne(e,t){return s(e.getUTCHours(),t,2)}function re(e,t){return s(e.getUTCHours()%12||12,t,2)}function ue(e,n){return s(1+t.utcDay.count(t.utcYear(e),e),n,3)}function ie(e,t){return s(e.getUTCMilliseconds(),t,3)}function ce(e,t){return ie(e,t)+"000"}function oe(e,t){return s(e.getUTCMonth()+1,t,2)}function ae(e,t){return s(e.getUTCMinutes(),t,2)}function fe(e,t){return s(e.getUTCSeconds(),t,2)}function le(e){var t=e.getUTCDay();return 0===t?7:t}function se(e,n){return s(t.utcSunday.count(t.utcYear(e)-1,e),n,2)}function ge(e){var n=e.getUTCDay();return n>=4||0===n?t.utcThursday(e):t.utcThursday.ceil(e)}function ye(e,n){return e=ge(e),s(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),n,2)}function de(e){return e.getUTCDay()}function he(e,n){return s(t.utcMonday.count(t.utcYear(e)-1,e),n,2)}function me(e,t){return s(e.getUTCFullYear()%100,t,2)}function ve(e,t){return s((e=ge(e)).getUTCFullYear()%100,t,2)}function Te(e,t){return s(e.getUTCFullYear()%1e4,t,4)}function Me(e,n){var r=e.getUTCDay();return s((e=r>=4||0===r?t.utcThursday(e):t.utcThursday.ceil(e)).getUTCFullYear()%1e4,n,4)}function De(){return"+0000"}function Ce(){return"%"}function Ue(e){return+e}function xe(e){return Math.floor(+e/1e3)}function we(t){return c=i(t),e.timeFormat=c.format,e.timeParse=c.parse,e.utcFormat=c.utcFormat,e.utcParse=c.utcParse,c}we({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var pe=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ");var Se=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse("%Y-%m-%dT%H:%M:%S.%LZ");e.isoFormat=pe,e.isoParse=Se,e.timeFormatDefaultLocale=we,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})});
|
node_modules/d3-time-format/locale/ar-EG.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%x, %X",
|
| 3 |
+
"date": "%-d/%-m/%Y",
|
| 4 |
+
"time": "%-I:%M:%S %p",
|
| 5 |
+
"periods": ["ص", "م"],
|
| 6 |
+
"days": ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"],
|
| 7 |
+
"shortDays": ["أحد", "إثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"],
|
| 8 |
+
"months": ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"],
|
| 9 |
+
"shortMonths": ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/ca-ES.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A, %e de %B de %Y, %X",
|
| 3 |
+
"date": "%d/%m/%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"],
|
| 7 |
+
"shortDays": ["dg.", "dl.", "dt.", "dc.", "dj.", "dv.", "ds."],
|
| 8 |
+
"months": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre"],
|
| 9 |
+
"shortMonths": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des."]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/cs-CZ.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A,%e.%B %Y, %X",
|
| 3 |
+
"date": "%-d.%-m.%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["neděle", "pondělí", "úterý", "středa", "čvrtek", "pátek", "sobota"],
|
| 7 |
+
"shortDays": ["ne.", "po.", "út.", "st.", "čt.", "pá.", "so."],
|
| 8 |
+
"months": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec"],
|
| 9 |
+
"shortMonths": ["led", "úno", "břez", "dub", "kvě", "čer", "červ", "srp", "zář", "říj", "list", "pros"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/da-DK.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A den %d %B %Y %X",
|
| 3 |
+
"date": "%d-%m-%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"],
|
| 7 |
+
"shortDays": ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
|
| 8 |
+
"months": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december"],
|
| 9 |
+
"shortMonths": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/de-CH.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A, der %e. %B %Y, %X",
|
| 3 |
+
"date": "%d.%m.%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
|
| 7 |
+
"shortDays": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
| 8 |
+
"months": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
|
| 9 |
+
"shortMonths": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/de-DE.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A, der %e. %B %Y, %X",
|
| 3 |
+
"date": "%d.%m.%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
|
| 7 |
+
"shortDays": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
| 8 |
+
"months": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
|
| 9 |
+
"shortMonths": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/en-CA.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%a %b %e %X %Y",
|
| 3 |
+
"date": "%Y-%m-%d",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
| 7 |
+
"shortDays": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
| 8 |
+
"months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
| 9 |
+
"shortMonths": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/en-GB.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%a %e %b %X %Y",
|
| 3 |
+
"date": "%d/%m/%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
| 7 |
+
"shortDays": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
| 8 |
+
"months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
| 9 |
+
"shortMonths": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/en-US.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%x, %X",
|
| 3 |
+
"date": "%-m/%-d/%Y",
|
| 4 |
+
"time": "%-I:%M:%S %p",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
| 7 |
+
"shortDays": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
| 8 |
+
"months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
| 9 |
+
"shortMonths": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/es-ES.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A, %e de %B de %Y, %X",
|
| 3 |
+
"date": "%d/%m/%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"],
|
| 7 |
+
"shortDays": ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
|
| 8 |
+
"months": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"],
|
| 9 |
+
"shortMonths": ["ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/es-MX.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%x, %X",
|
| 3 |
+
"date": "%d/%m/%Y",
|
| 4 |
+
"time": "%-I:%M:%S %p",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"],
|
| 7 |
+
"shortDays": ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"],
|
| 8 |
+
"months": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"],
|
| 9 |
+
"shortMonths": ["ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/fa-IR.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%x, %X",
|
| 3 |
+
"date": "%-d/%-m/%Y",
|
| 4 |
+
"time": "%-I:%M:%S %p",
|
| 5 |
+
"periods": ["صبح", "عصر"],
|
| 6 |
+
"days": ["یکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"],
|
| 7 |
+
"shortDays": ["یکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"],
|
| 8 |
+
"months": ["ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"],
|
| 9 |
+
"shortMonths": ["ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/fi-FI.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A, %-d. %Bta %Y klo %X",
|
| 3 |
+
"date": "%-d.%-m.%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["a.m.", "p.m."],
|
| 6 |
+
"days": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"],
|
| 7 |
+
"shortDays": ["Su", "Ma", "Ti", "Ke", "To", "Pe", "La"],
|
| 8 |
+
"months": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu"],
|
| 9 |
+
"shortMonths": ["Tammi", "Helmi", "Maalis", "Huhti", "Touko", "Kesä", "Heinä", "Elo", "Syys", "Loka", "Marras", "Joulu"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/fr-CA.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%a %e %b %Y %X",
|
| 3 |
+
"date": "%Y-%m-%d",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["", ""],
|
| 6 |
+
"days": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"],
|
| 7 |
+
"shortDays": ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"],
|
| 8 |
+
"months": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"],
|
| 9 |
+
"shortMonths": ["jan", "fév", "mar", "avr", "mai", "jui", "jul", "aoû", "sep", "oct", "nov", "déc"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/fr-FR.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A %e %B %Y à %X",
|
| 3 |
+
"date": "%d/%m/%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"],
|
| 7 |
+
"shortDays": ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."],
|
| 8 |
+
"months": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"],
|
| 9 |
+
"shortMonths": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc."]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/he-IL.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A, %e ב%B %Y %X",
|
| 3 |
+
"date": "%d.%m.%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת"],
|
| 7 |
+
"shortDays": ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"],
|
| 8 |
+
"months": ["ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני", "יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר"],
|
| 9 |
+
"shortMonths": ["ינו׳", "פבר׳", "מרץ", "אפר׳", "מאי", "יוני", "יולי", "אוג׳", "ספט׳", "אוק׳", "נוב׳", "דצמ׳"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/hu-HU.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%Y. %B %-e., %A %X",
|
| 3 |
+
"date": "%Y. %m. %d.",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["de.", "du."],
|
| 6 |
+
"days": ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat"],
|
| 7 |
+
"shortDays": ["V", "H", "K", "Sze", "Cs", "P", "Szo"],
|
| 8 |
+
"months": ["január", "február", "március", "április", "május", "június", "július", "augusztus", "szeptember", "október", "november", "december"],
|
| 9 |
+
"shortMonths": ["jan.", "feb.", "már.", "ápr.", "máj.", "jún.", "júl.", "aug.", "szept.", "okt.", "nov.", "dec."]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/it-IT.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A %e %B %Y, %X",
|
| 3 |
+
"date": "%d/%m/%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
|
| 7 |
+
"shortDays": ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
|
| 8 |
+
"months": ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"],
|
| 9 |
+
"shortMonths": ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/ja-JP.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%x %a %X",
|
| 3 |
+
"date": "%Y/%m/%d",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"],
|
| 7 |
+
"shortDays": ["日", "月", "火", "水", "木", "金", "土"],
|
| 8 |
+
"months": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
|
| 9 |
+
"shortMonths": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/ko-KR.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%Y/%m/%d %a %X",
|
| 3 |
+
"date": "%Y/%m/%d",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["오전", "오후"],
|
| 6 |
+
"days": ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"],
|
| 7 |
+
"shortDays": ["일", "월", "화", "수", "목", "금", "토"],
|
| 8 |
+
"months": ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],
|
| 9 |
+
"shortMonths": ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/mk-MK.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A, %e %B %Y г. %X",
|
| 3 |
+
"date": "%d.%m.%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["недела", "понеделник", "вторник", "среда", "четврток", "петок", "сабота"],
|
| 7 |
+
"shortDays": ["нед", "пон", "вто", "сре", "чет", "пет", "саб"],
|
| 8 |
+
"months": ["јануари", "февруари", "март", "април", "мај", "јуни", "јули", "август", "септември", "октомври", "ноември", "декември"],
|
| 9 |
+
"shortMonths": ["јан", "фев", "мар", "апр", "мај", "јун", "јул", "авг", "сеп", "окт", "ное", "дек"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/nb-NO.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A den %d. %B %Y %X",
|
| 3 |
+
"date": "%d.%m.%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"],
|
| 7 |
+
"shortDays": ["søn", "man", "tir", "ons", "tor", "fre", "lør"],
|
| 8 |
+
"months": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember"],
|
| 9 |
+
"shortMonths": ["jan", "feb", "mars", "apr", "mai", "juni", "juli", "aug", "sep", "okt", "nov", "des"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/nl-NL.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%a %e %B %Y %X",
|
| 3 |
+
"date": "%d-%m-%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"],
|
| 7 |
+
"shortDays": ["zo", "ma", "di", "wo", "do", "vr", "za"],
|
| 8 |
+
"months": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"],
|
| 9 |
+
"shortMonths": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/pl-PL.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A, %e %B %Y, %X",
|
| 3 |
+
"date": "%d/%m/%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota"],
|
| 7 |
+
"shortDays": ["Niedz.", "Pon.", "Wt.", "Śr.", "Czw.", "Pt.", "Sob."],
|
| 8 |
+
"months": ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"],
|
| 9 |
+
"shortMonths": ["Stycz.", "Luty", "Marz.", "Kwie.", "Maj", "Czerw.", "Lipc.", "Sierp.", "Wrz.", "Paźdz.", "Listop.", "Grudz."]
|
| 10 |
+
}
|
node_modules/d3-time-format/locale/pt-BR.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dateTime": "%A, %e de %B de %Y. %X",
|
| 3 |
+
"date": "%d/%m/%Y",
|
| 4 |
+
"time": "%H:%M:%S",
|
| 5 |
+
"periods": ["AM", "PM"],
|
| 6 |
+
"days": ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"],
|
| 7 |
+
"shortDays": ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
|
| 8 |
+
"months": ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
|
| 9 |
+
"shortMonths": ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"]
|
| 10 |
+
}
|