Created
June 23, 2016 15:57
-
-
Save jaimeortiz-david/1b29c11a349f3e4e49d33496d962588c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3 = function() { | |
var d3 = { | |
version: "3.2.7" | |
}; | |
if (!Date.now) Date.now = function() { | |
return +new Date(); | |
}; | |
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window; | |
try { | |
d3_document.createElement("div").style.setProperty("opacity", 0, ""); | |
} catch (error) { | |
var d3_element_prototype = d3_window.Element.prototype, d3_element_setAttribute = d3_element_prototype.setAttribute, d3_element_setAttributeNS = d3_element_prototype.setAttributeNS, d3_style_prototype = d3_window.CSSStyleDeclaration.prototype, d3_style_setProperty = d3_style_prototype.setProperty; | |
d3_element_prototype.setAttribute = function(name, value) { | |
d3_element_setAttribute.call(this, name, value + ""); | |
}; | |
d3_element_prototype.setAttributeNS = function(space, local, value) { | |
d3_element_setAttributeNS.call(this, space, local, value + ""); | |
}; | |
d3_style_prototype.setProperty = function(name, value, priority) { | |
d3_style_setProperty.call(this, name, value + "", priority); | |
}; | |
} | |
d3.ascending = function(a, b) { | |
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; | |
}; | |
d3.descending = function(a, b) { | |
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; | |
}; | |
d3.min = function(array, f) { | |
var i = -1, n = array.length, a, b; | |
if (arguments.length === 1) { | |
while (++i < n && !((a = array[i]) != null && a <= a)) a = undefined; | |
while (++i < n) if ((b = array[i]) != null && a > b) a = b; | |
} else { | |
while (++i < n && !((a = f.call(array, array[i], i)) != null && a <= a)) a = undefined; | |
while (++i < n) if ((b = f.call(array, array[i], i)) != null && a > b) a = b; | |
} | |
return a; | |
}; | |
d3.max = function(array, f) { | |
var i = -1, n = array.length, a, b; | |
if (arguments.length === 1) { | |
while (++i < n && !((a = array[i]) != null && a <= a)) a = undefined; | |
while (++i < n) if ((b = array[i]) != null && b > a) a = b; | |
} else { | |
while (++i < n && !((a = f.call(array, array[i], i)) != null && a <= a)) a = undefined; | |
while (++i < n) if ((b = f.call(array, array[i], i)) != null && b > a) a = b; | |
} | |
return a; | |
}; | |
d3.extent = function(array, f) { | |
var i = -1, n = array.length, a, b, c; | |
if (arguments.length === 1) { | |
while (++i < n && !((a = c = array[i]) != null && a <= a)) a = c = undefined; | |
while (++i < n) if ((b = array[i]) != null) { | |
if (a > b) a = b; | |
if (c < b) c = b; | |
} | |
} else { | |
while (++i < n && !((a = c = f.call(array, array[i], i)) != null && a <= a)) a = undefined; | |
while (++i < n) if ((b = f.call(array, array[i], i)) != null) { | |
if (a > b) a = b; | |
if (c < b) c = b; | |
} | |
} | |
return [ a, c ]; | |
}; | |
d3.sum = function(array, f) { | |
var s = 0, n = array.length, a, i = -1; | |
if (arguments.length === 1) { | |
while (++i < n) if (!isNaN(a = +array[i])) s += a; | |
} else { | |
while (++i < n) if (!isNaN(a = +f.call(array, array[i], i))) s += a; | |
} | |
return s; | |
}; | |
function d3_number(x) { | |
return x != null && !isNaN(x); | |
} | |
d3.mean = function(array, f) { | |
var n = array.length, a, m = 0, i = -1, j = 0; | |
if (arguments.length === 1) { | |
while (++i < n) if (d3_number(a = array[i])) m += (a - m) / ++j; | |
} else { | |
while (++i < n) if (d3_number(a = f.call(array, array[i], i))) m += (a - m) / ++j; | |
} | |
return j ? m : undefined; | |
}; | |
d3.quantile = function(values, p) { | |
var H = (values.length - 1) * p + 1, h = Math.floor(H), v = +values[h - 1], e = H - h; | |
return e ? v + e * (values[h] - v) : v; | |
}; | |
d3.median = function(array, f) { | |
if (arguments.length > 1) array = array.map(f); | |
array = array.filter(d3_number); | |
return array.length ? d3.quantile(array.sort(d3.ascending), .5) : undefined; | |
}; | |
d3.bisector = function(f) { | |
return { | |
left: function(a, x, lo, hi) { | |
if (arguments.length < 3) lo = 0; | |
if (arguments.length < 4) hi = a.length; | |
while (lo < hi) { | |
var mid = lo + hi >>> 1; | |
if (f.call(a, a[mid], mid) < x) lo = mid + 1; else hi = mid; | |
} | |
return lo; | |
}, | |
right: function(a, x, lo, hi) { | |
if (arguments.length < 3) lo = 0; | |
if (arguments.length < 4) hi = a.length; | |
while (lo < hi) { | |
var mid = lo + hi >>> 1; | |
if (x < f.call(a, a[mid], mid)) hi = mid; else lo = mid + 1; | |
} | |
return lo; | |
} | |
}; | |
}; | |
var d3_bisector = d3.bisector(function(d) { | |
return d; | |
}); | |
d3.bisectLeft = d3_bisector.left; | |
d3.bisect = d3.bisectRight = d3_bisector.right; | |
d3.shuffle = function(array) { | |
var m = array.length, t, i; | |
while (m) { | |
i = Math.random() * m-- | 0; | |
t = array[m], array[m] = array[i], array[i] = t; | |
} | |
return array; | |
}; | |
d3.permute = function(array, indexes) { | |
var permutes = [], i = -1, n = indexes.length; | |
while (++i < n) permutes[i] = array[indexes[i]]; | |
return permutes; | |
}; | |
d3.zip = function() { | |
if (!(n = arguments.length)) return []; | |
for (var i = -1, m = d3.min(arguments, d3_zipLength), zips = new Array(m); ++i < m; ) { | |
for (var j = -1, n, zip = zips[i] = new Array(n); ++j < n; ) { | |
zip[j] = arguments[j][i]; | |
} | |
} | |
return zips; | |
}; | |
function d3_zipLength(d) { | |
return d.length; | |
} | |
d3.transpose = function(matrix) { | |
return d3.zip.apply(d3, matrix); | |
}; | |
d3.keys = function(map) { | |
var keys = []; | |
for (var key in map) keys.push(key); | |
return keys; | |
}; | |
d3.values = function(map) { | |
var values = []; | |
for (var key in map) values.push(map[key]); | |
return values; | |
}; | |
d3.entries = function(map) { | |
var entries = []; | |
for (var key in map) entries.push({ | |
key: key, | |
value: map[key] | |
}); | |
return entries; | |
}; | |
d3.merge = function(arrays) { | |
return Array.prototype.concat.apply([], arrays); | |
}; | |
d3.range = function(start, stop, step) { | |
if (arguments.length < 3) { | |
step = 1; | |
if (arguments.length < 2) { | |
stop = start; | |
start = 0; | |
} | |
} | |
if ((stop - start) / step === Infinity) throw new Error("infinite range"); | |
var range = [], k = d3_range_integerScale(Math.abs(step)), i = -1, j; | |
start *= k, stop *= k, step *= k; | |
if (step < 0) while ((j = start + step * ++i) > stop) range.push(j / k); else while ((j = start + step * ++i) < stop) range.push(j / k); | |
return range; | |
}; | |
function d3_range_integerScale(x) { | |
var k = 1; | |
while (x * k % 1) k *= 10; | |
return k; | |
} | |
function d3_class(ctor, properties) { | |
try { | |
for (var key in properties) { | |
Object.defineProperty(ctor.prototype, key, { | |
value: properties[key], | |
enumerable: false | |
}); | |
} | |
} catch (e) { | |
ctor.prototype = properties; | |
} | |
} | |
d3.map = function(object) { | |
var map = new d3_Map(); | |
for (var key in object) map.set(key, object[key]); | |
return map; | |
}; | |
function d3_Map() {} | |
d3_class(d3_Map, { | |
has: function(key) { | |
return d3_map_prefix + key in this; | |
}, | |
get: function(key) { | |
return this[d3_map_prefix + key]; | |
}, | |
set: function(key, value) { | |
return this[d3_map_prefix + key] = value; | |
}, | |
remove: function(key) { | |
key = d3_map_prefix + key; | |
return key in this && delete this[key]; | |
}, | |
keys: function() { | |
var keys = []; | |
this.forEach(function(key) { | |
keys.push(key); | |
}); | |
return keys; | |
}, | |
values: function() { | |
var values = []; | |
this.forEach(function(key, value) { | |
values.push(value); | |
}); | |
return values; | |
}, | |
entries: function() { | |
var entries = []; | |
this.forEach(function(key, value) { | |
entries.push({ | |
key: key, | |
value: value | |
}); | |
}); | |
return entries; | |
}, | |
forEach: function(f) { | |
for (var key in this) { | |
if (key.charCodeAt(0) === d3_map_prefixCode) { | |
f.call(this, key.substring(1), this[key]); | |
} | |
} | |
} | |
}); | |
var d3_map_prefix = "\0", d3_map_prefixCode = d3_map_prefix.charCodeAt(0); | |
d3.nest = function() { | |
var nest = {}, keys = [], sortKeys = [], sortValues, rollup; | |
function map(mapType, array, depth) { | |
if (depth >= keys.length) return rollup ? rollup.call(nest, array) : sortValues ? array.sort(sortValues) : array; | |
var i = -1, n = array.length, key = keys[depth++], keyValue, object, setter, valuesByKey = new d3_Map(), values; | |
while (++i < n) { | |
if (values = valuesByKey.get(keyValue = key(object = array[i]))) { | |
values.push(object); | |
} else { | |
valuesByKey.set(keyValue, [ object ]); | |
} | |
} | |
if (mapType) { | |
object = mapType(); | |
setter = function(keyValue, values) { | |
object.set(keyValue, map(mapType, values, depth)); | |
}; | |
} else { | |
object = {}; | |
setter = function(keyValue, values) { | |
object[keyValue] = map(mapType, values, depth); | |
}; | |
} | |
valuesByKey.forEach(setter); | |
return object; | |
} | |
function entries(map, depth) { | |
if (depth >= keys.length) return map; | |
var array = [], sortKey = sortKeys[depth++]; | |
map.forEach(function(key, keyMap) { | |
array.push({ | |
key: key, | |
values: entries(keyMap, depth) | |
}); | |
}); | |
return sortKey ? array.sort(function(a, b) { | |
return sortKey(a.key, b.key); | |
}) : array; | |
} | |
nest.map = function(array, mapType) { | |
return map(mapType, array, 0); | |
}; | |
nest.entries = function(array) { | |
return entries(map(d3.map, array, 0), 0); | |
}; | |
nest.key = function(d) { | |
keys.push(d); | |
return nest; | |
}; | |
nest.sortKeys = function(order) { | |
sortKeys[keys.length - 1] = order; | |
return nest; | |
}; | |
nest.sortValues = function(order) { | |
sortValues = order; | |
return nest; | |
}; | |
nest.rollup = function(f) { | |
rollup = f; | |
return nest; | |
}; | |
return nest; | |
}; | |
d3.set = function(array) { | |
var set = new d3_Set(); | |
if (array) for (var i = 0; i < array.length; i++) set.add(array[i]); | |
return set; | |
}; | |
function d3_Set() {} | |
d3_class(d3_Set, { | |
has: function(value) { | |
return d3_map_prefix + value in this; | |
}, | |
add: function(value) { | |
this[d3_map_prefix + value] = true; | |
return value; | |
}, | |
remove: function(value) { | |
value = d3_map_prefix + value; | |
return value in this && delete this[value]; | |
}, | |
values: function() { | |
var values = []; | |
this.forEach(function(value) { | |
values.push(value); | |
}); | |
return values; | |
}, | |
forEach: function(f) { | |
for (var value in this) { | |
if (value.charCodeAt(0) === d3_map_prefixCode) { | |
f.call(this, value.substring(1)); | |
} | |
} | |
} | |
}); | |
d3.behavior = {}; | |
d3.rebind = function(target, source) { | |
var i = 1, n = arguments.length, method; | |
while (++i < n) target[method = arguments[i]] = d3_rebind(target, source, source[method]); | |
return target; | |
}; | |
function d3_rebind(target, source, method) { | |
return function() { | |
var value = method.apply(source, arguments); | |
return value === source ? target : value; | |
}; | |
} | |
function d3_vendorSymbol(object, name) { | |
if (name in object) return name; | |
name = name.charAt(0).toUpperCase() + name.substring(1); | |
for (var i = 0, n = d3_vendorPrefixes.length; i < n; ++i) { | |
var prefixName = d3_vendorPrefixes[i] + name; | |
if (prefixName in object) return prefixName; | |
} | |
} | |
var d3_vendorPrefixes = [ "webkit", "ms", "moz", "Moz", "o", "O" ]; | |
var d3_array = d3_arraySlice; | |
function d3_arrayCopy(pseudoarray) { | |
var i = -1, n = pseudoarray.length, array = []; | |
while (++i < n) array.push(pseudoarray[i]); | |
return array; | |
} | |
function d3_arraySlice(pseudoarray) { | |
return Array.prototype.slice.call(pseudoarray); | |
} | |
try { | |
d3_array(d3_documentElement.childNodes)[0].nodeType; | |
} catch (e) { | |
d3_array = d3_arrayCopy; | |
} | |
function d3_noop() {} | |
d3.dispatch = function() { | |
var dispatch = new d3_dispatch(), i = -1, n = arguments.length; | |
while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch); | |
return dispatch; | |
}; | |
function d3_dispatch() {} | |
d3_dispatch.prototype.on = function(type, listener) { | |
var i = type.indexOf("."), name = ""; | |
if (i >= 0) { | |
name = type.substring(i + 1); | |
type = type.substring(0, i); | |
} | |
if (type) return arguments.length < 2 ? this[type].on(name) : this[type].on(name, listener); | |
if (arguments.length === 2) { | |
if (listener == null) for (type in this) { | |
if (this.hasOwnProperty(type)) this[type].on(name, null); | |
} | |
return this; | |
} | |
}; | |
function d3_dispatch_event(dispatch) { | |
var listeners = [], listenerByName = new d3_Map(); | |
function event() { | |
var z = listeners, i = -1, n = z.length, l; | |
while (++i < n) if (l = z[i].on) l.apply(this, arguments); | |
return dispatch; | |
} | |
event.on = function(name, listener) { | |
var l = listenerByName.get(name), i; | |
if (arguments.length < 2) return l && l.on; | |
if (l) { | |
l.on = null; | |
listeners = listeners.slice(0, i = listeners.indexOf(l)).concat(listeners.slice(i + 1)); | |
listenerByName.remove(name); | |
} | |
if (listener) listeners.push(listenerByName.set(name, { | |
on: listener | |
})); | |
return dispatch; | |
}; | |
return event; | |
} | |
d3.event = null; | |
function d3_eventPreventDefault() { | |
d3.event.preventDefault(); | |
} | |
function d3_eventSource() { | |
var e = d3.event, s; | |
while (s = e.sourceEvent) e = s; | |
return e; | |
} | |
function d3_eventDispatch(target) { | |
var dispatch = new d3_dispatch(), i = 0, n = arguments.length; | |
while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch); | |
dispatch.of = function(thiz, argumentz) { | |
return function(e1) { | |
try { | |
var e0 = e1.sourceEvent = d3.event; | |
e1.target = target; | |
d3.event = e1; | |
dispatch[e1.type].apply(thiz, argumentz); | |
} finally { | |
d3.event = e0; | |
} | |
}; | |
}; | |
return dispatch; | |
} | |
d3.requote = function(s) { | |
return s.replace(d3_requote_re, "\\$&"); | |
}; | |
var d3_requote_re = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g; | |
var d3_subclass = {}.__proto__ ? function(object, prototype) { | |
object.__proto__ = prototype; | |
} : function(object, prototype) { | |
for (var property in prototype) object[property] = prototype[property]; | |
}; | |
function d3_selection(groups) { | |
d3_subclass(groups, d3_selectionPrototype); | |
return groups; | |
} | |
var d3_select = function(s, n) { | |
return n.querySelector(s); | |
}, d3_selectAll = function(s, n) { | |
return n.querySelectorAll(s); | |
}, d3_selectMatcher = d3_documentElement[d3_vendorSymbol(d3_documentElement, "matchesSelector")], d3_selectMatches = function(n, s) { | |
return d3_selectMatcher.call(n, s); | |
}; | |
if (typeof Sizzle === "function") { | |
d3_select = function(s, n) { | |
return Sizzle(s, n)[0] || null; | |
}; | |
d3_selectAll = function(s, n) { | |
return Sizzle.uniqueSort(Sizzle(s, n)); | |
}; | |
d3_selectMatches = Sizzle.matchesSelector; | |
} | |
d3.selection = function() { | |
return d3_selectionRoot; | |
}; | |
var d3_selectionPrototype = d3.selection.prototype = []; | |
d3_selectionPrototype.select = function(selector) { | |
var subgroups = [], subgroup, subnode, group, node; | |
selector = d3_selection_selector(selector); | |
for (var j = -1, m = this.length; ++j < m; ) { | |
subgroups.push(subgroup = []); | |
subgroup.parentNode = (group = this[j]).parentNode; | |
for (var i = -1, n = group.length; ++i < n; ) { | |
if (node = group[i]) { | |
subgroup.push(subnode = selector.call(node, node.__data__, i, j)); | |
if (subnode && "__data__" in node) subnode.__data__ = node.__data__; | |
} else { | |
subgroup.push(null); | |
} | |
} | |
} | |
return d3_selection(subgroups); | |
}; | |
function d3_selection_selector(selector) { | |
return typeof selector === "function" ? selector : function() { | |
return d3_select(selector, this); | |
}; | |
} | |
d3_selectionPrototype.selectAll = function(selector) { | |
var subgroups = [], subgroup, node; | |
selector = d3_selection_selectorAll(selector); | |
for (var j = -1, m = this.length; ++j < m; ) { | |
for (var group = this[j], i = -1, n = group.length; ++i < n; ) { | |
if (node = group[i]) { | |
subgroups.push(subgroup = d3_array(selector.call(node, node.__data__, i, j))); | |
subgroup.parentNode = node; | |
} | |
} | |
} | |
return d3_selection(subgroups); | |
}; | |
function d3_selection_selectorAll(selector) { | |
return typeof selector === "function" ? selector : function() { | |
return d3_selectAll(selector, this); | |
}; | |
} | |
var d3_nsPrefix = { | |
svg: "http://www.w3.org/2000/svg", | |
xhtml: "http://www.w3.org/1999/xhtml", | |
xlink: "http://www.w3.org/1999/xlink", | |
xml: "http://www.w3.org/XML/1998/namespace", | |
xmlns: "http://www.w3.org/2000/xmlns/" | |
}; | |
d3.ns = { | |
prefix: d3_nsPrefix, | |
qualify: function(name) { | |
var i = name.indexOf(":"), prefix = name; | |
if (i >= 0) { | |
prefix = name.substring(0, i); | |
name = name.substring(i + 1); | |
} | |
return d3_nsPrefix.hasOwnProperty(prefix) ? { | |
space: d3_nsPrefix[prefix], | |
local: name | |
} : name; | |
} | |
}; | |
d3_selectionPrototype.attr = function(name, value) { | |
if (arguments.length < 2) { | |
if (typeof name === "string") { | |
var node = this.node(); | |
name = d3.ns.qualify(name); | |
return name.local ? node.getAttributeNS(name.space, name.local) : node.getAttribute(name); | |
} | |
for (value in name) this.each(d3_selection_attr(value, name[value])); | |
return this; | |
} | |
return this.each(d3_selection_attr(name, value)); | |
}; | |
function d3_selection_attr(name, value) { | |
name = d3.ns.qualify(name); | |
function attrNull() { | |
this.removeAttribute(name); | |
} | |
function attrNullNS() { | |
this.removeAttributeNS(name.space, name.local); | |
} | |
function attrConstant() { | |
this.setAttribute(name, value); | |
} | |
function attrConstantNS() { | |
this.setAttributeNS(name.space, name.local, value); | |
} | |
function attrFunction() { | |
var x = value.apply(this, arguments); | |
if (x == null) this.removeAttribute(name); else this.setAttribute(name, x); | |
} | |
function attrFunctionNS() { | |
var x = value.apply(this, arguments); | |
if (x == null) this.removeAttributeNS(name.space, name.local); else this.setAttributeNS(name.space, name.local, x); | |
} | |
return value == null ? name.local ? attrNullNS : attrNull : typeof value === "function" ? name.local ? attrFunctionNS : attrFunction : name.local ? attrConstantNS : attrConstant; | |
} | |
function d3_collapse(s) { | |
return s.trim().replace(/\s+/g, " "); | |
} | |
d3_selectionPrototype.classed = function(name, value) { | |
if (arguments.length < 2) { | |
if (typeof name === "string") { | |
var node = this.node(), n = (name = name.trim().split(/^|\s+/g)).length, i = -1; | |
if (value = node.classList) { | |
while (++i < n) if (!value.contains(name[i])) return false; | |
} else { | |
value = node.getAttribute("class"); | |
while (++i < n) if (!d3_selection_classedRe(name[i]).test(value)) return false; | |
} | |
return true; | |
} | |
for (value in name) this.each(d3_selection_classed(value, name[value])); | |
return this; | |
} | |
return this.each(d3_selection_classed(name, value)); | |
}; | |
function d3_selection_classedRe(name) { | |
return new RegExp("(?:^|\\s+)" + d3.requote(name) + "(?:\\s+|$)", "g"); | |
} | |
function d3_selection_classed(name, value) { | |
name = name.trim().split(/\s+/).map(d3_selection_classedName); | |
var n = name.length; | |
function classedConstant() { | |
var i = -1; | |
while (++i < n) name[i](this, value); | |
} | |
function classedFunction() { | |
var i = -1, x = value.apply(this, arguments); | |
while (++i < n) name[i](this, x); | |
} | |
return typeof value === "function" ? classedFunction : classedConstant; | |
} | |
function d3_selection_classedName(name) { | |
var re = d3_selection_classedRe(name); | |
return function(node, value) { | |
if (c = node.classList) return value ? c.add(name) : c.remove(name); | |
var c = node.getAttribute("class") || ""; | |
if (value) { | |
re.lastIndex = 0; | |
if (!re.test(c)) node.setAttribute("class", d3_collapse(c + " " + name)); | |
} else { | |
node.setAttribute("class", d3_collapse(c.replace(re, " "))); | |
} | |
}; | |
} | |
d3_selectionPrototype.style = function(name, value, priority) { | |
var n = arguments.length; | |
if (n < 3) { | |
if (typeof name !== "string") { | |
if (n < 2) value = ""; | |
for (priority in name) this.each(d3_selection_style(priority, name[priority], value)); | |
return this; | |
} | |
if (n < 2) return d3_window.getComputedStyle(this.node(), null).getPropertyValue(name); | |
priority = ""; | |
} | |
return this.each(d3_selection_style(name, value, priority)); | |
}; | |
function d3_selection_style(name, value, priority) { | |
function styleNull() { | |
this.style.removeProperty(name); | |
} | |
function styleConstant() { | |
this.style.setProperty(name, value, priority); | |
} | |
function styleFunction() { | |
var x = value.apply(this, arguments); | |
if (x == null) this.style.removeProperty(name); else this.style.setProperty(name, x, priority); | |
} | |
return value == null ? styleNull : typeof value === "function" ? styleFunction : styleConstant; | |
} | |
d3_selectionPrototype.property = function(name, value) { | |
if (arguments.length < 2) { | |
if (typeof name === "string") return this.node()[name]; | |
for (value in name) this.each(d3_selection_property(value, name[value])); | |
return this; | |
} | |
return this.each(d3_selection_property(name, value)); | |
}; | |
function d3_selection_property(name, value) { | |
function propertyNull() { | |
delete this[name]; | |
} | |
function propertyConstant() { | |
this[name] = value; | |
} | |
function propertyFunction() { | |
var x = value.apply(this, arguments); | |
if (x == null) delete this[name]; else this[name] = x; | |
} | |
return value == null ? propertyNull : typeof value === "function" ? propertyFunction : propertyConstant; | |
} | |
d3_selectionPrototype.text = function(value) { | |
return arguments.length ? this.each(typeof value === "function" ? function() { | |
var v = value.apply(this, arguments); | |
this.textContent = v == null ? "" : v; | |
} : value == null ? function() { | |
this.textContent = ""; | |
} : function() { | |
this.textContent = value; | |
}) : this.node().textContent; | |
}; | |
d3_selectionPrototype.html = function(value) { | |
return arguments.length ? this.each(typeof value === "function" ? function() { | |
var v = value.apply(this, arguments); | |
this.innerHTML = v == null ? "" : v; | |
} : value == null ? function() { | |
this.innerHTML = ""; | |
} : function() { | |
this.innerHTML = value; | |
}) : this.node().innerHTML; | |
}; | |
d3_selectionPrototype.append = function(name) { | |
name = d3_selection_creator(name); | |
return this.select(function() { | |
return this.appendChild(name.apply(this, arguments)); | |
}); | |
}; | |
function d3_selection_creator(name) { | |
return typeof name === "function" ? name : (name = d3.ns.qualify(name)).local ? function() { | |
return d3_document.createElementNS(name.space, name.local); | |
} : function() { | |
return d3_document.createElementNS(this.namespaceURI, name); | |
}; | |
} | |
d3_selectionPrototype.insert = function(name, before) { | |
name = d3_selection_creator(name); | |
before = d3_selection_selector(before); | |
return this.select(function() { | |
return this.insertBefore(name.apply(this, arguments), before.apply(this, arguments)); | |
}); | |
}; | |
d3_selectionPrototype.remove = function() { | |
return this.each(function() { | |
var parent = this.parentNode; | |
if (parent) parent.removeChild(this); | |
}); | |
}; | |
d3_selectionPrototype.data = function(value, key) { | |
var i = -1, n = this.length, group, node; | |
if (!arguments.length) { | |
value = new Array(n = (group = this[0]).length); | |
while (++i < n) { | |
if (node = group[i]) { | |
value[i] = node.__data__; | |
} | |
} | |
return value; | |
} | |
function bind(group, groupData) { | |
var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), updateNodes = new Array(m), enterNodes = new Array(m), exitNodes = new Array(n), node, nodeData; | |
if (key) { | |
var nodeByKeyValue = new d3_Map(), dataByKeyValue = new d3_Map(), keyValues = [], keyValue; | |
for (i = -1; ++i < n; ) { | |
keyValue = key.call(node = group[i], node.__data__, i); | |
if (nodeByKeyValue.has(keyValue)) { | |
exitNodes[i] = node; | |
} else { | |
nodeByKeyValue.set(keyValue, node); | |
} | |
keyValues.push(keyValue); | |
} | |
for (i = -1; ++i < m; ) { | |
keyValue = key.call(groupData, nodeData = groupData[i], i); | |
if (node = nodeByKeyValue.get(keyValue)) { | |
updateNodes[i] = node; | |
node.__data__ = nodeData; | |
} else if (!dataByKeyValue.has(keyValue)) { | |
enterNodes[i] = d3_selection_dataNode(nodeData); | |
} | |
dataByKeyValue.set(keyValue, nodeData); | |
nodeByKeyValue.remove(keyValue); | |
} | |
for (i = -1; ++i < n; ) { | |
if (nodeByKeyValue.has(keyValues[i])) { | |
exitNodes[i] = group[i]; | |
} | |
} | |
} else { | |
for (i = -1; ++i < n0; ) { | |
node = group[i]; | |
nodeData = groupData[i]; | |
if (node) { | |
node.__data__ = nodeData; | |
updateNodes[i] = node; | |
} else { | |
enterNodes[i] = d3_selection_dataNode(nodeData); | |
} | |
} | |
for (;i < m; ++i) { | |
enterNodes[i] = d3_selection_dataNode(groupData[i]); | |
} | |
for (;i < n; ++i) { | |
exitNodes[i] = group[i]; | |
} | |
} | |
enterNodes.update = updateNodes; | |
enterNodes.parentNode = updateNodes.parentNode = exitNodes.parentNode = group.parentNode; | |
enter.push(enterNodes); | |
update.push(updateNodes); | |
exit.push(exitNodes); | |
} | |
var enter = d3_selection_enter([]), update = d3_selection([]), exit = d3_selection([]); | |
if (typeof value === "function") { | |
while (++i < n) { | |
bind(group = this[i], value.call(group, group.parentNode.__data__, i)); | |
} | |
} else { | |
while (++i < n) { | |
bind(group = this[i], value); | |
} | |
} | |
update.enter = function() { | |
return enter; | |
}; | |
update.exit = function() { | |
return exit; | |
}; | |
return update; | |
}; | |
function d3_selection_dataNode(data) { | |
return { | |
__data__: data | |
}; | |
} | |
d3_selectionPrototype.datum = function(value) { | |
return arguments.length ? this.property("__data__", value) : this.property("__data__"); | |
}; | |
d3_selectionPrototype.filter = function(filter) { | |
var subgroups = [], subgroup, group, node; | |
if (typeof filter !== "function") filter = d3_selection_filter(filter); | |
for (var j = 0, m = this.length; j < m; j++) { | |
subgroups.push(subgroup = []); | |
subgroup.parentNode = (group = this[j]).parentNode; | |
for (var i = 0, n = group.length; i < n; i++) { | |
if ((node = group[i]) && filter.call(node, node.__data__, i)) { | |
subgroup.push(node); | |
} | |
} | |
} | |
return d3_selection(subgroups); | |
}; | |
function d3_selection_filter(selector) { | |
return function() { | |
return d3_selectMatches(this, selector); | |
}; | |
} | |
d3_selectionPrototype.order = function() { | |
for (var j = -1, m = this.length; ++j < m; ) { | |
for (var group = this[j], i = group.length - 1, next = group[i], node; --i >= 0; ) { | |
if (node = group[i]) { | |
if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next); | |
next = node; | |
} | |
} | |
} | |
return this; | |
}; | |
d3_selectionPrototype.sort = function(comparator) { | |
comparator = d3_selection_sortComparator.apply(this, arguments); | |
for (var j = -1, m = this.length; ++j < m; ) this[j].sort(comparator); | |
return this.order(); | |
}; | |
function d3_selection_sortComparator(comparator) { | |
if (!arguments.length) comparator = d3.ascending; | |
return function(a, b) { | |
return !a - !b || comparator(a.__data__, b.__data__); | |
}; | |
} | |
d3_selectionPrototype.each = function(callback) { | |
return d3_selection_each(this, function(node, i, j) { | |
callback.call(node, node.__data__, i, j); | |
}); | |
}; | |
function d3_selection_each(groups, callback) { | |
for (var j = 0, m = groups.length; j < m; j++) { | |
for (var group = groups[j], i = 0, n = group.length, node; i < n; i++) { | |
if (node = group[i]) callback(node, i, j); | |
} | |
} | |
return groups; | |
} | |
d3_selectionPrototype.call = function(callback) { | |
var args = d3_array(arguments); | |
callback.apply(args[0] = this, args); | |
return this; | |
}; | |
d3_selectionPrototype.empty = function() { | |
return !this.node(); | |
}; | |
d3_selectionPrototype.node = function() { | |
for (var j = 0, m = this.length; j < m; j++) { | |
for (var group = this[j], i = 0, n = group.length; i < n; i++) { | |
var node = group[i]; | |
if (node) return node; | |
} | |
} | |
return null; | |
}; | |
d3_selectionPrototype.size = function() { | |
var n = 0; | |
this.each(function() { | |
++n; | |
}); | |
return n; | |
}; | |
function d3_selection_enter(selection) { | |
d3_subclass(selection, d3_selection_enterPrototype); | |
return selection; | |
} | |
var d3_selection_enterPrototype = []; | |
d3.selection.enter = d3_selection_enter; | |
d3.selection.enter.prototype = d3_selection_enterPrototype; | |
d3_selection_enterPrototype.append = d3_selectionPrototype.append; | |
d3_selection_enterPrototype.empty = d3_selectionPrototype.empty; | |
d3_selection_enterPrototype.node = d3_selectionPrototype.node; | |
d3_selection_enterPrototype.call = d3_selectionPrototype.call; | |
d3_selection_enterPrototype.size = d3_selectionPrototype.size; | |
d3_selection_enterPrototype.select = function(selector) { | |
var subgroups = [], subgroup, subnode, upgroup, group, node; | |
for (var j = -1, m = this.length; ++j < m; ) { | |
upgroup = (group = this[j]).update; | |
subgroups.push(subgroup = []); | |
subgroup.parentNode = group.parentNode; | |
for (var i = -1, n = group.length; ++i < n; ) { | |
if (node = group[i]) { | |
subgroup.push(upgroup[i] = subnode = selector.call(group.parentNode, node.__data__, i, j)); | |
subnode.__data__ = node.__data__; | |
} else { | |
subgroup.push(null); | |
} | |
} | |
} | |
return d3_selection(subgroups); | |
}; | |
d3_selection_enterPrototype.insert = function(name, before) { | |
if (arguments.length < 2) before = d3_selection_enterInsertBefore(this); | |
return d3_selectionPrototype.insert.call(this, name, before); | |
}; | |
function d3_selection_enterInsertBefore(enter) { | |
var i0, j0; | |
return function(d, i, j) { | |
var group = enter[j].update, n = group.length, node; | |
if (j != j0) j0 = j, i0 = 0; | |
if (i >= i0) i0 = i + 1; | |
while (!(node = group[i0]) && ++i0 < n) ; | |
return node; | |
}; | |
} | |
d3_selectionPrototype.transition = function() { | |
var id = d3_transitionInheritId || ++d3_transitionId, subgroups = [], subgroup, node, transition = d3_transitionInherit || { | |
time: Date.now(), | |
ease: d3_ease_cubicInOut, | |
delay: 0, | |
duration: 250 | |
}; | |
for (var j = -1, m = this.length; ++j < m; ) { | |
subgroups.push(subgroup = []); | |
for (var group = this[j], i = -1, n = group.length; ++i < n; ) { | |
if (node = group[i]) d3_transitionNode(node, i, id, transition); | |
subgroup.push(node); | |
} | |
} | |
return d3_transition(subgroups, id); | |
}; | |
d3.select = function(node) { | |
var group = [ typeof node === "string" ? d3_select(node, d3_document) : node ]; | |
group.parentNode = d3_documentElement; | |
return d3_selection([ group ]); | |
}; | |
d3.selectAll = function(nodes) { | |
var group = d3_array(typeof nodes === "string" ? d3_selectAll(nodes, d3_document) : nodes); | |
group.parentNode = d3_documentElement; | |
return d3_selection([ group ]); | |
}; | |
var d3_selectionRoot = d3.select(d3_documentElement); | |
d3_selectionPrototype.on = function(type, listener, capture) { | |
var n = arguments.length; | |
if (n < 3) { | |
if (typeof type !== "string") { | |
if (n < 2) listener = false; | |
for (capture in type) this.each(d3_selection_on(capture, type[capture], listener)); | |
return this; | |
} | |
if (n < 2) return (n = this.node()["__on" + type]) && n._; | |
capture = false; | |
} | |
return this.each(d3_selection_on(type, listener, capture)); | |
}; | |
function d3_selection_on(type, listener, capture) { | |
var name = "__on" + type, i = type.indexOf("."), wrap = d3_selection_onListener; | |
if (i > 0) type = type.substring(0, i); | |
var filter = d3_selection_onFilters.get(type); | |
if (filter) type = filter, wrap = d3_selection_onFilter; | |
function onRemove() { | |
var l = this[name]; | |
if (l) { | |
this.removeEventListener(type, l, l.$); | |
delete this[name]; | |
} | |
} | |
function onAdd() { | |
var l = wrap(listener, d3_array(arguments)); | |
onRemove.call(this); | |
this.addEventListener(type, this[name] = l, l.$ = capture); | |
l._ = listener; | |
} | |
function removeAll() { | |
var re = new RegExp("^__on([^.]+)" + d3.requote(type) + "$"), match; | |
for (var name in this) { | |
if (match = name.match(re)) { | |
var l = this[name]; | |
this.removeEventListener(match[1], l, l.$); | |
delete this[name]; | |
} | |
} | |
} | |
return i ? listener ? onAdd : onRemove : listener ? d3_noop : removeAll; | |
} | |
var d3_selection_onFilters = d3.map({ | |
mouseenter: "mouseover", | |
mouseleave: "mouseout" | |
}); | |
d3_selection_onFilters.forEach(function(k) { | |
if ("on" + k in d3_document) d3_selection_onFilters.remove(k); | |
}); | |
function d3_selection_onListener(listener, argumentz) { | |
return function(e) { | |
var o = d3.event; | |
d3.event = e; | |
argumentz[0] = this.__data__; | |
try { | |
listener.apply(this, argumentz); | |
} finally { | |
d3.event = o; | |
} | |
}; | |
} | |
function d3_selection_onFilter(listener, argumentz) { | |
var l = d3_selection_onListener(listener, argumentz); | |
return function(e) { | |
var target = this, related = e.relatedTarget; | |
if (!related || related !== target && !(related.compareDocumentPosition(target) & 8)) { | |
l.call(target, e); | |
} | |
}; | |
} | |
var d3_event_dragSelect = d3_vendorSymbol(d3_documentElement.style, "userSelect"), d3_event_dragId = 0; | |
function d3_event_dragSuppress() { | |
var name = ".dragsuppress-" + ++d3_event_dragId, touchmove = "touchmove" + name, selectstart = "selectstart" + name, dragstart = "dragstart" + name, click = "click" + name, w = d3.select(d3_window).on(touchmove, d3_eventPreventDefault).on(selectstart, d3_eventPreventDefault).on(dragstart, d3_eventPreventDefault), style = d3_documentElement.style, select = style[d3_event_dragSelect]; | |
style[d3_event_dragSelect] = "none"; | |
return function(suppressClick) { | |
w.on(name, null); | |
style[d3_event_dragSelect] = select; | |
if (suppressClick) { | |
function off() { | |
w.on(click, null); | |
} | |
w.on(click, function() { | |
d3_eventPreventDefault(); | |
off(); | |
}, true); | |
setTimeout(off, 0); | |
} | |
}; | |
} | |
d3.mouse = function(container) { | |
return d3_mousePoint(container, d3_eventSource()); | |
}; | |
var d3_mouse_bug44083 = /WebKit/.test(d3_window.navigator.userAgent) ? -1 : 0; | |
function d3_mousePoint(container, e) { | |
var svg = container.ownerSVGElement || container; | |
if (svg.createSVGPoint) { | |
var point = svg.createSVGPoint(); | |
if (d3_mouse_bug44083 < 0 && (d3_window.scrollX || d3_window.scrollY)) { | |
svg = d3.select("body").append("svg").style({ | |
position: "absolute", | |
top: 0, | |
left: 0, | |
margin: 0, | |
padding: 0, | |
border: "none" | |
}, "important"); | |
var ctm = svg[0][0].getScreenCTM(); | |
d3_mouse_bug44083 = !(ctm.f || ctm.e); | |
svg.remove(); | |
} | |
if (d3_mouse_bug44083) { | |
point.x = e.pageX; | |
point.y = e.pageY; | |
} else { | |
point.x = e.clientX; | |
point.y = e.clientY; | |
} | |
point = point.matrixTransform(container.getScreenCTM().inverse()); | |
return [ point.x, point.y ]; | |
} | |
var rect = container.getBoundingClientRect(); | |
return [ e.clientX - rect.left - container.clientLeft, e.clientY - rect.top - container.clientTop ]; | |
} | |
d3.touches = function(container, touches) { | |
if (arguments.length < 2) touches = d3_eventSource().touches; | |
return touches ? d3_array(touches).map(function(touch) { | |
var point = d3_mousePoint(container, touch); | |
point.identifier = touch.identifier; | |
return point; | |
}) : []; | |
}; | |
d3.behavior.drag = function() { | |
var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, "mousemove", "mouseup"), touchstart = dragstart(touchid, touchposition, "touchmove", "touchend"); | |
function drag() { | |
this.on("mousedown.drag", mousedown).on("touchstart.drag", touchstart); | |
} | |
function touchid() { | |
return d3.event.changedTouches[0].identifier; | |
} | |
function touchposition(parent, id) { | |
return d3.touches(parent).filter(function(p) { | |
return p.identifier === id; | |
})[0]; | |
} | |
function dragstart(id, position, move, end) { | |
return function() { | |
var target = this, parent = target.parentNode, event_ = event.of(target, arguments), eventTarget = d3.event.target, eventId = id(), drag = eventId == null ? "drag" : "drag-" + eventId, origin_ = position(parent, eventId), dragged = 0, offset, w = d3.select(d3_window).on(move + "." + drag, moved).on(end + "." + drag, ended), dragRestore = d3_event_dragSuppress(); | |
if (origin) { | |
offset = origin.apply(target, arguments); | |
offset = [ offset.x - origin_[0], offset.y - origin_[1] ]; | |
} else { | |
offset = [ 0, 0 ]; | |
} | |
event_({ | |
type: "dragstart" | |
}); | |
function moved() { | |
if (!parent) return ended(); | |
var p = position(parent, eventId), dx = p[0] - origin_[0], dy = p[1] - origin_[1]; | |
dragged |= dx | dy; | |
origin_ = p; | |
event_({ | |
type: "drag", | |
x: p[0] + offset[0], | |
y: p[1] + offset[1], | |
dx: dx, | |
dy: dy | |
}); | |
} | |
function ended() { | |
w.on(move + "." + drag, null).on(end + "." + drag, null); | |
dragRestore(dragged && d3.event.target === eventTarget); | |
event_({ | |
type: "dragend" | |
}); | |
} | |
}; | |
} | |
drag.origin = function(x) { | |
if (!arguments.length) return origin; | |
origin = x; | |
return drag; | |
}; | |
return d3.rebind(drag, event, "on"); | |
}; | |
d3.behavior.zoom = function() { | |
var translate = [ 0, 0 ], translate0, scale = 1, scaleExtent = d3_behavior_zoomInfinity, mousedown = "mousedown.zoom", mousemove = "mousemove.zoom", mouseup = "mouseup.zoom", event = d3_eventDispatch(zoom, "zoom"), x0, x1, y0, y1, touchtime; | |
function zoom() { | |
this.on(mousedown, mousedowned).on(d3_behavior_zoomWheel + ".zoom", mousewheeled).on(mousemove, mousewheelreset).on("dblclick.zoom", dblclicked).on("touchstart.zoom", touchstarted); | |
} | |
zoom.translate = function(x) { | |
if (!arguments.length) return translate; | |
translate = x.map(Number); | |
rescale(); | |
return zoom; | |
}; | |
zoom.scale = function(x) { | |
if (!arguments.length) return scale; | |
scale = +x; | |
rescale(); | |
return zoom; | |
}; | |
zoom.scaleExtent = function(x) { | |
if (!arguments.length) return scaleExtent; | |
scaleExtent = x == null ? d3_behavior_zoomInfinity : x.map(Number); | |
return zoom; | |
}; | |
zoom.x = function(z) { | |
if (!arguments.length) return x1; | |
x1 = z; | |
x0 = z.copy(); | |
translate = [ 0, 0 ]; | |
scale = 1; | |
return zoom; | |
}; | |
zoom.y = function(z) { | |
if (!arguments.length) return y1; | |
y1 = z; | |
y0 = z.copy(); | |
translate = [ 0, 0 ]; | |
scale = 1; | |
return zoom; | |
}; | |
function location(p) { | |
return [ (p[0] - translate[0]) / scale, (p[1] - translate[1]) / scale ]; | |
} | |
function point(l) { | |
return [ l[0] * scale + translate[0], l[1] * scale + translate[1] ]; | |
} | |
function scaleTo(s) { | |
scale = Math.max(scaleExtent[0], Math.min(scaleExtent[1], s)); | |
} | |
function translateTo(p, l) { | |
l = point(l); | |
translate[0] += p[0] - l[0]; | |
translate[1] += p[1] - l[1]; | |
} | |
function rescale() { | |
if (x1) x1.domain(x0.range().map(function(x) { | |
return (x - translate[0]) / scale; | |
}).map(x0.invert)); | |
if (y1) y1.domain(y0.range().map(function(y) { | |
return (y - translate[1]) / scale; | |
}).map(y0.invert)); | |
} | |
function dispatch(event) { | |
rescale(); | |
event({ | |
type: "zoom", | |
scale: scale, | |
translate: translate | |
}); | |
} | |
function mousedowned() { | |
var target = this, event_ = event.of(target, arguments), eventTarget = d3.event.target, dragged = 0, w = d3.select(d3_window).on(mousemove, moved).on(mouseup, ended), l = location(d3.mouse(target)), dragRestore = d3_event_dragSuppress(); | |
function moved() { | |
dragged = 1; | |
translateTo(d3.mouse(target), l); | |
dispatch(event_); | |
} | |
function ended() { | |
w.on(mousemove, d3_window === target ? mousewheelreset : null).on(mouseup, null); | |
dragRestore(dragged && d3.event.target === eventTarget); | |
} | |
} | |
function touchstarted() { | |
var target = this, event_ = event.of(target, arguments), touches = d3.touches(target), locations = {}, distance0 = 0, scale0 = scale, now = Date.now(), name = "zoom-" + d3.event.changedTouches[0].identifier, touchmove = "touchmove." + name, touchend = "touchend." + name, w = d3.select(d3_window).on(touchmove, moved).on(touchend, ended), t = d3.select(target).on(mousedown, null), dragRestore = d3_event_dragSuppress(); | |
touches.forEach(function(t) { | |
locations[t.identifier] = location(t); | |
}); | |
if (touches.length === 1) { | |
if (now - touchtime < 500) { | |
var p = touches[0], l = location(touches[0]); | |
scaleTo(scale * 2); | |
translateTo(p, l); | |
d3_eventPreventDefault(); | |
dispatch(event_); | |
} | |
touchtime = now; | |
} else if (touches.length > 1) { | |
var p = touches[0], q = touches[1], dx = p[0] - q[0], dy = p[1] - q[1]; | |
distance0 = dx * dx + dy * dy; | |
} | |
function moved() { | |
var touches = d3.touches(target), p0 = touches[0], l0 = locations[p0.identifier]; | |
if (p1 = touches[1]) { | |
var p1, l1 = locations[p1.identifier], scale1 = d3.event.scale; | |
if (scale1 == null) { | |
var distance1 = (distance1 = p1[0] - p0[0]) * distance1 + (distance1 = p1[1] - p0[1]) * distance1; | |
scale1 = distance0 && Math.sqrt(distance1 / distance0); | |
} | |
p0 = [ (p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2 ]; | |
l0 = [ (l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2 ]; | |
scaleTo(scale1 * scale0); | |
} | |
touchtime = null; | |
translateTo(p0, l0); | |
dispatch(event_); | |
} | |
function ended() { | |
w.on(touchmove, null).on(touchend, null); | |
t.on(mousedown, mousedowned); | |
dragRestore(); | |
} | |
} | |
function mousewheeled() { | |
d3_eventPreventDefault(); | |
if (!translate0) translate0 = location(d3.mouse(this)); | |
scaleTo(Math.pow(2, d3_behavior_zoomDelta() * .002) * scale); | |
translateTo(d3.mouse(this), translate0); | |
dispatch(event.of(this, arguments)); | |
} | |
function mousewheelreset() { | |
translate0 = null; | |
} | |
function dblclicked() { | |
var p = d3.mouse(this), l = location(p), k = Math.log(scale) / Math.LN2; | |
scaleTo(Math.pow(2, d3.event.shiftKey ? Math.ceil(k) - 1 : Math.floor(k) + 1)); | |
translateTo(p, l); | |
dispatch(event.of(this, arguments)); | |
} | |
return d3.rebind(zoom, event, "on"); | |
}; | |
var d3_behavior_zoomInfinity = [ 0, Infinity ]; | |
var d3_behavior_zoomDelta, d3_behavior_zoomWheel = "onwheel" in d3_document ? (d3_behavior_zoomDelta = function() { | |
return -d3.event.deltaY * (d3.event.deltaMode ? 120 : 1); | |
}, "wheel") : "onmousewheel" in d3_document ? (d3_behavior_zoomDelta = function() { | |
return d3.event.wheelDelta; | |
}, "mousewheel") : (d3_behavior_zoomDelta = function() { | |
return -d3.event.detail; | |
}, "MozMousePixelScroll"); | |
function d3_Color() {} | |
d3_Color.prototype.toString = function() { | |
return this.rgb() + ""; | |
}; | |
d3.hsl = function(h, s, l) { | |
return arguments.length === 1 ? h instanceof d3_Hsl ? d3_hsl(h.h, h.s, h.l) : d3_rgb_parse("" + h, d3_rgb_hsl, d3_hsl) : d3_hsl(+h, +s, +l); | |
}; | |
function d3_hsl(h, s, l) { | |
return new d3_Hsl(h, s, l); | |
} | |
function d3_Hsl(h, s, l) { | |
this.h = h; | |
this.s = s; | |
this.l = l; | |
} | |
var d3_hslPrototype = d3_Hsl.prototype = new d3_Color(); | |
d3_hslPrototype.brighter = function(k) { | |
k = Math.pow(.7, arguments.length ? k : 1); | |
return d3_hsl(this.h, this.s, this.l / k); | |
}; | |
d3_hslPrototype.darker = function(k) { | |
k = Math.pow(.7, arguments.length ? k : 1); | |
return d3_hsl(this.h, this.s, k * this.l); | |
}; | |
d3_hslPrototype.rgb = function() { | |
return d3_hsl_rgb(this.h, this.s, this.l); | |
}; | |
function d3_hsl_rgb(h, s, l) { | |
var m1, m2; | |
h = isNaN(h) ? 0 : (h %= 360) < 0 ? h + 360 : h; | |
s = isNaN(s) ? 0 : s < 0 ? 0 : s > 1 ? 1 : s; | |
l = l < 0 ? 0 : l > 1 ? 1 : l; | |
m2 = l <= .5 ? l * (1 + s) : l + s - l * s; | |
m1 = 2 * l - m2; | |
function v(h) { | |
if (h > 360) h -= 360; else if (h < 0) h += 360; | |
if (h < 60) return m1 + (m2 - m1) * h / 60; | |
if (h < 180) return m2; | |
if (h < 240) return m1 + (m2 - m1) * (240 - h) / 60; | |
return m1; | |
} | |
function vv(h) { | |
return Math.round(v(h) * 255); | |
} | |
return d3_rgb(vv(h + 120), vv(h), vv(h - 120)); | |
} | |
var π = Math.PI, ε = 1e-6, ε2 = ε * ε, d3_radians = π / 180, d3_degrees = 180 / π; | |
function d3_sgn(x) { | |
return x > 0 ? 1 : x < 0 ? -1 : 0; | |
} | |
function d3_acos(x) { | |
return x > 1 ? 0 : x < -1 ? π : Math.acos(x); | |
} | |
function d3_asin(x) { | |
return x > 1 ? π / 2 : x < -1 ? -π / 2 : Math.asin(x); | |
} | |
function d3_sinh(x) { | |
return (Math.exp(x) - Math.exp(-x)) / 2; | |
} | |
function d3_cosh(x) { | |
return (Math.exp(x) + Math.exp(-x)) / 2; | |
} | |
function d3_haversin(x) { | |
return (x = Math.sin(x / 2)) * x; | |
} | |
d3.hcl = function(h, c, l) { | |
return arguments.length === 1 ? h instanceof d3_Hcl ? d3_hcl(h.h, h.c, h.l) : h instanceof d3_Lab ? d3_lab_hcl(h.l, h.a, h.b) : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b) : d3_hcl(+h, +c, +l); | |
}; | |
function d3_hcl(h, c, l) { | |
return new d3_Hcl(h, c, l); | |
} | |
function d3_Hcl(h, c, l) { | |
this.h = h; | |
this.c = c; | |
this.l = l; | |
} | |
var d3_hclPrototype = d3_Hcl.prototype = new d3_Color(); | |
d3_hclPrototype.brighter = function(k) { | |
return d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1))); | |
}; | |
d3_hclPrototype.darker = function(k) { | |
return d3_hcl(this.h, this.c, Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1))); | |
}; | |
d3_hclPrototype.rgb = function() { | |
return d3_hcl_lab(this.h, this.c, this.l).rgb(); | |
}; | |
function d3_hcl_lab(h, c, l) { | |
if (isNaN(h)) h = 0; | |
if (isNaN(c)) c = 0; | |
return d3_lab(l, Math.cos(h *= d3_radians) * c, Math.sin(h) * c); | |
} | |
d3.lab = function(l, a, b) { | |
return arguments.length === 1 ? l instanceof d3_Lab ? d3_lab(l.l, l.a, l.b) : l instanceof d3_Hcl ? d3_hcl_lab(l.l, l.c, l.h) : d3_rgb_lab((l = d3.rgb(l)).r, l.g, l.b) : d3_lab(+l, +a, +b); | |
}; | |
function d3_lab(l, a, b) { | |
return new d3_Lab(l, a, b); | |
} | |
function d3_Lab(l, a, b) { | |
this.l = l; | |
this.a = a; | |
this.b = b; | |
} | |
var d3_lab_K = 18; | |
var d3_lab_X = .95047, d3_lab_Y = 1, d3_lab_Z = 1.08883; | |
var d3_labPrototype = d3_Lab.prototype = new d3_Color(); | |
d3_labPrototype.brighter = function(k) { | |
return d3_lab(Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)), this.a, this.b); | |
}; | |
d3_labPrototype.darker = function(k) { | |
return d3_lab(Math.max(0, this.l - d3_lab_K * (arguments.length ? k : 1)), this.a, this.b); | |
}; | |
d3_labPrototype.rgb = function() { | |
return d3_lab_rgb(this.l, this.a, this.b); | |
}; | |
function d3_lab_rgb(l, a, b) { | |
var y = (l + 16) / 116, x = y + a / 500, z = y - b / 200; | |
x = d3_lab_xyz(x) * d3_lab_X; | |
y = d3_lab_xyz(y) * d3_lab_Y; | |
z = d3_lab_xyz(z) * d3_lab_Z; | |
return d3_rgb(d3_xyz_rgb(3.2404542 * x - 1.5371385 * y - .4985314 * z), d3_xyz_rgb(-.969266 * x + 1.8760108 * y + .041556 * z), d3_xyz_rgb(.0556434 * x - .2040259 * y + 1.0572252 * z)); | |
} | |
function d3_lab_hcl(l, a, b) { | |
return l > 0 ? d3_hcl(Math.atan2(b, a) * d3_degrees, Math.sqrt(a * a + b * b), l) : d3_hcl(NaN, NaN, l); | |
} | |
function d3_lab_xyz(x) { | |
return x > .206893034 ? x * x * x : (x - 4 / 29) / 7.787037; | |
} | |
function d3_xyz_lab(x) { | |
return x > .008856 ? Math.pow(x, 1 / 3) : 7.787037 * x + 4 / 29; | |
} | |
function d3_xyz_rgb(r) { | |
return Math.round(255 * (r <= .00304 ? 12.92 * r : 1.055 * Math.pow(r, 1 / 2.4) - .055)); | |
} | |
d3.rgb = function(r, g, b) { | |
return arguments.length === 1 ? r instanceof d3_Rgb ? d3_rgb(r.r, r.g, r.b) : d3_rgb_parse("" + r, d3_rgb, d3_hsl_rgb) : d3_rgb(~~r, ~~g, ~~b); | |
}; | |
function d3_rgbNumber(value) { | |
return d3_rgb(value >> 16, value >> 8 & 255, value & 255); | |
} | |
function d3_rgbString(value) { | |
return d3_rgbNumber(value) + ""; | |
} | |
function d3_rgb(r, g, b) { | |
return new d3_Rgb(r, g, b); | |
} | |
function d3_Rgb(r, g, b) { | |
this.r = r; | |
this.g = g; | |
this.b = b; | |
} | |
var d3_rgbPrototype = d3_Rgb.prototype = new d3_Color(); | |
d3_rgbPrototype.brighter = function(k) { | |
k = Math.pow(.7, arguments.length ? k : 1); | |
var r = this.r, g = this.g, b = this.b, i = 30; | |
if (!r && !g && !b) return d3_rgb(i, i, i); | |
if (r && r < i) r = i; | |
if (g && g < i) g = i; | |
if (b && b < i) b = i; | |
return d3_rgb(Math.min(255, ~~(r / k)), Math.min(255, ~~(g / k)), Math.min(255, ~~(b / k))); | |
}; | |
d3_rgbPrototype.darker = function(k) { | |
k = Math.pow(.7, arguments.length ? k : 1); | |
return d3_rgb(~~(k * this.r), ~~(k * this.g), ~~(k * this.b)); | |
}; | |
d3_rgbPrototype.hsl = function() { | |
return d3_rgb_hsl(this.r, this.g, this.b); | |
}; | |
d3_rgbPrototype.toString = function() { | |
return "#" + d3_rgb_hex(this.r) + d3_rgb_hex(this.g) + d3_rgb_hex(this.b); | |
}; | |
function d3_rgb_hex(v) { | |
return v < 16 ? "0" + Math.max(0, v).toString(16) : Math.min(255, v).toString(16); | |
} | |
function d3_rgb_parse(format, rgb, hsl) { | |
var r = 0, g = 0, b = 0, m1, m2, name; | |
m1 = /([a-z]+)\((.*)\)/i.exec(format); | |
if (m1) { | |
m2 = m1[2].split(","); | |
switch (m1[1]) { | |
case "hsl": | |
{ | |
return hsl(parseFloat(m2[0]), parseFloat(m2[1]) / 100, parseFloat(m2[2]) / 100); | |
} | |
case "rgb": | |
{ | |
return rgb(d3_rgb_parseNumber(m2[0]), d3_rgb_parseNumber(m2[1]), d3_rgb_parseNumber(m2[2])); | |
} | |
} | |
} | |
if (name = d3_rgb_names.get(format)) return rgb(name.r, name.g, name.b); | |
if (format != null && format.charAt(0) === "#") { | |
if (format.length === 4) { | |
r = format.charAt(1); | |
r += r; | |
g = format.charAt(2); | |
g += g; | |
b = format.charAt(3); | |
b += b; | |
} else if (format.length === 7) { | |
r = format.substring(1, 3); | |
g = format.substring(3, 5); | |
b = format.substring(5, 7); | |
} | |
r = parseInt(r, 16); | |
g = parseInt(g, 16); | |
b = parseInt(b, 16); | |
} | |
return rgb(r, g, b); | |
} | |
function d3_rgb_hsl(r, g, b) { | |
var min = Math.min(r /= 255, g /= 255, b /= 255), max = Math.max(r, g, b), d = max - min, h, s, l = (max + min) / 2; | |
if (d) { | |
s = l < .5 ? d / (max + min) : d / (2 - max - min); | |
if (r == max) h = (g - b) / d + (g < b ? 6 : 0); else if (g == max) h = (b - r) / d + 2; else h = (r - g) / d + 4; | |
h *= 60; | |
} else { | |
h = NaN; | |
s = l > 0 && l < 1 ? 0 : h; | |
} | |
return d3_hsl(h, s, l); | |
} | |
function d3_rgb_lab(r, g, b) { | |
r = d3_rgb_xyz(r); | |
g = d3_rgb_xyz(g); | |
b = d3_rgb_xyz(b); | |
var x = d3_xyz_lab((.4124564 * r + .3575761 * g + .1804375 * b) / d3_lab_X), y = d3_xyz_lab((.2126729 * r + .7151522 * g + .072175 * b) / d3_lab_Y), z = d3_xyz_lab((.0193339 * r + .119192 * g + .9503041 * b) / d3_lab_Z); | |
return d3_lab(116 * y - 16, 500 * (x - y), 200 * (y - z)); | |
} | |
function d3_rgb_xyz(r) { | |
return (r /= 255) <= .04045 ? r / 12.92 : Math.pow((r + .055) / 1.055, 2.4); | |
} | |
function d3_rgb_parseNumber(c) { | |
var f = parseFloat(c); | |
return c.charAt(c.length - 1) === "%" ? Math.round(f * 2.55) : f; | |
} | |
var d3_rgb_names = d3.map({ | |
aliceblue: 15792383, | |
antiquewhite: 16444375, | |
aqua: 65535, | |
aquamarine: 8388564, | |
azure: 15794175, | |
beige: 16119260, | |
bisque: 16770244, | |
black: 0, | |
blanchedalmond: 16772045, | |
blue: 255, | |
blueviolet: 9055202, | |
brown: 10824234, | |
burlywood: 14596231, | |
cadetblue: 6266528, | |
chartreuse: 8388352, | |
chocolate: 13789470, | |
coral: 16744272, | |
cornflowerblue: 6591981, | |
cornsilk: 16775388, | |
crimson: 14423100, | |
cyan: 65535, | |
darkblue: 139, | |
darkcyan: 35723, | |
darkgoldenrod: 12092939, | |
darkgray: 11119017, | |
darkgreen: 25600, | |
darkgrey: 11119017, | |
darkkhaki: 12433259, | |
darkmagenta: 9109643, | |
darkolivegreen: 5597999, | |
darkorange: 16747520, | |
darkorchid: 10040012, | |
darkred: 9109504, | |
darksalmon: 15308410, | |
darkseagreen: 9419919, | |
darkslateblue: 4734347, | |
darkslategray: 3100495, | |
darkslategrey: 3100495, | |
darkturquoise: 52945, | |
darkviolet: 9699539, | |
deeppink: 16716947, | |
deepskyblue: 49151, | |
dimgray: 6908265, | |
dimgrey: 6908265, | |
dodgerblue: 2003199, | |
firebrick: 11674146, | |
floralwhite: 16775920, | |
forestgreen: 2263842, | |
fuchsia: 16711935, | |
gainsboro: 14474460, | |
ghostwhite: 16316671, | |
gold: 16766720, | |
goldenrod: 14329120, | |
gray: 8421504, | |
green: 32768, | |
greenyellow: 11403055, | |
grey: 8421504, | |
honeydew: 15794160, | |
hotpink: 16738740, | |
indianred: 13458524, | |
indigo: 4915330, | |
ivory: 16777200, | |
khaki: 15787660, | |
lavender: 15132410, | |
lavenderblush: 16773365, | |
lawngreen: 8190976, | |
lemonchiffon: 16775885, | |
lightblue: 11393254, | |
lightcoral: 15761536, | |
lightcyan: 14745599, | |
lightgoldenrodyellow: 16448210, | |
lightgray: 13882323, | |
lightgreen: 9498256, | |
lightgrey: 13882323, | |
lightpink: 16758465, | |
lightsalmon: 16752762, | |
lightseagreen: 2142890, | |
lightskyblue: 8900346, | |
lightslategray: 7833753, | |
lightslategrey: 7833753, | |
lightsteelblue: 11584734, | |
lightyellow: 16777184, | |
lime: 65280, | |
limegreen: 3329330, | |
linen: 16445670, | |
magenta: 16711935, | |
maroon: 8388608, | |
mediumaquamarine: 6737322, | |
mediumblue: 205, | |
mediumorchid: 12211667, | |
mediumpurple: 9662683, | |
mediumseagreen: 3978097, | |
mediumslateblue: 8087790, | |
mediumspringgreen: 64154, | |
mediumturquoise: 4772300, | |
mediumvioletred: 13047173, | |
midnightblue: 1644912, | |
mintcream: 16121850, | |
mistyrose: 16770273, | |
moccasin: 16770229, | |
navajowhite: 16768685, | |
navy: 128, | |
oldlace: 16643558, | |
olive: 8421376, | |
olivedrab: 7048739, | |
orange: 16753920, | |
orangered: 16729344, | |
orchid: 14315734, | |
palegoldenrod: 15657130, | |
palegreen: 10025880, | |
paleturquoise: 11529966, | |
palevioletred: 14381203, | |
papayawhip: 16773077, | |
peachpuff: 16767673, | |
peru: 13468991, | |
pink: 16761035, | |
plum: 14524637, | |
powderblue: 11591910, | |
purple: 8388736, | |
red: 16711680, | |
rosybrown: 12357519, | |
royalblue: 4286945, | |
saddlebrown: 9127187, | |
salmon: 16416882, | |
sandybrown: 16032864, | |
seagreen: 3050327, | |
seashell: 16774638, | |
sienna: 10506797, | |
silver: 12632256, | |
skyblue: 8900331, | |
slateblue: 6970061, | |
slategray: 7372944, | |
slategrey: 7372944, | |
snow: 16775930, | |
springgreen: 65407, | |
steelblue: 4620980, | |
tan: 13808780, | |
teal: 32896, | |
thistle: 14204888, | |
tomato: 16737095, | |
turquoise: 4251856, | |
violet: 15631086, | |
wheat: 16113331, | |
white: 16777215, | |
whitesmoke: 16119285, | |
yellow: 16776960, | |
yellowgreen: 10145074 | |
}); | |
d3_rgb_names.forEach(function(key, value) { | |
d3_rgb_names.set(key, d3_rgbNumber(value)); | |
}); | |
function d3_functor(v) { | |
return typeof v === "function" ? v : function() { | |
return v; | |
}; | |
} | |
d3.functor = d3_functor; | |
function d3_identity(d) { | |
return d; | |
} | |
d3.xhr = d3_xhrType(d3_identity); | |
function d3_xhrType(response) { | |
return function(url, mimeType, callback) { | |
if (arguments.length === 2 && typeof mimeType === "function") callback = mimeType, | |
mimeType = null; | |
return d3_xhr(url, mimeType, response, callback); | |
}; | |
} | |
function d3_xhr(url, mimeType, response, callback) { | |
var xhr = {}, dispatch = d3.dispatch("progress", "load", "error"), headers = {}, request = new XMLHttpRequest(), responseType = null; | |
if (d3_window.XDomainRequest && !("withCredentials" in request) && /^(http(s)?:)?\/\//.test(url)) request = new XDomainRequest(); | |
"onload" in request ? request.onload = request.onerror = respond : request.onreadystatechange = function() { | |
request.readyState > 3 && respond(); | |
}; | |
function respond() { | |
var status = request.status, result; | |
if (!status && request.responseText || status >= 200 && status < 300 || status === 304) { | |
try { | |
result = response.call(xhr, request); | |
} catch (e) { | |
dispatch.error.call(xhr, e); | |
return; | |
} | |
dispatch.load.call(xhr, result); | |
} else { | |
dispatch.error.call(xhr, request); | |
} | |
} | |
request.onprogress = function(event) { | |
var o = d3.event; | |
d3.event = event; | |
try { | |
dispatch.progress.call(xhr, request); | |
} finally { | |
d3.event = o; | |
} | |
}; | |
xhr.header = function(name, value) { | |
name = (name + "").toLowerCase(); | |
if (arguments.length < 2) return headers[name]; | |
if (value == null) delete headers[name]; else headers[name] = value + ""; | |
return xhr; | |
}; | |
xhr.mimeType = function(value) { | |
if (!arguments.length) return mimeType; | |
mimeType = value == null ? null : value + ""; | |
return xhr; | |
}; | |
xhr.responseType = function(value) { | |
if (!arguments.length) return responseType; | |
responseType = value; | |
return xhr; | |
}; | |
xhr.response = function(value) { | |
response = value; | |
return xhr; | |
}; | |
[ "get", "post" ].forEach(function(method) { | |
xhr[method] = function() { | |
return xhr.send.apply(xhr, [ method ].concat(d3_array(arguments))); | |
}; | |
}); | |
xhr.send = function(method, data, callback) { | |
if (arguments.length === 2 && typeof data === "function") callback = data, data = null; | |
request.open(method, url, true); | |
if (mimeType != null && !("accept" in headers)) headers["accept"] = mimeType + ",*/*"; | |
if (request.setRequestHeader) for (var name in headers) request.setRequestHeader(name, headers[name]); | |
if (mimeType != null && request.overrideMimeType) request.overrideMimeType(mimeType); | |
if (responseType != null) request.responseType = responseType; | |
if (callback != null) xhr.on("error", callback).on("load", function(request) { | |
callback(null, request); | |
}); | |
request.send(data == null ? null : data); | |
return xhr; | |
}; | |
xhr.abort = function() { | |
request.abort(); | |
return xhr; | |
}; | |
d3.rebind(xhr, dispatch, "on"); | |
return callback == null ? xhr : xhr.get(d3_xhr_fixCallback(callback)); | |
} | |
function d3_xhr_fixCallback(callback) { | |
return callback.length === 1 ? function(error, request) { | |
callback(error == null ? request : null); | |
} : callback; | |
} | |
d3.dsv = function(delimiter, mimeType) { | |
var reFormat = new RegExp('["' + delimiter + "\n]"), delimiterCode = delimiter.charCodeAt(0); | |
function dsv(url, row, callback) { | |
if (arguments.length < 3) callback = row, row = null; | |
var xhr = d3.xhr(url, mimeType, callback); | |
xhr.row = function(_) { | |
return arguments.length ? xhr.response((row = _) == null ? response : typedResponse(_)) : row; | |
}; | |
return xhr.row(row); | |
} | |
function response(request) { | |
return dsv.parse(request.responseText); | |
} | |
function typedResponse(f) { | |
return function(request) { | |
return dsv.parse(request.responseText, f); | |
}; | |
} | |
dsv.parse = function(text, f) { | |
var o; | |
return dsv.parseRows(text, function(row, i) { | |
if (o) return o(row, i - 1); | |
var a = new Function("d", "return {" + row.map(function(name, i) { | |
return JSON.stringify(name) + ": d[" + i + "]"; | |
}).join(",") + "}"); | |
o = f ? function(row, i) { | |
return f(a(row), i); | |
} : a; | |
}); | |
}; | |
dsv.parseRows = function(text, f) { | |
var EOL = {}, EOF = {}, rows = [], N = text.length, I = 0, n = 0, t, eol; | |
function token() { | |
if (I >= N) return EOF; | |
if (eol) return eol = false, EOL; | |
var j = I; | |
if (text.charCodeAt(j) === 34) { | |
var i = j; | |
while (i++ < N) { | |
if (text.charCodeAt(i) === 34) { | |
if (text.charCodeAt(i + 1) !== 34) break; | |
++i; | |
} | |
} | |
I = i + 2; | |
var c = text.charCodeAt(i + 1); | |
if (c === 13) { | |
eol = true; | |
if (text.charCodeAt(i + 2) === 10) ++I; | |
} else if (c === 10) { | |
eol = true; | |
} | |
return text.substring(j + 1, i).replace(/""/g, '"'); | |
} | |
while (I < N) { | |
var c = text.charCodeAt(I++), k = 1; | |
if (c === 10) eol = true; else if (c === 13) { | |
eol = true; | |
if (text.charCodeAt(I) === 10) ++I, ++k; | |
} else if (c !== delimiterCode) continue; | |
return text.substring(j, I - k); | |
} | |
return text.substring(j); | |
} | |
while ((t = token()) !== EOF) { | |
var a = []; | |
while (t !== EOL && t !== EOF) { | |
a.push(t); | |
t = token(); | |
} | |
if (f && !(a = f(a, n++))) continue; | |
rows.push(a); | |
} | |
return rows; | |
}; | |
dsv.format = function(rows) { | |
if (Array.isArray(rows[0])) return dsv.formatRows(rows); | |
var fieldSet = new d3_Set(), fields = []; | |
rows.forEach(function(row) { | |
for (var field in row) { | |
if (!fieldSet.has(field)) { | |
fields.push(fieldSet.add(field)); | |
} | |
} | |
}); | |
return [ fields.map(formatValue).join(delimiter) ].concat(rows.map(function(row) { | |
return fields.map(function(field) { | |
return formatValue(row[field]); | |
}).join(delimiter); | |
})).join("\n"); | |
}; | |
dsv.formatRows = function(rows) { | |
return rows.map(formatRow).join("\n"); | |
}; | |
function formatRow(row) { | |
return row.map(formatValue).join(delimiter); | |
} | |
function formatValue(text) { | |
return reFormat.test(text) ? '"' + text.replace(/\"/g, '""') + '"' : text; | |
} | |
return dsv; | |
}; | |
d3.csv = d3.dsv(",", "text/csv"); | |
d3.tsv = d3.dsv(" ", "text/tab-separated-values"); | |
var d3_timer_queueHead, d3_timer_queueTail, d3_timer_interval, d3_timer_timeout, d3_timer_active, d3_timer_frame = d3_window[d3_vendorSymbol(d3_window, "requestAnimationFrame")] || function(callback) { | |
setTimeout(callback, 17); | |
}; | |
d3.timer = function(callback, delay, then) { | |
var n = arguments.length; | |
if (n < 2) delay = 0; | |
if (n < 3) then = Date.now(); | |
var time = then + delay, timer = { | |
callback: callback, | |
time: time, | |
next: null | |
}; | |
if (d3_timer_queueTail) d3_timer_queueTail.next = timer; else d3_timer_queueHead = timer; | |
d3_timer_queueTail = timer; | |
if (!d3_timer_interval) { | |
d3_timer_timeout = clearTimeout(d3_timer_timeout); | |
d3_timer_interval = 1; | |
d3_timer_frame(d3_timer_step); | |
} | |
}; | |
function d3_timer_step() { | |
var now = d3_timer_mark(), delay = d3_timer_sweep() - now; | |
if (delay > 24) { | |
if (isFinite(delay)) { | |
clearTimeout(d3_timer_timeout); | |
d3_timer_timeout = setTimeout(d3_timer_step, delay); | |
} | |
d3_timer_interval = 0; | |
} else { | |
d3_timer_interval = 1; | |
d3_timer_frame(d3_timer_step); | |
} | |
} | |
d3.timer.flush = function() { | |
d3_timer_mark(); | |
d3_timer_sweep(); | |
}; | |
function d3_timer_replace(callback, delay, then) { | |
var n = arguments.length; | |
if (n < 2) delay = 0; | |
if (n < 3) then = Date.now(); | |
d3_timer_active.callback = callback; | |
d3_timer_active.time = then + delay; | |
} | |
function d3_timer_mark() { | |
var now = Date.now(); | |
d3_timer_active = d3_timer_queueHead; | |
while (d3_timer_active) { | |
if (now >= d3_timer_active.time) d3_timer_active.flush = d3_timer_active.callback(now - d3_timer_active.time); | |
d3_timer_active = d3_timer_active.next; | |
} | |
return now; | |
} | |
function d3_timer_sweep() { | |
var t0, t1 = d3_timer_queueHead, time = Infinity; | |
while (t1) { | |
if (t1.flush) { | |
t1 = t0 ? t0.next = t1.next : d3_timer_queueHead = t1.next; | |
} else { | |
if (t1.time < time) time = t1.time; | |
t1 = (t0 = t1).next; | |
} | |
} | |
d3_timer_queueTail = t0; | |
return time; | |
} | |
var d3_format_decimalPoint = ".", d3_format_thousandsSeparator = ",", d3_format_grouping = [ 3, 3 ], d3_format_currencySymbol = "$"; | |
var d3_formatPrefixes = [ "y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y" ].map(d3_formatPrefix); | |
d3.formatPrefix = function(value, precision) { | |
var i = 0; | |
if (value) { | |
if (value < 0) value *= -1; | |
if (precision) value = d3.round(value, d3_format_precision(value, precision)); | |
i = 1 + Math.floor(1e-12 + Math.log(value) / Math.LN10); | |
i = Math.max(-24, Math.min(24, Math.floor((i <= 0 ? i + 1 : i - 1) / 3) * 3)); | |
} | |
return d3_formatPrefixes[8 + i / 3]; | |
}; | |
function d3_formatPrefix(d, i) { | |
var k = Math.pow(10, Math.abs(8 - i) * 3); | |
return { | |
scale: i > 8 ? function(d) { | |
return d / k; | |
} : function(d) { | |
return d * k; | |
}, | |
symbol: d | |
}; | |
} | |
d3.round = function(x, n) { | |
return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x); | |
}; | |
d3.format = function(specifier) { | |
var match = d3_format_re.exec(specifier), fill = match[1] || " ", align = match[2] || ">", sign = match[3] || "", symbol = match[4] || "", zfill = match[5], width = +match[6], comma = match[7], precision = match[8], type = match[9], scale = 1, suffix = "", integer = false; | |
if (precision) precision = +precision.substring(1); | |
if (zfill || fill === "0" && align === "=") { | |
zfill = fill = "0"; | |
align = "="; | |
if (comma) width -= Math.floor((width - 1) / 4); | |
} | |
switch (type) { | |
case "n": | |
comma = true; | |
type = "g"; | |
break; | |
case "%": | |
scale = 100; | |
suffix = "%"; | |
type = "f"; | |
break; | |
case "p": | |
scale = 100; | |
suffix = "%"; | |
type = "r"; | |
break; | |
case "b": | |
case "o": | |
case "x": | |
case "X": | |
if (symbol === "#") symbol = "0" + type.toLowerCase(); | |
case "c": | |
case "d": | |
integer = true; | |
precision = 0; | |
break; | |
case "s": | |
scale = -1; | |
type = "r"; | |
break; | |
} | |
if (symbol === "#") symbol = ""; else if (symbol === "$") symbol = d3_format_currencySymbol; | |
if (type == "r" && !precision) type = "g"; | |
if (precision != null) { | |
if (type == "g") precision = Math.max(1, Math.min(21, precision)); else if (type == "e" || type == "f") precision = Math.max(0, Math.min(20, precision)); | |
} | |
type = d3_format_types.get(type) || d3_format_typeDefault; | |
var zcomma = zfill && comma; | |
return function(value) { | |
if (integer && value % 1) return ""; | |
var negative = value < 0 || value === 0 && 1 / value < 0 ? (value = -value, "-") : sign; | |
if (scale < 0) { | |
var prefix = d3.formatPrefix(value, precision); | |
value = prefix.scale(value); | |
suffix = prefix.symbol; | |
} else { | |
value *= scale; | |
} | |
value = type(value, precision); | |
var i = value.lastIndexOf("."), before = i < 0 ? value : value.substring(0, i), after = i < 0 ? "" : d3_format_decimalPoint + value.substring(i + 1); | |
if (!zfill && comma) before = d3_format_group(before); | |
var length = symbol.length + before.length + after.length + (zcomma ? 0 : negative.length), padding = length < width ? new Array(length = width - length + 1).join(fill) : ""; | |
if (zcomma) before = d3_format_group(padding + before); | |
negative += symbol; | |
value = before + after; | |
return (align === "<" ? negative + value + padding : align === ">" ? padding + negative + value : align === "^" ? padding.substring(0, length >>= 1) + negative + value + padding.substring(length) : negative + (zcomma ? value : padding + value)) + suffix; | |
}; | |
}; | |
var d3_format_re = /(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i; | |
var d3_format_types = d3.map({ | |
b: function(x) { | |
return x.toString(2); | |
}, | |
c: function(x) { | |
return String.fromCharCode(x); | |
}, | |
o: function(x) { | |
return x.toString(8); | |
}, | |
x: function(x) { | |
return x.toString(16); | |
}, | |
X: function(x) { | |
return x.toString(16).toUpperCase(); | |
}, | |
g: function(x, p) { | |
return x.toPrecision(p); | |
}, | |
e: function(x, p) { | |
return x.toExponential(p); | |
}, | |
f: function(x, p) { | |
return x.toFixed(p); | |
}, | |
r: function(x, p) { | |
return (x = d3.round(x, d3_format_precision(x, p))).toFixed(Math.max(0, Math.min(20, d3_format_precision(x * (1 + 1e-15), p)))); | |
} | |
}); | |
function d3_format_precision(x, p) { | |
return p - (x ? Math.ceil(Math.log(x) / Math.LN10) : 1); | |
} | |
function d3_format_typeDefault(x) { | |
return x + ""; | |
} | |
var d3_format_group = d3_identity; | |
if (d3_format_grouping) { | |
var d3_format_groupingLength = d3_format_grouping.length; | |
d3_format_group = function(value) { | |
var i = value.length, t = [], j = 0, g = d3_format_grouping[0]; | |
while (i > 0 && g > 0) { | |
t.push(value.substring(i -= g, i + g)); | |
g = d3_format_grouping[j = (j + 1) % d3_format_groupingLength]; | |
} | |
return t.reverse().join(d3_format_thousandsSeparator); | |
}; | |
} | |
d3.geo = {}; | |
function d3_adder() {} | |
d3_adder.prototype = { | |
s: 0, | |
t: 0, | |
add: function(y) { | |
d3_adderSum(y, this.t, d3_adderTemp); | |
d3_adderSum(d3_adderTemp.s, this.s, this); | |
if (this.s) this.t += d3_adderTemp.t; else this.s = d3_adderTemp.t; | |
}, | |
reset: function() { | |
this.s = this.t = 0; | |
}, | |
valueOf: function() { | |
return this.s; | |
} | |
}; | |
var d3_adderTemp = new d3_adder(); | |
function d3_adderSum(a, b, o) { | |
var x = o.s = a + b, bv = x - a, av = x - bv; | |
o.t = a - av + (b - bv); | |
} | |
d3.geo.stream = function(object, listener) { | |
if (object && d3_geo_streamObjectType.hasOwnProperty(object.type)) { | |
d3_geo_streamObjectType[object.type](object, listener); | |
} else { | |
d3_geo_streamGeometry(object, listener); | |
} | |
}; | |
function d3_geo_streamGeometry(geometry, listener) { | |
if (geometry && d3_geo_streamGeometryType.hasOwnProperty(geometry.type)) { | |
d3_geo_streamGeometryType[geometry.type](geometry, listener); | |
} | |
} | |
var d3_geo_streamObjectType = { | |
Feature: function(feature, listener) { | |
d3_geo_streamGeometry(feature.geometry, listener); | |
}, | |
FeatureCollection: function(object, listener) { | |
var features = object.features, i = -1, n = features.length; | |
while (++i < n) d3_geo_streamGeometry(features[i].geometry, listener); | |
} | |
}; | |
var d3_geo_streamGeometryType = { | |
Sphere: function(object, listener) { | |
listener.sphere(); | |
}, | |
Point: function(object, listener) { | |
var coordinate = object.coordinates; | |
listener.point(coordinate[0], coordinate[1]); | |
}, | |
MultiPoint: function(object, listener) { | |
var coordinates = object.coordinates, i = -1, n = coordinates.length, coordinate; | |
while (++i < n) coordinate = coordinates[i], listener.point(coordinate[0], coordinate[1]); | |
}, | |
LineString: function(object, listener) { | |
d3_geo_streamLine(object.coordinates, listener, 0); | |
}, | |
MultiLineString: function(object, listener) { | |
var coordinates = object.coordinates, i = -1, n = coordinates.length; | |
while (++i < n) d3_geo_streamLine(coordinates[i], listener, 0); | |
}, | |
Polygon: function(object, listener) { | |
d3_geo_streamPolygon(object.coordinates, listener); | |
}, | |
MultiPolygon: function(object, listener) { | |
var coordinates = object.coordinates, i = -1, n = coordinates.length; | |
while (++i < n) d3_geo_streamPolygon(coordinates[i], listener); | |
}, | |
GeometryCollection: function(object, listener) { | |
var geometries = object.geometries, i = -1, n = geometries.length; | |
while (++i < n) d3_geo_streamGeometry(geometries[i], listener); | |
} | |
}; | |
function d3_geo_streamLine(coordinates, listener, closed) { | |
var i = -1, n = coordinates.length - closed, coordinate; | |
listener.lineStart(); | |
while (++i < n) coordinate = coordinates[i], listener.point(coordinate[0], coordinate[1]); | |
listener.lineEnd(); | |
} | |
function d3_geo_streamPolygon(coordinates, listener) { | |
var i = -1, n = coordinates.length; | |
listener.polygonStart(); | |
while (++i < n) d3_geo_streamLine(coordinates[i], listener, 1); | |
listener.polygonEnd(); | |
} | |
d3.geo.area = function(object) { | |
d3_geo_areaSum = 0; | |
d3.geo.stream(object, d3_geo_area); | |
return d3_geo_areaSum; | |
}; | |
var d3_geo_areaSum, d3_geo_areaRingSum = new d3_adder(); | |
var d3_geo_area = { | |
sphere: function() { | |
d3_geo_areaSum += 4 * π; | |
}, | |
point: d3_noop, | |
lineStart: d3_noop, | |
lineEnd: d3_noop, | |
polygonStart: function() { | |
d3_geo_areaRingSum.reset(); | |
d3_geo_area.lineStart = d3_geo_areaRingStart; | |
}, | |
polygonEnd: function() { | |
var area = 2 * d3_geo_areaRingSum; | |
d3_geo_areaSum += area < 0 ? 4 * π + area : area; | |
d3_geo_area.lineStart = d3_geo_area.lineEnd = d3_geo_area.point = d3_noop; | |
} | |
}; | |
function d3_geo_areaRingStart() { | |
var λ00, φ00, λ0, cosφ0, sinφ0; | |
d3_geo_area.point = function(λ, φ) { | |
d3_geo_area.point = nextPoint; | |
λ0 = (λ00 = λ) * d3_radians, cosφ0 = Math.cos(φ = (φ00 = φ) * d3_radians / 2 + π / 4), | |
sinφ0 = Math.sin(φ); | |
}; | |
function nextPoint(λ, φ) { | |
λ *= d3_radians; | |
φ = φ * d3_radians / 2 + π / 4; | |
var dλ = λ - λ0, cosφ = Math.cos(φ), sinφ = Math.sin(φ), k = sinφ0 * sinφ, u = cosφ0 * cosφ + k * Math.cos(dλ), v = k * Math.sin(dλ); | |
d3_geo_areaRingSum.add(Math.atan2(v, u)); | |
λ0 = λ, cosφ0 = cosφ, sinφ0 = sinφ; | |
} | |
d3_geo_area.lineEnd = function() { | |
nextPoint(λ00, φ00); | |
}; | |
} | |
function d3_geo_cartesian(spherical) { | |
var λ = spherical[0], φ = spherical[1], cosφ = Math.cos(φ); | |
return [ cosφ * Math.cos(λ), cosφ * Math.sin(λ), Math.sin(φ) ]; | |
} | |
function d3_geo_cartesianDot(a, b) { | |
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; | |
} | |
function d3_geo_cartesianCross(a, b) { | |
return [ a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0] ]; | |
} | |
function d3_geo_cartesianAdd(a, b) { | |
a[0] += b[0]; | |
a[1] += b[1]; | |
a[2] += b[2]; | |
} | |
function d3_geo_cartesianScale(vector, k) { | |
return [ vector[0] * k, vector[1] * k, vector[2] * k ]; | |
} | |
function d3_geo_cartesianNormalize(d) { | |
var l = Math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]); | |
d[0] /= l; | |
d[1] /= l; | |
d[2] /= l; | |
} | |
function d3_geo_spherical(cartesian) { | |
return [ Math.atan2(cartesian[1], cartesian[0]), d3_asin(cartesian[2]) ]; | |
} | |
function d3_geo_sphericalEqual(a, b) { | |
return Math.abs(a[0] - b[0]) < ε && Math.abs(a[1] - b[1]) < ε; | |
} | |
d3.geo.bounds = function() { | |
var λ0, φ0, λ1, φ1, λ_, λ__, φ__, p0, dλSum, ranges, range; | |
var bound = { | |
point: point, | |
lineStart: lineStart, | |
lineEnd: lineEnd, | |
polygonStart: function() { | |
bound.point = ringPoint; | |
bound.lineStart = ringStart; | |
bound.lineEnd = ringEnd; | |
dλSum = 0; | |
d3_geo_area.polygonStart(); | |
}, | |
polygonEnd: function() { | |
d3_geo_area.polygonEnd(); | |
bound.point = point; | |
bound.lineStart = lineStart; | |
bound.lineEnd = lineEnd; | |
if (d3_geo_areaRingSum < 0) λ0 = -(λ1 = 180), φ0 = -(φ1 = 90); else if (dλSum > ε) φ1 = 90; else if (dλSum < -ε) φ0 = -90; | |
range[0] = λ0, range[1] = λ1; | |
} | |
}; | |
function point(λ, φ) { | |
ranges.push(range = [ λ0 = λ, λ1 = λ ]); | |
if (φ < φ0) φ0 = φ; | |
if (φ > φ1) φ1 = φ; | |
} | |
function linePoint(λ, φ) { | |
var p = d3_geo_cartesian([ λ * d3_radians, φ * d3_radians ]); | |
if (p0) { | |
var normal = d3_geo_cartesianCross(p0, p), equatorial = [ normal[1], -normal[0], 0 ], inflection = d3_geo_cartesianCross(equatorial, normal); | |
d3_geo_cartesianNormalize(inflection); | |
inflection = d3_geo_spherical(inflection); | |
var dλ = λ - λ_, s = dλ > 0 ? 1 : -1, λi = inflection[0] * d3_degrees * s, antimeridian = Math.abs(dλ) > 180; | |
if (antimeridian ^ (s * λ_ < λi && λi < s * λ)) { | |
var φi = inflection[1] * d3_degrees; | |
if (φi > φ1) φ1 = φi; | |
} else if (λi = (λi + 360) % 360 - 180, antimeridian ^ (s * λ_ < λi && λi < s * λ)) { | |
var φi = -inflection[1] * d3_degrees; | |
if (φi < φ0) φ0 = φi; | |
} else { | |
if (φ < φ0) φ0 = φ; | |
if (φ > φ1) φ1 = φ; | |
} | |
if (antimeridian) { | |
if (λ < λ_) { | |
if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ; | |
} else { | |
if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ; | |
} | |
} else { | |
if (λ1 >= λ0) { | |
if (λ < λ0) λ0 = λ; | |
if (λ > λ1) λ1 = λ; | |
} else { | |
if (λ > λ_) { | |
if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ; | |
} else { | |
if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ; | |
} | |
} | |
} | |
} else { | |
point(λ, φ); | |
} | |
p0 = p, λ_ = λ; | |
} | |
function lineStart() { | |
bound.point = linePoint; | |
} | |
function lineEnd() { | |
range[0] = λ0, range[1] = λ1; | |
bound.point = point; | |
p0 = null; | |
} | |
function ringPoint(λ, φ) { | |
if (p0) { | |
var dλ = λ - λ_; | |
dλSum += Math.abs(dλ) > 180 ? dλ + (dλ > 0 ? 360 : -360) : dλ; | |
} else λ__ = λ, φ__ = φ; | |
d3_geo_area.point(λ, φ); | |
linePoint(λ, φ); | |
} | |
function ringStart() { | |
d3_geo_area.lineStart(); | |
} | |
function ringEnd() { | |
ringPoint(λ__, φ__); | |
d3_geo_area.lineEnd(); | |
if (Math.abs(dλSum) > ε) λ0 = -(λ1 = 180); | |
range[0] = λ0, range[1] = λ1; | |
p0 = null; | |
} | |
function angle(λ0, λ1) { | |
return (λ1 -= λ0) < 0 ? λ1 + 360 : λ1; | |
} | |
function compareRanges(a, b) { | |
return a[0] - b[0]; | |
} | |
function withinRange(x, range) { | |
return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x; | |
} | |
return function(feature) { | |
φ1 = λ1 = -(λ0 = φ0 = Infinity); | |
ranges = []; | |
d3.geo.stream(feature, bound); | |
var n = ranges.length; | |
if (n) { | |
ranges.sort(compareRanges); | |
for (var i = 1, a = ranges[0], b, merged = [ a ]; i < n; ++i) { | |
b = ranges[i]; | |
if (withinRange(b[0], a) || withinRange(b[1], a)) { | |
if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1]; | |
if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0]; | |
} else { | |
merged.push(a = b); | |
} | |
} | |
var best = -Infinity, dλ; | |
for (var n = merged.length - 1, i = 0, a = merged[n], b; i <= n; a = b, ++i) { | |
b = merged[i]; | |
if ((dλ = angle(a[1], b[0])) > best) best = dλ, λ0 = b[0], λ1 = a[1]; | |
} | |
} | |
ranges = range = null; | |
return λ0 === Infinity || φ0 === Infinity ? [ [ NaN, NaN ], [ NaN, NaN ] ] : [ [ λ0, φ0 ], [ λ1, φ1 ] ]; | |
}; | |
}(); | |
d3.geo.centroid = function(object) { | |
d3_geo_centroidW0 = d3_geo_centroidW1 = d3_geo_centroidX0 = d3_geo_centroidY0 = d3_geo_centroidZ0 = d3_geo_centroidX1 = d3_geo_centroidY1 = d3_geo_centroidZ1 = d3_geo_centroidX2 = d3_geo_centroidY2 = d3_geo_centroidZ2 = 0; | |
d3.geo.stream(object, d3_geo_centroid); | |
var x = d3_geo_centroidX2, y = d3_geo_centroidY2, z = d3_geo_centroidZ2, m = x * x + y * y + z * z; | |
if (m < ε2) { | |
x = d3_geo_centroidX1, y = d3_geo_centroidY1, z = d3_geo_centroidZ1; | |
if (d3_geo_centroidW1 < ε) x = d3_geo_centroidX0, y = d3_geo_centroidY0, z = d3_geo_centroidZ0; | |
m = x * x + y * y + z * z; | |
if (m < ε2) return [ NaN, NaN ]; | |
} | |
return [ Math.atan2(y, x) * d3_degrees, d3_asin(z / Math.sqrt(m)) * d3_degrees ]; | |
}; | |
var d3_geo_centroidW0, d3_geo_centroidW1, d3_geo_centroidX0, d3_geo_centroidY0, d3_geo_centroidZ0, d3_geo_centroidX1, d3_geo_centroidY1, d3_geo_centroidZ1, d3_geo_centroidX2, d3_geo_centroidY2, d3_geo_centroidZ2; | |
var d3_geo_centroid = { | |
sphere: d3_noop, | |
point: d3_geo_centroidPoint, | |
lineStart: d3_geo_centroidLineStart, | |
lineEnd: d3_geo_centroidLineEnd, | |
polygonStart: function() { | |
d3_geo_centroid.lineStart = d3_geo_centroidRingStart; | |
}, | |
polygonEnd: function() { | |
d3_geo_centroid.lineStart = d3_geo_centroidLineStart; | |
} | |
}; | |
function d3_geo_centroidPoint(λ, φ) { | |
λ *= d3_radians; | |
var cosφ = Math.cos(φ *= d3_radians); | |
d3_geo_centroidPointXYZ(cosφ * Math.cos(λ), cosφ * Math.sin(λ), Math.sin(φ)); | |
} | |
function d3_geo_centroidPointXYZ(x, y, z) { | |
++d3_geo_centroidW0; | |
d3_geo_centroidX0 += (x - d3_geo_centroidX0) / d3_geo_centroidW0; | |
d3_geo_centroidY0 += (y - d3_geo_centroidY0) / d3_geo_centroidW0; | |
d3_geo_centroidZ0 += (z - d3_geo_centroidZ0) / d3_geo_centroidW0; | |
} | |
function d3_geo_centroidLineStart() { | |
var x0, y0, z0; | |
d3_geo_centroid.point = function(λ, φ) { | |
λ *= d3_radians; | |
var cosφ = Math.cos(φ *= d3_radians); | |
x0 = cosφ * Math.cos(λ); | |
y0 = cosφ * Math.sin(λ); | |
z0 = Math.sin(φ); | |
d3_geo_centroid.point = nextPoint; | |
d3_geo_centroidPointXYZ(x0, y0, z0); | |
}; | |
function nextPoint(λ, φ) { | |
λ *= d3_radians; | |
var cosφ = Math.cos(φ *= d3_radians), x = cosφ * Math.cos(λ), y = cosφ * Math.sin(λ), z = Math.sin(φ), w = Math.atan2(Math.sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z); | |
d3_geo_centroidW1 += w; | |
d3_geo_centroidX1 += w * (x0 + (x0 = x)); | |
d3_geo_centroidY1 += w * (y0 + (y0 = y)); | |
d3_geo_centroidZ1 += w * (z0 + (z0 = z)); | |
d3_geo_centroidPointXYZ(x0, y0, z0); | |
} | |
} | |
function d3_geo_centroidLineEnd() { | |
d3_geo_centroid.point = d3_geo_centroidPoint; | |
} | |
function d3_geo_centroidRingStart() { | |
var λ00, φ00, x0, y0, z0; | |
d3_geo_centroid.point = function(λ, φ) { | |
λ00 = λ, φ00 = φ; | |
d3_geo_centroid.point = nextPoint; | |
λ *= d3_radians; | |
var cosφ = Math.cos(φ *= d3_radians); | |
x0 = cosφ * Math.cos(λ); | |
y0 = cosφ * Math.sin(λ); | |
z0 = Math.sin(φ); | |
d3_geo_centroidPointXYZ(x0, y0, z0); | |
}; | |
d3_geo_centroid.lineEnd = function() { | |
nextPoint(λ00, φ00); | |
d3_geo_centroid.lineEnd = d3_geo_centroidLineEnd; | |
d3_geo_centroid.point = d3_geo_centroidPoint; | |
}; | |
function nextPoint(λ, φ) { | |
λ *= d3_radians; | |
var cosφ = Math.cos(φ *= d3_radians), x = cosφ * Math.cos(λ), y = cosφ * Math.sin(λ), z = Math.sin(φ), cx = y0 * z - z0 * y, cy = z0 * x - x0 * z, cz = x0 * y - y0 * x, m = Math.sqrt(cx * cx + cy * cy + cz * cz), u = x0 * x + y0 * y + z0 * z, v = m && -d3_acos(u) / m, w = Math.atan2(m, u); | |
d3_geo_centroidX2 += v * cx; | |
d3_geo_centroidY2 += v * cy; | |
d3_geo_centroidZ2 += v * cz; | |
d3_geo_centroidW1 += w; | |
d3_geo_centroidX1 += w * (x0 + (x0 = x)); | |
d3_geo_centroidY1 += w * (y0 + (y0 = y)); | |
d3_geo_centroidZ1 += w * (z0 + (z0 = z)); | |
d3_geo_centroidPointXYZ(x0, y0, z0); | |
} | |
} | |
function d3_true() { | |
return true; | |
} | |
function d3_geo_clipPolygon(segments, compare, inside, interpolate, listener) { | |
var subject = [], clip = []; | |
segments.forEach(function(segment) { | |
if ((n = segment.length - 1) <= 0) return; | |
var n, p0 = segment[0], p1 = segment[n]; | |
if (d3_geo_sphericalEqual(p0, p1)) { | |
listener.lineStart(); | |
for (var i = 0; i < n; ++i) listener.point((p0 = segment[i])[0], p0[1]); | |
listener.lineEnd(); | |
return; | |
} | |
var a = { | |
point: p0, | |
points: segment, | |
other: null, | |
visited: false, | |
entry: true, | |
subject: true | |
}, b = { | |
point: p0, | |
points: [ p0 ], | |
other: a, | |
visited: false, | |
entry: false, | |
subject: false | |
}; | |
a.other = b; | |
subject.push(a); | |
clip.push(b); | |
a = { | |
point: p1, | |
points: [ p1 ], | |
other: null, | |
visited: false, | |
entry: false, | |
subject: true | |
}; | |
b = { | |
point: p1, | |
points: [ p1 ], | |
other: a, | |
visited: false, | |
entry: true, | |
subject: false | |
}; | |
a.other = b; | |
subject.push(a); | |
clip.push(b); | |
}); | |
clip.sort(compare); | |
d3_geo_clipPolygonLinkCircular(subject); | |
d3_geo_clipPolygonLinkCircular(clip); | |
if (!subject.length) return; | |
if (inside) for (var i = 1, e = !inside(clip[0].point), n = clip.length; i < n; ++i) { | |
clip[i].entry = e = !e; | |
} | |
var start = subject[0], current, points, point; | |
while (1) { | |
current = start; | |
while (current.visited) if ((current = current.next) === start) return; | |
points = current.points; | |
listener.lineStart(); | |
do { | |
current.visited = current.other.visited = true; | |
if (current.entry) { | |
if (current.subject) { | |
for (var i = 0; i < points.length; i++) listener.point((point = points[i])[0], point[1]); | |
} else { | |
interpolate(current.point, current.next.point, 1, listener); | |
} | |
current = current.next; | |
} else { | |
if (current.subject) { | |
points = current.prev.points; | |
for (var i = points.length; --i >= 0; ) listener.point((point = points[i])[0], point[1]); | |
} else { | |
interpolate(current.point, current.prev.point, -1, listener); | |
} | |
current = current.prev; | |
} | |
current = current.other; | |
points = current.points; | |
} while (!current.visited); | |
listener.lineEnd(); | |
} | |
} | |
function d3_geo_clipPolygonLinkCircular(array) { | |
if (!(n = array.length)) return; | |
var n, i = 0, a = array[0], b; | |
while (++i < n) { | |
a.next = b = array[i]; | |
b.prev = a; | |
a = b; | |
} | |
a.next = b = array[0]; | |
b.prev = a; | |
} | |
function d3_geo_clip(pointVisible, clipLine, interpolate, polygonContains) { | |
return function(listener) { | |
var line = clipLine(listener); | |
var clip = { | |
point: point, | |
lineStart: lineStart, | |
lineEnd: lineEnd, | |
polygonStart: function() { | |
clip.point = pointRing; | |
clip.lineStart = ringStart; | |
clip.lineEnd = ringEnd; | |
segments = []; | |
polygon = []; | |
listener.polygonStart(); | |
}, | |
polygonEnd: function() { | |
clip.point = point; | |
clip.lineStart = lineStart; | |
clip.lineEnd = lineEnd; | |
segments = d3.merge(segments); | |
if (segments.length) { | |
d3_geo_clipPolygon(segments, d3_geo_clipSort, null, interpolate, listener); | |
} else if (polygonContains(polygon)) { | |
listener.lineStart(); | |
interpolate(null, null, 1, listener); | |
listener.lineEnd(); | |
} | |
listener.polygonEnd(); | |
segments = polygon = null; | |
}, | |
sphere: function() { | |
listener.polygonStart(); | |
listener.lineStart(); | |
interpolate(null, null, 1, listener); | |
listener.lineEnd(); | |
listener.polygonEnd(); | |
} | |
}; | |
function point(λ, φ) { | |
if (pointVisible(λ, φ)) listener.point(λ, φ); | |
} | |
function pointLine(λ, φ) { | |
line.point(λ, φ); | |
} | |
function lineStart() { | |
clip.point = pointLine; | |
line.lineStart(); | |
} | |
function lineEnd() { | |
clip.point = point; | |
line.lineEnd(); | |
} | |
var segments; | |
var buffer = d3_geo_clipBufferListener(), ringListener = clipLine(buffer), polygon, ring; | |
function pointRing(λ, φ) { | |
ringListener.point(λ, φ); | |
ring.push([ λ, φ ]); | |
} | |
function ringStart() { | |
ringListener.lineStart(); | |
ring = []; | |
} | |
function ringEnd() { | |
pointRing(ring[0][0], ring[0][1]); | |
ringListener.lineEnd(); | |
var clean = ringListener.clean(), ringSegments = buffer.buffer(), segment, n = ringSegments.length; | |
ring.pop(); | |
polygon.push(ring); | |
ring = null; | |
if (!n) return; | |
if (clean & 1) { | |
segment = ringSegments[0]; | |
var n = segment.length - 1, i = -1, point; | |
listener.lineStart(); | |
while (++i < n) listener.point((point = segment[i])[0], point[1]); | |
listener.lineEnd(); | |
return; | |
} | |
if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift())); | |
segments.push(ringSegments.filter(d3_geo_clipSegmentLength1)); | |
} | |
return clip; | |
}; | |
} | |
function d3_geo_clipSegmentLength1(segment) { | |
return segment.length > 1; | |
} | |
function d3_geo_clipBufferListener() { | |
var lines = [], line; | |
return { | |
lineStart: function() { | |
lines.push(line = []); | |
}, | |
point: function(λ, φ) { | |
line.push([ λ, φ ]); | |
}, | |
lineEnd: d3_noop, | |
buffer: function() { | |
var buffer = lines; | |
lines = []; | |
line = null; | |
return buffer; | |
}, | |
rejoin: function() { | |
if (lines.length > 1) lines.push(lines.pop().concat(lines.shift())); | |
} | |
}; | |
} | |
function d3_geo_clipSort(a, b) { | |
return ((a = a.point)[0] < 0 ? a[1] - π / 2 - ε : π / 2 - a[1]) - ((b = b.point)[0] < 0 ? b[1] - π / 2 - ε : π / 2 - b[1]); | |
} | |
function d3_geo_pointInPolygon(point, polygon) { | |
var meridian = point[0], parallel = point[1], meridianNormal = [ Math.sin(meridian), -Math.cos(meridian), 0 ], polarAngle = 0, polar = false, southPole = false, winding = 0; | |
d3_geo_areaRingSum.reset(); | |
for (var i = 0, n = polygon.length; i < n; ++i) { | |
var ring = polygon[i], m = ring.length; | |
if (!m) continue; | |
var point0 = ring[0], λ0 = point0[0], φ0 = point0[1] / 2 + π / 4, sinφ0 = Math.sin(φ0), cosφ0 = Math.cos(φ0), j = 1; | |
while (true) { | |
if (j === m) j = 0; | |
point = ring[j]; | |
var λ = point[0], φ = point[1] / 2 + π / 4, sinφ = Math.sin(φ), cosφ = Math.cos(φ), dλ = λ - λ0, antimeridian = Math.abs(dλ) > π, k = sinφ0 * sinφ; | |
d3_geo_areaRingSum.add(Math.atan2(k * Math.sin(dλ), cosφ0 * cosφ + k * Math.cos(dλ))); | |
if (Math.abs(φ) < ε) southPole = true; | |
polarAngle += antimeridian ? dλ + (dλ >= 0 ? 2 : -2) * π : dλ; | |
if (antimeridian ^ λ0 >= meridian ^ λ >= meridian) { | |
var arc = d3_geo_cartesianCross(d3_geo_cartesian(point0), d3_geo_cartesian(point)); | |
d3_geo_cartesianNormalize(arc); | |
var intersection = d3_geo_cartesianCross(meridianNormal, arc); | |
d3_geo_cartesianNormalize(intersection); | |
var φarc = (antimeridian ^ dλ >= 0 ? -1 : 1) * d3_asin(intersection[2]); | |
if (parallel > φarc) { | |
winding += antimeridian ^ dλ >= 0 ? 1 : -1; | |
} | |
} | |
if (!j++) break; | |
λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ, point0 = point; | |
} | |
if (Math.abs(polarAngle) > ε) polar = true; | |
} | |
return (!southPole && !polar && d3_geo_areaRingSum < 0 || polarAngle < -ε) ^ winding & 1; | |
} | |
var d3_geo_clipAntimeridian = d3_geo_clip(d3_true, d3_geo_clipAntimeridianLine, d3_geo_clipAntimeridianInterpolate, d3_geo_clipAntimeridianPolygonContains); | |
function d3_geo_clipAntimeridianLine(listener) { | |
var λ0 = NaN, φ0 = NaN, sλ0 = NaN, clean; | |
return { | |
lineStart: function() { | |
listener.lineStart(); | |
clean = 1; | |
}, | |
point: function(λ1, φ1) { | |
var sλ1 = λ1 > 0 ? π : -π, dλ = Math.abs(λ1 - λ0); | |
if (Math.abs(dλ - π) < ε) { | |
listener.point(λ0, φ0 = (φ0 + φ1) / 2 > 0 ? π / 2 : -π / 2); | |
listener.point(sλ0, φ0); | |
listener.lineEnd(); | |
listener.lineStart(); | |
listener.point(sλ1, φ0); | |
listener.point(λ1, φ0); | |
clean = 0; | |
} else if (sλ0 !== sλ1 && dλ >= π) { | |
if (Math.abs(λ0 - sλ0) < ε) λ0 -= sλ0 * ε; | |
if (Math.abs(λ1 - sλ1) < ε) λ1 -= sλ1 * ε; | |
φ0 = d3_geo_clipAntimeridianIntersect(λ0, φ0, λ1, φ1); | |
listener.point(sλ0, φ0); | |
listener.lineEnd(); | |
listener.lineStart(); | |
listener.point(sλ1, φ0); | |
clean = 0; | |
} | |
listener.point(λ0 = λ1, φ0 = φ1); | |
sλ0 = sλ1; | |
}, | |
lineEnd: function() { | |
listener.lineEnd(); | |
λ0 = φ0 = NaN; | |
}, | |
clean: function() { | |
return 2 - clean; | |
} | |
}; | |
} | |
function d3_geo_clipAntimeridianIntersect(λ0, φ0, λ1, φ1) { | |
var cosφ0, cosφ1, sinλ0_λ1 = Math.sin(λ0 - λ1); | |
return Math.abs(sinλ0_λ1) > ε ? Math.atan((Math.sin(φ0) * (cosφ1 = Math.cos(φ1)) * Math.sin(λ1) - Math.sin(φ1) * (cosφ0 = Math.cos(φ0)) * Math.sin(λ0)) / (cosφ0 * cosφ1 * sinλ0_λ1)) : (φ0 + φ1) / 2; | |
} | |
function d3_geo_clipAntimeridianInterpolate(from, to, direction, listener) { | |
var φ; | |
if (from == null) { | |
φ = direction * π / 2; | |
listener.point(-π, φ); | |
listener.point(0, φ); | |
listener.point(π, φ); | |
listener.point(π, 0); | |
listener.point(π, -φ); | |
listener.point(0, -φ); | |
listener.point(-π, -φ); | |
listener.point(-π, 0); | |
listener.point(-π, φ); | |
} else if (Math.abs(from[0] - to[0]) > ε) { | |
var s = (from[0] < to[0] ? 1 : -1) * π; | |
φ = direction * s / 2; | |
listener.point(-s, φ); | |
listener.point(0, φ); | |
listener.point(s, φ); | |
} else { | |
listener.point(to[0], to[1]); | |
} | |
} | |
var d3_geo_clipAntimeridianPoint = [ -π, 0 ]; | |
function d3_geo_clipAntimeridianPolygonContains(polygon) { | |
return d3_geo_pointInPolygon(d3_geo_clipAntimeridianPoint, polygon); | |
} | |
function d3_geo_clipCircle(radius) { | |
var cr = Math.cos(radius), smallRadius = cr > 0, point = [ radius, 0 ], notHemisphere = Math.abs(cr) > ε, interpolate = d3_geo_circleInterpolate(radius, 6 * d3_radians); | |
return d3_geo_clip(visible, clipLine, interpolate, polygonContains); | |
function visible(λ, φ) { | |
return Math.cos(λ) * Math.cos(φ) > cr; | |
} | |
function clipLine(listener) { | |
var point0, c0, v0, v00, clean; | |
return { | |
lineStart: function() { | |
v00 = v0 = false; | |
clean = 1; | |
}, | |
point: function(λ, φ) { | |
var point1 = [ λ, φ ], point2, v = visible(λ, φ), c = smallRadius ? v ? 0 : code(λ, φ) : v ? code(λ + (λ < 0 ? π : -π), φ) : 0; | |
if (!point0 && (v00 = v0 = v)) listener.lineStart(); | |
if (v !== v0) { | |
point2 = intersect(point0, point1); | |
if (d3_geo_sphericalEqual(point0, point2) || d3_geo_sphericalEqual(point1, point2)) { | |
point1[0] += ε; | |
point1[1] += ε; | |
v = visible(point1[0], point1[1]); | |
} | |
} | |
if (v !== v0) { | |
clean = 0; | |
if (v) { | |
listener.lineStart(); | |
point2 = intersect(point1, point0); | |
listener.point(point2[0], point2[1]); | |
} else { | |
point2 = intersect(point0, point1); | |
listener.point(point2[0], point2[1]); | |
listener.lineEnd(); | |
} | |
point0 = point2; | |
} else if (notHemisphere && point0 && smallRadius ^ v) { | |
var t; | |
if (!(c & c0) && (t = intersect(point1, point0, true))) { | |
clean = 0; | |
if (smallRadius) { | |
listener.lineStart(); | |
listener.point(t[0][0], t[0][1]); | |
listener.point(t[1][0], t[1][1]); | |
listener.lineEnd(); | |
} else { | |
listener.point(t[1][0], t[1][1]); | |
listener.lineEnd(); | |
listener.lineStart(); | |
listener.point(t[0][0], t[0][1]); | |
} | |
} | |
} | |
if (v && (!point0 || !d3_geo_sphericalEqual(point0, point1))) { | |
listener.point(point1[0], point1[1]); | |
} | |
point0 = point1, v0 = v, c0 = c; | |
}, | |
lineEnd: function() { | |
if (v0) listener.lineEnd(); | |
point0 = null; | |
}, | |
clean: function() { | |
return clean | (v00 && v0) << 1; | |
} | |
}; | |
} | |
function intersect(a, b, two) { | |
var pa = d3_geo_cartesian(a), pb = d3_geo_cartesian(b); | |
var n1 = [ 1, 0, 0 ], n2 = d3_geo_cartesianCross(pa, pb), n2n2 = d3_geo_cartesianDot(n2, n2), n1n2 = n2[0], determinant = n2n2 - n1n2 * n1n2; | |
if (!determinant) return !two && a; | |
var c1 = cr * n2n2 / determinant, c2 = -cr * n1n2 / determinant, n1xn2 = d3_geo_cartesianCross(n1, n2), A = d3_geo_cartesianScale(n1, c1), B = d3_geo_cartesianScale(n2, c2); | |
d3_geo_cartesianAdd(A, B); | |
var u = n1xn2, w = d3_geo_cartesianDot(A, u), uu = d3_geo_cartesianDot(u, u), t2 = w * w - uu * (d3_geo_cartesianDot(A, A) - 1); | |
if (t2 < 0) return; | |
var t = Math.sqrt(t2), q = d3_geo_cartesianScale(u, (-w - t) / uu); | |
d3_geo_cartesianAdd(q, A); | |
q = d3_geo_spherical(q); | |
if (!two) return q; | |
var λ0 = a[0], λ1 = b[0], φ0 = a[1], φ1 = b[1], z; | |
if (λ1 < λ0) z = λ0, λ0 = λ1, λ1 = z; | |
var δλ = λ1 - λ0, polar = Math.abs(δλ - π) < ε, meridian = polar || δλ < ε; | |
if (!polar && φ1 < φ0) z = φ0, φ0 = φ1, φ1 = z; | |
if (meridian ? polar ? φ0 + φ1 > 0 ^ q[1] < (Math.abs(q[0] - λ0) < ε ? φ0 : φ1) : φ0 <= q[1] && q[1] <= φ1 : δλ > π ^ (λ0 <= q[0] && q[0] <= λ1)) { | |
var q1 = d3_geo_cartesianScale(u, (-w + t) / uu); | |
d3_geo_cartesianAdd(q1, A); | |
return [ q, d3_geo_spherical(q1) ]; | |
} | |
} | |
function code(λ, φ) { | |
var r = smallRadius ? radius : π - radius, code = 0; | |
if (λ < -r) code |= 1; else if (λ > r) code |= 2; | |
if (φ < -r) code |= 4; else if (φ > r) code |= 8; | |
return code; | |
} | |
function polygonContains(polygon) { | |
return d3_geo_pointInPolygon(point, polygon); | |
} | |
} | |
var d3_geo_clipViewMAX = 1e9; | |
function d3_geo_clipView(x0, y0, x1, y1) { | |
return function(listener) { | |
var listener_ = listener, bufferListener = d3_geo_clipBufferListener(), segments, polygon, ring; | |
var clip = { | |
point: point, | |
lineStart: lineStart, | |
lineEnd: lineEnd, | |
polygonStart: function() { | |
listener = bufferListener; | |
segments = []; | |
polygon = []; | |
}, | |
polygonEnd: function() { | |
listener = listener_; | |
if ((segments = d3.merge(segments)).length) { | |
listener.polygonStart(); | |
d3_geo_clipPolygon(segments, compare, inside, interpolate, listener); | |
listener.polygonEnd(); | |
} else if (insidePolygon([ x0, y0 ])) { | |
listener.polygonStart(), listener.lineStart(); | |
interpolate(null, null, 1, listener); | |
listener.lineEnd(), listener.polygonEnd(); | |
} | |
segments = polygon = ring = null; | |
} | |
}; | |
function inside(point) { | |
var a = corner(point, -1), i = insidePolygon([ a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0 ]); | |
return i; | |
} | |
function insidePolygon(p) { | |
var wn = 0, n = polygon.length, y = p[1]; | |
for (var i = 0; i < n; ++i) { | |
for (var j = 1, v = polygon[i], m = v.length, a = v[0], b; j < m; ++j) { | |
b = v[j]; | |
if (a[1] <= y) { | |
if (b[1] > y && isLeft(a, b, p) > 0) ++wn; | |
} else { | |
if (b[1] <= y && isLeft(a, b, p) < 0) --wn; | |
} | |
a = b; | |
} | |
} | |
return wn !== 0; | |
} | |
function isLeft(a, b, c) { | |
return (b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1]); | |
} | |
function interpolate(from, to, direction, listener) { | |
var a = 0, a1 = 0; | |
if (from == null || (a = corner(from, direction)) !== (a1 = corner(to, direction)) || comparePoints(from, to) < 0 ^ direction > 0) { | |
do { | |
listener.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0); | |
} while ((a = (a + direction + 4) % 4) !== a1); | |
} else { | |
listener.point(to[0], to[1]); | |
} | |
} | |
function visible(x, y) { | |
return x0 <= x && x <= x1 && y0 <= y && y <= y1; | |
} | |
function point(x, y) { | |
if (visible(x, y)) listener.point(x, y); | |
} | |
var x__, y__, v__, x_, y_, v_, first; | |
function lineStart() { | |
clip.point = linePoint; | |
if (polygon) polygon.push(ring = []); | |
first = true; | |
v_ = false; | |
x_ = y_ = NaN; | |
} | |
function lineEnd() { | |
if (segments) { | |
linePoint(x__, y__); | |
if (v__ && v_) bufferListener.rejoin(); | |
segments.push(bufferListener.buffer()); | |
} | |
clip.point = point; | |
if (v_) listener.lineEnd(); | |
} | |
function linePoint(x, y) { | |
x = Math.max(-d3_geo_clipViewMAX, Math.min(d3_geo_clipViewMAX, x)); | |
y = Math.max(-d3_geo_clipViewMAX, Math.min(d3_geo_clipViewMAX, y)); | |
var v = visible(x, y); | |
if (polygon) ring.push([ x, y ]); | |
if (first) { | |
x__ = x, y__ = y, v__ = v; | |
first = false; | |
if (v) { | |
listener.lineStart(); | |
listener.point(x, y); | |
} | |
} else { | |
if (v && v_) listener.point(x, y); else { | |
var a = [ x_, y_ ], b = [ x, y ]; | |
if (clipLine(a, b)) { | |
if (!v_) { | |
listener.lineStart(); | |
listener.point(a[0], a[1]); | |
} | |
listener.point(b[0], b[1]); | |
if (!v) listener.lineEnd(); | |
} else if (v) { | |
listener.lineStart(); | |
listener.point(x, y); | |
} | |
} | |
} | |
x_ = x, y_ = y, v_ = v; | |
} | |
return clip; | |
}; | |
function corner(p, direction) { | |
return Math.abs(p[0] - x0) < ε ? direction > 0 ? 0 : 3 : Math.abs(p[0] - x1) < ε ? direction > 0 ? 2 : 1 : Math.abs(p[1] - y0) < ε ? direction > 0 ? 1 : 0 : direction > 0 ? 3 : 2; | |
} | |
function compare(a, b) { | |
return comparePoints(a.point, b.point); | |
} | |
function comparePoints(a, b) { | |
var ca = corner(a, 1), cb = corner(b, 1); | |
return ca !== cb ? ca - cb : ca === 0 ? b[1] - a[1] : ca === 1 ? a[0] - b[0] : ca === 2 ? a[1] - b[1] : b[0] - a[0]; | |
} | |
function clipLine(a, b) { | |
var dx = b[0] - a[0], dy = b[1] - a[1], t = [ 0, 1 ]; | |
if (Math.abs(dx) < ε && Math.abs(dy) < ε) return x0 <= a[0] && a[0] <= x1 && y0 <= a[1] && a[1] <= y1; | |
if (d3_geo_clipViewT(x0 - a[0], dx, t) && d3_geo_clipViewT(a[0] - x1, -dx, t) && d3_geo_clipViewT(y0 - a[1], dy, t) && d3_geo_clipViewT(a[1] - y1, -dy, t)) { | |
if (t[1] < 1) { | |
b[0] = a[0] + t[1] * dx; | |
b[1] = a[1] + t[1] * dy; | |
} | |
if (t[0] > 0) { | |
a[0] += t[0] * dx; | |
a[1] += t[0] * dy; | |
} | |
return true; | |
} | |
return false; | |
} | |
} | |
function d3_geo_clipViewT(num, denominator, t) { | |
if (Math.abs(denominator) < ε) return num <= 0; | |
var u = num / denominator; | |
if (denominator > 0) { | |
if (u > t[1]) return false; | |
if (u > t[0]) t[0] = u; | |
} else { | |
if (u < t[0]) return false; | |
if (u < t[1]) t[1] = u; | |
} | |
return true; | |
} | |
function d3_geo_compose(a, b) { | |
function compose(x, y) { | |
return x = a(x, y), b(x[0], x[1]); | |
} | |
if (a.invert && b.invert) compose.invert = function(x, y) { | |
return x = b.invert(x, y), x && a.invert(x[0], x[1]); | |
}; | |
return compose; | |
} | |
function d3_geo_conic(projectAt) { | |
var φ0 = 0, φ1 = π / 3, m = d3_geo_projectionMutator(projectAt), p = m(φ0, φ1); | |
p.parallels = function(_) { | |
if (!arguments.length) return [ φ0 / π * 180, φ1 / π * 180 ]; | |
return m(φ0 = _[0] * π / 180, φ1 = _[1] * π / 180); | |
}; | |
return p; | |
} | |
function d3_geo_conicEqualArea(φ0, φ1) { | |
var sinφ0 = Math.sin(φ0), n = (sinφ0 + Math.sin(φ1)) / 2, C = 1 + sinφ0 * (2 * n - sinφ0), ρ0 = Math.sqrt(C) / n; | |
function forward(λ, φ) { | |
var ρ = Math.sqrt(C - 2 * n * Math.sin(φ)) / n; | |
return [ ρ * Math.sin(λ *= n), ρ0 - ρ * Math.cos(λ) ]; | |
} | |
forward.invert = function(x, y) { | |
var ρ0_y = ρ0 - y; | |
return [ Math.atan2(x, ρ0_y) / n, d3_asin((C - (x * x + ρ0_y * ρ0_y) * n * n) / (2 * n)) ]; | |
}; | |
return forward; | |
} | |
(d3.geo.conicEqualArea = function() { | |
return d3_geo_conic(d3_geo_conicEqualArea); | |
}).raw = d3_geo_conicEqualArea; | |
d3.geo.albers = function() { | |
return d3.geo.conicEqualArea().rotate([ 96, 0 ]).center([ -.6, 38.7 ]).parallels([ 29.5, 45.5 ]).scale(1070); | |
}; | |
d3.geo.albersUsa = function() { | |
var lower48 = d3.geo.albers(); | |
var alaska = d3.geo.conicEqualArea().rotate([ 154, 0 ]).center([ -2, 58.5 ]).parallels([ 55, 65 ]); | |
var hawaii = d3.geo.conicEqualArea().rotate([ 157, 0 ]).center([ -3, 19.9 ]).parallels([ 8, 18 ]); | |
var point, pointStream = { | |
point: function(x, y) { | |
point = [ x, y ]; | |
} | |
}, lower48Point, alaskaPoint, hawaiiPoint; | |
function albersUsa(coordinates) { | |
var x = coordinates[0], y = coordinates[1]; | |
point = null; | |
(lower48Point(x, y), point) || (alaskaPoint(x, y), point) || hawaiiPoint(x, y); | |
return point; | |
} | |
albersUsa.invert = function(coordinates) { | |
var k = lower48.scale(), t = lower48.translate(), x = (coordinates[0] - t[0]) / k, y = (coordinates[1] - t[1]) / k; | |
return (y >= .12 && y < .234 && x >= -.425 && x < -.214 ? alaska : y >= .166 && y < .234 && x >= -.214 && x < -.115 ? hawaii : lower48).invert(coordinates); | |
}; | |
albersUsa.stream = function(stream) { | |
var lower48Stream = lower48.stream(stream), alaskaStream = alaska.stream(stream), hawaiiStream = hawaii.stream(stream); | |
return { | |
point: function(x, y) { | |
lower48Stream.point(x, y); | |
alaskaStream.point(x, y); | |
hawaiiStream.point(x, y); | |
}, | |
sphere: function() { | |
lower48Stream.sphere(); | |
alaskaStream.sphere(); | |
hawaiiStream.sphere(); | |
}, | |
lineStart: function() { | |
lower48Stream.lineStart(); | |
alaskaStream.lineStart(); | |
hawaiiStream.lineStart(); | |
}, | |
lineEnd: function() { | |
lower48Stream.lineEnd(); | |
alaskaStream.lineEnd(); | |
hawaiiStream.lineEnd(); | |
}, | |
polygonStart: function() { | |
lower48Stream.polygonStart(); | |
alaskaStream.polygonStart(); | |
hawaiiStream.polygonStart(); | |
}, | |
polygonEnd: function() { | |
lower48Stream.polygonEnd(); | |
alaskaStream.polygonEnd(); | |
hawaiiStream.polygonEnd(); | |
} | |
}; | |
}; | |
albersUsa.precision = function(_) { | |
if (!arguments.length) return lower48.precision(); | |
lower48.precision(_); | |
alaska.precision(_); | |
hawaii.precision(_); | |
return albersUsa; | |
}; | |
albersUsa.scale = function(_) { | |
if (!arguments.length) return lower48.scale(); | |
lower48.scale(_); | |
alaska.scale(_ * .35); | |
hawaii.scale(_); | |
return albersUsa.translate(lower48.translate()); | |
}; | |
albersUsa.translate = function(_) { | |
if (!arguments.length) return lower48.translate(); | |
var k = lower48.scale(), x = +_[0], y = +_[1]; | |
lower48Point = lower48.translate(_).clipExtent([ [ x - .455 * k, y - .238 * k ], [ x + .455 * k, y + .238 * k ] ]).stream(pointStream).point; | |
alaskaPoint = alaska.translate([ x - .307 * k, y + .201 * k ]).clipExtent([ [ x - .425 * k + ε, y + .12 * k + ε ], [ x - .214 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point; | |
hawaiiPoint = hawaii.translate([ x - .205 * k, y + .212 * k ]).clipExtent([ [ x - .214 * k + ε, y + .166 * k + ε ], [ x - .115 * k - ε, y + .234 * k - ε ] ]).stream(pointStream).point; | |
return albersUsa; | |
}; | |
return albersUsa.scale(1070); | |
}; | |
var d3_geo_pathAreaSum, d3_geo_pathAreaPolygon, d3_geo_pathArea = { | |
point: d3_noop, | |
lineStart: d3_noop, | |
lineEnd: d3_noop, | |
polygonStart: function() { | |
d3_geo_pathAreaPolygon = 0; | |
d3_geo_pathArea.lineStart = d3_geo_pathAreaRingStart; | |
}, | |
polygonEnd: function() { | |
d3_geo_pathArea.lineStart = d3_geo_pathArea.lineEnd = d3_geo_pathArea.point = d3_noop; | |
d3_geo_pathAreaSum += Math.abs(d3_geo_pathAreaPolygon / 2); | |
} | |
}; | |
function d3_geo_pathAreaRingStart() { | |
var x00, y00, x0, y0; | |
d3_geo_pathArea.point = function(x, y) { | |
d3_geo_pathArea.point = nextPoint; | |
x00 = x0 = x, y00 = y0 = y; | |
}; | |
function nextPoint(x, y) { | |
d3_geo_pathAreaPolygon += y0 * x - x0 * y; | |
x0 = x, y0 = y; | |
} | |
d3_geo_pathArea.lineEnd = function() { | |
nextPoint(x00, y00); | |
}; | |
} | |
var d3_geo_pathBoundsX0, d3_geo_pathBoundsY0, d3_geo_pathBoundsX1, d3_geo_pathBoundsY1; | |
var d3_geo_pathBounds = { | |
point: d3_geo_pathBoundsPoint, | |
lineStart: d3_noop, | |
lineEnd: d3_noop, | |
polygonStart: d3_noop, | |
polygonEnd: d3_noop | |
}; | |
function d3_geo_pathBoundsPoint(x, y) { | |
if (x < d3_geo_pathBoundsX0) d3_geo_pathBoundsX0 = x; | |
if (x > d3_geo_pathBoundsX1) d3_geo_pathBoundsX1 = x; | |
if (y < d3_geo_pathBoundsY0) d3_geo_pathBoundsY0 = y; | |
if (y > d3_geo_pathBoundsY1) d3_geo_pathBoundsY1 = y; | |
} | |
function d3_geo_pathBuffer() { | |
var pointCircle = d3_geo_pathBufferCircle(4.5), buffer = []; | |
var stream = { | |
point: point, | |
lineStart: function() { | |
stream.point = pointLineStart; | |
}, | |
lineEnd: lineEnd, | |
polygonStart: function() { | |
stream.lineEnd = lineEndPolygon; | |
}, | |
polygonEnd: function() { | |
stream.lineEnd = lineEnd; | |
stream.point = point; | |
}, | |
pointRadius: function(_) { | |
pointCircle = d3_geo_pathBufferCircle(_); | |
return stream; | |
}, | |
result: function() { | |
if (buffer.length) { | |
var result = buffer.join(""); | |
buffer = []; | |
return result; | |
} | |
} | |
}; | |
function point(x, y) { | |
buffer.push("M", x, ",", y, pointCircle); | |
} | |
function pointLineStart(x, y) { | |
buffer.push("M", x, ",", y); | |
stream.point = pointLine; | |
} | |
function pointLine(x, y) { | |
buffer.push("L", x, ",", y); | |
} | |
function lineEnd() { | |
stream.point = point; | |
} | |
function lineEndPolygon() { | |
buffer.push("Z"); | |
} | |
return stream; | |
} | |
function d3_geo_pathBufferCircle(radius) { | |
return "m0," + radius + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius + "z"; | |
} | |
var d3_geo_pathCentroid = { | |
point: d3_geo_pathCentroidPoint, | |
lineStart: d3_geo_pathCentroidLineStart, | |
lineEnd: d3_geo_pathCentroidLineEnd, | |
polygonStart: function() { | |
d3_geo_pathCentroid.lineStart = d3_geo_pathCentroidRingStart; | |
}, | |
polygonEnd: function() { | |
d3_geo_pathCentroid.point = d3_geo_pathCentroidPoint; | |
d3_geo_pathCentroid.lineStart = d3_geo_pathCentroidLineStart; | |
d3_geo_pathCentroid.lineEnd = d3_geo_pathCentroidLineEnd; | |
} | |
}; | |
function d3_geo_pathCentroidPoint(x, y) { | |
d3_geo_centroidX0 += x; | |
d3_geo_centroidY0 += y; | |
++d3_geo_centroidZ0; | |
} | |
function d3_geo_pathCentroidLineStart() { | |
var x0, y0; | |
d3_geo_pathCentroid.point = function(x, y) { | |
d3_geo_pathCentroid.point = nextPoint; | |
d3_geo_pathCentroidPoint(x0 = x, y0 = y); | |
}; | |
function nextPoint(x, y) { | |
var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy); | |
d3_geo_centroidX1 += z * (x0 + x) / 2; | |
d3_geo_centroidY1 += z * (y0 + y) / 2; | |
d3_geo_centroidZ1 += z; | |
d3_geo_pathCentroidPoint(x0 = x, y0 = y); | |
} | |
} | |
function d3_geo_pathCentroidLineEnd() { | |
d3_geo_pathCentroid.point = d3_geo_pathCentroidPoint; | |
} | |
function d3_geo_pathCentroidRingStart() { | |
var x00, y00, x0, y0; | |
d3_geo_pathCentroid.point = function(x, y) { | |
d3_geo_pathCentroid.point = nextPoint; | |
d3_geo_pathCentroidPoint(x00 = x0 = x, y00 = y0 = y); | |
}; | |
function nextPoint(x, y) { | |
var dx = x - x0, dy = y - y0, z = Math.sqrt(dx * dx + dy * dy); | |
d3_geo_centroidX1 += z * (x0 + x) / 2; | |
d3_geo_centroidY1 += z * (y0 + y) / 2; | |
d3_geo_centroidZ1 += z; | |
z = y0 * x - x0 * y; | |
d3_geo_centroidX2 += z * (x0 + x); | |
d3_geo_centroidY2 += z * (y0 + y); | |
d3_geo_centroidZ2 += z * 3; | |
d3_geo_pathCentroidPoint(x0 = x, y0 = y); | |
} | |
d3_geo_pathCentroid.lineEnd = function() { | |
nextPoint(x00, y00); | |
}; | |
} | |
function d3_geo_pathContext(context) { | |
var pointRadius = 4.5; | |
var stream = { | |
point: point, | |
lineStart: function() { | |
stream.point = pointLineStart; | |
}, | |
lineEnd: lineEnd, | |
polygonStart: function() { | |
stream.lineEnd = lineEndPolygon; | |
}, | |
polygonEnd: function() { | |
stream.lineEnd = lineEnd; | |
stream.point = point; | |
}, | |
pointRadius: function(_) { | |
pointRadius = _; | |
return stream; | |
}, | |
result: d3_noop | |
}; | |
function point(x, y) { | |
context.moveTo(x, y); | |
context.arc(x, y, pointRadius, 0, 2 * π); | |
} | |
function pointLineStart(x, y) { | |
context.moveTo(x, y); | |
stream.point = pointLine; | |
} | |
function pointLine(x, y) { | |
context.lineTo(x, y); | |
} | |
function lineEnd() { | |
stream.point = point; | |
} | |
function lineEndPolygon() { | |
context.closePath(); | |
} | |
return stream; | |
} | |
function d3_geo_resample(project) { | |
var δ2 = .5, cosMinDistance = Math.cos(30 * d3_radians), maxDepth = 16; | |
function resample(stream) { | |
var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0; | |
var resample = { | |
point: point, | |
lineStart: lineStart, | |
lineEnd: lineEnd, | |
polygonStart: function() { | |
stream.polygonStart(); | |
resample.lineStart = ringStart; | |
}, | |
polygonEnd: function() { | |
stream.polygonEnd(); | |
resample.lineStart = lineStart; | |
} | |
}; | |
function point(x, y) { | |
x = project(x, y); | |
stream.point(x[0], x[1]); | |
} | |
function lineStart() { | |
x0 = NaN; | |
resample.point = linePoint; | |
stream.lineStart(); | |
} | |
function linePoint(λ, φ) { | |
var c = d3_geo_cartesian([ λ, φ ]), p = project(λ, φ); | |
resampleLineTo(x0, y0, λ0, a0, b0, c0, x0 = p[0], y0 = p[1], λ0 = λ, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream); | |
stream.point(x0, y0); | |
} | |
function lineEnd() { | |
resample.point = point; | |
stream.lineEnd(); | |
} | |
function ringStart() { | |
lineStart(); | |
resample.point = ringPoint; | |
resample.lineEnd = ringEnd; | |
} | |
function ringPoint(λ, φ) { | |
linePoint(λ00 = λ, φ00 = φ), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0; | |
resample.point = linePoint; | |
} | |
function ringEnd() { | |
resampleLineTo(x0, y0, λ0, a0, b0, c0, x00, y00, λ00, a00, b00, c00, maxDepth, stream); | |
resample.lineEnd = lineEnd; | |
lineEnd(); | |
} | |
return resample; | |
} | |
function resampleLineTo(x0, y0, λ0, a0, b0, c0, x1, y1, λ1, a1, b1, c1, depth, stream) { | |
var dx = x1 - x0, dy = y1 - y0, d2 = dx * dx + dy * dy; | |
if (d2 > 4 * δ2 && depth--) { | |
var a = a0 + a1, b = b0 + b1, c = c0 + c1, m = Math.sqrt(a * a + b * b + c * c), φ2 = Math.asin(c /= m), λ2 = Math.abs(Math.abs(c) - 1) < ε ? (λ0 + λ1) / 2 : Math.atan2(b, a), p = project(λ2, φ2), x2 = p[0], y2 = p[1], dx2 = x2 - x0, dy2 = y2 - y0, dz = dy * dx2 - dx * dy2; | |
if (dz * dz / d2 > δ2 || Math.abs((dx * dx2 + dy * dy2) / d2 - .5) > .3 || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { | |
resampleLineTo(x0, y0, λ0, a0, b0, c0, x2, y2, λ2, a /= m, b /= m, c, depth, stream); | |
stream.point(x2, y2); | |
resampleLineTo(x2, y2, λ2, a, b, c, x1, y1, λ1, a1, b1, c1, depth, stream); | |
} | |
} | |
} | |
resample.precision = function(_) { | |
if (!arguments.length) return Math.sqrt(δ2); | |
maxDepth = (δ2 = _ * _) > 0 && 16; | |
return resample; | |
}; | |
return resample; | |
} | |
d3.geo.path = function() { | |
var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream; | |
function path(object) { | |
if (object) { | |
if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments)); | |
if (!cacheStream || !cacheStream.valid) cacheStream = projectStream(contextStream); | |
d3.geo.stream(object, cacheStream); | |
} | |
return contextStream.result(); | |
} | |
path.area = function(object) { | |
d3_geo_pathAreaSum = 0; | |
d3.geo.stream(object, projectStream(d3_geo_pathArea)); | |
return d3_geo_pathAreaSum; | |
}; | |
path.centroid = function(object) { | |
d3_geo_centroidX0 = d3_geo_centroidY0 = d3_geo_centroidZ0 = d3_geo_centroidX1 = d3_geo_centroidY1 = d3_geo_centroidZ1 = d3_geo_centroidX2 = d3_geo_centroidY2 = d3_geo_centroidZ2 = 0; | |
d3.geo.stream(object, projectStream(d3_geo_pathCentroid)); | |
return d3_geo_centroidZ2 ? [ d3_geo_centroidX2 / d3_geo_centroidZ2, d3_geo_centroidY2 / d3_geo_centroidZ2 ] : d3_geo_centroidZ1 ? [ d3_geo_centroidX1 / d3_geo_centroidZ1, d3_geo_centroidY1 / d3_geo_centroidZ1 ] : d3_geo_centroidZ0 ? [ d3_geo_centroidX0 / d3_geo_centroidZ0, d3_geo_centroidY0 / d3_geo_centroidZ0 ] : [ NaN, NaN ]; | |
}; | |
path.bounds = function(object) { | |
d3_geo_pathBoundsX1 = d3_geo_pathBoundsY1 = -(d3_geo_pathBoundsX0 = d3_geo_pathBoundsY0 = Infinity); | |
d3.geo.stream(object, projectStream(d3_geo_pathBounds)); | |
return [ [ d3_geo_pathBoundsX0, d3_geo_pathBoundsY0 ], [ d3_geo_pathBoundsX1, d3_geo_pathBoundsY1 ] ]; | |
}; | |
path.projection = function(_) { | |
if (!arguments.length) return projection; | |
projectStream = (projection = _) ? _.stream || d3_geo_pathProjectStream(_) : d3_identity; | |
return reset(); | |
}; | |
path.context = function(_) { | |
if (!arguments.length) return context; | |
contextStream = (context = _) == null ? new d3_geo_pathBuffer() : new d3_geo_pathContext(_); | |
if (typeof pointRadius !== "function") contextStream.pointRadius(pointRadius); | |
return reset(); | |
}; | |
path.pointRadius = function(_) { | |
if (!arguments.length) return pointRadius; | |
pointRadius = typeof _ === "function" ? _ : (contextStream.pointRadius(+_), +_); | |
return path; | |
}; | |
function reset() { | |
cacheStream = null; | |
return path; | |
} | |
return path.projection(d3.geo.albersUsa()).context(null); | |
}; | |
function d3_geo_pathProjectStream(project) { | |
var resample = d3_geo_resample(function(λ, φ) { | |
return project([ λ * d3_degrees, φ * d3_degrees ]); | |
}); | |
return function(stream) { | |
stream = resample(stream); | |
return { | |
point: function(λ, φ) { | |
stream.point(λ * d3_radians, φ * d3_radians); | |
}, | |
sphere: function() { | |
stream.sphere(); | |
}, | |
lineStart: function() { | |
stream.lineStart(); | |
}, | |
lineEnd: function() { | |
stream.lineEnd(); | |
}, | |
polygonStart: function() { | |
stream.polygonStart(); | |
}, | |
polygonEnd: function() { | |
stream.polygonEnd(); | |
} | |
}; | |
}; | |
} | |
d3.geo.projection = d3_geo_projection; | |
d3.geo.projectionMutator = d3_geo_projectionMutator; | |
function d3_geo_projection(project) { | |
return d3_geo_projectionMutator(function() { | |
return project; | |
})(); | |
} | |
function d3_geo_projectionMutator(projectAt) { | |
var project, rotate, projectRotate, projectResample = d3_geo_resample(function(x, y) { | |
x = project(x, y); | |
return [ x[0] * k + δx, δy - x[1] * k ]; | |
}), k = 150, x = 480, y = 250, λ = 0, φ = 0, δλ = 0, δφ = 0, δγ = 0, δx, δy, preclip = d3_geo_clipAntimeridian, postclip = d3_identity, clipAngle = null, clipExtent = null, stream; | |
function projection(point) { | |
point = projectRotate(point[0] * d3_radians, point[1] * d3_radians); | |
return [ point[0] * k + δx, δy - point[1] * k ]; | |
} | |
function invert(point) { | |
point = projectRotate.invert((point[0] - δx) / k, (δy - point[1]) / k); | |
return point && [ point[0] * d3_degrees, point[1] * d3_degrees ]; | |
} | |
projection.stream = function(output) { | |
if (stream) stream.valid = false; | |
stream = d3_geo_projectionRadiansRotate(rotate, preclip(projectResample(postclip(output)))); | |
stream.valid = true; | |
return stream; | |
}; | |
projection.clipAngle = function(_) { | |
if (!arguments.length) return clipAngle; | |
preclip = _ == null ? (clipAngle = _, d3_geo_clipAntimeridian) : d3_geo_clipCircle((clipAngle = +_) * d3_radians); | |
return invalidate(); | |
}; | |
projection.clipExtent = function(_) { | |
if (!arguments.length) return clipExtent; | |
clipExtent = _; | |
postclip = _ == null ? d3_identity : d3_geo_clipView(_[0][0], _[0][1], _[1][0], _[1][1]); | |
return invalidate(); | |
}; | |
projection.scale = function(_) { | |
if (!arguments.length) return k; | |
k = +_; | |
return reset(); | |
}; | |
projection.translate = function(_) { | |
if (!arguments.length) return [ x, y ]; | |
x = +_[0]; | |
y = +_[1]; | |
return reset(); | |
}; | |
projection.center = function(_) { | |
if (!arguments.length) return [ λ * d3_degrees, φ * d3_degrees ]; | |
λ = _[0] % 360 * d3_radians; | |
φ = _[1] % 360 * d3_radians; | |
return reset(); | |
}; | |
projection.rotate = function(_) { | |
if (!arguments.length) return [ δλ * d3_degrees, δφ * d3_degrees, δγ * d3_degrees ]; | |
δλ = _[0] % 360 * d3_radians; | |
δφ = _[1] % 360 * d3_radians; | |
δγ = _.length > 2 ? _[2] % 360 * d3_radians : 0; | |
return reset(); | |
}; | |
d3.rebind(projection, projectResample, "precision"); | |
function reset() { | |
projectRotate = d3_geo_compose(rotate = d3_geo_rotation(δλ, δφ, δγ), project); | |
var center = project(λ, φ); | |
δx = x - center[0] * k; | |
δy = y + center[1] * k; | |
return invalidate(); | |
} | |
function invalidate() { | |
if (stream) { | |
stream.valid = false; | |
stream = null; | |
} | |
return projection; | |
} | |
return function() { | |
project = projectAt.apply(this, arguments); | |
projection.invert = project.invert && invert; | |
return reset(); | |
}; | |
} | |
function d3_geo_projectionRadiansRotate(rotate, stream) { | |
return { | |
point: function(x, y) { | |
y = rotate(x * d3_radians, y * d3_radians), x = y[0]; | |
stream.point(x > π ? x - 2 * π : x < -π ? x + 2 * π : x, y[1]); | |
}, | |
sphere: function() { | |
stream.sphere(); | |
}, | |
lineStart: function() { | |
stream.lineStart(); | |
}, | |
lineEnd: function() { | |
stream.lineEnd(); | |
}, | |
polygonStart: function() { | |
stream.polygonStart(); | |
}, | |
polygonEnd: function() { | |
stream.polygonEnd(); | |
} | |
}; | |
} | |
function d3_geo_equirectangular(λ, φ) { | |
return [ λ, φ ]; | |
} | |
(d3.geo.equirectangular = function() { | |
return d3_geo_projection(d3_geo_equirectangular); | |
}).raw = d3_geo_equirectangular.invert = d3_geo_equirectangular; | |
d3.geo.rotation = function(rotate) { | |
rotate = d3_geo_rotation(rotate[0] % 360 * d3_radians, rotate[1] * d3_radians, rotate.length > 2 ? rotate[2] * d3_radians : 0); | |
function forward(coordinates) { | |
coordinates = rotate(coordinates[0] * d3_radians, coordinates[1] * d3_radians); | |
return coordinates[0] *= d3_degrees, coordinates[1] *= d3_degrees, coordinates; | |
} | |
forward.invert = function(coordinates) { | |
coordinates = rotate.invert(coordinates[0] * d3_radians, coordinates[1] * d3_radians); | |
return coordinates[0] *= d3_degrees, coordinates[1] *= d3_degrees, coordinates; | |
}; | |
return forward; | |
}; | |
function d3_geo_rotation(δλ, δφ, δγ) { | |
return δλ ? δφ || δγ ? d3_geo_compose(d3_geo_rotationλ(δλ), d3_geo_rotationφγ(δφ, δγ)) : d3_geo_rotationλ(δλ) : δφ || δγ ? d3_geo_rotationφγ(δφ, δγ) : d3_geo_equirectangular; | |
} | |
function d3_geo_forwardRotationλ(δλ) { | |
return function(λ, φ) { | |
return λ += δλ, [ λ > π ? λ - 2 * π : λ < -π ? λ + 2 * π : λ, φ ]; | |
}; | |
} | |
function d3_geo_rotationλ(δλ) { | |
var rotation = d3_geo_forwardRotationλ(δλ); | |
rotation.invert = d3_geo_forwardRotationλ(-δλ); | |
return rotation; | |
} | |
function d3_geo_rotationφγ(δφ, δγ) { | |
var cosδφ = Math.cos(δφ), sinδφ = Math.sin(δφ), cosδγ = Math.cos(δγ), sinδγ = Math.sin(δγ); | |
function rotation(λ, φ) { | |
var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδφ + x * sinδφ; | |
return [ Math.atan2(y * cosδγ - k * sinδγ, x * cosδφ - z * sinδφ), d3_asin(k * cosδγ + y * sinδγ) ]; | |
} | |
rotation.invert = function(λ, φ) { | |
var cosφ = Math.cos(φ), x = Math.cos(λ) * cosφ, y = Math.sin(λ) * cosφ, z = Math.sin(φ), k = z * cosδγ - y * sinδγ; | |
return [ Math.atan2(y * cosδγ + z * sinδγ, x * cosδφ + k * sinδφ), d3_asin(k * cosδφ - x * sinδφ) ]; | |
}; | |
return rotation; | |
} | |
d3.geo.circle = function() { | |
var origin = [ 0, 0 ], angle, precision = 6, interpolate; | |
function circle() { | |
var center = typeof origin === "function" ? origin.apply(this, arguments) : origin, rotate = d3_geo_rotation(-center[0] * d3_radians, -center[1] * d3_radians, 0).invert, ring = []; | |
interpolate(null, null, 1, { | |
point: function(x, y) { | |
ring.push(x = rotate(x, y)); | |
x[0] *= d3_degrees, x[1] *= d3_degrees; | |
} | |
}); | |
return { | |
type: "Polygon", | |
coordinates: [ ring ] | |
}; | |
} | |
circle.origin = function(x) { | |
if (!arguments.length) return origin; | |
origin = x; | |
return circle; | |
}; | |
circle.angle = function(x) { | |
if (!arguments.length) return angle; | |
interpolate = d3_geo_circleInterpolate((angle = +x) * d3_radians, precision * d3_radians); | |
return circle; | |
}; | |
circle.precision = function(_) { | |
if (!arguments.length) return precision; | |
interpolate = d3_geo_circleInterpolate(angle * d3_radians, (precision = +_) * d3_radians); | |
return circle; | |
}; | |
return circle.angle(90); | |
}; | |
function d3_geo_circleInterpolate(radius, precision) { | |
var cr = Math.cos(radius), sr = Math.sin(radius); | |
return function(from, to, direction, listener) { | |
if (from != null) { | |
from = d3_geo_circleAngle(cr, from); | |
to = d3_geo_circleAngle(cr, to); | |
if (direction > 0 ? from < to : from > to) from += direction * 2 * π; | |
} else { | |
from = radius + direction * 2 * π; | |
to = radius; | |
} | |
var point; | |
for (var step = direction * precision, t = from; direction > 0 ? t > to : t < to; t -= step) { | |
listener.point((point = d3_geo_spherical([ cr, -sr * Math.cos(t), -sr * Math.sin(t) ]))[0], point[1]); | |
} | |
}; | |
} | |
function d3_geo_circleAngle(cr, point) { | |
var a = d3_geo_cartesian(point); | |
a[0] -= cr; | |
d3_geo_cartesianNormalize(a); | |
var angle = d3_acos(-a[1]); | |
return ((-a[2] < 0 ? -angle : angle) + 2 * Math.PI - ε) % (2 * Math.PI); | |
} | |
d3.geo.distance = function(a, b) { | |
var Δλ = (b[0] - a[0]) * d3_radians, φ0 = a[1] * d3_radians, φ1 = b[1] * d3_radians, sinΔλ = Math.sin(Δλ), cosΔλ = Math.cos(Δλ), sinφ0 = Math.sin(φ0), cosφ0 = Math.cos(φ0), sinφ1 = Math.sin(φ1), cosφ1 = Math.cos(φ1), t; | |
return Math.atan2(Math.sqrt((t = cosφ1 * sinΔλ) * t + (t = cosφ0 * sinφ1 - sinφ0 * cosφ1 * cosΔλ) * t), sinφ0 * sinφ1 + cosφ0 * cosφ1 * cosΔλ); | |
}; | |
d3.geo.graticule = function() { | |
var x1, x0, X1, X0, y1, y0, Y1, Y0, dx = 10, dy = dx, DX = 90, DY = 360, x, y, X, Y, precision = 2.5; | |
function graticule() { | |
return { | |
type: "MultiLineString", | |
coordinates: lines() | |
}; | |
} | |
function lines() { | |
return d3.range(Math.ceil(X0 / DX) * DX, X1, DX).map(X).concat(d3.range(Math.ceil(Y0 / DY) * DY, Y1, DY).map(Y)).concat(d3.range(Math.ceil(x0 / dx) * dx, x1, dx).filter(function(x) { | |
return Math.abs(x % DX) > ε; | |
}).map(x)).concat(d3.range(Math.ceil(y0 / dy) * dy, y1, dy).filter(function(y) { | |
return Math.abs(y % DY) > ε; | |
}).map(y)); | |
} | |
graticule.lines = function() { | |
return lines().map(function(coordinates) { | |
return { | |
type: "LineString", | |
coordinates: coordinates | |
}; | |
}); | |
}; | |
graticule.outline = function() { | |
return { | |
type: "Polygon", | |
coordinates: [ X(X0).concat(Y(Y1).slice(1), X(X1).reverse().slice(1), Y(Y0).reverse().slice(1)) ] | |
}; | |
}; | |
graticule.extent = function(_) { | |
if (!arguments.length) return graticule.minorExtent(); | |
return graticule.majorExtent(_).minorExtent(_); | |
}; | |
graticule.majorExtent = function(_) { | |
if (!arguments.length) return [ [ X0, Y0 ], [ X1, Y1 ] ]; | |
X0 = +_[0][0], X1 = +_[1][0]; | |
Y0 = +_[0][1], Y1 = +_[1][1]; | |
if (X0 > X1) _ = X0, X0 = X1, X1 = _; | |
if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _; | |
return graticule.precision(precision); | |
}; | |
graticule.minorExtent = function(_) { | |
if (!arguments.length) return [ [ x0, y0 ], [ x1, y1 ] ]; | |
x0 = +_[0][0], x1 = +_[1][0]; | |
y0 = +_[0][1], y1 = +_[1][1]; | |
if (x0 > x1) _ = x0, x0 = x1, x1 = _; | |
if (y0 > y1) _ = y0, y0 = y1, y1 = _; | |
return graticule.precision(precision); | |
}; | |
graticule.step = function(_) { | |
if (!arguments.length) return graticule.minorStep(); | |
return graticule.majorStep(_).minorStep(_); | |
}; | |
graticule.majorStep = function(_) { | |
if (!arguments.length) return [ DX, DY ]; | |
DX = +_[0], DY = +_[1]; | |
return graticule; | |
}; | |
graticule.minorStep = function(_) { | |
if (!arguments.length) return [ dx, dy ]; | |
dx = +_[0], dy = +_[1]; | |
return graticule; | |
}; | |
graticule.precision = function(_) { | |
if (!arguments.length) return precision; | |
precision = +_; | |
x = d3_geo_graticuleX(y0, y1, 90); | |
y = d3_geo_graticuleY(x0, x1, precision); | |
X = d3_geo_graticuleX(Y0, Y1, 90); | |
Y = d3_geo_graticuleY(X0, X1, precision); | |
return graticule; | |
}; | |
return graticule.majorExtent([ [ -180, -90 + ε ], [ 180, 90 - ε ] ]).minorExtent([ [ -180, -80 - ε ], [ 180, 80 + ε ] ]); | |
}; | |
function d3_geo_graticuleX(y0, y1, dy) { | |
var y = d3.range(y0, y1 - ε, dy).concat(y1); | |
return function(x) { | |
return y.map(function(y) { | |
return [ x, y ]; | |
}); | |
}; | |
} | |
function d3_geo_graticuleY(x0, x1, dx) { | |
var x = d3.range(x0, x1 - ε, dx).concat(x1); | |
return function(y) { | |
return x.map(function(x) { | |
return [ x, y ]; | |
}); | |
}; | |
} | |
function d3_source(d) { | |
return d.source; | |
} | |
function d3_target(d) { | |
return d.target; | |
} | |
d3.geo.greatArc = function() { | |
var source = d3_source, source_, target = d3_target, target_; | |
function greatArc() { | |
return { | |
type: "LineString", | |
coordinates: [ source_ || source.apply(this, arguments), target_ || target.apply(this, arguments) ] | |
}; | |
} | |
greatArc.distance = function() { | |
return d3.geo.distance(source_ || source.apply(this, arguments), target_ || target.apply(this, arguments)); | |
}; | |
greatArc.source = function(_) { | |
if (!arguments.length) return source; | |
source = _, source_ = typeof _ === "function" ? null : _; | |
return greatArc; | |
}; | |
greatArc.target = function(_) { | |
if (!arguments.length) return target; | |
target = _, target_ = typeof _ === "function" ? null : _; | |
return greatArc; | |
}; | |
greatArc.precision = function() { | |
return arguments.length ? greatArc : 0; | |
}; | |
return greatArc; | |
}; | |
d3.geo.interpolate = function(source, target) { | |
return d3_geo_interpolate(source[0] * d3_radians, source[1] * d3_radians, target[0] * d3_radians, target[1] * d3_radians); | |
}; | |
function d3_geo_interpolate(x0, y0, x1, y1) { | |
var cy0 = Math.cos(y0), sy0 = Math.sin(y0), cy1 = Math.cos(y1), sy1 = Math.sin(y1), kx0 = cy0 * Math.cos(x0), ky0 = cy0 * Math.sin(x0), kx1 = cy1 * Math.cos(x1), ky1 = cy1 * Math.sin(x1), d = 2 * Math.asin(Math.sqrt(d3_haversin(y1 - y0) + cy0 * cy1 * d3_haversin(x1 - x0))), k = 1 / Math.sin(d); | |
var interpolate = d ? function(t) { | |
var B = Math.sin(t *= d) * k, A = Math.sin(d - t) * k, x = A * kx0 + B * kx1, y = A * ky0 + B * ky1, z = A * sy0 + B * sy1; | |
return [ Math.atan2(y, x) * d3_degrees, Math.atan2(z, Math.sqrt(x * x + y * y)) * d3_degrees ]; | |
} : function() { | |
return [ x0 * d3_degrees, y0 * d3_degrees ]; | |
}; | |
interpolate.distance = d; | |
return interpolate; | |
} | |
d3.geo.length = function(object) { | |
d3_geo_lengthSum = 0; | |
d3.geo.stream(object, d3_geo_length); | |
return d3_geo_lengthSum; | |
}; | |
var d3_geo_lengthSum; | |
var d3_geo_length = { | |
sphere: d3_noop, | |
point: d3_noop, | |
lineStart: d3_geo_lengthLineStart, | |
lineEnd: d3_noop, | |
polygonStart: d3_noop, | |
polygonEnd: d3_noop | |
}; | |
function d3_geo_lengthLineStart() { | |
var λ0, sinφ0, cosφ0; | |
d3_geo_length.point = function(λ, φ) { | |
λ0 = λ * d3_radians, sinφ0 = Math.sin(φ *= d3_radians), cosφ0 = Math.cos(φ); | |
d3_geo_length.point = nextPoint; | |
}; | |
d3_geo_length.lineEnd = function() { | |
d3_geo_length.point = d3_geo_length.lineEnd = d3_noop; | |
}; | |
function nextPoint(λ, φ) { | |
var sinφ = Math.sin(φ *= d3_radians), cosφ = Math.cos(φ), t = Math.abs((λ *= d3_radians) - λ0), cosΔλ = Math.cos(t); | |
d3_geo_lengthSum += Math.atan2(Math.sqrt((t = cosφ * Math.sin(t)) * t + (t = cosφ0 * sinφ - sinφ0 * cosφ * cosΔλ) * t), sinφ0 * sinφ + cosφ0 * cosφ * cosΔλ); | |
λ0 = λ, sinφ0 = sinφ, cosφ0 = cosφ; | |
} | |
} | |
function d3_geo_azimuthal(scale, angle) { | |
function azimuthal(λ, φ) { | |
var cosλ = Math.cos(λ), cosφ = Math.cos(φ), k = scale(cosλ * cosφ); | |
return [ k * cosφ * Math.sin(λ), k * Math.sin(φ) ]; | |
} | |
azimuthal.invert = function(x, y) { | |
var ρ = Math.sqrt(x * x + y * y), c = angle(ρ), sinc = Math.sin(c), cosc = Math.cos(c); | |
return [ Math.atan2(x * sinc, ρ * cosc), Math.asin(ρ && y * sinc / ρ) ]; | |
}; | |
return azimuthal; | |
} | |
var d3_geo_azimuthalEqualArea = d3_geo_azimuthal(function(cosλcosφ) { | |
return Math.sqrt(2 / (1 + cosλcosφ)); | |
}, function(ρ) { | |
return 2 * Math.asin(ρ / 2); | |
}); | |
(d3.geo.azimuthalEqualArea = function() { | |
return d3_geo_projection(d3_geo_azimuthalEqualArea); | |
}).raw = d3_geo_azimuthalEqualArea; | |
var d3_geo_azimuthalEquidistant = d3_geo_azimuthal(function(cosλcosφ) { | |
var c = Math.acos(cosλcosφ); | |
return c && c / Math.sin(c); | |
}, d3_identity); | |
(d3.geo.azimuthalEquidistant = function() { | |
return d3_geo_projection(d3_geo_azimuthalEquidistant); | |
}).raw = d3_geo_azimuthalEquidistant; | |
function d3_geo_conicConformal(φ0, φ1) { | |
var cosφ0 = Math.cos(φ0), t = function(φ) { | |
return Math.tan(π / 4 + φ / 2); | |
}, n = φ0 === φ1 ? Math.sin(φ0) : Math.log(cosφ0 / Math.cos(φ1)) / Math.log(t(φ1) / t(φ0)), F = cosφ0 * Math.pow(t(φ0), n) / n; | |
if (!n) return d3_geo_mercator; | |
function forward(λ, φ) { | |
var ρ = Math.abs(Math.abs(φ) - π / 2) < ε ? 0 : F / Math.pow(t(φ), n); | |
return [ ρ * Math.sin(n * λ), F - ρ * Math.cos(n * λ) ]; | |
} | |
forward.invert = function(x, y) { | |
var ρ0_y = F - y, ρ = d3_sgn(n) * Math.sqrt(x * x + ρ0_y * ρ0_y); | |
return [ Math.atan2(x, ρ0_y) / n, 2 * Math.atan(Math.pow(F / ρ, 1 / n)) - π / 2 ]; | |
}; | |
return forward; | |
} | |
(d3.geo.conicConformal = function() { | |
return d3_geo_conic(d3_geo_conicConformal); | |
}).raw = d3_geo_conicConformal; | |
function d3_geo_conicEquidistant(φ0, φ1) { | |
var cosφ0 = Math.cos(φ0), n = φ0 === φ1 ? Math.sin(φ0) : (cosφ0 - Math.cos(φ1)) / (φ1 - φ0), G = cosφ0 / n + φ0; | |
if (Math.abs(n) < ε) return d3_geo_equirectangular; | |
function forward(λ, φ) { | |
var ρ = G - φ; | |
return [ ρ * Math.sin(n * λ), G - ρ * Math.cos(n * λ) ]; | |
} | |
forward.invert = function(x, y) { | |
var ρ0_y = G - y; | |
return [ Math.atan2(x, ρ0_y) / n, G - d3_sgn(n) * Math.sqrt(x * x + ρ0_y * ρ0_y) ]; | |
}; | |
return forward; | |
} | |
(d3.geo.conicEquidistant = function() { | |
return d3_geo_conic(d3_geo_conicEquidistant); | |
}).raw = d3_geo_conicEquidistant; | |
var d3_geo_gnomonic = d3_geo_azimuthal(function(cosλcosφ) { | |
return 1 / cosλcosφ; | |
}, Math.atan); | |
(d3.geo.gnomonic = function() { | |
return d3_geo_projection(d3_geo_gnomonic); | |
}).raw = d3_geo_gnomonic; | |
function d3_geo_mercator(λ, φ) { | |
return [ λ, Math.log(Math.tan(π / 4 + φ / 2)) ]; | |
} | |
d3_geo_mercator.invert = function(x, y) { | |
return [ x, 2 * Math.atan(Math.exp(y)) - π / 2 ]; | |
}; | |
function d3_geo_mercatorProjection(project) { | |
var m = d3_geo_projection(project), scale = m.scale, translate = m.translate, clipExtent = m.clipExtent, clipAuto; | |
m.scale = function() { | |
var v = scale.apply(m, arguments); | |
return v === m ? clipAuto ? m.clipExtent(null) : m : v; | |
}; | |
m.translate = function() { | |
var v = translate.apply(m, arguments); | |
return v === m ? clipAuto ? m.clipExtent(null) : m : v; | |
}; | |
m.clipExtent = function(_) { | |
var v = clipExtent.apply(m, arguments); | |
if (v === m) { | |
if (clipAuto = _ == null) { | |
var k = π * scale(), t = translate(); | |
clipExtent([ [ t[0] - k, t[1] - k ], [ t[0] + k, t[1] + k ] ]); | |
} | |
} else if (clipAuto) { | |
v = null; | |
} | |
return v; | |
}; | |
return m.clipExtent(null); | |
} | |
(d3.geo.mercator = function() { | |
return d3_geo_mercatorProjection(d3_geo_mercator); | |
}).raw = d3_geo_mercator; | |
var d3_geo_orthographic = d3_geo_azimuthal(function() { | |
return 1; | |
}, Math.asin); | |
(d3.geo.orthographic = function() { | |
return d3_geo_projection(d3_geo_orthographic); | |
}).raw = d3_geo_orthographic; | |
var d3_geo_stereographic = d3_geo_azimuthal(function(cosλcosφ) { | |
return 1 / (1 + cosλcosφ); | |
}, function(ρ) { | |
return 2 * Math.atan(ρ); | |
}); | |
(d3.geo.stereographic = function() { | |
return d3_geo_projection(d3_geo_stereographic); | |
}).raw = d3_geo_stereographic; | |
function d3_geo_transverseMercator(λ, φ) { | |
var B = Math.cos(φ) * Math.sin(λ); | |
return [ Math.log((1 + B) / (1 - B)) / 2, Math.atan2(Math.tan(φ), Math.cos(λ)) ]; | |
} | |
d3_geo_transverseMercator.invert = function(x, y) { | |
return [ Math.atan2(d3_sinh(x), Math.cos(y)), d3_asin(Math.sin(y) / d3_cosh(x)) ]; | |
}; | |
(d3.geo.transverseMercator = function() { | |
return d3_geo_mercatorProjection(d3_geo_transverseMercator); | |
}).raw = d3_geo_transverseMercator; | |
d3.geom = {}; | |
d3.svg = {}; | |
function d3_svg_line(projection) { | |
var x = d3_svg_lineX, y = d3_svg_lineY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, tension = .7; | |
function line(data) { | |
var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y); | |
function segment() { | |
segments.push("M", interpolate(projection(points), tension)); | |
} | |
while (++i < n) { | |
if (defined.call(this, d = data[i], i)) { | |
points.push([ +fx.call(this, d, i), +fy.call(this, d, i) ]); | |
} else if (points.length) { | |
segment(); | |
points = []; | |
} | |
} | |
if (points.length) segment(); | |
return segments.length ? segments.join("") : null; | |
} | |
line.x = function(_) { | |
if (!arguments.length) return x; | |
x = _; | |
return line; | |
}; | |
line.y = function(_) { | |
if (!arguments.length) return y; | |
y = _; | |
return line; | |
}; | |
line.defined = function(_) { | |
if (!arguments.length) return defined; | |
defined = _; | |
return line; | |
}; | |
line.interpolate = function(_) { | |
if (!arguments.length) return interpolateKey; | |
if (typeof _ === "function") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key; | |
return line; | |
}; | |
line.tension = function(_) { | |
if (!arguments.length) return tension; | |
tension = _; | |
return line; | |
}; | |
return line; | |
} | |
d3.svg.line = function() { | |
return d3_svg_line(d3_identity); | |
}; | |
function d3_svg_lineX(d) { | |
return d[0]; | |
} | |
function d3_svg_lineY(d) { | |
return d[1]; | |
} | |
var d3_svg_lineInterpolators = d3.map({ | |
linear: d3_svg_lineLinear, | |
"linear-closed": d3_svg_lineLinearClosed, | |
step: d3_svg_lineStep, | |
"step-before": d3_svg_lineStepBefore, | |
"step-after": d3_svg_lineStepAfter, | |
basis: d3_svg_lineBasis, | |
"basis-open": d3_svg_lineBasisOpen, | |
"basis-closed": d3_svg_lineBasisClosed, | |
bundle: d3_svg_lineBundle, | |
cardinal: d3_svg_lineCardinal, | |
"cardinal-open": d3_svg_lineCardinalOpen, | |
"cardinal-closed": d3_svg_lineCardinalClosed, | |
monotone: d3_svg_lineMonotone | |
}); | |
d3_svg_lineInterpolators.forEach(function(key, value) { | |
value.key = key; | |
value.closed = /-closed$/.test(key); | |
}); | |
function d3_svg_lineLinear(points) { | |
return points.join("L"); | |
} | |
function d3_svg_lineLinearClosed(points) { | |
return d3_svg_lineLinear(points) + "Z"; | |
} | |
function d3_svg_lineStep(points) { | |
var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ]; | |
while (++i < n) path.push("H", (p[0] + (p = points[i])[0]) / 2, "V", p[1]); | |
if (n > 1) path.push("H", p[0]); | |
return path.join(""); | |
} | |
function d3_svg_lineStepBefore(points) { | |
var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ]; | |
while (++i < n) path.push("V", (p = points[i])[1], "H", p[0]); | |
return path.join(""); | |
} | |
function d3_svg_lineStepAfter(points) { | |
var i = 0, n = points.length, p = points[0], path = [ p[0], ",", p[1] ]; | |
while (++i < n) path.push("H", (p = points[i])[0], "V", p[1]); | |
return path.join(""); | |
} | |
function d3_svg_lineCardinalOpen(points, tension) { | |
return points.length < 4 ? d3_svg_lineLinear(points) : points[1] + d3_svg_lineHermite(points.slice(1, points.length - 1), d3_svg_lineCardinalTangents(points, tension)); | |
} | |
function d3_svg_lineCardinalClosed(points, tension) { | |
return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite((points.push(points[0]), | |
points), d3_svg_lineCardinalTangents([ points[points.length - 2] ].concat(points, [ points[1] ]), tension)); | |
} | |
function d3_svg_lineCardinal(points, tension) { | |
return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineCardinalTangents(points, tension)); | |
} | |
function d3_svg_lineHermite(points, tangents) { | |
if (tangents.length < 1 || points.length != tangents.length && points.length != tangents.length + 2) { | |
return d3_svg_lineLinear(points); | |
} | |
var quad = points.length != tangents.length, path = "", p0 = points[0], p = points[1], t0 = tangents[0], t = t0, pi = 1; | |
if (quad) { | |
path += "Q" + (p[0] - t0[0] * 2 / 3) + "," + (p[1] - t0[1] * 2 / 3) + "," + p[0] + "," + p[1]; | |
p0 = points[1]; | |
pi = 2; | |
} | |
if (tangents.length > 1) { | |
t = tangents[1]; | |
p = points[pi]; | |
pi++; | |
path += "C" + (p0[0] + t0[0]) + "," + (p0[1] + t0[1]) + "," + (p[0] - t[0]) + "," + (p[1] - t[1]) + "," + p[0] + "," + p[1]; | |
for (var i = 2; i < tangents.length; i++, pi++) { | |
p = points[pi]; | |
t = tangents[i]; | |
path += "S" + (p[0] - t[0]) + "," + (p[1] - t[1]) + "," + p[0] + "," + p[1]; | |
} | |
} | |
if (quad) { | |
var lp = points[pi]; | |
path += "Q" + (p[0] + t[0] * 2 / 3) + "," + (p[1] + t[1] * 2 / 3) + "," + lp[0] + "," + lp[1]; | |
} | |
return path; | |
} | |
function d3_svg_lineCardinalTangents(points, tension) { | |
var tangents = [], a = (1 - tension) / 2, p0, p1 = points[0], p2 = points[1], i = 1, n = points.length; | |
while (++i < n) { | |
p0 = p1; | |
p1 = p2; | |
p2 = points[i]; | |
tangents.push([ a * (p2[0] - p0[0]), a * (p2[1] - p0[1]) ]); | |
} | |
return tangents; | |
} | |
function d3_svg_lineBasis(points) { | |
if (points.length < 3) return d3_svg_lineLinear(points); | |
var i = 1, n = points.length, pi = points[0], x0 = pi[0], y0 = pi[1], px = [ x0, x0, x0, (pi = points[1])[0] ], py = [ y0, y0, y0, pi[1] ], path = [ x0, ",", y0, "L", d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ]; | |
points.push(points[n - 1]); | |
while (++i <= n) { | |
pi = points[i]; | |
px.shift(); | |
px.push(pi[0]); | |
py.shift(); | |
py.push(pi[1]); | |
d3_svg_lineBasisBezier(path, px, py); | |
} | |
points.pop(); | |
path.push("L", pi); | |
return path.join(""); | |
} | |
function d3_svg_lineBasisOpen(points) { | |
if (points.length < 4) return d3_svg_lineLinear(points); | |
var path = [], i = -1, n = points.length, pi, px = [ 0 ], py = [ 0 ]; | |
while (++i < 3) { | |
pi = points[i]; | |
px.push(pi[0]); | |
py.push(pi[1]); | |
} | |
path.push(d3_svg_lineDot4(d3_svg_lineBasisBezier3, px) + "," + d3_svg_lineDot4(d3_svg_lineBasisBezier3, py)); | |
--i; | |
while (++i < n) { | |
pi = points[i]; | |
px.shift(); | |
px.push(pi[0]); | |
py.shift(); | |
py.push(pi[1]); | |
d3_svg_lineBasisBezier(path, px, py); | |
} | |
return path.join(""); | |
} | |
function d3_svg_lineBasisClosed(points) { | |
var path, i = -1, n = points.length, m = n + 4, pi, px = [], py = []; | |
while (++i < 4) { | |
pi = points[i % n]; | |
px.push(pi[0]); | |
py.push(pi[1]); | |
} | |
path = [ d3_svg_lineDot4(d3_svg_lineBasisBezier3, px), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, py) ]; | |
--i; | |
while (++i < m) { | |
pi = points[i % n]; | |
px.shift(); | |
px.push(pi[0]); | |
py.shift(); | |
py.push(pi[1]); | |
d3_svg_lineBasisBezier(path, px, py); | |
} | |
return path.join(""); | |
} | |
function d3_svg_lineBundle(points, tension) { | |
var n = points.length - 1; | |
if (n) { | |
var x0 = points[0][0], y0 = points[0][1], dx = points[n][0] - x0, dy = points[n][1] - y0, i = -1, p, t; | |
while (++i <= n) { | |
p = points[i]; | |
t = i / n; | |
p[0] = tension * p[0] + (1 - tension) * (x0 + t * dx); | |
p[1] = tension * p[1] + (1 - tension) * (y0 + t * dy); | |
} | |
} | |
return d3_svg_lineBasis(points); | |
} | |
function d3_svg_lineDot4(a, b) { | |
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]; | |
} | |
var d3_svg_lineBasisBezier1 = [ 0, 2 / 3, 1 / 3, 0 ], d3_svg_lineBasisBezier2 = [ 0, 1 / 3, 2 / 3, 0 ], d3_svg_lineBasisBezier3 = [ 0, 1 / 6, 2 / 3, 1 / 6 ]; | |
function d3_svg_lineBasisBezier(path, x, y) { | |
path.push("C", d3_svg_lineDot4(d3_svg_lineBasisBezier1, x), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier1, y), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier2, x), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier2, y), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, x), ",", d3_svg_lineDot4(d3_svg_lineBasisBezier3, y)); | |
} | |
function d3_svg_lineSlope(p0, p1) { | |
return (p1[1] - p0[1]) / (p1[0] - p0[0]); | |
} | |
function d3_svg_lineFiniteDifferences(points) { | |
var i = 0, j = points.length - 1, m = [], p0 = points[0], p1 = points[1], d = m[0] = d3_svg_lineSlope(p0, p1); | |
while (++i < j) { | |
m[i] = (d + (d = d3_svg_lineSlope(p0 = p1, p1 = points[i + 1]))) / 2; | |
} | |
m[i] = d; | |
return m; | |
} | |
function d3_svg_lineMonotoneTangents(points) { | |
var tangents = [], d, a, b, s, m = d3_svg_lineFiniteDifferences(points), i = -1, j = points.length - 1; | |
while (++i < j) { | |
d = d3_svg_lineSlope(points[i], points[i + 1]); | |
if (Math.abs(d) < 1e-6) { | |
m[i] = m[i + 1] = 0; | |
} else { | |
a = m[i] / d; | |
b = m[i + 1] / d; | |
s = a * a + b * b; | |
if (s > 9) { | |
s = d * 3 / Math.sqrt(s); | |
m[i] = s * a; | |
m[i + 1] = s * b; | |
} | |
} | |
} | |
i = -1; | |
while (++i <= j) { | |
s = (points[Math.min(j, i + 1)][0] - points[Math.max(0, i - 1)][0]) / (6 * (1 + m[i] * m[i])); | |
tangents.push([ s || 0, m[i] * s || 0 ]); | |
} | |
return tangents; | |
} | |
function d3_svg_lineMonotone(points) { | |
return points.length < 3 ? d3_svg_lineLinear(points) : points[0] + d3_svg_lineHermite(points, d3_svg_lineMonotoneTangents(points)); | |
} | |
d3.geom.hull = function(vertices) { | |
var x = d3_svg_lineX, y = d3_svg_lineY; | |
if (arguments.length) return hull(vertices); | |
function hull(data) { | |
if (data.length < 3) return []; | |
var fx = d3_functor(x), fy = d3_functor(y), n = data.length, vertices, plen = n - 1, points = [], stack = [], d, i, j, h = 0, x1, y1, x2, y2, u, v, a, sp; | |
if (fx === d3_svg_lineX && y === d3_svg_lineY) vertices = data; else for (i = 0, | |
vertices = []; i < n; ++i) { | |
vertices.push([ +fx.call(this, d = data[i], i), +fy.call(this, d, i) ]); | |
} | |
for (i = 1; i < n; ++i) { | |
if (vertices[i][1] < vertices[h][1] || vertices[i][1] == vertices[h][1] && vertices[i][0] < vertices[h][0]) h = i; | |
} | |
for (i = 0; i < n; ++i) { | |
if (i === h) continue; | |
y1 = vertices[i][1] - vertices[h][1]; | |
x1 = vertices[i][0] - vertices[h][0]; | |
points.push({ | |
angle: Math.atan2(y1, x1), | |
index: i | |
}); | |
} | |
points.sort(function(a, b) { | |
return a.angle - b.angle; | |
}); | |
a = points[0].angle; | |
v = points[0].index; | |
u = 0; | |
for (i = 1; i < plen; ++i) { | |
j = points[i].index; | |
if (a == points[i].angle) { | |
x1 = vertices[v][0] - vertices[h][0]; | |
y1 = vertices[v][1] - vertices[h][1]; | |
x2 = vertices[j][0] - vertices[h][0]; | |
y2 = vertices[j][1] - vertices[h][1]; | |
if (x1 * x1 + y1 * y1 >= x2 * x2 + y2 * y2) { | |
points[i].index = -1; | |
continue; | |
} else { | |
points[u].index = -1; | |
} | |
} | |
a = points[i].angle; | |
u = i; | |
v = j; | |
} | |
stack.push(h); | |
for (i = 0, j = 0; i < 2; ++j) { | |
if (points[j].index > -1) { | |
stack.push(points[j].index); | |
i++; | |
} | |
} | |
sp = stack.length; | |
for (;j < plen; ++j) { | |
if (points[j].index < 0) continue; | |
while (!d3_geom_hullCCW(stack[sp - 2], stack[sp - 1], points[j].index, vertices)) { | |
--sp; | |
} | |
stack[sp++] = points[j].index; | |
} | |
var poly = []; | |
for (i = sp - 1; i >= 0; --i) poly.push(data[stack[i]]); | |
return poly; | |
} | |
hull.x = function(_) { | |
return arguments.length ? (x = _, hull) : x; | |
}; | |
hull.y = function(_) { | |
return arguments.length ? (y = _, hull) : y; | |
}; | |
return hull; | |
}; | |
function d3_geom_hullCCW(i1, i2, i3, v) { | |
var t, a, b, c, d, e, f; | |
t = v[i1]; | |
a = t[0]; | |
b = t[1]; | |
t = v[i2]; | |
c = t[0]; | |
d = t[1]; | |
t = v[i3]; | |
e = t[0]; | |
f = t[1]; | |
return (f - b) * (c - a) - (d - b) * (e - a) > 0; | |
} | |
d3.geom.polygon = function(coordinates) { | |
d3_subclass(coordinates, d3_geom_polygonPrototype); | |
return coordinates; | |
}; | |
var d3_geom_polygonPrototype = d3.geom.polygon.prototype = []; | |
d3_geom_polygonPrototype.area = function() { | |
var i = -1, n = this.length, a, b = this[n - 1], area = 0; | |
while (++i < n) { | |
a = b; | |
b = this[i]; | |
area += a[1] * b[0] - a[0] * b[1]; | |
} | |
return area * .5; | |
}; | |
d3_geom_polygonPrototype.centroid = function(k) { | |
var i = -1, n = this.length, x = 0, y = 0, a, b = this[n - 1], c; | |
if (!arguments.length) k = -1 / (6 * this.area()); | |
while (++i < n) { | |
a = b; | |
b = this[i]; | |
c = a[0] * b[1] - b[0] * a[1]; | |
x += (a[0] + b[0]) * c; | |
y += (a[1] + b[1]) * c; | |
} | |
return [ x * k, y * k ]; | |
}; | |
d3_geom_polygonPrototype.clip = function(subject) { | |
var input, closed = d3_geom_polygonClosed(subject), i = -1, n = this.length - d3_geom_polygonClosed(this), j, m, a = this[n - 1], b, c, d; | |
while (++i < n) { | |
input = subject.slice(); | |
subject.length = 0; | |
b = this[i]; | |
c = input[(m = input.length - closed) - 1]; | |
j = -1; | |
while (++j < m) { | |
d = input[j]; | |
if (d3_geom_polygonInside(d, a, b)) { | |
if (!d3_geom_polygonInside(c, a, b)) { | |
subject.push(d3_geom_polygonIntersect(c, d, a, b)); | |
} | |
subject.push(d); | |
} else if (d3_geom_polygonInside(c, a, b)) { | |
subject.push(d3_geom_polygonIntersect(c, d, a, b)); | |
} | |
c = d; | |
} | |
if (closed) subject.push(subject[0]); | |
a = b; | |
} | |
return subject; | |
}; | |
function d3_geom_polygonInside(p, a, b) { | |
return (b[0] - a[0]) * (p[1] - a[1]) < (b[1] - a[1]) * (p[0] - a[0]); | |
} | |
function d3_geom_polygonIntersect(c, d, a, b) { | |
var x1 = c[0], x3 = a[0], x21 = d[0] - x1, x43 = b[0] - x3, y1 = c[1], y3 = a[1], y21 = d[1] - y1, y43 = b[1] - y3, ua = (x43 * (y1 - y3) - y43 * (x1 - x3)) / (y43 * x21 - x43 * y21); | |
return [ x1 + ua * x21, y1 + ua * y21 ]; | |
} | |
function d3_geom_polygonClosed(coordinates) { | |
var a = coordinates[0], b = coordinates[coordinates.length - 1]; | |
return !(a[0] - b[0] || a[1] - b[1]); | |
} | |
d3.geom.delaunay = function(vertices) { | |
var edges = vertices.map(function() { | |
return []; | |
}), triangles = []; | |
d3_geom_voronoiTessellate(vertices, function(e) { | |
edges[e.region.l.index].push(vertices[e.region.r.index]); | |
}); | |
edges.forEach(function(edge, i) { | |
var v = vertices[i], cx = v[0], cy = v[1]; | |
edge.forEach(function(v) { | |
v.angle = Math.atan2(v[0] - cx, v[1] - cy); | |
}); | |
edge.sort(function(a, b) { | |
return a.angle - b.angle; | |
}); | |
for (var j = 0, m = edge.length - 1; j < m; j++) { | |
triangles.push([ v, edge[j], edge[j + 1] ]); | |
} | |
}); | |
return triangles; | |
}; | |
d3.geom.voronoi = function(points) { | |
var x = d3_svg_lineX, y = d3_svg_lineY, clipPolygon = null; | |
if (arguments.length) return voronoi(points); | |
function voronoi(data) { | |
var points, polygons = data.map(function() { | |
return []; | |
}), fx = d3_functor(x), fy = d3_functor(y), d, i, n = data.length, Z = 1e6; | |
if (fx === d3_svg_lineX && fy === d3_svg_lineY) points = data; else for (points = new Array(n), | |
i = 0; i < n; ++i) { | |
points[i] = [ +fx.call(this, d = data[i], i), +fy.call(this, d, i) ]; | |
} | |
d3_geom_voronoiTessellate(points, function(e) { | |
var s1, s2, x1, x2, y1, y2; | |
if (e.a === 1 && e.b >= 0) { | |
s1 = e.ep.r; | |
s2 = e.ep.l; | |
} else { | |
s1 = e.ep.l; | |
s2 = e.ep.r; | |
} | |
if (e.a === 1) { | |
y1 = s1 ? s1.y : -Z; | |
x1 = e.c - e.b * y1; | |
y2 = s2 ? s2.y : Z; | |
x2 = e.c - e.b * y2; | |
} else { | |
x1 = s1 ? s1.x : -Z; | |
y1 = e.c - e.a * x1; | |
x2 = s2 ? s2.x : Z; | |
y2 = e.c - e.a * x2; | |
} | |
var v1 = [ x1, y1 ], v2 = [ x2, y2 ]; | |
polygons[e.region.l.index].push(v1, v2); | |
polygons[e.region.r.index].push(v1, v2); | |
}); | |
polygons = polygons.map(function(polygon, i) { | |
var cx = points[i][0], cy = points[i][1], angle = polygon.map(function(v) { | |
return Math.atan2(v[0] - cx, v[1] - cy); | |
}), order = d3.range(polygon.length).sort(function(a, b) { | |
return angle[a] - angle[b]; | |
}); | |
return order.filter(function(d, i) { | |
return !i || angle[d] - angle[order[i - 1]] > ε; | |
}).map(function(d) { | |
return polygon[d]; | |
}); | |
}); | |
polygons.forEach(function(polygon, i) { | |
var n = polygon.length; | |
if (!n) return polygon.push([ -Z, -Z ], [ -Z, Z ], [ Z, Z ], [ Z, -Z ]); | |
if (n > 2) return; | |
var p0 = points[i], p1 = polygon[0], p2 = polygon[1], x0 = p0[0], y0 = p0[1], x1 = p1[0], y1 = p1[1], x2 = p2[0], y2 = p2[1], dx = Math.abs(x2 - x1), dy = y2 - y1; | |
if (Math.abs(dy) < ε) { | |
var y = y0 < y1 ? -Z : Z; | |
polygon.push([ -Z, y ], [ Z, y ]); | |
} else if (dx < ε) { | |
var x = x0 < x1 ? -Z : Z; | |
polygon.push([ x, -Z ], [ x, Z ]); | |
} else { | |
var y = (x2 - x1) * (y1 - y0) < (x1 - x0) * (y2 - y1) ? Z : -Z, z = Math.abs(dy) - dx; | |
if (Math.abs(z) < ε) { | |
polygon.push([ dy < 0 ? y : -y, y ]); | |
} else { | |
if (z > 0) y *= -1; | |
polygon.push([ -Z, y ], [ Z, y ]); | |
} | |
} | |
}); | |
if (clipPolygon) for (i = 0; i < n; ++i) clipPolygon.clip(polygons[i]); | |
for (i = 0; i < n; ++i) polygons[i].point = data[i]; | |
return polygons; | |
} | |
voronoi.x = function(_) { | |
return arguments.length ? (x = _, voronoi) : x; | |
}; | |
voronoi.y = function(_) { | |
return arguments.length ? (y = _, voronoi) : y; | |
}; | |
voronoi.clipExtent = function(_) { | |
if (!arguments.length) return clipPolygon && [ clipPolygon[0], clipPolygon[2] ]; | |
if (_ == null) clipPolygon = null; else { | |
var x1 = +_[0][0], y1 = +_[0][1], x2 = +_[1][0], y2 = +_[1][1]; | |
clipPolygon = d3.geom.polygon([ [ x1, y1 ], [ x1, y2 ], [ x2, y2 ], [ x2, y1 ] ]); | |
} | |
return voronoi; | |
}; | |
voronoi.size = function(_) { | |
if (!arguments.length) return clipPolygon && clipPolygon[2]; | |
return voronoi.clipExtent(_ && [ [ 0, 0 ], _ ]); | |
}; | |
voronoi.links = function(data) { | |
var points, graph = data.map(function() { | |
return []; | |
}), links = [], fx = d3_functor(x), fy = d3_functor(y), d, i, n = data.length; | |
if (fx === d3_svg_lineX && fy === d3_svg_lineY) points = data; else for (points = new Array(n), | |
i = 0; i < n; ++i) { | |
points[i] = [ +fx.call(this, d = data[i], i), +fy.call(this, d, i) ]; | |
} | |
d3_geom_voronoiTessellate(points, function(e) { | |
var l = e.region.l.index, r = e.region.r.index; | |
if (graph[l][r]) return; | |
graph[l][r] = graph[r][l] = true; | |
links.push({ | |
source: data[l], | |
target: data[r] | |
}); | |
}); | |
return links; | |
}; | |
voronoi.triangles = function(data) { | |
if (x === d3_svg_lineX && y === d3_svg_lineY) return d3.geom.delaunay(data); | |
var points = new Array(n), fx = d3_functor(x), fy = d3_functor(y), d, i = -1, n = data.length; | |
while (++i < n) { | |
(points[i] = [ +fx.call(this, d = data[i], i), +fy.call(this, d, i) ]).data = d; | |
} | |
return d3.geom.delaunay(points).map(function(triangle) { | |
return triangle.map(function(point) { | |
return point.data; | |
}); | |
}); | |
}; | |
return voronoi; | |
}; | |
var d3_geom_voronoiOpposite = { | |
l: "r", | |
r: "l" | |
}; | |
function d3_geom_voronoiTessellate(points, callback) { | |
var Sites = { | |
list: points.map(function(v, i) { | |
return { | |
index: i, | |
x: v[0], | |
y: v[1] | |
}; | |
}).sort(function(a, b) { | |
return a.y < b.y ? -1 : a.y > b.y ? 1 : a.x < b.x ? -1 : a.x > b.x ? 1 : 0; | |
}), | |
bottomSite: null | |
}; | |
var EdgeList = { | |
list: [], | |
leftEnd: null, | |
rightEnd: null, | |
init: function() { | |
EdgeList.leftEnd = EdgeList.createHalfEdge(null, "l"); | |
EdgeList.rightEnd = EdgeList.createHalfEdge(null, "l"); | |
EdgeList.leftEnd.r = EdgeList.rightEnd; | |
EdgeList.rightEnd.l = EdgeList.leftEnd; | |
EdgeList.list.unshift(EdgeList.leftEnd, EdgeList.rightEnd); | |
}, | |
createHalfEdge: function(edge, side) { | |
return { | |
edge: edge, | |
side: side, | |
vertex: null, | |
l: null, | |
r: null | |
}; | |
}, | |
insert: function(lb, he) { | |
he.l = lb; | |
he.r = lb.r; | |
lb.r.l = he; | |
lb.r = he; | |
}, | |
leftBound: function(p) { | |
var he = EdgeList.leftEnd; | |
do { | |
he = he.r; | |
} while (he != EdgeList.rightEnd && Geom.rightOf(he, p)); | |
he = he.l; | |
return he; | |
}, | |
del: function(he) { | |
he.l.r = he.r; | |
he.r.l = he.l; | |
he.edge = null; | |
}, | |
right: function(he) { | |
return he.r; | |
}, | |
left: function(he) { | |
return he.l; | |
}, | |
leftRegion: function(he) { | |
return he.edge == null ? Sites.bottomSite : he.edge.region[he.side]; | |
}, | |
rightRegion: function(he) { | |
return he.edge == null ? Sites.bottomSite : he.edge.region[d3_geom_voronoiOpposite[he.side]]; | |
} | |
}; | |
var Geom = { | |
bisect: function(s1, s2) { | |
var newEdge = { | |
region: { | |
l: s1, | |
r: s2 | |
}, | |
ep: { | |
l: null, | |
r: null | |
} | |
}; | |
var dx = s2.x - s1.x, dy = s2.y - s1.y, adx = dx > 0 ? dx : -dx, ady = dy > 0 ? dy : -dy; | |
newEdge.c = s1.x * dx + s1.y * dy + (dx * dx + dy * dy) * .5; | |
if (adx > ady) { | |
newEdge.a = 1; | |
newEdge.b = dy / dx; | |
newEdge.c /= dx; | |
} else { | |
newEdge.b = 1; | |
newEdge.a = dx / dy; | |
newEdge.c /= dy; | |
} | |
return newEdge; | |
}, | |
intersect: function(el1, el2) { | |
var e1 = el1.edge, e2 = el2.edge; | |
if (!e1 || !e2 || e1.region.r == e2.region.r) { | |
return null; | |
} | |
var d = e1.a * e2.b - e1.b * e2.a; | |
if (Math.abs(d) < 1e-10) { | |
return null; | |
} | |
var xint = (e1.c * e2.b - e2.c * e1.b) / d, yint = (e2.c * e1.a - e1.c * e2.a) / d, e1r = e1.region.r, e2r = e2.region.r, el, e; | |
if (e1r.y < e2r.y || e1r.y == e2r.y && e1r.x < e2r.x) { | |
el = el1; | |
e = e1; | |
} else { | |
el = el2; | |
e = e2; | |
} | |
var rightOfSite = xint >= e.region.r.x; | |
if (rightOfSite && el.side === "l" || !rightOfSite && el.side === "r") { | |
return null; | |
} | |
return { | |
x: xint, | |
y: yint | |
}; | |
}, | |
rightOf: function(he, p) { | |
var e = he.edge, topsite = e.region.r, rightOfSite = p.x > topsite.x; | |
if (rightOfSite && he.side === "l") { | |
return 1; | |
} | |
if (!rightOfSite && he.side === "r") { | |
return 0; | |
} | |
if (e.a === 1) { | |
var dyp = p.y - topsite.y, dxp = p.x - topsite.x, fast = 0, above = 0; | |
if (!rightOfSite && e.b < 0 || rightOfSite && e.b >= 0) { | |
above = fast = dyp >= e.b * dxp; | |
} else { | |
above = p.x + p.y * e.b > e.c; | |
if (e.b < 0) { | |
above = !above; | |
} | |
if (!above) { | |
fast = 1; | |
} | |
} | |
if (!fast) { | |
var dxs = topsite.x - e.region.l.x; | |
above = e.b * (dxp * dxp - dyp * dyp) < dxs * dyp * (1 + 2 * dxp / dxs + e.b * e.b); | |
if (e.b < 0) { | |
above = !above; | |
} | |
} | |
} else { | |
var yl = e.c - e.a * p.x, t1 = p.y - yl, t2 = p.x - topsite.x, t3 = yl - topsite.y; | |
above = t1 * t1 > t2 * t2 + t3 * t3; | |
} | |
return he.side === "l" ? above : !above; | |
}, | |
endPoint: function(edge, side, site) { | |
edge.ep[side] = site; | |
if (!edge.ep[d3_geom_voronoiOpposite[side]]) return; | |
callback(edge); | |
}, | |
distance: function(s, t) { | |
var dx = s.x - t.x, dy = s.y - t.y; | |
return Math.sqrt(dx * dx + dy * dy); | |
} | |
}; | |
var EventQueue = { | |
list: [], | |
insert: function(he, site, offset) { | |
he.vertex = site; | |
he.ystar = site.y + offset; | |
for (var i = 0, list = EventQueue.list, l = list.length; i < l; i++) { | |
var next = list[i]; | |
if (he.ystar > next.ystar || he.ystar == next.ystar && site.x > next.vertex.x) { | |
continue; | |
} else { | |
break; | |
} | |
} | |
list.splice(i, 0, he); | |
}, | |
del: function(he) { | |
for (var i = 0, ls = EventQueue.list, l = ls.length; i < l && ls[i] != he; ++i) {} | |
ls.splice(i, 1); | |
}, | |
empty: function() { | |
return EventQueue.list.length === 0; | |
}, | |
nextEvent: function(he) { | |
for (var i = 0, ls = EventQueue.list, l = ls.length; i < l; ++i) { | |
if (ls[i] == he) return ls[i + 1]; | |
} | |
return null; | |
}, | |
min: function() { | |
var elem = EventQueue.list[0]; | |
return { | |
x: elem.vertex.x, | |
y: elem.ystar | |
}; | |
}, | |
extractMin: function() { | |
return EventQueue.list.shift(); | |
} | |
}; | |
EdgeList.init(); | |
Sites.bottomSite = Sites.list.shift(); | |
var newSite = Sites.list.shift(), newIntStar; | |
var lbnd, rbnd, llbnd, rrbnd, bisector; | |
var bot, top, temp, p, v; | |
var e, pm; | |
while (true) { | |
if (!EventQueue.empty()) { | |
newIntStar = EventQueue.min(); | |
} | |
if (newSite && (EventQueue.empty() || newSite.y < newIntStar.y || newSite.y == newIntStar.y && newSite.x < newIntStar.x)) { | |
lbnd = EdgeList.leftBound(newSite); | |
rbnd = EdgeList.right(lbnd); | |
bot = EdgeList.rightRegion(lbnd); | |
e = Geom.bisect(bot, newSite); | |
bisector = EdgeList.createHalfEdge(e, "l"); | |
EdgeList.insert(lbnd, bisector); | |
p = Geom.intersect(lbnd, bisector); | |
if (p) { | |
EventQueue.del(lbnd); | |
EventQueue.insert(lbnd, p, Geom.distance(p, newSite)); | |
} | |
lbnd = bisector; | |
bisector = EdgeList.createHalfEdge(e, "r"); | |
EdgeList.insert(lbnd, bisector); | |
p = Geom.intersect(bisector, rbnd); | |
if (p) { | |
EventQueue.insert(bisector, p, Geom.distance(p, newSite)); | |
} | |
newSite = Sites.list.shift(); | |
} else if (!EventQueue.empty()) { | |
lbnd = EventQueue.extractMin(); | |
llbnd = EdgeList.left(lbnd); | |
rbnd = EdgeList.right(lbnd); | |
rrbnd = EdgeList.right(rbnd); | |
bot = EdgeList.leftRegion(lbnd); | |
top = EdgeList.rightRegion(rbnd); | |
v = lbnd.vertex; | |
Geom.endPoint(lbnd.edge, lbnd.side, v); | |
Geom.endPoint(rbnd.edge, rbnd.side, v); | |
EdgeList.del(lbnd); | |
EventQueue.del(rbnd); | |
EdgeList.del(rbnd); | |
pm = "l"; | |
if (bot.y > top.y) { | |
temp = bot; | |
bot = top; | |
top = temp; | |
pm = "r"; | |
} | |
e = Geom.bisect(bot, top); | |
bisector = EdgeList.createHalfEdge(e, pm); | |
EdgeList.insert(llbnd, bisector); | |
Geom.endPoint(e, d3_geom_voronoiOpposite[pm], v); | |
p = Geom.intersect(llbnd, bisector); | |
if (p) { | |
EventQueue.del(llbnd); | |
EventQueue.insert(llbnd, p, Geom.distance(p, bot)); | |
} | |
p = Geom.intersect(bisector, rrbnd); | |
if (p) { | |
EventQueue.insert(bisector, p, Geom.distance(p, bot)); | |
} | |
} else { | |
break; | |
} | |
} | |
for (lbnd = EdgeList.right(EdgeList.leftEnd); lbnd != EdgeList.rightEnd; lbnd = EdgeList.right(lbnd)) { | |
callback(lbnd.edge); | |
} | |
} | |
d3.geom.quadtree = function(points, x1, y1, x2, y2) { | |
var x = d3_svg_lineX, y = d3_svg_lineY, compat; | |
if (compat = arguments.length) { | |
x = d3_geom_quadtreeCompatX; | |
y = d3_geom_quadtreeCompatY; | |
if (compat === 3) { | |
y2 = y1; | |
x2 = x1; | |
y1 = x1 = 0; | |
} | |
return quadtree(points); | |
} | |
function quadtree(data) { | |
var d, fx = d3_functor(x), fy = d3_functor(y), xs, ys, i, n, x1_, y1_, x2_, y2_; | |
if (x1 != null) { | |
x1_ = x1, y1_ = y1, x2_ = x2, y2_ = y2; | |
} else { | |
x2_ = y2_ = -(x1_ = y1_ = Infinity); | |
xs = [], ys = []; | |
n = data.length; | |
if (compat) for (i = 0; i < n; ++i) { | |
d = data[i]; | |
if (d.x < x1_) x1_ = d.x; | |
if (d.y < y1_) y1_ = d.y; | |
if (d.x > x2_) x2_ = d.x; | |
if (d.y > y2_) y2_ = d.y; | |
xs.push(d.x); | |
ys.push(d.y); | |
} else for (i = 0; i < n; ++i) { | |
var x_ = +fx(d = data[i], i), y_ = +fy(d, i); | |
if (x_ < x1_) x1_ = x_; | |
if (y_ < y1_) y1_ = y_; | |
if (x_ > x2_) x2_ = x_; | |
if (y_ > y2_) y2_ = y_; | |
xs.push(x_); | |
ys.push(y_); | |
} | |
} | |
var dx = x2_ - x1_, dy = y2_ - y1_; | |
if (dx > dy) y2_ = y1_ + dx; else x2_ = x1_ + dy; | |
function insert(n, d, x, y, x1, y1, x2, y2) { | |
if (isNaN(x) || isNaN(y)) return; | |
if (n.leaf) { | |
var nx = n.x, ny = n.y; | |
if (nx != null) { | |
if (Math.abs(nx - x) + Math.abs(ny - y) < .01) { | |
insertChild(n, d, x, y, x1, y1, x2, y2); | |
} else { | |
var nPoint = n.point; | |
n.x = n.y = n.point = null; | |
insertChild(n, nPoint, nx, ny, x1, y1, x2, y2); | |
insertChild(n, d, x, y, x1, y1, x2, y2); | |
} | |
} else { | |
n.x = x, n.y = y, n.point = d; | |
} | |
} else { | |
insertChild(n, d, x, y, x1, y1, x2, y2); | |
} | |
} | |
function insertChild(n, d, x, y, x1, y1, x2, y2) { | |
var sx = (x1 + x2) * .5, sy = (y1 + y2) * .5, right = x >= sx, bottom = y >= sy, i = (bottom << 1) + right; | |
n.leaf = false; | |
n = n.nodes[i] || (n.nodes[i] = d3_geom_quadtreeNode()); | |
if (right) x1 = sx; else x2 = sx; | |
if (bottom) y1 = sy; else y2 = sy; | |
insert(n, d, x, y, x1, y1, x2, y2); | |
} | |
var root = d3_geom_quadtreeNode(); | |
root.add = function(d) { | |
insert(root, d, +fx(d, ++i), +fy(d, i), x1_, y1_, x2_, y2_); | |
}; | |
root.visit = function(f) { | |
d3_geom_quadtreeVisit(f, root, x1_, y1_, x2_, y2_); | |
}; | |
i = -1; | |
if (x1 == null) { | |
while (++i < n) { | |
insert(root, data[i], xs[i], ys[i], x1_, y1_, x2_, y2_); | |
} | |
--i; | |
} else data.forEach(root.add); | |
xs = ys = data = d = null; | |
return root; | |
} | |
quadtree.x = function(_) { | |
return arguments.length ? (x = _, quadtree) : x; | |
}; | |
quadtree.y = function(_) { | |
return arguments.length ? (y = _, quadtree) : y; | |
}; | |
quadtree.extent = function(_) { | |
if (!arguments.length) return x1 == null ? null : [ [ x1, y1 ], [ x2, y2 ] ]; | |
if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = +_[0][0], y1 = +_[0][1], x2 = +_[1][0], | |
y2 = +_[1][1]; | |
return quadtree; | |
}; | |
quadtree.size = function(_) { | |
if (!arguments.length) return x1 == null ? null : [ x2 - x1, y2 - y1 ]; | |
if (_ == null) x1 = y1 = x2 = y2 = null; else x1 = y1 = 0, x2 = +_[0], y2 = +_[1]; | |
return quadtree; | |
}; | |
return quadtree; | |
}; | |
function d3_geom_quadtreeCompatX(d) { | |
return d.x; | |
} | |
function d3_geom_quadtreeCompatY(d) { | |
return d.y; | |
} | |
function d3_geom_quadtreeNode() { | |
return { | |
leaf: true, | |
nodes: [], | |
point: null, | |
x: null, | |
y: null | |
}; | |
} | |
function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) { | |
if (!f(node, x1, y1, x2, y2)) { | |
var sx = (x1 + x2) * .5, sy = (y1 + y2) * .5, children = node.nodes; | |
if (children[0]) d3_geom_quadtreeVisit(f, children[0], x1, y1, sx, sy); | |
if (children[1]) d3_geom_quadtreeVisit(f, children[1], sx, y1, x2, sy); | |
if (children[2]) d3_geom_quadtreeVisit(f, children[2], x1, sy, sx, y2); | |
if (children[3]) d3_geom_quadtreeVisit(f, children[3], sx, sy, x2, y2); | |
} | |
} | |
d3.interpolateRgb = d3_interpolateRgb; | |
function d3_interpolateRgb(a, b) { | |
a = d3.rgb(a); | |
b = d3.rgb(b); | |
var ar = a.r, ag = a.g, ab = a.b, br = b.r - ar, bg = b.g - ag, bb = b.b - ab; | |
return function(t) { | |
return "#" + d3_rgb_hex(Math.round(ar + br * t)) + d3_rgb_hex(Math.round(ag + bg * t)) + d3_rgb_hex(Math.round(ab + bb * t)); | |
}; | |
} | |
d3.interpolateObject = d3_interpolateObject; | |
function d3_interpolateObject(a, b) { | |
var i = {}, c = {}, k; | |
for (k in a) { | |
if (k in b) { | |
i[k] = d3_interpolate(a[k], b[k]); | |
} else { | |
c[k] = a[k]; | |
} | |
} | |
for (k in b) { | |
if (!(k in a)) { | |
c[k] = b[k]; | |
} | |
} | |
return function(t) { | |
for (k in i) c[k] = i[k](t); | |
return c; | |
}; | |
} | |
d3.interpolateNumber = d3_interpolateNumber; | |
function d3_interpolateNumber(a, b) { | |
b -= a = +a; | |
return function(t) { | |
return a + b * t; | |
}; | |
} | |
d3.interpolateString = d3_interpolateString; | |
function d3_interpolateString(a, b) { | |
var m, i, j, s0 = 0, s1 = 0, s = [], q = [], n, o; | |
a = a + "", b = b + ""; | |
d3_interpolate_number.lastIndex = 0; | |
for (i = 0; m = d3_interpolate_number.exec(b); ++i) { | |
if (m.index) s.push(b.substring(s0, s1 = m.index)); | |
q.push({ | |
i: s.length, | |
x: m[0] | |
}); | |
s.push(null); | |
s0 = d3_interpolate_number.lastIndex; | |
} | |
if (s0 < b.length) s.push(b.substring(s0)); | |
for (i = 0, n = q.length; (m = d3_interpolate_number.exec(a)) && i < n; ++i) { | |
o = q[i]; | |
if (o.x == m[0]) { | |
if (o.i) { | |
if (s[o.i + 1] == null) { | |
s[o.i - 1] += o.x; | |
s.splice(o.i, 1); | |
for (j = i + 1; j < n; ++j) q[j].i--; | |
} else { | |
s[o.i - 1] += o.x + s[o.i + 1]; | |
s.splice(o.i, 2); | |
for (j = i + 1; j < n; ++j) q[j].i -= 2; | |
} | |
} else { | |
if (s[o.i + 1] == null) { | |
s[o.i] = o.x; | |
} else { | |
s[o.i] = o.x + s[o.i + 1]; | |
s.splice(o.i + 1, 1); | |
for (j = i + 1; j < n; ++j) q[j].i--; | |
} | |
} | |
q.splice(i, 1); | |
n--; | |
i--; | |
} else { | |
o.x = d3_interpolateNumber(parseFloat(m[0]), parseFloat(o.x)); | |
} | |
} | |
while (i < n) { | |
o = q.pop(); | |
if (s[o.i + 1] == null) { | |
s[o.i] = o.x; | |
} else { | |
s[o.i] = o.x + s[o.i + 1]; | |
s.splice(o.i + 1, 1); | |
} | |
n--; | |
} | |
if (s.length === 1) { | |
return s[0] == null ? (o = q[0].x, function(t) { | |
return o(t) + ""; | |
}) : function() { | |
return b; | |
}; | |
} | |
return function(t) { | |
for (i = 0; i < n; ++i) s[(o = q[i]).i] = o.x(t); | |
return s.join(""); | |
}; | |
} | |
var d3_interpolate_number = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g; | |
d3.interpolate = d3_interpolate; | |
function d3_interpolate(a, b) { | |
var i = d3.interpolators.length, f; | |
while (--i >= 0 && !(f = d3.interpolators[i](a, b))) ; | |
return f; | |
} | |
d3.interpolators = [ function(a, b) { | |
var t = typeof b; | |
return (t === "string" ? d3_rgb_names.has(b) || /^(#|rgb\(|hsl\()/.test(b) ? d3_interpolateRgb : d3_interpolateString : b instanceof d3_Color ? d3_interpolateRgb : t === "object" ? Array.isArray(b) ? d3_interpolateArray : d3_interpolateObject : d3_interpolateNumber)(a, b); | |
} ]; | |
d3.interpolateArray = d3_interpolateArray; | |
function d3_interpolateArray(a, b) { | |
var x = [], c = [], na = a.length, nb = b.length, n0 = Math.min(a.length, b.length), i; | |
for (i = 0; i < n0; ++i) x.push(d3_interpolate(a[i], b[i])); | |
for (;i < na; ++i) c[i] = a[i]; | |
for (;i < nb; ++i) c[i] = b[i]; | |
return function(t) { | |
for (i = 0; i < n0; ++i) c[i] = x[i](t); | |
return c; | |
}; | |
} | |
var d3_ease_default = function() { | |
return d3_identity; | |
}; | |
var d3_ease = d3.map({ | |
linear: d3_ease_default, | |
poly: d3_ease_poly, | |
quad: function() { | |
return d3_ease_quad; | |
}, | |
cubic: function() { | |
return d3_ease_cubic; | |
}, | |
sin: function() { | |
return d3_ease_sin; | |
}, | |
exp: function() { | |
return d3_ease_exp; | |
}, | |
circle: function() { | |
return d3_ease_circle; | |
}, | |
elastic: d3_ease_elastic, | |
back: d3_ease_back, | |
bounce: function() { | |
return d3_ease_bounce; | |
} | |
}); | |
var d3_ease_mode = d3.map({ | |
"in": d3_identity, | |
out: d3_ease_reverse, | |
"in-out": d3_ease_reflect, | |
"out-in": function(f) { | |
return d3_ease_reflect(d3_ease_reverse(f)); | |
} | |
}); | |
d3.ease = function(name) { | |
var i = name.indexOf("-"), t = i >= 0 ? name.substring(0, i) : name, m = i >= 0 ? name.substring(i + 1) : "in"; | |
t = d3_ease.get(t) || d3_ease_default; | |
m = d3_ease_mode.get(m) || d3_identity; | |
return d3_ease_clamp(m(t.apply(null, Array.prototype.slice.call(arguments, 1)))); | |
}; | |
function d3_ease_clamp(f) { | |
return function(t) { | |
return t <= 0 ? 0 : t >= 1 ? 1 : f(t); | |
}; | |
} | |
function d3_ease_reverse(f) { | |
return function(t) { | |
return 1 - f(1 - t); | |
}; | |
} | |
function d3_ease_reflect(f) { | |
return function(t) { | |
return .5 * (t < .5 ? f(2 * t) : 2 - f(2 - 2 * t)); | |
}; | |
} | |
function d3_ease_quad(t) { | |
return t * t; | |
} | |
function d3_ease_cubic(t) { | |
return t * t * t; | |
} | |
function d3_ease_cubicInOut(t) { | |
if (t <= 0) return 0; | |
if (t >= 1) return 1; | |
var t2 = t * t, t3 = t2 * t; | |
return 4 * (t < .5 ? t3 : 3 * (t - t2) + t3 - .75); | |
} | |
function d3_ease_poly(e) { | |
return function(t) { | |
return Math.pow(t, e); | |
}; | |
} | |
function d3_ease_sin(t) { | |
return 1 - Math.cos(t * π / 2); | |
} | |
function d3_ease_exp(t) { | |
return Math.pow(2, 10 * (t - 1)); | |
} | |
function d3_ease_circle(t) { | |
return 1 - Math.sqrt(1 - t * t); | |
} | |
function d3_ease_elastic(a, p) { | |
var s; | |
if (arguments.length < 2) p = .45; | |
if (arguments.length) s = p / (2 * π) * Math.asin(1 / a); else a = 1, s = p / 4; | |
return function(t) { | |
return 1 + a * Math.pow(2, 10 * -t) * Math.sin((t - s) * 2 * π / p); | |
}; | |
} | |
function d3_ease_back(s) { | |
if (!s) s = 1.70158; | |
return function(t) { | |
return t * t * ((s + 1) * t - s); | |
}; | |
} | |
function d3_ease_bounce(t) { | |
return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375; | |
} | |
d3.interpolateHcl = d3_interpolateHcl; | |
function d3_interpolateHcl(a, b) { | |
a = d3.hcl(a); | |
b = d3.hcl(b); | |
var ah = a.h, ac = a.c, al = a.l, bh = b.h - ah, bc = b.c - ac, bl = b.l - al; | |
if (isNaN(bc)) bc = 0, ac = isNaN(ac) ? b.c : ac; | |
if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360; | |
return function(t) { | |
return d3_hcl_lab(ah + bh * t, ac + bc * t, al + bl * t) + ""; | |
}; | |
} | |
d3.interpolateHsl = d3_interpolateHsl; | |
function d3_interpolateHsl(a, b) { | |
a = d3.hsl(a); | |
b = d3.hsl(b); | |
var ah = a.h, as = a.s, al = a.l, bh = b.h - ah, bs = b.s - as, bl = b.l - al; | |
if (isNaN(bs)) bs = 0, as = isNaN(as) ? b.s : as; | |
if (isNaN(bh)) bh = 0, ah = isNaN(ah) ? b.h : ah; else if (bh > 180) bh -= 360; else if (bh < -180) bh += 360; | |
return function(t) { | |
return d3_hsl_rgb(ah + bh * t, as + bs * t, al + bl * t) + ""; | |
}; | |
} | |
d3.interpolateLab = d3_interpolateLab; | |
function d3_interpolateLab(a, b) { | |
a = d3.lab(a); | |
b = d3.lab(b); | |
var al = a.l, aa = a.a, ab = a.b, bl = b.l - al, ba = b.a - aa, bb = b.b - ab; | |
return function(t) { | |
return d3_lab_rgb(al + bl * t, aa + ba * t, ab + bb * t) + ""; | |
}; | |
} | |
d3.interpolateRound = d3_interpolateRound; | |
function d3_interpolateRound(a, b) { | |
b -= a; | |
return function(t) { | |
return Math.round(a + b * t); | |
}; | |
} | |
d3.transform = function(string) { | |
var g = d3_document.createElementNS(d3.ns.prefix.svg, "g"); | |
return (d3.transform = function(string) { | |
if (string != null) { | |
g.setAttribute("transform", string); | |
var t = g.transform.baseVal.consolidate(); | |
} | |
return new d3_transform(t ? t.matrix : d3_transformIdentity); | |
})(string); | |
}; | |
function d3_transform(m) { | |
var r0 = [ m.a, m.b ], r1 = [ m.c, m.d ], kx = d3_transformNormalize(r0), kz = d3_transformDot(r0, r1), ky = d3_transformNormalize(d3_transformCombine(r1, r0, -kz)) || 0; | |
if (r0[0] * r1[1] < r1[0] * r0[1]) { | |
r0[0] *= -1; | |
r0[1] *= -1; | |
kx *= -1; | |
kz *= -1; | |
} | |
this.rotate = (kx ? Math.atan2(r0[1], r0[0]) : Math.atan2(-r1[0], r1[1])) * d3_degrees; | |
this.translate = [ m.e, m.f ]; | |
this.scale = [ kx, ky ]; | |
this.skew = ky ? Math.atan2(kz, ky) * d3_degrees : 0; | |
} | |
d3_transform.prototype.toString = function() { | |
return "translate(" + this.translate + ")rotate(" + this.rotate + ")skewX(" + this.skew + ")scale(" + this.scale + ")"; | |
}; | |
function d3_transformDot(a, b) { | |
return a[0] * b[0] + a[1] * b[1]; | |
} | |
function d3_transformNormalize(a) { | |
var k = Math.sqrt(d3_transformDot(a, a)); | |
if (k) { | |
a[0] /= k; | |
a[1] /= k; | |
} | |
return k; | |
} | |
function d3_transformCombine(a, b, k) { | |
a[0] += k * b[0]; | |
a[1] += k * b[1]; | |
return a; | |
} | |
var d3_transformIdentity = { | |
a: 1, | |
b: 0, | |
c: 0, | |
d: 1, | |
e: 0, | |
f: 0 | |
}; | |
d3.interpolateTransform = d3_interpolateTransform; | |
function d3_interpolateTransform(a, b) { | |
var s = [], q = [], n, A = d3.transform(a), B = d3.transform(b), ta = A.translate, tb = B.translate, ra = A.rotate, rb = B.rotate, wa = A.skew, wb = B.skew, ka = A.scale, kb = B.scale; | |
if (ta[0] != tb[0] || ta[1] != tb[1]) { | |
s.push("translate(", null, ",", null, ")"); | |
q.push({ | |
i: 1, | |
x: d3_interpolateNumber(ta[0], tb[0]) | |
}, { | |
i: 3, | |
x: d3_interpolateNumber(ta[1], tb[1]) | |
}); | |
} else if (tb[0] || tb[1]) { | |
s.push("translate(" + tb + ")"); | |
} else { | |
s.push(""); | |
} | |
if (ra != rb) { | |
if (ra - rb > 180) rb += 360; else if (rb - ra > 180) ra += 360; | |
q.push({ | |
i: s.push(s.pop() + "rotate(", null, ")") - 2, | |
x: d3_interpolateNumber(ra, rb) | |
}); | |
} else if (rb) { | |
s.push(s.pop() + "rotate(" + rb + ")"); | |
} | |
if (wa != wb) { | |
q.push({ | |
i: s.push(s.pop() + "skewX(", null, ")") - 2, | |
x: d3_interpolateNumber(wa, wb) | |
}); | |
} else if (wb) { | |
s.push(s.pop() + "skewX(" + wb + ")"); | |
} | |
if (ka[0] != kb[0] || ka[1] != kb[1]) { | |
n = s.push(s.pop() + "scale(", null, ",", null, ")"); | |
q.push({ | |
i: n - 4, | |
x: d3_interpolateNumber(ka[0], kb[0]) | |
}, { | |
i: n - 2, | |
x: d3_interpolateNumber(ka[1], kb[1]) | |
}); | |
} else if (kb[0] != 1 || kb[1] != 1) { | |
s.push(s.pop() + "scale(" + kb + ")"); | |
} | |
n = q.length; | |
return function(t) { | |
var i = -1, o; | |
while (++i < n) s[(o = q[i]).i] = o.x(t); | |
return s.join(""); | |
}; | |
} | |
function d3_uninterpolateNumber(a, b) { | |
b = b - (a = +a) ? 1 / (b - a) : 0; | |
return function(x) { | |
return (x - a) * b; | |
}; | |
} | |
function d3_uninterpolateClamp(a, b) { | |
b = b - (a = +a) ? 1 / (b - a) : 0; | |
return function(x) { | |
return Math.max(0, Math.min(1, (x - a) * b)); | |
}; | |
} | |
d3.layout = {}; | |
d3.layout.bundle = function() { | |
return function(links) { | |
var paths = [], i = -1, n = links.length; | |
while (++i < n) paths.push(d3_layout_bundlePath(links[i])); | |
return paths; | |
}; | |
}; | |
function d3_layout_bundlePath(link) { | |
var start = link.source, end = link.target, lca = d3_layout_bundleLeastCommonAncestor(start, end), points = [ start ]; | |
while (start !== lca) { | |
start = start.parent; | |
points.push(start); | |
} | |
var k = points.length; | |
while (end !== lca) { | |
points.splice(k, 0, end); | |
end = end.parent; | |
} | |
return points; | |
} | |
function d3_layout_bundleAncestors(node) { | |
var ancestors = [], parent = node.parent; | |
while (parent != null) { | |
ancestors.push(node); | |
node = parent; | |
parent = parent.parent; | |
} | |
ancestors.push(node); | |
return ancestors; | |
} | |
function d3_layout_bundleLeastCommonAncestor(a, b) { | |
if (a === b) return a; | |
var aNodes = d3_layout_bundleAncestors(a), bNodes = d3_layout_bundleAncestors(b), aNode = aNodes.pop(), bNode = bNodes.pop(), sharedNode = null; | |
while (aNode === bNode) { | |
sharedNode = aNode; | |
aNode = aNodes.pop(); | |
bNode = bNodes.pop(); | |
} | |
return sharedNode; | |
} | |
d3.layout.chord = function() { | |
var chord = {}, chords, groups, matrix, n, padding = 0, sortGroups, sortSubgroups, sortChords; | |
function relayout() { | |
var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j; | |
chords = []; | |
groups = []; | |
k = 0, i = -1; | |
while (++i < n) { | |
x = 0, j = -1; | |
while (++j < n) { | |
x += matrix[i][j]; | |
} | |
groupSums.push(x); | |
subgroupIndex.push(d3.range(n)); | |
k += x; | |
} | |
if (sortGroups) { | |
groupIndex.sort(function(a, b) { | |
return sortGroups(groupSums[a], groupSums[b]); | |
}); | |
} | |
if (sortSubgroups) { | |
subgroupIndex.forEach(function(d, i) { | |
d.sort(function(a, b) { | |
return sortSubgroups(matrix[i][a], matrix[i][b]); | |
}); | |
}); | |
} | |
k = (2 * π - padding * n) / k; | |
x = 0, i = -1; | |
while (++i < n) { | |
x0 = x, j = -1; | |
while (++j < n) { | |
var di = groupIndex[i], dj = subgroupIndex[di][j], v = matrix[di][dj], a0 = x, a1 = x += v * k; | |
subgroups[di + "-" + dj] = { | |
index: di, | |
subindex: dj, | |
startAngle: a0, | |
endAngle: a1, | |
value: v | |
}; | |
} | |
groups[di] = { | |
index: di, | |
startAngle: x0, | |
endAngle: x, | |
value: (x - x0) / k | |
}; | |
x += padding; | |
} | |
i = -1; | |
while (++i < n) { | |
j = i - 1; | |
while (++j < n) { | |
var source = subgroups[i + "-" + j], target = subgroups[j + "-" + i]; | |
if (source.value || target.value) { | |
chords.push(source.value < target.value ? { | |
source: target, | |
target: source | |
} : { | |
source: source, | |
target: target | |
}); | |
} | |
} | |
} | |
if (sortChords) resort(); | |
} | |
function resort() { | |
chords.sort(function(a, b) { | |
return sortChords((a.source.value + a.target.value) / 2, (b.source.value + b.target.value) / 2); | |
}); | |
} | |
chord.matrix = function(x) { | |
if (!arguments.length) return matrix; | |
n = (matrix = x) && matrix.length; | |
chords = groups = null; | |
return chord; | |
}; | |
chord.padding = function(x) { | |
if (!arguments.length) return padding; | |
padding = x; | |
chords = groups = null; | |
return chord; | |
}; | |
chord.sortGroups = function(x) { | |
if (!arguments.length) return sortGroups; | |
sortGroups = x; | |
chords = groups = null; | |
return chord; | |
}; | |
chord.sortSubgroups = function(x) { | |
if (!arguments.length) return sortSubgroups; | |
sortSubgroups = x; | |
chords = null; | |
return chord; | |
}; | |
chord.sortChords = function(x) { | |
if (!arguments.length) return sortChords; | |
sortChords = x; | |
if (chords) resort(); | |
return chord; | |
}; | |
chord.chords = function() { | |
if (!chords) relayout(); | |
return chords; | |
}; | |
chord.groups = function() { | |
if (!groups) relayout(); | |
return groups; | |
}; | |
return chord; | |
}; | |
d3.layout.force = function() { | |
var force = {}, event = d3.dispatch("start", "tick", "end"), size = [ 1, 1 ], drag, alpha, friction = .9, linkDistance = d3_layout_forceLinkDistance, linkStrength = d3_layout_forceLinkStrength, charge = -30, gravity = .1, theta = .8, nodes = [], links = [], distances, strengths, charges; | |
function repulse(node) { | |
return function(quad, x1, _, x2) { | |
if (quad.point !== node) { | |
var dx = quad.cx - node.x, dy = quad.cy - node.y, dn = 1 / Math.sqrt(dx * dx + dy * dy); | |
if ((x2 - x1) * dn < theta) { | |
var k = quad.charge * dn * dn; | |
node.px -= dx * k; | |
node.py -= dy * k; | |
return true; | |
} | |
if (quad.point && isFinite(dn)) { | |
var k = quad.pointCharge * dn * dn; | |
node.px -= dx * k; | |
node.py -= dy * k; | |
} | |
} | |
return !quad.charge; | |
}; | |
} | |
force.tick = function() { | |
if ((alpha *= .99) < .005) { | |
event.end({ | |
type: "end", | |
alpha: alpha = 0 | |
}); | |
return true; | |
} | |
var n = nodes.length, m = links.length, q, i, o, s, t, l, k, x, y; | |
for (i = 0; i < m; ++i) { | |
o = links[i]; | |
s = o.source; | |
t = o.target; | |
x = t.x - s.x; | |
y = t.y - s.y; | |
if (l = x * x + y * y) { | |
l = alpha * strengths[i] * ((l = Math.sqrt(l)) - distances[i]) / l; | |
x *= l; | |
y *= l; | |
t.x -= x * (k = s.weight / (t.weight + s.weight)); | |
t.y -= y * k; | |
s.x += x * (k = 1 - k); | |
s.y += y * k; | |
} | |
} | |
if (k = alpha * gravity) { | |
x = size[0] / 2; | |
y = size[1] / 2; | |
i = -1; | |
if (k) while (++i < n) { | |
o = nodes[i]; | |
o.x += (x - o.x) * k; | |
o.y += (y - o.y) * k; | |
} | |
} | |
if (charge) { | |
d3_layout_forceAccumulate(q = d3.geom.quadtree(nodes), alpha, charges); | |
i = -1; | |
while (++i < n) { | |
if (!(o = nodes[i]).fixed) { | |
q.visit(repulse(o)); | |
} | |
} | |
} | |
i = -1; | |
while (++i < n) { | |
o = nodes[i]; | |
if (o.fixed) { | |
o.x = o.px; | |
o.y = o.py; | |
} else { | |
o.x -= (o.px - (o.px = o.x)) * friction; | |
o.y -= (o.py - (o.py = o.y)) * friction; | |
} | |
} | |
event.tick({ | |
type: "tick", | |
alpha: alpha | |
}); | |
}; | |
force.nodes = function(x) { | |
if (!arguments.length) return nodes; | |
nodes = x; | |
return force; | |
}; | |
force.links = function(x) { | |
if (!arguments.length) return links; | |
links = x; | |
return force; | |
}; | |
force.size = function(x) { | |
if (!arguments.length) return size; | |
size = x; | |
return force; | |
}; | |
force.linkDistance = function(x) { | |
if (!arguments.length) return linkDistance; | |
linkDistance = typeof x === "function" ? x : +x; | |
return force; | |
}; | |
force.distance = force.linkDistance; | |
force.linkStrength = function(x) { | |
if (!arguments.length) return linkStrength; | |
linkStrength = typeof x === "function" ? x : +x; | |
return force; | |
}; | |
force.friction = function(x) { | |
if (!arguments.length) return friction; | |
friction = +x; | |
return force; | |
}; | |
force.charge = function(x) { | |
if (!arguments.length) return charge; | |
charge = typeof x === "function" ? x : +x; | |
return force; | |
}; | |
force.gravity = function(x) { | |
if (!arguments.length) return gravity; | |
gravity = +x; | |
return force; | |
}; | |
force.theta = function(x) { | |
if (!arguments.length) return theta; | |
theta = +x; | |
return force; | |
}; | |
force.alpha = function(x) { | |
if (!arguments.length) return alpha; | |
x = +x; | |
if (alpha) { | |
if (x > 0) alpha = x; else alpha = 0; | |
} else if (x > 0) { | |
event.start({ | |
type: "start", | |
alpha: alpha = x | |
}); | |
d3.timer(force.tick); | |
} | |
return force; | |
}; | |
force.start = function() { | |
var i, j, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o; | |
for (i = 0; i < n; ++i) { | |
(o = nodes[i]).index = i; | |
o.weight = 0; | |
} | |
for (i = 0; i < m; ++i) { | |
o = links[i]; | |
if (typeof o.source == "number") o.source = nodes[o.source]; | |
if (typeof o.target == "number") o.target = nodes[o.target]; | |
++o.source.weight; | |
++o.target.weight; | |
} | |
for (i = 0; i < n; ++i) { | |
o = nodes[i]; | |
if (isNaN(o.x)) o.x = position("x", w); | |
if (isNaN(o.y)) o.y = position("y", h); | |
if (isNaN(o.px)) o.px = o.x; | |
if (isNaN(o.py)) o.py = o.y; | |
} | |
distances = []; | |
if (typeof linkDistance === "function") for (i = 0; i < m; ++i) distances[i] = +linkDistance.call(this, links[i], i); else for (i = 0; i < m; ++i) distances[i] = linkDistance; | |
strengths = []; | |
if (typeof linkStrength === "function") for (i = 0; i < m; ++i) strengths[i] = +linkStrength.call(this, links[i], i); else for (i = 0; i < m; ++i) strengths[i] = linkStrength; | |
charges = []; | |
if (typeof charge === "function") for (i = 0; i < n; ++i) charges[i] = +charge.call(this, nodes[i], i); else for (i = 0; i < n; ++i) charges[i] = charge; | |
function position(dimension, size) { | |
var neighbors = neighbor(i), j = -1, m = neighbors.length, x; | |
while (++j < m) if (!isNaN(x = neighbors[j][dimension])) return x; | |
return Math.random() * size; | |
} | |
function neighbor() { | |
if (!neighbors) { | |
neighbors = []; | |
for (j = 0; j < n; ++j) { | |
neighbors[j] = []; | |
} | |
for (j = 0; j < m; ++j) { | |
var o = links[j]; | |
neighbors[o.source.index].push(o.target); | |
neighbors[o.target.index].push(o.source); | |
} | |
} | |
return neighbors[i]; | |
} | |
return force.resume(); | |
}; | |
force.resume = function() { | |
return force.alpha(.1); | |
}; | |
force.stop = function() { | |
return force.alpha(0); | |
}; | |
force.drag = function() { | |
if (!drag) drag = d3.behavior.drag().origin(d3_identity).on("dragstart.force", d3_layout_forceDragstart).on("drag.force", dragmove).on("dragend.force", d3_layout_forceDragend); | |
if (!arguments.length) return drag; | |
this.on("mouseover.force", d3_layout_forceMouseover).on("mouseout.force", d3_layout_forceMouseout).call(drag); | |
}; | |
function dragmove(d) { | |
d.px = d3.event.x, d.py = d3.event.y; | |
force.resume(); | |
} | |
return d3.rebind(force, event, "on"); | |
}; | |
function d3_layout_forceDragstart(d) { | |
d.fixed |= 2; | |
} | |
function d3_layout_forceDragend(d) { | |
d.fixed &= ~6; | |
} | |
function d3_layout_forceMouseover(d) { | |
d.fixed |= 4; | |
d.px = d.x, d.py = d.y; | |
} | |
function d3_layout_forceMouseout(d) { | |
d.fixed &= ~4; | |
} | |
function d3_layout_forceAccumulate(quad, alpha, charges) { | |
var cx = 0, cy = 0; | |
quad.charge = 0; | |
if (!quad.leaf) { | |
var nodes = quad.nodes, n = nodes.length, i = -1, c; | |
while (++i < n) { | |
c = nodes[i]; | |
if (c == null) continue; | |
d3_layout_forceAccumulate(c, alpha, charges); | |
quad.charge += c.charge; | |
cx += c.charge * c.cx; | |
cy += c.charge * c.cy; | |
} | |
} | |
if (quad.point) { | |
if (!quad.leaf) { | |
quad.point.x += Math.random() - .5; | |
quad.point.y += Math.random() - .5; | |
} | |
var k = alpha * charges[quad.point.index]; | |
quad.charge += quad.pointCharge = k; | |
cx += k * quad.point.x; | |
cy += k * quad.point.y; | |
} | |
quad.cx = cx / quad.charge; | |
quad.cy = cy / quad.charge; | |
} | |
var d3_layout_forceLinkDistance = 20, d3_layout_forceLinkStrength = 1; | |
d3.layout.hierarchy = function() { | |
var sort = d3_layout_hierarchySort, children = d3_layout_hierarchyChildren, value = d3_layout_hierarchyValue; | |
function recurse(node, depth, nodes) { | |
var childs = children.call(hierarchy, node, depth); | |
node.depth = depth; | |
nodes.push(node); | |
if (childs && (n = childs.length)) { | |
var i = -1, n, c = node.children = [], v = 0, j = depth + 1, d; | |
while (++i < n) { | |
d = recurse(childs[i], j, nodes); | |
d.parent = node; | |
c.push(d); | |
v += d.value; | |
} | |
if (sort) c.sort(sort); | |
if (value) node.value = v; | |
} else if (value) { | |
node.value = +value.call(hierarchy, node, depth) || 0; | |
} | |
return node; | |
} | |
function revalue(node, depth) { | |
var children = node.children, v = 0; | |
if (children && (n = children.length)) { | |
var i = -1, n, j = depth + 1; | |
while (++i < n) v += revalue(children[i], j); | |
} else if (value) { | |
v = +value.call(hierarchy, node, depth) || 0; | |
} | |
if (value) node.value = v; | |
return v; | |
} | |
function hierarchy(d) { | |
var nodes = []; | |
recurse(d, 0, nodes); | |
return nodes; | |
} | |
hierarchy.sort = function(x) { | |
if (!arguments.length) return sort; | |
sort = x; | |
return hierarchy; | |
}; | |
hierarchy.children = function(x) { | |
if (!arguments.length) return children; | |
children = x; | |
return hierarchy; | |
}; | |
hierarchy.value = function(x) { | |
if (!arguments.length) return value; | |
value = x; | |
return hierarchy; | |
}; | |
hierarchy.revalue = function(root) { | |
revalue(root, 0); | |
return root; | |
}; | |
return hierarchy; | |
}; | |
function d3_layout_hierarchyRebind(object, hierarchy) { | |
d3.rebind(object, hierarchy, "sort", "children", "value"); | |
object.nodes = object; | |
object.links = d3_layout_hierarchyLinks; | |
return object; | |
} | |
function d3_layout_hierarchyChildren(d) { | |
return d.children; | |
} | |
function d3_layout_hierarchyValue(d) { | |
return d.value; | |
} | |
function d3_layout_hierarchySort(a, b) { | |
return b.value - a.value; | |
} | |
function d3_layout_hierarchyLinks(nodes) { | |
return d3.merge(nodes.map(function(parent) { | |
return (parent.children || []).map(function(child) { | |
return { | |
source: parent, | |
target: child | |
}; | |
}); | |
})); | |
} | |
d3.layout.partition = function() { | |
var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ]; | |
function position(node, x, dx, dy) { | |
var children = node.children; | |
node.x = x; | |
node.y = node.depth * dy; | |
node.dx = dx; | |
node.dy = dy; | |
if (children && (n = children.length)) { | |
var i = -1, n, c, d; | |
dx = node.value ? dx / node.value : 0; | |
while (++i < n) { | |
position(c = children[i], x, d = c.value * dx, dy); | |
x += d; | |
} | |
} | |
} | |
function depth(node) { | |
var children = node.children, d = 0; | |
if (children && (n = children.length)) { | |
var i = -1, n; | |
while (++i < n) d = Math.max(d, depth(children[i])); | |
} | |
return 1 + d; | |
} | |
function partition(d, i) { | |
var nodes = hierarchy.call(this, d, i); | |
position(nodes[0], 0, size[0], size[1] / depth(nodes[0])); | |
return nodes; | |
} | |
partition.size = function(x) { | |
if (!arguments.length) return size; | |
size = x; | |
return partition; | |
}; | |
return d3_layout_hierarchyRebind(partition, hierarchy); | |
}; | |
d3.layout.pie = function() { | |
var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = 2 * π; | |
function pie(data) { | |
var values = data.map(function(d, i) { | |
return +value.call(pie, d, i); | |
}); | |
var a = +(typeof startAngle === "function" ? startAngle.apply(this, arguments) : startAngle); | |
var k = ((typeof endAngle === "function" ? endAngle.apply(this, arguments) : endAngle) - a) / d3.sum(values); | |
var index = d3.range(data.length); | |
if (sort != null) index.sort(sort === d3_layout_pieSortByValue ? function(i, j) { | |
return values[j] - values[i]; | |
} : function(i, j) { | |
return sort(data[i], data[j]); | |
}); | |
var arcs = []; | |
index.forEach(function(i) { | |
var d; | |
arcs[i] = { | |
data: data[i], | |
value: d = values[i], | |
startAngle: a, | |
endAngle: a += d * k | |
}; | |
}); | |
return arcs; | |
} | |
pie.value = function(x) { | |
if (!arguments.length) return value; | |
value = x; | |
return pie; | |
}; | |
pie.sort = function(x) { | |
if (!arguments.length) return sort; | |
sort = x; | |
return pie; | |
}; | |
pie.startAngle = function(x) { | |
if (!arguments.length) return startAngle; | |
startAngle = x; | |
return pie; | |
}; | |
pie.endAngle = function(x) { | |
if (!arguments.length) return endAngle; | |
endAngle = x; | |
return pie; | |
}; | |
return pie; | |
}; | |
var d3_layout_pieSortByValue = {}; | |
d3.layout.stack = function() { | |
var values = d3_identity, order = d3_layout_stackOrderDefault, offset = d3_layout_stackOffsetZero, out = d3_layout_stackOut, x = d3_layout_stackX, y = d3_layout_stackY; | |
function stack(data, index) { | |
var series = data.map(function(d, i) { | |
return values.call(stack, d, i); | |
}); | |
var points = series.map(function(d) { | |
return d.map(function(v, i) { | |
return [ x.call(stack, v, i), y.call(stack, v, i) ]; | |
}); | |
}); | |
var orders = order.call(stack, points, index); | |
series = d3.permute(series, orders); | |
points = d3.permute(points, orders); | |
var offsets = offset.call(stack, points, index); | |
var n = series.length, m = series[0].length, i, j, o; | |
for (j = 0; j < m; ++j) { | |
out.call(stack, series[0][j], o = offsets[j], points[0][j][1]); | |
for (i = 1; i < n; ++i) { | |
out.call(stack, series[i][j], o += points[i - 1][j][1], points[i][j][1]); | |
} | |
} | |
return data; | |
} | |
stack.values = function(x) { | |
if (!arguments.length) return values; | |
values = x; | |
return stack; | |
}; | |
stack.order = function(x) { | |
if (!arguments.length) return order; | |
order = typeof x === "function" ? x : d3_layout_stackOrders.get(x) || d3_layout_stackOrderDefault; | |
return stack; | |
}; | |
stack.offset = function(x) { | |
if (!arguments.length) return offset; | |
offset = typeof x === "function" ? x : d3_layout_stackOffsets.get(x) || d3_layout_stackOffsetZero; | |
return stack; | |
}; | |
stack.x = function(z) { | |
if (!arguments.length) return x; | |
x = z; | |
return stack; | |
}; | |
stack.y = function(z) { | |
if (!arguments.length) return y; | |
y = z; | |
return stack; | |
}; | |
stack.out = function(z) { | |
if (!arguments.length) return out; | |
out = z; | |
return stack; | |
}; | |
return stack; | |
}; | |
function d3_layout_stackX(d) { | |
return d.x; | |
} | |
function d3_layout_stackY(d) { | |
return d.y; | |
} | |
function d3_layout_stackOut(d, y0, y) { | |
d.y0 = y0; | |
d.y = y; | |
} | |
var d3_layout_stackOrders = d3.map({ | |
"inside-out": function(data) { | |
var n = data.length, i, j, max = data.map(d3_layout_stackMaxIndex), sums = data.map(d3_layout_stackReduceSum), index = d3.range(n).sort(function(a, b) { | |
return max[a] - max[b]; | |
}), top = 0, bottom = 0, tops = [], bottoms = []; | |
for (i = 0; i < n; ++i) { | |
j = index[i]; | |
if (top < bottom) { | |
top += sums[j]; | |
tops.push(j); | |
} else { | |
bottom += sums[j]; | |
bottoms.push(j); | |
} | |
} | |
return bottoms.reverse().concat(tops); | |
}, | |
reverse: function(data) { | |
return d3.range(data.length).reverse(); | |
}, | |
"default": d3_layout_stackOrderDefault | |
}); | |
var d3_layout_stackOffsets = d3.map({ | |
silhouette: function(data) { | |
var n = data.length, m = data[0].length, sums = [], max = 0, i, j, o, y0 = []; | |
for (j = 0; j < m; ++j) { | |
for (i = 0, o = 0; i < n; i++) o += data[i][j][1]; | |
if (o > max) max = o; | |
sums.push(o); | |
} | |
for (j = 0; j < m; ++j) { | |
y0[j] = (max - sums[j]) / 2; | |
} | |
return y0; | |
}, | |
wiggle: function(data) { | |
var n = data.length, x = data[0], m = x.length, i, j, k, s1, s2, s3, dx, o, o0, y0 = []; | |
y0[0] = o = o0 = 0; | |
for (j = 1; j < m; ++j) { | |
for (i = 0, s1 = 0; i < n; ++i) s1 += data[i][j][1]; | |
for (i = 0, s2 = 0, dx = x[j][0] - x[j - 1][0]; i < n; ++i) { | |
for (k = 0, s3 = (data[i][j][1] - data[i][j - 1][1]) / (2 * dx); k < i; ++k) { | |
s3 += (data[k][j][1] - data[k][j - 1][1]) / dx; | |
} | |
s2 += s3 * data[i][j][1]; | |
} | |
y0[j] = o -= s1 ? s2 / s1 * dx : 0; | |
if (o < o0) o0 = o; | |
} | |
for (j = 0; j < m; ++j) y0[j] -= o0; | |
return y0; | |
}, | |
expand: function(data) { | |
var n = data.length, m = data[0].length, k = 1 / n, i, j, o, y0 = []; | |
for (j = 0; j < m; ++j) { | |
for (i = 0, o = 0; i < n; i++) o += data[i][j][1]; | |
if (o) for (i = 0; i < n; i++) data[i][j][1] /= o; else for (i = 0; i < n; i++) data[i][j][1] = k; | |
} | |
for (j = 0; j < m; ++j) y0[j] = 0; | |
return y0; | |
}, | |
zero: d3_layout_stackOffsetZero | |
}); | |
function d3_layout_stackOrderDefault(data) { | |
return d3.range(data.length); | |
} | |
function d3_layout_stackOffsetZero(data) { | |
var j = -1, m = data[0].length, y0 = []; | |
while (++j < m) y0[j] = 0; | |
return y0; | |
} | |
function d3_layout_stackMaxIndex(array) { | |
var i = 1, j = 0, v = array[0][1], k, n = array.length; | |
for (;i < n; ++i) { | |
if ((k = array[i][1]) > v) { | |
j = i; | |
v = k; | |
} | |
} | |
return j; | |
} | |
function d3_layout_stackReduceSum(d) { | |
return d.reduce(d3_layout_stackSum, 0); | |
} | |
function d3_layout_stackSum(p, d) { | |
return p + d[1]; | |
} | |
d3.layout.histogram = function() { | |
var frequency = true, valuer = Number, ranger = d3_layout_histogramRange, binner = d3_layout_histogramBinSturges; | |
function histogram(data, i) { | |
var bins = [], values = data.map(valuer, this), range = ranger.call(this, values, i), thresholds = binner.call(this, range, values, i), bin, i = -1, n = values.length, m = thresholds.length - 1, k = frequency ? 1 : 1 / n, x; | |
while (++i < m) { | |
bin = bins[i] = []; | |
bin.dx = thresholds[i + 1] - (bin.x = thresholds[i]); | |
bin.y = 0; | |
} | |
if (m > 0) { | |
i = -1; | |
while (++i < n) { | |
x = values[i]; | |
if (x >= range[0] && x <= range[1]) { | |
bin = bins[d3.bisect(thresholds, x, 1, m) - 1]; | |
bin.y += k; | |
bin.push(data[i]); | |
} | |
} | |
} | |
return bins; | |
} | |
histogram.value = function(x) { | |
if (!arguments.length) return valuer; | |
valuer = x; | |
return histogram; | |
}; | |
histogram.range = function(x) { | |
if (!arguments.length) return ranger; | |
ranger = d3_functor(x); | |
return histogram; | |
}; | |
histogram.bins = function(x) { | |
if (!arguments.length) return binner; | |
binner = typeof x === "number" ? function(range) { | |
return d3_layout_histogramBinFixed(range, x); | |
} : d3_functor(x); | |
return histogram; | |
}; | |
histogram.frequency = function(x) { | |
if (!arguments.length) return frequency; | |
frequency = !!x; | |
return histogram; | |
}; | |
return histogram; | |
}; | |
function d3_layout_histogramBinSturges(range, values) { | |
return d3_layout_histogramBinFixed(range, Math.ceil(Math.log(values.length) / Math.LN2 + 1)); | |
} | |
function d3_layout_histogramBinFixed(range, n) { | |
var x = -1, b = +range[0], m = (range[1] - b) / n, f = []; | |
while (++x <= n) f[x] = m * x + b; | |
return f; | |
} | |
function d3_layout_histogramRange(values) { | |
return [ d3.min(values), d3.max(values) ]; | |
} | |
d3.layout.tree = function() { | |
var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false; | |
function tree(d, i) { | |
var nodes = hierarchy.call(this, d, i), root = nodes[0]; | |
function firstWalk(node, previousSibling) { | |
var children = node.children, layout = node._tree; | |
if (children && (n = children.length)) { | |
var n, firstChild = children[0], previousChild, ancestor = firstChild, child, i = -1; | |
while (++i < n) { | |
child = children[i]; | |
firstWalk(child, previousChild); | |
ancestor = apportion(child, previousChild, ancestor); | |
previousChild = child; | |
} | |
d3_layout_treeShift(node); | |
var midpoint = .5 * (firstChild._tree.prelim + child._tree.prelim); | |
if (previousSibling) { | |
layout.prelim = previousSibling._tree.prelim + separation(node, previousSibling); | |
layout.mod = layout.prelim - midpoint; | |
} else { | |
layout.prelim = midpoint; | |
} | |
} else { | |
if (previousSibling) { | |
layout.prelim = previousSibling._tree.prelim + separation(node, previousSibling); | |
} | |
} | |
} | |
function secondWalk(node, x) { | |
node.x = node._tree.prelim + x; | |
var children = node.children; | |
if (children && (n = children.length)) { | |
var i = -1, n; | |
x += node._tree.mod; | |
while (++i < n) { | |
secondWalk(children[i], x); | |
} | |
} | |
} | |
function apportion(node, previousSibling, ancestor) { | |
if (previousSibling) { | |
var vip = node, vop = node, vim = previousSibling, vom = node.parent.children[0], sip = vip._tree.mod, sop = vop._tree.mod, sim = vim._tree.mod, som = vom._tree.mod, shift; | |
while (vim = d3_layout_treeRight(vim), vip = d3_layout_treeLeft(vip), vim && vip) { | |
vom = d3_layout_treeLeft(vom); | |
vop = d3_layout_treeRight(vop); | |
vop._tree.ancestor = node; | |
shift = vim._tree.prelim + sim - vip._tree.prelim - sip + separation(vim, vip); | |
if (shift > 0) { | |
d3_layout_treeMove(d3_layout_treeAncestor(vim, node, ancestor), node, shift); | |
sip += shift; | |
sop += shift; | |
} | |
sim += vim._tree.mod; | |
sip += vip._tree.mod; | |
som += vom._tree.mod; | |
sop += vop._tree.mod; | |
} | |
if (vim && !d3_layout_treeRight(vop)) { | |
vop._tree.thread = vim; | |
vop._tree.mod += sim - sop; | |
} | |
if (vip && !d3_layout_treeLeft(vom)) { | |
vom._tree.thread = vip; | |
vom._tree.mod += sip - som; | |
ancestor = node; | |
} | |
} | |
return ancestor; | |
} | |
d3_layout_treeVisitAfter(root, function(node, previousSibling) { | |
node._tree = { | |
ancestor: node, | |
prelim: 0, | |
mod: 0, | |
change: 0, | |
shift: 0, | |
number: previousSibling ? previousSibling._tree.number + 1 : 0 | |
}; | |
}); | |
firstWalk(root); | |
secondWalk(root, -root._tree.prelim); | |
var left = d3_layout_treeSearch(root, d3_layout_treeLeftmost), right = d3_layout_treeSearch(root, d3_layout_treeRightmost), deep = d3_layout_treeSearch(root, d3_layout_treeDeepest), x0 = left.x - separation(left, right) / 2, x1 = right.x + separation(right, left) / 2, y1 = deep.depth || 1; | |
d3_layout_treeVisitAfter(root, nodeSize ? function(node) { | |
node.x *= size[0]; | |
node.y = node.depth * size[1]; | |
delete node._tree; | |
} : function(node) { | |
node.x = (node.x - x0) / (x1 - x0) * size[0]; | |
node.y = node.depth / y1 * size[1]; | |
delete node._tree; | |
}); | |
return nodes; | |
} | |
tree.separation = function(x) { | |
if (!arguments.length) return separation; | |
separation = x; | |
return tree; | |
}; | |
tree.size = function(x) { | |
if (!arguments.length) return nodeSize ? null : size; | |
nodeSize = (size = x) == null; | |
return tree; | |
}; | |
tree.nodeSize = function(x) { | |
if (!arguments.length) return nodeSize ? size : null; | |
nodeSize = (size = x) != null; | |
return tree; | |
}; | |
return d3_layout_hierarchyRebind(tree, hierarchy); | |
}; | |
function d3_layout_treeSeparation(a, b) { | |
return a.parent == b.parent ? 1 : 2; | |
} | |
function d3_layout_treeLeft(node) { | |
var children = node.children; | |
return children && children.length ? children[0] : node._tree.thread; | |
} | |
function d3_layout_treeRight(node) { | |
var children = node.children, n; | |
return children && (n = children.length) ? children[n - 1] : node._tree.thread; | |
} | |
function d3_layout_treeSearch(node, compare) { | |
var children = node.children; | |
if (children && (n = children.length)) { | |
var child, n, i = -1; | |
while (++i < n) { | |
if (compare(child = d3_layout_treeSearch(children[i], compare), node) > 0) { | |
node = child; | |
} | |
} | |
} | |
return node; | |
} | |
function d3_layout_treeRightmost(a, b) { | |
return a.x - b.x; | |
} | |
function d3_layout_treeLeftmost(a, b) { | |
return b.x - a.x; | |
} | |
function d3_layout_treeDeepest(a, b) { | |
return a.depth - b.depth; | |
} | |
function d3_layout_treeVisitAfter(node, callback) { | |
function visit(node, previousSibling) { | |
var children = node.children; | |
if (children && (n = children.length)) { | |
var child, previousChild = null, i = -1, n; | |
while (++i < n) { | |
child = children[i]; | |
visit(child, previousChild); | |
previousChild = child; | |
} | |
} | |
callback(node, previousSibling); | |
} | |
visit(node, null); | |
} | |
function d3_layout_treeShift(node) { | |
var shift = 0, change = 0, children = node.children, i = children.length, child; | |
while (--i >= 0) { | |
child = children[i]._tree; | |
child.prelim += shift; | |
child.mod += shift; | |
shift += child.shift + (change += child.change); | |
} | |
} | |
function d3_layout_treeMove(ancestor, node, shift) { | |
ancestor = ancestor._tree; | |
node = node._tree; | |
var change = shift / (node.number - ancestor.number); | |
ancestor.change += change; | |
node.change -= change; | |
node.shift += shift; | |
node.prelim += shift; | |
node.mod += shift; | |
} | |
function d3_layout_treeAncestor(vim, node, ancestor) { | |
return vim._tree.ancestor.parent == node.parent ? vim._tree.ancestor : ancestor; | |
} | |
d3.layout.pack = function() { | |
var hierarchy = d3.layout.hierarchy().sort(d3_layout_packSort), padding = 0, size = [ 1, 1 ], radius; | |
function pack(d, i) { | |
var nodes = hierarchy.call(this, d, i), root = nodes[0], w = size[0], h = size[1], r = radius == null ? Math.sqrt : typeof radius === "function" ? radius : function() { | |
return radius; | |
}; | |
root.x = root.y = 0; | |
d3_layout_treeVisitAfter(root, function(d) { | |
d.r = +r(d.value); | |
}); | |
d3_layout_treeVisitAfter(root, d3_layout_packSiblings); | |
if (padding) { | |
var dr = padding * (radius ? 1 : Math.max(2 * root.r / w, 2 * root.r / h)) / 2; | |
d3_layout_treeVisitAfter(root, function(d) { | |
d.r += dr; | |
}); | |
d3_layout_treeVisitAfter(root, d3_layout_packSiblings); | |
d3_layout_treeVisitAfter(root, function(d) { | |
d.r -= dr; | |
}); | |
} | |
d3_layout_packTransform(root, w / 2, h / 2, radius ? 1 : 1 / Math.max(2 * root.r / w, 2 * root.r / h)); | |
return nodes; | |
} | |
pack.size = function(_) { | |
if (!arguments.length) return size; | |
size = _; | |
return pack; | |
}; | |
pack.radius = function(_) { | |
if (!arguments.length) return radius; | |
radius = _ == null || typeof _ === "function" ? _ : +_; | |
return pack; | |
}; | |
pack.padding = function(_) { | |
if (!arguments.length) return padding; | |
padding = +_; | |
return pack; | |
}; | |
return d3_layout_hierarchyRebind(pack, hierarchy); | |
}; | |
function d3_layout_packSort(a, b) { | |
return a.value - b.value; | |
} | |
function d3_layout_packInsert(a, b) { | |
var c = a._pack_next; | |
a._pack_next = b; | |
b._pack_prev = a; | |
b._pack_next = c; | |
c._pack_prev = b; | |
} | |
function d3_layout_packSplice(a, b) { | |
a._pack_next = b; | |
b._pack_prev = a; | |
} | |
function d3_layout_packIntersects(a, b) { | |
var dx = b.x - a.x, dy = b.y - a.y, dr = a.r + b.r; | |
return .999 * dr * dr > dx * dx + dy * dy; | |
} | |
function d3_layout_packSiblings(node) { | |
if (!(nodes = node.children) || !(n = nodes.length)) return; | |
var nodes, xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, a, b, c, i, j, k, n; | |
function bound(node) { | |
xMin = Math.min(node.x - node.r, xMin); | |
xMax = Math.max(node.x + node.r, xMax); | |
yMin = Math.min(node.y - node.r, yMin); | |
yMax = Math.max(node.y + node.r, yMax); | |
} | |
nodes.forEach(d3_layout_packLink); | |
a = nodes[0]; | |
a.x = -a.r; | |
a.y = 0; | |
bound(a); | |
if (n > 1) { | |
b = nodes[1]; | |
b.x = b.r; | |
b.y = 0; | |
bound(b); | |
if (n > 2) { | |
c = nodes[2]; | |
d3_layout_packPlace(a, b, c); | |
bound(c); | |
d3_layout_packInsert(a, c); | |
a._pack_prev = c; | |
d3_layout_packInsert(c, b); | |
b = a._pack_next; | |
for (i = 3; i < n; i++) { | |
d3_layout_packPlace(a, b, c = nodes[i]); | |
var isect = 0, s1 = 1, s2 = 1; | |
for (j = b._pack_next; j !== b; j = j._pack_next, s1++) { | |
if (d3_layout_packIntersects(j, c)) { | |
isect = 1; | |
break; | |
} | |
} | |
if (isect == 1) { | |
for (k = a._pack_prev; k !== j._pack_prev; k = k._pack_prev, s2++) { | |
if (d3_layout_packIntersects(k, c)) { | |
break; | |
} | |
} | |
} | |
if (isect) { | |
if (s1 < s2 || s1 == s2 && b.r < a.r) d3_layout_packSplice(a, b = j); else d3_layout_packSplice(a = k, b); | |
i--; | |
} else { | |
d3_layout_packInsert(a, c); | |
b = c; | |
bound(c); | |
} | |
} | |
} | |
} | |
var cx = (xMin + xMax) / 2, cy = (yMin + yMax) / 2, cr = 0; | |
for (i = 0; i < n; i++) { | |
c = nodes[i]; | |
c.x -= cx; | |
c.y -= cy; | |
cr = Math.max(cr, c.r + Math.sqrt(c.x * c.x + c.y * c.y)); | |
} | |
node.r = cr; | |
nodes.forEach(d3_layout_packUnlink); | |
} | |
function d3_layout_packLink(node) { | |
node._pack_next = node._pack_prev = node; | |
} | |
function d3_layout_packUnlink(node) { | |
delete node._pack_next; | |
delete node._pack_prev; | |
} | |
function d3_layout_packTransform(node, x, y, k) { | |
var children = node.children; | |
node.x = x += k * node.x; | |
node.y = y += k * node.y; | |
node.r *= k; | |
if (children) { | |
var i = -1, n = children.length; | |
while (++i < n) d3_layout_packTransform(children[i], x, y, k); | |
} | |
} | |
function d3_layout_packPlace(a, b, c) { | |
var db = a.r + c.r, dx = b.x - a.x, dy = b.y - a.y; | |
if (db && (dx || dy)) { | |
var da = b.r + c.r, dc = dx * dx + dy * dy; | |
da *= da; | |
db *= db; | |
var x = .5 + (db - da) / (2 * dc), y = Math.sqrt(Math.max(0, 2 * da * (db + dc) - (db -= dc) * db - da * da)) / (2 * dc); | |
c.x = a.x + x * dx + y * dy; | |
c.y = a.y + x * dy - y * dx; | |
} else { | |
c.x = a.x + db; | |
c.y = a.y; | |
} | |
} | |
d3.layout.cluster = function() { | |
var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false; | |
function cluster(d, i) { | |
var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0; | |
d3_layout_treeVisitAfter(root, function(node) { | |
var children = node.children; | |
if (children && children.length) { | |
node.x = d3_layout_clusterX(children); | |
node.y = d3_layout_clusterY(children); | |
} else { | |
node.x = previousNode ? x += separation(node, previousNode) : 0; | |
node.y = 0; | |
previousNode = node; | |
} | |
}); | |
var left = d3_layout_clusterLeft(root), right = d3_layout_clusterRight(root), x0 = left.x - separation(left, right) / 2, x1 = right.x + separation(right, left) / 2; | |
d3_layout_treeVisitAfter(root, nodeSize ? function(node) { | |
node.x = (node.x - root.x) * size[0]; | |
node.y = (root.y - node.y) * size[1]; | |
} : function(node) { | |
node.x = (node.x - x0) / (x1 - x0) * size[0]; | |
node.y = (1 - (root.y ? node.y / root.y : 1)) * size[1]; | |
}); | |
return nodes; | |
} | |
cluster.separation = function(x) { | |
if (!arguments.length) return separation; | |
separation = x; | |
return cluster; | |
}; | |
cluster.size = function(x) { | |
if (!arguments.length) return nodeSize ? null : size; | |
nodeSize = (size = x) == null; | |
return cluster; | |
}; | |
cluster.nodeSize = function(x) { | |
if (!arguments.length) return nodeSize ? size : null; | |
nodeSize = (size = x) != null; | |
return cluster; | |
}; | |
return d3_layout_hierarchyRebind(cluster, hierarchy); | |
}; | |
function d3_layout_clusterY(children) { | |
return 1 + d3.max(children, function(child) { | |
return child.y; | |
}); | |
} | |
function d3_layout_clusterX(children) { | |
return children.reduce(function(x, child) { | |
return x + child.x; | |
}, 0) / children.length; | |
} | |
function d3_layout_clusterLeft(node) { | |
var children = node.children; | |
return children && children.length ? d3_layout_clusterLeft(children[0]) : node; | |
} | |
function d3_layout_clusterRight(node) { | |
var children = node.children, n; | |
return children && (n = children.length) ? d3_layout_clusterRight(children[n - 1]) : node; | |
} | |
d3.layout.treemap = function() { | |
var hierarchy = d3.layout.hierarchy(), round = Math.round, size = [ 1, 1 ], padding = null, pad = d3_layout_treemapPadNull, sticky = false, stickies, mode = "squarify", ratio = .5 * (1 + Math.sqrt(5)); | |
function scale(children, k) { | |
var i = -1, n = children.length, child, area; | |
while (++i < n) { | |
area = (child = children[i]).value * (k < 0 ? 0 : k); | |
child.area = isNaN(area) || area <= 0 ? 0 : area; | |
} | |
} | |
function squarify(node) { | |
var children = node.children; | |
if (children && children.length) { | |
var rect = pad(node), row = [], remaining = children.slice(), child, best = Infinity, score, u = mode === "slice" ? rect.dx : mode === "dice" ? rect.dy : mode === "slice-dice" ? node.depth & 1 ? rect.dy : rect.dx : Math.min(rect.dx, rect.dy), n; | |
scale(remaining, rect.dx * rect.dy / node.value); | |
row.area = 0; | |
while ((n = remaining.length) > 0) { | |
row.push(child = remaining[n - 1]); | |
row.area += child.area; | |
if (mode !== "squarify" || (score = worst(row, u)) <= best) { | |
remaining.pop(); | |
best = score; | |
} else { | |
row.area -= row.pop().area; | |
position(row, u, rect, false); | |
u = Math.min(rect.dx, rect.dy); | |
row.length = row.area = 0; | |
best = Infinity; | |
} | |
} | |
if (row.length) { | |
position(row, u, rect, true); | |
row.length = row.area = 0; | |
} | |
children.forEach(squarify); | |
} | |
} | |
function stickify(node) { | |
var children = node.children; | |
if (children && children.length) { | |
var rect = pad(node), remaining = children.slice(), child, row = []; | |
scale(remaining, rect.dx * rect.dy / node.value); | |
row.area = 0; | |
while (child = remaining.pop()) { | |
row.push(child); | |
row.area += child.area; | |
if (child.z != null) { | |
position(row, child.z ? rect.dx : rect.dy, rect, !remaining.length); | |
row.length = row.area = 0; | |
} | |
} | |
children.forEach(stickify); | |
} | |
} | |
function worst(row, u) { | |
var s = row.area, r, rmax = 0, rmin = Infinity, i = -1, n = row.length; | |
while (++i < n) { | |
if (!(r = row[i].area)) continue; | |
if (r < rmin) rmin = r; | |
if (r > rmax) rmax = r; | |
} | |
s *= s; | |
u *= u; | |
return s ? Math.max(u * rmax * ratio / s, s / (u * rmin * ratio)) : Infinity; | |
} | |
function position(row, u, rect, flush) { | |
var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o; | |
if (u == rect.dx) { | |
if (flush || v > rect.dy) v = rect.dy; | |
while (++i < n) { | |
o = row[i]; | |
o.x = x; | |
o.y = y; | |
o.dy = v; | |
x += o.dx = Math.min(rect.x + rect.dx - x, v ? round(o.area / v) : 0); | |
} | |
o.z = true; | |
o.dx += rect.x + rect.dx - x; | |
rect.y += v; | |
rect.dy -= v; | |
} else { | |
if (flush || v > rect.dx) v = rect.dx; | |
while (++i < n) { | |
o = row[i]; | |
o.x = x; | |
o.y = y; | |
o.dx = v; | |
y += o.dy = Math.min(rect.y + rect.dy - y, v ? round(o.area / v) : 0); | |
} | |
o.z = false; | |
o.dy += rect.y + rect.dy - y; | |
rect.x += v; | |
rect.dx -= v; | |
} | |
} | |
function treemap(d) { | |
var nodes = stickies || hierarchy(d), root = nodes[0]; | |
root.x = 0; | |
root.y = 0; | |
root.dx = size[0]; | |
root.dy = size[1]; | |
if (stickies) hierarchy.revalue(root); | |
scale([ root ], root.dx * root.dy / root.value); | |
(stickies ? stickify : squarify)(root); | |
if (sticky) stickies = nodes; | |
return nodes; | |
} | |
treemap.size = function(x) { | |
if (!arguments.length) return size; | |
size = x; | |
return treemap; | |
}; | |
treemap.padding = function(x) { | |
if (!arguments.length) return padding; | |
function padFunction(node) { | |
var p = x.call(treemap, node, node.depth); | |
return p == null ? d3_layout_treemapPadNull(node) : d3_layout_treemapPad(node, typeof p === "number" ? [ p, p, p, p ] : p); | |
} | |
function padConstant(node) { | |
return d3_layout_treemapPad(node, x); | |
} | |
var type; | |
pad = (padding = x) == null ? d3_layout_treemapPadNull : (type = typeof x) === "function" ? padFunction : type === "number" ? (x = [ x, x, x, x ], | |
padConstant) : padConstant; | |
return treemap; | |
}; | |
treemap.round = function(x) { | |
if (!arguments.length) return round != Number; | |
round = x ? Math.round : Number; | |
return treemap; | |
}; | |
treemap.sticky = function(x) { | |
if (!arguments.length) return sticky; | |
sticky = x; | |
stickies = null; | |
return treemap; | |
}; | |
treemap.ratio = function(x) { | |
if (!arguments.length) return ratio; | |
ratio = x; | |
return treemap; | |
}; | |
treemap.mode = function(x) { | |
if (!arguments.length) return mode; | |
mode = x + ""; | |
return treemap; | |
}; | |
return d3_layout_hierarchyRebind(treemap, hierarchy); | |
}; | |
function d3_layout_treemapPadNull(node) { | |
return { | |
x: node.x, | |
y: node.y, | |
dx: node.dx, | |
dy: node.dy | |
}; | |
} | |
function d3_layout_treemapPad(node, padding) { | |
var x = node.x + padding[3], y = node.y + padding[0], dx = node.dx - padding[1] - padding[3], dy = node.dy - padding[0] - padding[2]; | |
if (dx < 0) { | |
x += dx / 2; | |
dx = 0; | |
} | |
if (dy < 0) { | |
y += dy / 2; | |
dy = 0; | |
} | |
return { | |
x: x, | |
y: y, | |
dx: dx, | |
dy: dy | |
}; | |
} | |
d3.random = { | |
normal: function(µ, σ) { | |
var n = arguments.length; | |
if (n < 2) σ = 1; | |
if (n < 1) µ = 0; | |
return function() { | |
var x, y, r; | |
do { | |
x = Math.random() * 2 - 1; | |
y = Math.random() * 2 - 1; | |
r = x * x + y * y; | |
} while (!r || r > 1); | |
return µ + σ * x * Math.sqrt(-2 * Math.log(r) / r); | |
}; | |
}, | |
logNormal: function() { | |
var random = d3.random.normal.apply(d3, arguments); | |
return function() { | |
return Math.exp(random()); | |
}; | |
}, | |
irwinHall: function(m) { | |
return function() { | |
for (var s = 0, j = 0; j < m; j++) s += Math.random(); | |
return s / m; | |
}; | |
} | |
}; | |
d3.scale = {}; | |
function d3_scaleExtent(domain) { | |
var start = domain[0], stop = domain[domain.length - 1]; | |
return start < stop ? [ start, stop ] : [ stop, start ]; | |
} | |
function d3_scaleRange(scale) { | |
return scale.rangeExtent ? scale.rangeExtent() : d3_scaleExtent(scale.range()); | |
} | |
function d3_scale_bilinear(domain, range, uninterpolate, interpolate) { | |
var u = uninterpolate(domain[0], domain[1]), i = interpolate(range[0], range[1]); | |
return function(x) { | |
return i(u(x)); | |
}; | |
} | |
function d3_scale_nice(domain, nice) { | |
var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], dx; | |
if (x1 < x0) { | |
dx = i0, i0 = i1, i1 = dx; | |
dx = x0, x0 = x1, x1 = dx; | |
} | |
domain[i0] = nice.floor(x0); | |
domain[i1] = nice.ceil(x1); | |
return domain; | |
} | |
function d3_scale_niceStep(step) { | |
return step ? { | |
floor: function(x) { | |
return Math.floor(x / step) * step; | |
}, | |
ceil: function(x) { | |
return Math.ceil(x / step) * step; | |
} | |
} : d3_scale_niceIdentity; | |
} | |
var d3_scale_niceIdentity = { | |
floor: d3_identity, | |
ceil: d3_identity | |
}; | |
function d3_scale_polylinear(domain, range, uninterpolate, interpolate) { | |
var u = [], i = [], j = 0, k = Math.min(domain.length, range.length) - 1; | |
if (domain[k] < domain[0]) { | |
domain = domain.slice().reverse(); | |
range = range.slice().reverse(); | |
} | |
while (++j <= k) { | |
u.push(uninterpolate(domain[j - 1], domain[j])); | |
i.push(interpolate(range[j - 1], range[j])); | |
} | |
return function(x) { | |
var j = d3.bisect(domain, x, 1, k) - 1; | |
return i[j](u[j](x)); | |
}; | |
} | |
d3.scale.linear = function() { | |
return d3_scale_linear([ 0, 1 ], [ 0, 1 ], d3_interpolate, false); | |
}; | |
function d3_scale_linear(domain, range, interpolate, clamp) { | |
var output, input; | |
function rescale() { | |
var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber; | |
output = linear(domain, range, uninterpolate, interpolate); | |
input = linear(range, domain, uninterpolate, d3_interpolate); | |
return scale; | |
} | |
function scale(x) { | |
return output(x); | |
} | |
scale.invert = function(y) { | |
return input(y); | |
}; | |
scale.domain = function(x) { | |
if (!arguments.length) return domain; | |
domain = x.map(Number); | |
return rescale(); | |
}; | |
scale.range = function(x) { | |
if (!arguments.length) return range; | |
range = x; | |
return rescale(); | |
}; | |
scale.rangeRound = function(x) { | |
return scale.range(x).interpolate(d3_interpolateRound); | |
}; | |
scale.clamp = function(x) { | |
if (!arguments.length) return clamp; | |
clamp = x; | |
return rescale(); | |
}; | |
scale.interpolate = function(x) { | |
if (!arguments.length) return interpolate; | |
interpolate = x; | |
return rescale(); | |
}; | |
scale.ticks = function(m) { | |
return d3_scale_linearTicks(domain, m); | |
}; | |
scale.tickFormat = function(m, format) { | |
return d3_scale_linearTickFormat(domain, m, format); | |
}; | |
scale.nice = function(m) { | |
d3_scale_linearNice(domain, m); | |
return rescale(); | |
}; | |
scale.copy = function() { | |
return d3_scale_linear(domain, range, interpolate, clamp); | |
}; | |
return rescale(); | |
} | |
function d3_scale_linearRebind(scale, linear) { | |
return d3.rebind(scale, linear, "range", "rangeRound", "interpolate", "clamp"); | |
} | |
function d3_scale_linearNice(domain, m) { | |
return d3_scale_nice(domain, d3_scale_niceStep(m ? d3_scale_linearTickRange(domain, m)[2] : d3_scale_linearNiceStep(domain))); | |
} | |
function d3_scale_linearNiceStep(domain) { | |
var extent = d3_scaleExtent(domain), span = extent[1] - extent[0]; | |
return Math.pow(10, Math.round(Math.log(span) / Math.LN10) - 1); | |
} | |
function d3_scale_linearTickRange(domain, m) { | |
var extent = d3_scaleExtent(domain), span = extent[1] - extent[0], step = Math.pow(10, Math.floor(Math.log(span / m) / Math.LN10)), err = m / span * step; | |
if (err <= .15) step *= 10; else if (err <= .35) step *= 5; else if (err <= .75) step *= 2; | |
extent[0] = Math.ceil(extent[0] / step) * step; | |
extent[1] = Math.floor(extent[1] / step) * step + step * .5; | |
extent[2] = step; | |
return extent; | |
} | |
function d3_scale_linearTicks(domain, m) { | |
return d3.range.apply(d3, d3_scale_linearTickRange(domain, m)); | |
} | |
function d3_scale_linearTickFormat(domain, m, format) { | |
var precision = -Math.floor(Math.log(d3_scale_linearTickRange(domain, m)[2]) / Math.LN10 + .01); | |
return d3.format(format ? format.replace(d3_format_re, function(a, b, c, d, e, f, g, h, i, j) { | |
return [ b, c, d, e, f, g, h, i || "." + (precision - (j === "%") * 2), j ].join(""); | |
}) : ",." + precision + "f"); | |
} | |
d3.scale.log = function() { | |
return d3_scale_log(d3.scale.linear().domain([ 0, 1 ]), 10, true, [ 1, 10 ]); | |
}; | |
function d3_scale_log(linear, base, positive, domain) { | |
function log(x) { | |
return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base); | |
} | |
function pow(x) { | |
return positive ? Math.pow(base, x) : -Math.pow(base, -x); | |
} | |
function scale(x) { | |
return linear(log(x)); | |
} | |
scale.invert = function(x) { | |
return pow(linear.invert(x)); | |
}; | |
scale.domain = function(x) { | |
if (!arguments.length) return domain; | |
positive = x[0] >= 0; | |
linear.domain((domain = x.map(Number)).map(log)); | |
return scale; | |
}; | |
scale.base = function(_) { | |
if (!arguments.length) return base; | |
base = +_; | |
linear.domain(domain.map(log)); | |
return scale; | |
}; | |
scale.nice = function() { | |
var niced = d3_scale_nice(domain.map(log), positive ? Math : d3_scale_logNiceNegative); | |
linear.domain(niced); | |
domain = niced.map(pow); | |
return scale; | |
}; | |
scale.ticks = function() { | |
var extent = d3_scaleExtent(domain), ticks = []; | |
if (extent.every(isFinite)) { | |
var u = extent[0], v = extent[1], i = Math.floor(log(u)), j = Math.ceil(log(v)), n = base % 1 ? 2 : base; | |
if (positive) { | |
for (;i < j; i++) for (var k = 1; k < n; k++) ticks.push(pow(i) * k); | |
ticks.push(pow(i)); | |
} else { | |
ticks.push(pow(i)); | |
for (;i++ < j; ) for (var k = n - 1; k > 0; k--) ticks.push(pow(i) * k); | |
} | |
for (i = 0; ticks[i] < u; i++) {} | |
for (j = ticks.length; ticks[j - 1] > v; j--) {} | |
ticks = ticks.slice(i, j); | |
} | |
return ticks; | |
}; | |
scale.tickFormat = function(n, format) { | |
if (!arguments.length) return d3_scale_logFormat; | |
if (arguments.length < 2) format = d3_scale_logFormat; else if (typeof format !== "function") format = d3.format(format); | |
var k = Math.max(.1, n / scale.ticks().length), f = positive ? (e = 1e-12, Math.ceil) : (e = -1e-12, | |
Math.floor), e; | |
return function(d) { | |
return d / pow(f(log(d) + e)) <= k ? format(d) : ""; | |
}; | |
}; | |
scale.copy = function() { | |
return d3_scale_log(linear.copy(), base, positive, domain); | |
}; | |
return d3_scale_linearRebind(scale, linear); | |
} | |
var d3_scale_logFormat = d3.format(".0e"), d3_scale_logNiceNegative = { | |
floor: function(x) { | |
return -Math.ceil(-x); | |
}, | |
ceil: function(x) { | |
return -Math.floor(-x); | |
} | |
}; | |
d3.scale.pow = function() { | |
return d3_scale_pow(d3.scale.linear(), 1, [ 0, 1 ]); | |
}; | |
function d3_scale_pow(linear, exponent, domain) { | |
var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent); | |
function scale(x) { | |
return linear(powp(x)); | |
} | |
scale.invert = function(x) { | |
return powb(linear.invert(x)); | |
}; | |
scale.domain = function(x) { | |
if (!arguments.length) return domain; | |
linear.domain((domain = x.map(Number)).map(powp)); | |
return scale; | |
}; | |
scale.ticks = function(m) { | |
return d3_scale_linearTicks(domain, m); | |
}; | |
scale.tickFormat = function(m, format) { | |
return d3_scale_linearTickFormat(domain, m, format); | |
}; | |
scale.nice = function(m) { | |
return scale.domain(d3_scale_linearNice(domain, m)); | |
}; | |
scale.exponent = function(x) { | |
if (!arguments.length) return exponent; | |
powp = d3_scale_powPow(exponent = x); | |
powb = d3_scale_powPow(1 / exponent); | |
linear.domain(domain.map(powp)); | |
return scale; | |
}; | |
scale.copy = function() { | |
return d3_scale_pow(linear.copy(), exponent, domain); | |
}; | |
return d3_scale_linearRebind(scale, linear); | |
} | |
function d3_scale_powPow(e) { | |
return function(x) { | |
return x < 0 ? -Math.pow(-x, e) : Math.pow(x, e); | |
}; | |
} | |
d3.scale.sqrt = function() { | |
return d3.scale.pow().exponent(.5); | |
}; | |
d3.scale.ordinal = function() { | |
return d3_scale_ordinal([], { | |
t: "range", | |
a: [ [] ] | |
}); | |
}; | |
function d3_scale_ordinal(domain, ranger) { | |
var index, range, rangeBand; | |
function scale(x) { | |
return range[((index.get(x) || index.set(x, domain.push(x))) - 1) % range.length]; | |
} | |
function steps(start, step) { | |
return d3.range(domain.length).map(function(i) { | |
return start + step * i; | |
}); | |
} | |
scale.domain = function(x) { | |
if (!arguments.length) return domain; | |
domain = []; | |
index = new d3_Map(); | |
var i = -1, n = x.length, xi; | |
while (++i < n) if (!index.has(xi = x[i])) index.set(xi, domain.push(xi)); | |
return scale[ranger.t].apply(scale, ranger.a); | |
}; | |
scale.range = function(x) { | |
if (!arguments.length) return range; | |
range = x; | |
rangeBand = 0; | |
ranger = { | |
t: "range", | |
a: arguments | |
}; | |
return scale; | |
}; | |
scale.rangePoints = function(x, padding) { | |
if (arguments.length < 2) padding = 0; | |
var start = x[0], stop = x[1], step = (stop - start) / (Math.max(1, domain.length - 1) + padding); | |
range = steps(domain.length < 2 ? (start + stop) / 2 : start + step * padding / 2, step); | |
rangeBand = 0; | |
ranger = { | |
t: "rangePoints", | |
a: arguments | |
}; | |
return scale; | |
}; | |
scale.rangeBands = function(x, padding, outerPadding) { | |
if (arguments.length < 2) padding = 0; | |
if (arguments.length < 3) outerPadding = padding; | |
var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = (stop - start) / (domain.length - padding + 2 * outerPadding); | |
range = steps(start + step * outerPadding, step); | |
if (reverse) range.reverse(); | |
rangeBand = step * (1 - padding); | |
ranger = { | |
t: "rangeBands", | |
a: arguments | |
}; | |
return scale; | |
}; | |
scale.rangeRoundBands = function(x, padding, outerPadding) { | |
if (arguments.length < 2) padding = 0; | |
if (arguments.length < 3) outerPadding = padding; | |
var reverse = x[1] < x[0], start = x[reverse - 0], stop = x[1 - reverse], step = Math.floor((stop - start) / (domain.length - padding + 2 * outerPadding)), error = stop - start - (domain.length - padding) * step; | |
range = steps(start + Math.round(error / 2), step); | |
if (reverse) range.reverse(); | |
rangeBand = Math.round(step * (1 - padding)); | |
ranger = { | |
t: "rangeRoundBands", | |
a: arguments | |
}; | |
return scale; | |
}; | |
scale.rangeBand = function() { | |
return rangeBand; | |
}; | |
scale.rangeExtent = function() { | |
return d3_scaleExtent(ranger.a[0]); | |
}; | |
scale.copy = function() { | |
return d3_scale_ordinal(domain, ranger); | |
}; | |
return scale.domain(domain); | |
} | |
d3.scale.category10 = function() { | |
return d3.scale.ordinal().range(d3_category10); | |
}; | |
d3.scale.category20 = function() { | |
return d3.scale.ordinal().range(d3_category20); | |
}; | |
d3.scale.category20b = function() { | |
return d3.scale.ordinal().range(d3_category20b); | |
}; | |
d3.scale.category20c = function() { | |
return d3.scale.ordinal().range(d3_category20c); | |
}; | |
var d3_category10 = [ 2062260, 16744206, 2924588, 14034728, 9725885, 9197131, 14907330, 8355711, 12369186, 1556175 ].map(d3_rgbString); | |
var d3_category20 = [ 2062260, 11454440, 16744206, 16759672, 2924588, 10018698, 14034728, 16750742, 9725885, 12955861, 9197131, 12885140, 14907330, 16234194, 8355711, 13092807, 12369186, 14408589, 1556175, 10410725 ].map(d3_rgbString); | |
var d3_category20b = [ 3750777, 5395619, 7040719, 10264286, 6519097, 9216594, 11915115, 13556636, 9202993, 12426809, 15186514, 15190932, 8666169, 11356490, 14049643, 15177372, 8077683, 10834324, 13528509, 14589654 ].map(d3_rgbString); | |
var d3_category20c = [ 3244733, 7057110, 10406625, 13032431, 15095053, 16616764, 16625259, 16634018, 3253076, 7652470, 10607003, 13101504, 7695281, 10394312, 12369372, 14342891, 6513507, 9868950, 12434877, 14277081 ].map(d3_rgbString); | |
d3.scale.quantile = function() { | |
return d3_scale_quantile([], []); | |
}; | |
function d3_scale_quantile(domain, range) { | |
var thresholds; | |
function rescale() { | |
var k = 0, q = range.length; | |
thresholds = []; | |
while (++k < q) thresholds[k - 1] = d3.quantile(domain, k / q); | |
return scale; | |
} | |
function scale(x) { | |
if (!isNaN(x = +x)) return range[d3.bisect(thresholds, x)]; | |
} | |
scale.domain = function(x) { | |
if (!arguments.length) return domain; | |
domain = x.filter(function(d) { | |
return !isNaN(d); | |
}).sort(d3.ascending); | |
return rescale(); | |
}; | |
scale.range = function(x) { | |
if (!arguments.length) return range; | |
range = x; | |
return rescale(); | |
}; | |
scale.quantiles = function() { | |
return thresholds; | |
}; | |
scale.invertExtent = function(y) { | |
y = range.indexOf(y); | |
return y < 0 ? [ NaN, NaN ] : [ y > 0 ? thresholds[y - 1] : domain[0], y < thresholds.length ? thresholds[y] : domain[domain.length - 1] ]; | |
}; | |
scale.copy = function() { | |
return d3_scale_quantile(domain, range); | |
}; | |
return rescale(); | |
} | |
d3.scale.quantize = function() { | |
return d3_scale_quantize(0, 1, [ 0, 1 ]); | |
}; | |
function d3_scale_quantize(x0, x1, range) { | |
var kx, i; | |
function scale(x) { | |
return range[Math.max(0, Math.min(i, Math.floor(kx * (x - x0))))]; | |
} | |
function rescale() { | |
kx = range.length / (x1 - x0); | |
i = range.length - 1; | |
return scale; | |
} | |
scale.domain = function(x) { | |
if (!arguments.length) return [ x0, x1 ]; | |
x0 = +x[0]; | |
x1 = +x[x.length - 1]; | |
return rescale(); | |
}; | |
scale.range = function(x) { | |
if (!arguments.length) return range; | |
range = x; | |
return rescale(); | |
}; | |
scale.invertExtent = function(y) { | |
y = range.indexOf(y); | |
y = y < 0 ? NaN : y / kx + x0; | |
return [ y, y + 1 / kx ]; | |
}; | |
scale.copy = function() { | |
return d3_scale_quantize(x0, x1, range); | |
}; | |
return rescale(); | |
} | |
d3.scale.threshold = function() { | |
return d3_scale_threshold([ .5 ], [ 0, 1 ]); | |
}; | |
function d3_scale_threshold(domain, range) { | |
function scale(x) { | |
if (x <= x) return range[d3.bisect(domain, x)]; | |
} | |
scale.domain = function(_) { | |
if (!arguments.length) return domain; | |
domain = _; | |
return scale; | |
}; | |
scale.range = function(_) { | |
if (!arguments.length) return range; | |
range = _; | |
return scale; | |
}; | |
scale.invertExtent = function(y) { | |
y = range.indexOf(y); | |
return [ domain[y - 1], domain[y] ]; | |
}; | |
scale.copy = function() { | |
return d3_scale_threshold(domain, range); | |
}; | |
return scale; | |
} | |
d3.scale.identity = function() { | |
return d3_scale_identity([ 0, 1 ]); | |
}; | |
function d3_scale_identity(domain) { | |
function identity(x) { | |
return +x; | |
} | |
identity.invert = identity; | |
identity.domain = identity.range = function(x) { | |
if (!arguments.length) return domain; | |
domain = x.map(identity); | |
return identity; | |
}; | |
identity.ticks = function(m) { | |
return d3_scale_linearTicks(domain, m); | |
}; | |
identity.tickFormat = function(m, format) { | |
return d3_scale_linearTickFormat(domain, m, format); | |
}; | |
identity.copy = function() { | |
return d3_scale_identity(domain); | |
}; | |
return identity; | |
} | |
d3.svg.arc = function() { | |
var innerRadius = d3_svg_arcInnerRadius, outerRadius = d3_svg_arcOuterRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle; | |
function arc() { | |
var r0 = innerRadius.apply(this, arguments), r1 = outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) + d3_svg_arcOffset, a1 = endAngle.apply(this, arguments) + d3_svg_arcOffset, da = (a1 < a0 && (da = a0, | |
a0 = a1, a1 = da), a1 - a0), df = da < π ? "0" : "1", c0 = Math.cos(a0), s0 = Math.sin(a0), c1 = Math.cos(a1), s1 = Math.sin(a1); | |
return da >= d3_svg_arcMax ? r0 ? "M0," + r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + -r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + r1 + "M0," + r0 + "A" + r0 + "," + r0 + " 0 1,0 0," + -r0 + "A" + r0 + "," + r0 + " 0 1,0 0," + r0 + "Z" : "M0," + r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + -r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + r1 + "Z" : r0 ? "M" + r1 * c0 + "," + r1 * s0 + "A" + r1 + "," + r1 + " 0 " + df + ",1 " + r1 * c1 + "," + r1 * s1 + "L" + r0 * c1 + "," + r0 * s1 + "A" + r0 + "," + r0 + " 0 " + df + ",0 " + r0 * c0 + "," + r0 * s0 + "Z" : "M" + r1 * c0 + "," + r1 * s0 + "A" + r1 + "," + r1 + " 0 " + df + ",1 " + r1 * c1 + "," + r1 * s1 + "L0,0" + "Z"; | |
} | |
arc.innerRadius = function(v) { | |
if (!arguments.length) return innerRadius; | |
innerRadius = d3_functor(v); | |
return arc; | |
}; | |
arc.outerRadius = function(v) { | |
if (!arguments.length) return outerRadius; | |
outerRadius = d3_functor(v); | |
return arc; | |
}; | |
arc.startAngle = function(v) { | |
if (!arguments.length) return startAngle; | |
startAngle = d3_functor(v); | |
return arc; | |
}; | |
arc.endAngle = function(v) { | |
if (!arguments.length) return endAngle; | |
endAngle = d3_functor(v); | |
return arc; | |
}; | |
arc.centroid = function() { | |
var r = (innerRadius.apply(this, arguments) + outerRadius.apply(this, arguments)) / 2, a = (startAngle.apply(this, arguments) + endAngle.apply(this, arguments)) / 2 + d3_svg_arcOffset; | |
return [ Math.cos(a) * r, Math.sin(a) * r ]; | |
}; | |
return arc; | |
}; | |
var d3_svg_arcOffset = -π / 2, d3_svg_arcMax = 2 * π - 1e-6; | |
function d3_svg_arcInnerRadius(d) { | |
return d.innerRadius; | |
} | |
function d3_svg_arcOuterRadius(d) { | |
return d.outerRadius; | |
} | |
function d3_svg_arcStartAngle(d) { | |
return d.startAngle; | |
} | |
function d3_svg_arcEndAngle(d) { | |
return d.endAngle; | |
} | |
d3.svg.line.radial = function() { | |
var line = d3_svg_line(d3_svg_lineRadial); | |
line.radius = line.x, delete line.x; | |
line.angle = line.y, delete line.y; | |
return line; | |
}; | |
function d3_svg_lineRadial(points) { | |
var point, i = -1, n = points.length, r, a; | |
while (++i < n) { | |
point = points[i]; | |
r = point[0]; | |
a = point[1] + d3_svg_arcOffset; | |
point[0] = r * Math.cos(a); | |
point[1] = r * Math.sin(a); | |
} | |
return points; | |
} | |
function d3_svg_area(projection) { | |
var x0 = d3_svg_lineX, x1 = d3_svg_lineX, y0 = 0, y1 = d3_svg_lineY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, interpolateReverse = interpolate, L = "L", tension = .7; | |
function area(data) { | |
var segments = [], points0 = [], points1 = [], i = -1, n = data.length, d, fx0 = d3_functor(x0), fy0 = d3_functor(y0), fx1 = x0 === x1 ? function() { | |
return x; | |
} : d3_functor(x1), fy1 = y0 === y1 ? function() { | |
return y; | |
} : d3_functor(y1), x, y; | |
function segment() { | |
segments.push("M", interpolate(projection(points1), tension), L, interpolateReverse(projection(points0.reverse()), tension), "Z"); | |
} | |
while (++i < n) { | |
if (defined.call(this, d = data[i], i)) { | |
points0.push([ x = +fx0.call(this, d, i), y = +fy0.call(this, d, i) ]); | |
points1.push([ +fx1.call(this, d, i), +fy1.call(this, d, i) ]); | |
} else if (points0.length) { | |
segment(); | |
points0 = []; | |
points1 = []; | |
} | |
} | |
if (points0.length) segment(); | |
return segments.length ? segments.join("") : null; | |
} | |
area.x = function(_) { | |
if (!arguments.length) return x1; | |
x0 = x1 = _; | |
return area; | |
}; | |
area.x0 = function(_) { | |
if (!arguments.length) return x0; | |
x0 = _; | |
return area; | |
}; | |
area.x1 = function(_) { | |
if (!arguments.length) return x1; | |
x1 = _; | |
return area; | |
}; | |
area.y = function(_) { | |
if (!arguments.length) return y1; | |
y0 = y1 = _; | |
return area; | |
}; | |
area.y0 = function(_) { | |
if (!arguments.length) return y0; | |
y0 = _; | |
return area; | |
}; | |
area.y1 = function(_) { | |
if (!arguments.length) return y1; | |
y1 = _; | |
return area; | |
}; | |
area.defined = function(_) { | |
if (!arguments.length) return defined; | |
defined = _; | |
return area; | |
}; | |
area.interpolate = function(_) { | |
if (!arguments.length) return interpolateKey; | |
if (typeof _ === "function") interpolateKey = interpolate = _; else interpolateKey = (interpolate = d3_svg_lineInterpolators.get(_) || d3_svg_lineLinear).key; | |
interpolateReverse = interpolate.reverse || interpolate; | |
L = interpolate.closed ? "M" : "L"; | |
return area; | |
}; | |
area.tension = function(_) { | |
if (!arguments.length) return tension; | |
tension = _; | |
return area; | |
}; | |
return area; | |
} | |
d3_svg_lineStepBefore.reverse = d3_svg_lineStepAfter; | |
d3_svg_lineStepAfter.reverse = d3_svg_lineStepBefore; | |
d3.svg.area = function() { | |
return d3_svg_area(d3_identity); | |
}; | |
d3.svg.area.radial = function() { | |
var area = d3_svg_area(d3_svg_lineRadial); | |
area.radius = area.x, delete area.x; | |
area.innerRadius = area.x0, delete area.x0; | |
area.outerRadius = area.x1, delete area.x1; | |
area.angle = area.y, delete area.y; | |
area.startAngle = area.y0, delete area.y0; | |
area.endAngle = area.y1, delete area.y1; | |
return area; | |
}; | |
d3.svg.chord = function() { | |
var source = d3_source, target = d3_target, radius = d3_svg_chordRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle; | |
function chord(d, i) { | |
var s = subgroup(this, source, d, i), t = subgroup(this, target, d, i); | |
return "M" + s.p0 + arc(s.r, s.p1, s.a1 - s.a0) + (equals(s, t) ? curve(s.r, s.p1, s.r, s.p0) : curve(s.r, s.p1, t.r, t.p0) + arc(t.r, t.p1, t.a1 - t.a0) + curve(t.r, t.p1, s.r, s.p0)) + "Z"; | |
} | |
function subgroup(self, f, d, i) { | |
var subgroup = f.call(self, d, i), r = radius.call(self, subgroup, i), a0 = startAngle.call(self, subgroup, i) + d3_svg_arcOffset, a1 = endAngle.call(self, subgroup, i) + d3_svg_arcOffset; | |
return { | |
r: r, | |
a0: a0, | |
a1: a1, | |
p0: [ r * Math.cos(a0), r * Math.sin(a0) ], | |
p1: [ r * Math.cos(a1), r * Math.sin(a1) ] | |
}; | |
} | |
function equals(a, b) { | |
return a.a0 == b.a0 && a.a1 == b.a1; | |
} | |
function arc(r, p, a) { | |
return "A" + r + "," + r + " 0 " + +(a > π) + ",1 " + p; | |
} | |
function curve(r0, p0, r1, p1) { | |
return "Q 0,0 " + p1; | |
} | |
chord.radius = function(v) { | |
if (!arguments.length) return radius; | |
radius = d3_functor(v); | |
return chord; | |
}; | |
chord.source = function(v) { | |
if (!arguments.length) return source; | |
source = d3_functor(v); | |
return chord; | |
}; | |
chord.target = function(v) { | |
if (!arguments.length) return target; | |
target = d3_functor(v); | |
return chord; | |
}; | |
chord.startAngle = function(v) { | |
if (!arguments.length) return startAngle; | |
startAngle = d3_functor(v); | |
return chord; | |
}; | |
chord.endAngle = function(v) { | |
if (!arguments.length) return endAngle; | |
endAngle = d3_functor(v); | |
return chord; | |
}; | |
return chord; | |
}; | |
function d3_svg_chordRadius(d) { | |
return d.radius; | |
} | |
d3.svg.diagonal = function() { | |
var source = d3_source, target = d3_target, projection = d3_svg_diagonalProjection; | |
function diagonal(d, i) { | |
var p0 = source.call(this, d, i), p3 = target.call(this, d, i), m = (p0.y + p3.y) / 2, p = [ p0, { | |
x: p0.x, | |
y: m | |
}, { | |
x: p3.x, | |
y: m | |
}, p3 ]; | |
p = p.map(projection); | |
return "M" + p[0] + "C" + p[1] + " " + p[2] + " " + p[3]; | |
} | |
diagonal.source = function(x) { | |
if (!arguments.length) return source; | |
source = d3_functor(x); | |
return diagonal; | |
}; | |
diagonal.target = function(x) { | |
if (!arguments.length) return target; | |
target = d3_functor(x); | |
return diagonal; | |
}; | |
diagonal.projection = function(x) { | |
if (!arguments.length) return projection; | |
projection = x; | |
return diagonal; | |
}; | |
return diagonal; | |
}; | |
function d3_svg_diagonalProjection(d) { | |
return [ d.x, d.y ]; | |
} | |
d3.svg.diagonal.radial = function() { | |
var diagonal = d3.svg.diagonal(), projection = d3_svg_diagonalProjection, projection_ = diagonal.projection; | |
diagonal.projection = function(x) { | |
return arguments.length ? projection_(d3_svg_diagonalRadialProjection(projection = x)) : projection; | |
}; | |
return diagonal; | |
}; | |
function d3_svg_diagonalRadialProjection(projection) { | |
return function() { | |
var d = projection.apply(this, arguments), r = d[0], a = d[1] + d3_svg_arcOffset; | |
return [ r * Math.cos(a), r * Math.sin(a) ]; | |
}; | |
} | |
d3.svg.symbol = function() { | |
var type = d3_svg_symbolType, size = d3_svg_symbolSize; | |
function symbol(d, i) { | |
return (d3_svg_symbols.get(type.call(this, d, i)) || d3_svg_symbolCircle)(size.call(this, d, i)); | |
} | |
symbol.type = function(x) { | |
if (!arguments.length) return type; | |
type = d3_functor(x); | |
return symbol; | |
}; | |
symbol.size = function(x) { | |
if (!arguments.length) return size; | |
size = d3_functor(x); | |
return symbol; | |
}; | |
return symbol; | |
}; | |
function d3_svg_symbolSize() { | |
return 64; | |
} | |
function d3_svg_symbolType() { | |
return "circle"; | |
} | |
function d3_svg_symbolCircle(size) { | |
var r = Math.sqrt(size / π); | |
return "M0," + r + "A" + r + "," + r + " 0 1,1 0," + -r + "A" + r + "," + r + " 0 1,1 0," + r + "Z"; | |
} | |
var d3_svg_symbols = d3.map({ | |
circle: d3_svg_symbolCircle, | |
cross: function(size) { | |
var r = Math.sqrt(size / 5) / 2; | |
return "M" + -3 * r + "," + -r + "H" + -r + "V" + -3 * r + "H" + r + "V" + -r + "H" + 3 * r + "V" + r + "H" + r + "V" + 3 * r + "H" + -r + "V" + r + "H" + -3 * r + "Z"; | |
}, | |
diamond: function(size) { | |
var ry = Math.sqrt(size / (2 * d3_svg_symbolTan30)), rx = ry * d3_svg_symbolTan30; | |
return "M0," + -ry + "L" + rx + ",0" + " 0," + ry + " " + -rx + ",0" + "Z"; | |
}, | |
square: function(size) { | |
var r = Math.sqrt(size) / 2; | |
return "M" + -r + "," + -r + "L" + r + "," + -r + " " + r + "," + r + " " + -r + "," + r + "Z"; | |
}, | |
"triangle-down": function(size) { | |
var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2; | |
return "M0," + ry + "L" + rx + "," + -ry + " " + -rx + "," + -ry + "Z"; | |
}, | |
"triangle-up": function(size) { | |
var rx = Math.sqrt(size / d3_svg_symbolSqrt3), ry = rx * d3_svg_symbolSqrt3 / 2; | |
return "M0," + -ry + "L" + rx + "," + ry + " " + -rx + "," + ry + "Z"; | |
} | |
}); | |
d3.svg.symbolTypes = d3_svg_symbols.keys(); | |
var d3_svg_symbolSqrt3 = Math.sqrt(3), d3_svg_symbolTan30 = Math.tan(30 * d3_radians); | |
function d3_transition(groups, id) { | |
d3_subclass(groups, d3_transitionPrototype); | |
groups.id = id; | |
return groups; | |
} | |
var d3_transitionPrototype = [], d3_transitionId = 0, d3_transitionInheritId, d3_transitionInherit; | |
d3_transitionPrototype.call = d3_selectionPrototype.call; | |
d3_transitionPrototype.empty = d3_selectionPrototype.empty; | |
d3_transitionPrototype.node = d3_selectionPrototype.node; | |
d3_transitionPrototype.size = d3_selectionPrototype.size; | |
d3.transition = function(selection) { | |
return arguments.length ? d3_transitionInheritId ? selection.transition() : selection : d3_selectionRoot.transition(); | |
}; | |
d3.transition.prototype = d3_transitionPrototype; | |
d3_transitionPrototype.select = function(selector) { | |
var id = this.id, subgroups = [], subgroup, subnode, node; | |
selector = d3_selection_selector(selector); | |
for (var j = -1, m = this.length; ++j < m; ) { | |
subgroups.push(subgroup = []); | |
for (var group = this[j], i = -1, n = group.length; ++i < n; ) { | |
if ((node = group[i]) && (subnode = selector.call(node, node.__data__, i, j))) { | |
if ("__data__" in node) subnode.__data__ = node.__data__; | |
d3_transitionNode(subnode, i, id, node.__transition__[id]); | |
subgroup.push(subnode); | |
} else { | |
subgroup.push(null); | |
} | |
} | |
} | |
return d3_transition(subgroups, id); | |
}; | |
d3_transitionPrototype.selectAll = function(selector) { | |
var id = this.id, subgroups = [], subgroup, subnodes, node, subnode, transition; | |
selector = d3_selection_selectorAll(selector); | |
for (var j = -1, m = this.length; ++j < m; ) { | |
for (var group = this[j], i = -1, n = group.length; ++i < n; ) { | |
if (node = group[i]) { | |
transition = node.__transition__[id]; | |
subnodes = selector.call(node, node.__data__, i, j); | |
subgroups.push(subgroup = []); | |
for (var k = -1, o = subnodes.length; ++k < o; ) { | |
if (subnode = subnodes[k]) d3_transitionNode(subnode, k, id, transition); | |
subgroup.push(subnode); | |
} | |
} | |
} | |
} | |
return d3_transition(subgroups, id); | |
}; | |
d3_transitionPrototype.filter = function(filter) { | |
var subgroups = [], subgroup, group, node; | |
if (typeof filter !== "function") filter = d3_selection_filter(filter); | |
for (var j = 0, m = this.length; j < m; j++) { | |
subgroups.push(subgroup = []); | |
for (var group = this[j], i = 0, n = group.length; i < n; i++) { | |
if ((node = group[i]) && filter.call(node, node.__data__, i)) { | |
subgroup.push(node); | |
} | |
} | |
} | |
return d3_transition(subgroups, this.id); | |
}; | |
d3_transitionPrototype.tween = function(name, tween) { | |
var id = this.id; | |
if (arguments.length < 2) return this.node().__transition__[id].tween.get(name); | |
return d3_selection_each(this, tween == null ? function(node) { | |
node.__transition__[id].tween.remove(name); | |
} : function(node) { | |
node.__transition__[id].tween.set(name, tween); | |
}); | |
}; | |
function d3_transition_tween(groups, name, value, tween) { | |
var id = groups.id; | |
return d3_selection_each(groups, typeof value === "function" ? function(node, i, j) { | |
node.__transition__[id].tween.set(name, tween(value.call(node, node.__data__, i, j))); | |
} : (value = tween(value), function(node) { | |
node.__transition__[id].tween.set(name, value); | |
})); | |
} | |
d3_transitionPrototype.attr = function(nameNS, value) { | |
if (arguments.length < 2) { | |
for (value in nameNS) this.attr(value, nameNS[value]); | |
return this; | |
} | |
var interpolate = nameNS == "transform" ? d3_interpolateTransform : d3_interpolate, name = d3.ns.qualify(nameNS); | |
function attrNull() { | |
this.removeAttribute(name); | |
} | |
function attrNullNS() { | |
this.removeAttributeNS(name.space, name.local); | |
} | |
function attrTween(b) { | |
return b == null ? attrNull : (b += "", function() { | |
var a = this.getAttribute(name), i; | |
return a !== b && (i = interpolate(a, b), function(t) { | |
this.setAttribute(name, i(t)); | |
}); | |
}); | |
} | |
function attrTweenNS(b) { | |
return b == null ? attrNullNS : (b += "", function() { | |
var a = this.getAttributeNS(name.space, name.local), i; | |
return a !== b && (i = interpolate(a, b), function(t) { | |
this.setAttributeNS(name.space, name.local, i(t)); | |
}); | |
}); | |
} | |
return d3_transition_tween(this, "attr." + nameNS, value, name.local ? attrTweenNS : attrTween); | |
}; | |
d3_transitionPrototype.attrTween = function(nameNS, tween) { | |
var name = d3.ns.qualify(nameNS); | |
function attrTween(d, i) { | |
var f = tween.call(this, d, i, this.getAttribute(name)); | |
return f && function(t) { | |
this.setAttribute(name, f(t)); | |
}; | |
} | |
function attrTweenNS(d, i) { | |
var f = tween.call(this, d, i, this.getAttributeNS(name.space, name.local)); | |
return f && function(t) { | |
this.setAttributeNS(name.space, name.local, f(t)); | |
}; | |
} | |
return this.tween("attr." + nameNS, name.local ? attrTweenNS : attrTween); | |
}; | |
d3_transitionPrototype.style = function(name, value, priority) { | |
var n = arguments.length; | |
if (n < 3) { | |
if (typeof name !== "string") { | |
if (n < 2) value = ""; | |
for (priority in name) this.style(priority, name[priority], value); | |
return this; | |
} | |
priority = ""; | |
} | |
function styleNull() { | |
this.style.removeProperty(name); | |
} | |
function styleString(b) { | |
return b == null ? styleNull : (b += "", function() { | |
var a = d3_window.getComputedStyle(this, null).getPropertyValue(name), i; | |
return a !== b && (i = d3_interpolate(a, b), function(t) { | |
this.style.setProperty(name, i(t), priority); | |
}); | |
}); | |
} | |
return d3_transition_tween(this, "style." + name, value, styleString); | |
}; | |
d3_transitionPrototype.styleTween = function(name, tween, priority) { | |
if (arguments.length < 3) priority = ""; | |
function styleTween(d, i) { | |
var f = tween.call(this, d, i, d3_window.getComputedStyle(this, null).getPropertyValue(name)); | |
return f && function(t) { | |
this.style.setProperty(name, f(t), priority); | |
}; | |
} | |
return this.tween("style." + name, styleTween); | |
}; | |
d3_transitionPrototype.text = function(value) { | |
return d3_transition_tween(this, "text", value, d3_transition_text); | |
}; | |
function d3_transition_text(b) { | |
if (b == null) b = ""; | |
return function() { | |
this.textContent = b; | |
}; | |
} | |
d3_transitionPrototype.remove = function() { | |
return this.each("end.transition", function() { | |
var p; | |
if (!this.__transition__ && (p = this.parentNode)) p.removeChild(this); | |
}); | |
}; | |
d3_transitionPrototype.ease = function(value) { | |
var id = this.id; | |
if (arguments.length < 1) return this.node().__transition__[id].ease; | |
if (typeof value !== "function") value = d3.ease.apply(d3, arguments); | |
return d3_selection_each(this, function(node) { | |
node.__transition__[id].ease = value; | |
}); | |
}; | |
d3_transitionPrototype.delay = function(value) { | |
var id = this.id; | |
return d3_selection_each(this, typeof value === "function" ? function(node, i, j) { | |
node.__transition__[id].delay = value.call(node, node.__data__, i, j) | 0; | |
} : (value |= 0, function(node) { | |
node.__transition__[id].delay = value; | |
})); | |
}; | |
d3_transitionPrototype.duration = function(value) { | |
var id = this.id; | |
return d3_selection_each(this, typeof value === "function" ? function(node, i, j) { | |
node.__transition__[id].duration = Math.max(1, value.call(node, node.__data__, i, j) | 0); | |
} : (value = Math.max(1, value | 0), function(node) { | |
node.__transition__[id].duration = value; | |
})); | |
}; | |
d3_transitionPrototype.each = function(type, listener) { | |
var id = this.id; | |
if (arguments.length < 2) { | |
var inherit = d3_transitionInherit, inheritId = d3_transitionInheritId; | |
d3_transitionInheritId = id; | |
d3_selection_each(this, function(node, i, j) { | |
d3_transitionInherit = node.__transition__[id]; | |
type.call(node, node.__data__, i, j); | |
}); | |
d3_transitionInherit = inherit; | |
d3_transitionInheritId = inheritId; | |
} else { | |
d3_selection_each(this, function(node) { | |
var transition = node.__transition__[id]; | |
(transition.event || (transition.event = d3.dispatch("start", "end"))).on(type, listener); | |
}); | |
} | |
return this; | |
}; | |
d3_transitionPrototype.transition = function() { | |
var id0 = this.id, id1 = ++d3_transitionId, subgroups = [], subgroup, group, node, transition; | |
for (var j = 0, m = this.length; j < m; j++) { | |
subgroups.push(subgroup = []); | |
for (var group = this[j], i = 0, n = group.length; i < n; i++) { | |
if (node = group[i]) { | |
transition = Object.create(node.__transition__[id0]); | |
transition.delay += transition.duration; | |
d3_transitionNode(node, i, id1, transition); | |
} | |
subgroup.push(node); | |
} | |
} | |
return d3_transition(subgroups, id1); | |
}; | |
function d3_transitionNode(node, i, id, inherit) { | |
var lock = node.__transition__ || (node.__transition__ = { | |
active: 0, | |
count: 0 | |
}), transition = lock[id]; | |
if (!transition) { | |
var time = inherit.time; | |
transition = lock[id] = { | |
tween: new d3_Map(), | |
time: time, | |
ease: inherit.ease, | |
delay: inherit.delay, | |
duration: inherit.duration | |
}; | |
++lock.count; | |
d3.timer(function(elapsed) { | |
var d = node.__data__, ease = transition.ease, delay = transition.delay, duration = transition.duration, tweened = []; | |
if (delay <= elapsed) return start(elapsed); | |
d3_timer_replace(start, delay, time); | |
function start(elapsed) { | |
if (lock.active > id) return stop(); | |
lock.active = id; | |
transition.event && transition.event.start.call(node, d, i); | |
transition.tween.forEach(function(key, value) { | |
if (value = value.call(node, d, i)) { | |
tweened.push(value); | |
} | |
}); | |
if (tick(elapsed)) return 1; | |
d3_timer_replace(tick, 0, time); | |
} | |
function tick(elapsed) { | |
if (lock.active !== id) return stop(); | |
var t = (elapsed - delay) / duration, e = ease(t), n = tweened.length; | |
while (n > 0) { | |
tweened[--n].call(node, e); | |
} | |
if (t >= 1) { | |
stop(); | |
transition.event && transition.event.end.call(node, d, i); | |
return 1; | |
} | |
} | |
function stop() { | |
if (--lock.count) delete lock[id]; else delete node.__transition__; | |
return 1; | |
} | |
}, 0, time); | |
} | |
} | |
d3.svg.axis = function() { | |
var scale = d3.scale.linear(), orient = d3_svg_axisDefaultOrient, tickMajorSize = 6, tickMinorSize = 6, tickEndSize = 6, tickPadding = 3, tickArguments_ = [ 10 ], tickValues = null, tickFormat_, tickSubdivide = 0; | |
function axis(g) { | |
g.each(function() { | |
var g = d3.select(this); | |
var ticks = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments_) : scale.domain() : tickValues, tickFormat = tickFormat_ == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments_) : String : tickFormat_; | |
var subticks = d3_svg_axisSubdivide(scale, ticks, tickSubdivide), subtick = g.selectAll(".tick.minor").data(subticks, String), subtickEnter = subtick.enter().insert("line", ".tick").attr("class", "tick minor").style("opacity", 1e-6), subtickExit = d3.transition(subtick.exit()).style("opacity", 1e-6).remove(), subtickUpdate = d3.transition(subtick).style("opacity", 1); | |
var tick = g.selectAll(".tick.major").data(ticks, String), tickEnter = tick.enter().insert("g", ".domain").attr("class", "tick major").style("opacity", 1e-6), tickExit = d3.transition(tick.exit()).style("opacity", 1e-6).remove(), tickUpdate = d3.transition(tick).style("opacity", 1), tickTransform; | |
var range = d3_scaleRange(scale), path = g.selectAll(".domain").data([ 0 ]), pathUpdate = (path.enter().append("path").attr("class", "domain"), | |
d3.transition(path)); | |
var scale1 = scale.copy(), scale0 = this.__chart__ || scale1; | |
this.__chart__ = scale1; | |
tickEnter.append("line"); | |
tickEnter.append("text"); | |
var lineEnter = tickEnter.select("line"), lineUpdate = tickUpdate.select("line"), text = tick.select("text").text(tickFormat), textEnter = tickEnter.select("text"), textUpdate = tickUpdate.select("text"); | |
switch (orient) { | |
case "bottom": | |
{ | |
tickTransform = d3_svg_axisX; | |
subtickEnter.attr("y2", tickMinorSize); | |
subtickUpdate.attr("x2", 0).attr("y2", tickMinorSize); | |
lineEnter.attr("y2", tickMajorSize); | |
textEnter.attr("y", Math.max(tickMajorSize, 0) + tickPadding); | |
lineUpdate.attr("x2", 0).attr("y2", tickMajorSize); | |
textUpdate.attr("x", 0).attr("y", Math.max(tickMajorSize, 0) + tickPadding); | |
text.attr("dy", ".71em").style("text-anchor", "middle"); | |
pathUpdate.attr("d", "M" + range[0] + "," + tickEndSize + "V0H" + range[1] + "V" + tickEndSize); | |
break; | |
} | |
case "top": | |
{ | |
tickTransform = d3_svg_axisX; | |
subtickEnter.attr("y2", -tickMinorSize); | |
subtickUpdate.attr("x2", 0).attr("y2", -tickMinorSize); | |
lineEnter.attr("y2", -tickMajorSize); | |
textEnter.attr("y", -(Math.max(tickMajorSize, 0) + tickPadding)); | |
lineUpdate.attr("x2", 0).attr("y2", -tickMajorSize); | |
textUpdate.attr("x", 0).attr("y", -(Math.max(tickMajorSize, 0) + tickPadding)); | |
text.attr("dy", "0em").style("text-anchor", "middle"); | |
pathUpdate.attr("d", "M" + range[0] + "," + -tickEndSize + "V0H" + range[1] + "V" + -tickEndSize); | |
break; | |
} | |
case "left": | |
{ | |
tickTransform = d3_svg_axisY; | |
subtickEnter.attr("x2", -tickMinorSize); | |
subtickUpdate.attr("x2", -tickMinorSize).attr("y2", 0); | |
lineEnter.attr("x2", -tickMajorSize); | |
textEnter.attr("x", -(Math.max(tickMajorSize, 0) + tickPadding)); | |
lineUpdate.attr("x2", -tickMajorSize).attr("y2", 0); | |
textUpdate.attr("x", -(Math.max(tickMajorSize, 0) + tickPadding)).attr("y", 0); | |
text.attr("dy", ".32em").style("text-anchor", "end"); | |
pathUpdate.attr("d", "M" + -tickEndSize + "," + range[0] + "H0V" + range[1] + "H" + -tickEndSize); | |
break; | |
} | |
case "right": | |
{ | |
tickTransform = d3_svg_axisY; | |
subtickEnter.attr("x2", tickMinorSize); | |
subtickUpdate.attr("x2", tickMinorSize).attr("y2", 0); | |
lineEnter.attr("x2", tickMajorSize); | |
textEnter.attr("x", Math.max(tickMajorSize, 0) + tickPadding); | |
lineUpdate.attr("x2", tickMajorSize).attr("y2", 0); | |
textUpdate.attr("x", Math.max(tickMajorSize, 0) + tickPadding).attr("y", 0); | |
text.attr("dy", ".32em").style("text-anchor", "start"); | |
pathUpdate.attr("d", "M" + tickEndSize + "," + range[0] + "H0V" + range[1] + "H" + tickEndSize); | |
break; | |
} | |
} | |
if (scale.rangeBand) { | |
var dx = scale1.rangeBand() / 2, x = function(d) { | |
return scale1(d) + dx; | |
}; | |
tickEnter.call(tickTransform, x); | |
tickUpdate.call(tickTransform, x); | |
} else { | |
tickEnter.call(tickTransform, scale0); | |
tickUpdate.call(tickTransform, scale1); | |
tickExit.call(tickTransform, scale1); | |
subtickEnter.call(tickTransform, scale0); | |
subtickUpdate.call(tickTransform, scale1); | |
subtickExit.call(tickTransform, scale1); | |
} | |
}); | |
} | |
axis.scale = function(x) { | |
if (!arguments.length) return scale; | |
scale = x; | |
return axis; | |
}; | |
axis.orient = function(x) { | |
if (!arguments.length) return orient; | |
orient = x in d3_svg_axisOrients ? x + "" : d3_svg_axisDefaultOrient; | |
return axis; | |
}; | |
axis.ticks = function() { | |
if (!arguments.length) return tickArguments_; | |
tickArguments_ = arguments; | |
return axis; | |
}; | |
axis.tickValues = function(x) { | |
if (!arguments.length) return tickValues; | |
tickValues = x; | |
return axis; | |
}; | |
axis.tickFormat = function(x) { | |
if (!arguments.length) return tickFormat_; | |
tickFormat_ = x; | |
return axis; | |
}; | |
axis.tickSize = function(x, y) { | |
if (!arguments.length) return tickMajorSize; | |
var n = arguments.length - 1; | |
tickMajorSize = +x; | |
tickMinorSize = n > 1 ? +y : tickMajorSize; | |
tickEndSize = n > 0 ? +arguments[n] : tickMajorSize; | |
return axis; | |
}; | |
axis.tickPadding = function(x) { | |
if (!arguments.length) return tickPadding; | |
tickPadding = +x; | |
return axis; | |
}; | |
axis.tickSubdivide = function(x) { | |
if (!arguments.length) return tickSubdivide; | |
tickSubdivide = +x; | |
return axis; | |
}; | |
return axis; | |
}; | |
var d3_svg_axisDefaultOrient = "bottom", d3_svg_axisOrients = { | |
top: 1, | |
right: 1, | |
bottom: 1, | |
left: 1 | |
}; | |
function d3_svg_axisX(selection, x) { | |
selection.attr("transform", function(d) { | |
return "translate(" + x(d) + ",0)"; | |
}); | |
} | |
function d3_svg_axisY(selection, y) { | |
selection.attr("transform", function(d) { | |
return "translate(0," + y(d) + ")"; | |
}); | |
} | |
function d3_svg_axisSubdivide(scale, ticks, m) { | |
subticks = []; | |
if (m && ticks.length > 1) { | |
var extent = d3_scaleExtent(scale.domain()), subticks, i = -1, n = ticks.length, d = (ticks[1] - ticks[0]) / ++m, j, v; | |
while (++i < n) { | |
for (j = m; --j > 0; ) { | |
if ((v = +ticks[i] - j * d) >= extent[0]) { | |
subticks.push(v); | |
} | |
} | |
} | |
for (--i, j = 0; ++j < m && (v = +ticks[i] + j * d) < extent[1]; ) { | |
subticks.push(v); | |
} | |
} | |
return subticks; | |
} | |
d3.svg.brush = function() { | |
var event = d3_eventDispatch(brush, "brushstart", "brush", "brushend"), x = null, y = null, resizes = d3_svg_brushResizes[0], extent = [ [ 0, 0 ], [ 0, 0 ] ], clamp = [ true, true ], extentDomain; | |
function brush(g) { | |
g.each(function() { | |
var g = d3.select(this), bg = g.selectAll(".background").data([ 0 ]), fg = g.selectAll(".extent").data([ 0 ]), tz = g.selectAll(".resize").data(resizes, String), e; | |
g.style("pointer-events", "all").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart); | |
bg.enter().append("rect").attr("class", "background").style("visibility", "hidden").style("cursor", "crosshair"); | |
fg.enter().append("rect").attr("class", "extent").style("cursor", "move"); | |
tz.enter().append("g").attr("class", function(d) { | |
return "resize " + d; | |
}).style("cursor", function(d) { | |
return d3_svg_brushCursor[d]; | |
}).append("rect").attr("x", function(d) { | |
return /[ew]$/.test(d) ? -3 : null; | |
}).attr("y", function(d) { | |
return /^[ns]/.test(d) ? -3 : null; | |
}).attr("width", 6).attr("height", 6).style("visibility", "hidden"); | |
tz.style("display", brush.empty() ? "none" : null); | |
tz.exit().remove(); | |
if (x) { | |
e = d3_scaleRange(x); | |
bg.attr("x", e[0]).attr("width", e[1] - e[0]); | |
redrawX(g); | |
} | |
if (y) { | |
e = d3_scaleRange(y); | |
bg.attr("y", e[0]).attr("height", e[1] - e[0]); | |
redrawY(g); | |
} | |
redraw(g); | |
}); | |
} | |
function redraw(g) { | |
g.selectAll(".resize").attr("transform", function(d) { | |
return "translate(" + extent[+/e$/.test(d)][0] + "," + extent[+/^s/.test(d)][1] + ")"; | |
}); | |
} | |
function redrawX(g) { | |
g.select(".extent").attr("x", extent[0][0]); | |
g.selectAll(".extent,.n>rect,.s>rect").attr("width", extent[1][0] - extent[0][0]); | |
} | |
function redrawY(g) { | |
g.select(".extent").attr("y", extent[0][1]); | |
g.selectAll(".extent,.e>rect,.w>rect").attr("height", extent[1][1] - extent[0][1]); | |
} | |
function brushstart() { | |
var target = this, eventTarget = d3.select(d3.event.target), event_ = event.of(target, arguments), g = d3.select(target), resizing = eventTarget.datum(), resizingX = !/^(n|s)$/.test(resizing) && x, resizingY = !/^(e|w)$/.test(resizing) && y, dragging = eventTarget.classed("extent"), dragRestore = d3_event_dragSuppress(), center, origin = mouse(), offset; | |
var w = d3.select(d3_window).on("keydown.brush", keydown).on("keyup.brush", keyup); | |
if (d3.event.changedTouches) { | |
w.on("touchmove.brush", brushmove).on("touchend.brush", brushend); | |
} else { | |
w.on("mousemove.brush", brushmove).on("mouseup.brush", brushend); | |
} | |
if (dragging) { | |
origin[0] = extent[0][0] - origin[0]; | |
origin[1] = extent[0][1] - origin[1]; | |
} else if (resizing) { | |
var ex = +/w$/.test(resizing), ey = +/^n/.test(resizing); | |
offset = [ extent[1 - ex][0] - origin[0], extent[1 - ey][1] - origin[1] ]; | |
origin[0] = extent[ex][0]; | |
origin[1] = extent[ey][1]; | |
} else if (d3.event.altKey) center = origin.slice(); | |
g.style("pointer-events", "none").selectAll(".resize").style("display", null); | |
d3.select("body").style("cursor", eventTarget.style("cursor")); | |
event_({ | |
type: "brushstart" | |
}); | |
brushmove(); | |
function mouse() { | |
var touches = d3.event.changedTouches; | |
return touches ? d3.touches(target, touches)[0] : d3.mouse(target); | |
} | |
function keydown() { | |
if (d3.event.keyCode == 32) { | |
if (!dragging) { | |
center = null; | |
origin[0] -= extent[1][0]; | |
origin[1] -= extent[1][1]; | |
dragging = 2; | |
} | |
d3_eventPreventDefault(); | |
} | |
} | |
function keyup() { | |
if (d3.event.keyCode == 32 && dragging == 2) { | |
origin[0] += extent[1][0]; | |
origin[1] += extent[1][1]; | |
dragging = 0; | |
d3_eventPreventDefault(); | |
} | |
} | |
function brushmove() { | |
var point = mouse(), moved = false; | |
if (offset) { | |
point[0] += offset[0]; | |
point[1] += offset[1]; | |
} | |
if (!dragging) { | |
if (d3.event.altKey) { | |
if (!center) center = [ (extent[0][0] + extent[1][0]) / 2, (extent[0][1] + extent[1][1]) / 2 ]; | |
origin[0] = extent[+(point[0] < center[0])][0]; | |
origin[1] = extent[+(point[1] < center[1])][1]; | |
} else center = null; | |
} | |
if (resizingX && move1(point, x, 0)) { | |
redrawX(g); | |
moved = true; | |
} | |
if (resizingY && move1(point, y, 1)) { | |
redrawY(g); | |
moved = true; | |
} | |
if (moved) { | |
redraw(g); | |
event_({ | |
type: "brush", | |
mode: dragging ? "move" : "resize" | |
}); | |
} | |
} | |
function move1(point, scale, i) { | |
var range = d3_scaleRange(scale), r0 = range[0], r1 = range[1], position = origin[i], size = extent[1][i] - extent[0][i], min, max; | |
if (dragging) { | |
r0 -= position; | |
r1 -= size + position; | |
} | |
min = clamp[i] ? Math.max(r0, Math.min(r1, point[i])) : point[i]; | |
if (dragging) { | |
max = (min += position) + size; | |
} else { | |
if (center) position = Math.max(r0, Math.min(r1, 2 * center[i] - min)); | |
if (position < min) { | |
max = min; | |
min = position; | |
} else { | |
max = position; | |
} | |
} | |
if (extent[0][i] !== min || extent[1][i] !== max) { | |
extentDomain = null; | |
extent[0][i] = min; | |
extent[1][i] = max; | |
return true; | |
} | |
} | |
function brushend() { | |
brushmove(); | |
g.style("pointer-events", "all").selectAll(".resize").style("display", brush.empty() ? "none" : null); | |
d3.select("body").style("cursor", null); | |
w.on("mousemove.brush", null).on("mouseup.brush", null).on("touchmove.brush", null).on("touchend.brush", null).on("keydown.brush", null).on("keyup.brush", null); | |
dragRestore(); | |
event_({ | |
type: "brushend" | |
}); | |
} | |
} | |
brush.x = function(z) { | |
if (!arguments.length) return x; | |
x = z; | |
resizes = d3_svg_brushResizes[!x << 1 | !y]; | |
return brush; | |
}; | |
brush.y = function(z) { | |
if (!arguments.length) return y; | |
y = z; | |
resizes = d3_svg_brushResizes[!x << 1 | !y]; | |
return brush; | |
}; | |
brush.clamp = function(z) { | |
if (!arguments.length) return x && y ? clamp : x || y ? clamp[+!x] : null; | |
if (x && y) clamp = [ !!z[0], !!z[1] ]; else if (x || y) clamp[+!x] = !!z; | |
return brush; | |
}; | |
brush.extent = function(z) { | |
var x0, x1, y0, y1, t; | |
if (!arguments.length) { | |
z = extentDomain || extent; | |
if (x) { | |
x0 = z[0][0], x1 = z[1][0]; | |
if (!extentDomain) { | |
x0 = extent[0][0], x1 = extent[1][0]; | |
if (x.invert) x0 = x.invert(x0), x1 = x.invert(x1); | |
if (x1 < x0) t = x0, x0 = x1, x1 = t; | |
} | |
} | |
if (y) { | |
y0 = z[0][1], y1 = z[1][1]; | |
if (!extentDomain) { | |
y0 = extent[0][1], y1 = extent[1][1]; | |
if (y.invert) y0 = y.invert(y0), y1 = y.invert(y1); | |
if (y1 < y0) t = y0, y0 = y1, y1 = t; | |
} | |
} | |
return x && y ? [ [ x0, y0 ], [ x1, y1 ] ] : x ? [ x0, x1 ] : y && [ y0, y1 ]; | |
} | |
extentDomain = [ [ 0, 0 ], [ 0, 0 ] ]; | |
if (x) { | |
x0 = z[0], x1 = z[1]; | |
if (y) x0 = x0[0], x1 = x1[0]; | |
extentDomain[0][0] = x0, extentDomain[1][0] = x1; | |
if (x.invert) x0 = x(x0), x1 = x(x1); | |
if (x1 < x0) t = x0, x0 = x1, x1 = t; | |
extent[0][0] = x0 | 0, extent[1][0] = x1 | 0; | |
} | |
if (y) { | |
y0 = z[0], y1 = z[1]; | |
if (x) y0 = y0[1], y1 = y1[1]; | |
extentDomain[0][1] = y0, extentDomain[1][1] = y1; | |
if (y.invert) y0 = y(y0), y1 = y(y1); | |
if (y1 < y0) t = y0, y0 = y1, y1 = t; | |
extent[0][1] = y0 | 0, extent[1][1] = y1 | 0; | |
} | |
return brush; | |
}; | |
brush.clear = function() { | |
extentDomain = null; | |
extent[0][0] = extent[0][1] = extent[1][0] = extent[1][1] = 0; | |
return brush; | |
}; | |
brush.empty = function() { | |
return x && extent[0][0] === extent[1][0] || y && extent[0][1] === extent[1][1]; | |
}; | |
return d3.rebind(brush, event, "on"); | |
}; | |
var d3_svg_brushCursor = { | |
n: "ns-resize", | |
e: "ew-resize", | |
s: "ns-resize", | |
w: "ew-resize", | |
nw: "nwse-resize", | |
ne: "nesw-resize", | |
se: "nwse-resize", | |
sw: "nesw-resize" | |
}; | |
var d3_svg_brushResizes = [ [ "n", "e", "s", "w", "nw", "ne", "se", "sw" ], [ "e", "w" ], [ "n", "s" ], [] ]; | |
d3.time = {}; | |
var d3_time = Date, d3_time_daySymbols = [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]; | |
function d3_time_utc() { | |
this._ = new Date(arguments.length > 1 ? Date.UTC.apply(this, arguments) : arguments[0]); | |
} | |
d3_time_utc.prototype = { | |
getDate: function() { | |
return this._.getUTCDate(); | |
}, | |
getDay: function() { | |
return this._.getUTCDay(); | |
}, | |
getFullYear: function() { | |
return this._.getUTCFullYear(); | |
}, | |
getHours: function() { | |
return this._.getUTCHours(); | |
}, | |
getMilliseconds: function() { | |
return this._.getUTCMilliseconds(); | |
}, | |
getMinutes: function() { | |
return this._.getUTCMinutes(); | |
}, | |
getMonth: function() { | |
return this._.getUTCMonth(); | |
}, | |
getSeconds: function() { | |
return this._.getUTCSeconds(); | |
}, | |
getTime: function() { | |
return this._.getTime(); | |
}, | |
getTimezoneOffset: function() { | |
return 0; | |
}, | |
valueOf: function() { | |
return this._.valueOf(); | |
}, | |
setDate: function() { | |
d3_time_prototype.setUTCDate.apply(this._, arguments); | |
}, | |
setDay: function() { | |
d3_time_prototype.setUTCDay.apply(this._, arguments); | |
}, | |
setFullYear: function() { | |
d3_time_prototype.setUTCFullYear.apply(this._, arguments); | |
}, | |
setHours: function() { | |
d3_time_prototype.setUTCHours.apply(this._, arguments); | |
}, | |
setMilliseconds: function() { | |
d3_time_prototype.setUTCMilliseconds.apply(this._, arguments); | |
}, | |
setMinutes: function() { | |
d3_time_prototype.setUTCMinutes.apply(this._, arguments); | |
}, | |
setMonth: function() { | |
d3_time_prototype.setUTCMonth.apply(this._, arguments); | |
}, | |
setSeconds: function() { | |
d3_time_prototype.setUTCSeconds.apply(this._, arguments); | |
}, | |
setTime: function() { | |
d3_time_prototype.setTime.apply(this._, arguments); | |
} | |
}; | |
var d3_time_prototype = Date.prototype; | |
var d3_time_formatDateTime = "%a %b %e %X %Y", d3_time_formatDate = "%m/%d/%Y", d3_time_formatTime = "%H:%M:%S"; | |
var d3_time_days = [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], d3_time_dayAbbreviations = [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], d3_time_months = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], d3_time_monthAbbreviations = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]; | |
function d3_time_interval(local, step, number) { | |
function round(date) { | |
var d0 = local(date), d1 = offset(d0, 1); | |
return date - d0 < d1 - date ? d0 : d1; | |
} | |
function ceil(date) { | |
step(date = local(new d3_time(date - 1)), 1); | |
return date; | |
} | |
function offset(date, k) { | |
step(date = new d3_time(+date), k); | |
return date; | |
} | |
function range(t0, t1, dt) { | |
var time = ceil(t0), times = []; | |
if (dt > 1) { | |
while (time < t1) { | |
if (!(number(time) % dt)) times.push(new Date(+time)); | |
step(time, 1); | |
} | |
} else { | |
while (time < t1) times.push(new Date(+time)), step(time, 1); | |
} | |
return times; | |
} | |
function range_utc(t0, t1, dt) { | |
try { | |
d3_time = d3_time_utc; | |
var utc = new d3_time_utc(); | |
utc._ = t0; | |
return range(utc, t1, dt); | |
} finally { | |
d3_time = Date; | |
} | |
} | |
local.floor = local; | |
local.round = round; | |
local.ceil = ceil; | |
local.offset = offset; | |
local.range = range; | |
var utc = local.utc = d3_time_interval_utc(local); | |
utc.floor = utc; | |
utc.round = d3_time_interval_utc(round); | |
utc.ceil = d3_time_interval_utc(ceil); | |
utc.offset = d3_time_interval_utc(offset); | |
utc.range = range_utc; | |
return local; | |
} | |
function d3_time_interval_utc(method) { | |
return function(date, k) { | |
try { | |
d3_time = d3_time_utc; | |
var utc = new d3_time_utc(); | |
utc._ = date; | |
return method(utc, k)._; | |
} finally { | |
d3_time = Date; | |
} | |
}; | |
} | |
d3.time.year = d3_time_interval(function(date) { | |
date = d3.time.day(date); | |
date.setMonth(0, 1); | |
return date; | |
}, function(date, offset) { | |
date.setFullYear(date.getFullYear() + offset); | |
}, function(date) { | |
return date.getFullYear(); | |
}); | |
d3.time.years = d3.time.year.range; | |
d3.time.years.utc = d3.time.year.utc.range; | |
d3.time.day = d3_time_interval(function(date) { | |
var day = new d3_time(2e3, 0); | |
day.setFullYear(date.getFullYear(), date.getMonth(), date.getDate()); | |
return day; | |
}, function(date, offset) { | |
date.setDate(date.getDate() + offset); | |
}, function(date) { | |
return date.getDate() - 1; | |
}); | |
d3.time.days = d3.time.day.range; | |
d3.time.days.utc = d3.time.day.utc.range; | |
d3.time.dayOfYear = function(date) { | |
var year = d3.time.year(date); | |
return Math.floor((date - year - (date.getTimezoneOffset() - year.getTimezoneOffset()) * 6e4) / 864e5); | |
}; | |
d3_time_daySymbols.forEach(function(day, i) { | |
day = day.toLowerCase(); | |
i = 7 - i; | |
var interval = d3.time[day] = d3_time_interval(function(date) { | |
(date = d3.time.day(date)).setDate(date.getDate() - (date.getDay() + i) % 7); | |
return date; | |
}, function(date, offset) { | |
date.setDate(date.getDate() + Math.floor(offset) * 7); | |
}, function(date) { | |
var day = d3.time.year(date).getDay(); | |
return Math.floor((d3.time.dayOfYear(date) + (day + i) % 7) / 7) - (day !== i); | |
}); | |
d3.time[day + "s"] = interval.range; | |
d3.time[day + "s"].utc = interval.utc.range; | |
d3.time[day + "OfYear"] = function(date) { | |
var day = d3.time.year(date).getDay(); | |
return Math.floor((d3.time.dayOfYear(date) + (day + i) % 7) / 7); | |
}; | |
}); | |
d3.time.week = d3.time.sunday; | |
d3.time.weeks = d3.time.sunday.range; | |
d3.time.weeks.utc = d3.time.sunday.utc.range; | |
d3.time.weekOfYear = d3.time.sundayOfYear; | |
d3.time.format = function(template) { | |
var n = template.length; | |
function format(date) { | |
var string = [], i = -1, j = 0, c, p, f; | |
while (++i < n) { | |
if (template.charCodeAt(i) === 37) { | |
string.push(template.substring(j, i)); | |
if ((p = d3_time_formatPads[c = template.charAt(++i)]) != null) c = template.charAt(++i); | |
if (f = d3_time_formats[c]) c = f(date, p == null ? c === "e" ? " " : "0" : p); | |
string.push(c); | |
j = i + 1; | |
} | |
} | |
string.push(template.substring(j, i)); | |
return string.join(""); | |
} | |
format.parse = function(string) { | |
var d = { | |
y: 1900, | |
m: 0, | |
d: 1, | |
H: 0, | |
M: 0, | |
S: 0, | |
L: 0 | |
}, i = d3_time_parse(d, template, string, 0); | |
if (i != string.length) return null; | |
if ("p" in d) d.H = d.H % 12 + d.p * 12; | |
var date = new d3_time(); | |
if ("j" in d) date.setFullYear(d.y, 0, d.j); else if ("w" in d && ("W" in d || "U" in d)) { | |
date.setFullYear(d.y, 0, 1); | |
date.setFullYear(d.y, 0, "W" in d ? (d.w + 6) % 7 + d.W * 7 - (date.getDay() + 5) % 7 : d.w + d.U * 7 - (date.getDay() + 6) % 7); | |
} else date.setFullYear(d.y, d.m, d.d); | |
date.setHours(d.H, d.M, d.S, d.L); | |
return date; | |
}; | |
format.toString = function() { | |
return template; | |
}; | |
return format; | |
}; | |
function d3_time_parse(date, template, string, j) { | |
var c, p, i = 0, n = template.length, m = string.length; | |
while (i < n) { | |
if (j >= m) return -1; | |
c = template.charCodeAt(i++); | |
if (c === 37) { | |
p = d3_time_parsers[template.charAt(i++)]; | |
if (!p || (j = p(date, string, j)) < 0) return -1; | |
} else if (c != string.charCodeAt(j++)) { | |
return -1; | |
} | |
} | |
return j; | |
} | |
function d3_time_formatRe(names) { | |
return new RegExp("^(?:" + names.map(d3.requote).join("|") + ")", "i"); | |
} | |
function d3_time_formatLookup(names) { | |
var map = new d3_Map(), i = -1, n = names.length; | |
while (++i < n) map.set(names[i].toLowerCase(), i); | |
return map; | |
} | |
function d3_time_formatPad(value, fill, width) { | |
var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length; | |
return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); | |
} | |
var d3_time_dayRe = d3_time_formatRe(d3_time_days), d3_time_dayLookup = d3_time_formatLookup(d3_time_days), d3_time_dayAbbrevRe = d3_time_formatRe(d3_time_dayAbbreviations), d3_time_dayAbbrevLookup = d3_time_formatLookup(d3_time_dayAbbreviations), d3_time_monthRe = d3_time_formatRe(d3_time_months), d3_time_monthLookup = d3_time_formatLookup(d3_time_months), d3_time_monthAbbrevRe = d3_time_formatRe(d3_time_monthAbbreviations), d3_time_monthAbbrevLookup = d3_time_formatLookup(d3_time_monthAbbreviations), d3_time_percentRe = /^%/; | |
var d3_time_formatPads = { | |
"-": "", | |
_: " ", | |
"0": "0" | |
}; | |
var d3_time_formats = { | |
a: function(d) { | |
return d3_time_dayAbbreviations[d.getDay()]; | |
}, | |
A: function(d) { | |
return d3_time_days[d.getDay()]; | |
}, | |
b: function(d) { | |
return d3_time_monthAbbreviations[d.getMonth()]; | |
}, | |
B: function(d) { | |
return d3_time_months[d.getMonth()]; | |
}, | |
c: d3.time.format(d3_time_formatDateTime), | |
d: function(d, p) { | |
return d3_time_formatPad(d.getDate(), p, 2); | |
}, | |
e: function(d, p) { | |
return d3_time_formatPad(d.getDate(), p, 2); | |
}, | |
H: function(d, p) { | |
return d3_time_formatPad(d.getHours(), p, 2); | |
}, | |
I: function(d, p) { | |
return d3_time_formatPad(d.getHours() % 12 || 12, p, 2); | |
}, | |
j: function(d, p) { | |
return d3_time_formatPad(1 + d3.time.dayOfYear(d), p, 3); | |
}, | |
L: function(d, p) { | |
return d3_time_formatPad(d.getMilliseconds(), p, 3); | |
}, | |
m: function(d, p) { | |
return d3_time_formatPad(d.getMonth() + 1, p, 2); | |
}, | |
M: function(d, p) { | |
return d3_time_formatPad(d.getMinutes(), p, 2); | |
}, | |
p: function(d) { | |
return d.getHours() >= 12 ? "PM" : "AM"; | |
}, | |
S: function(d, p) { | |
return d3_time_formatPad(d.getSeconds(), p, 2); | |
}, | |
U: function(d, p) { | |
return d3_time_formatPad(d3.time.sundayOfYear(d), p, 2); | |
}, | |
w: function(d) { | |
return d.getDay(); | |
}, | |
W: function(d, p) { | |
return d3_time_formatPad(d3.time.mondayOfYear(d), p, 2); | |
}, | |
x: d3.time.format(d3_time_formatDate), | |
X: d3.time.format(d3_time_formatTime), | |
y: function(d, p) { | |
return d3_time_formatPad(d.getFullYear() % 100, p, 2); | |
}, | |
Y: function(d, p) { | |
return d3_time_formatPad(d.getFullYear() % 1e4, p, 4); | |
}, | |
Z: d3_time_zone, | |
"%": function() { | |
return "%"; | |
} | |
}; | |
var d3_time_parsers = { | |
a: d3_time_parseWeekdayAbbrev, | |
A: d3_time_parseWeekday, | |
b: d3_time_parseMonthAbbrev, | |
B: d3_time_parseMonth, | |
c: d3_time_parseLocaleFull, | |
d: d3_time_parseDay, | |
e: d3_time_parseDay, | |
H: d3_time_parseHour24, | |
I: d3_time_parseHour24, | |
j: d3_time_parseDayOfYear, | |
L: d3_time_parseMilliseconds, | |
m: d3_time_parseMonthNumber, | |
M: d3_time_parseMinutes, | |
p: d3_time_parseAmPm, | |
S: d3_time_parseSeconds, | |
U: d3_time_parseWeekNumberSunday, | |
w: d3_time_parseWeekdayNumber, | |
W: d3_time_parseWeekNumberMonday, | |
x: d3_time_parseLocaleDate, | |
X: d3_time_parseLocaleTime, | |
y: d3_time_parseYear, | |
Y: d3_time_parseFullYear, | |
"%": d3_time_parseLiteralPercent | |
}; | |
function d3_time_parseWeekdayAbbrev(date, string, i) { | |
d3_time_dayAbbrevRe.lastIndex = 0; | |
var n = d3_time_dayAbbrevRe.exec(string.substring(i)); | |
return n ? (date.w = d3_time_dayAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; | |
} | |
function d3_time_parseWeekday(date, string, i) { | |
d3_time_dayRe.lastIndex = 0; | |
var n = d3_time_dayRe.exec(string.substring(i)); | |
return n ? (date.w = d3_time_dayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; | |
} | |
function d3_time_parseWeekdayNumber(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 1)); | |
return n ? (date.w = +n[0], i + n[0].length) : -1; | |
} | |
function d3_time_parseWeekNumberSunday(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i)); | |
return n ? (date.U = +n[0], i + n[0].length) : -1; | |
} | |
function d3_time_parseWeekNumberMonday(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i)); | |
return n ? (date.W = +n[0], i + n[0].length) : -1; | |
} | |
function d3_time_parseMonthAbbrev(date, string, i) { | |
d3_time_monthAbbrevRe.lastIndex = 0; | |
var n = d3_time_monthAbbrevRe.exec(string.substring(i)); | |
return n ? (date.m = d3_time_monthAbbrevLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; | |
} | |
function d3_time_parseMonth(date, string, i) { | |
d3_time_monthRe.lastIndex = 0; | |
var n = d3_time_monthRe.exec(string.substring(i)); | |
return n ? (date.m = d3_time_monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; | |
} | |
function d3_time_parseLocaleFull(date, string, i) { | |
return d3_time_parse(date, d3_time_formats.c.toString(), string, i); | |
} | |
function d3_time_parseLocaleDate(date, string, i) { | |
return d3_time_parse(date, d3_time_formats.x.toString(), string, i); | |
} | |
function d3_time_parseLocaleTime(date, string, i) { | |
return d3_time_parse(date, d3_time_formats.X.toString(), string, i); | |
} | |
function d3_time_parseFullYear(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 4)); | |
return n ? (date.y = +n[0], i + n[0].length) : -1; | |
} | |
function d3_time_parseYear(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 2)); | |
return n ? (date.y = d3_time_expandYear(+n[0]), i + n[0].length) : -1; | |
} | |
function d3_time_expandYear(d) { | |
return d + (d > 68 ? 1900 : 2e3); | |
} | |
function d3_time_parseMonthNumber(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 2)); | |
return n ? (date.m = n[0] - 1, i + n[0].length) : -1; | |
} | |
function d3_time_parseDay(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 2)); | |
return n ? (date.d = +n[0], i + n[0].length) : -1; | |
} | |
function d3_time_parseDayOfYear(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 3)); | |
return n ? (date.j = +n[0], i + n[0].length) : -1; | |
} | |
function d3_time_parseHour24(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 2)); | |
return n ? (date.H = +n[0], i + n[0].length) : -1; | |
} | |
function d3_time_parseMinutes(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 2)); | |
return n ? (date.M = +n[0], i + n[0].length) : -1; | |
} | |
function d3_time_parseSeconds(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 2)); | |
return n ? (date.S = +n[0], i + n[0].length) : -1; | |
} | |
function d3_time_parseMilliseconds(date, string, i) { | |
d3_time_numberRe.lastIndex = 0; | |
var n = d3_time_numberRe.exec(string.substring(i, i + 3)); | |
return n ? (date.L = +n[0], i + n[0].length) : -1; | |
} | |
var d3_time_numberRe = /^\s*\d+/; | |
function d3_time_parseAmPm(date, string, i) { | |
var n = d3_time_amPmLookup.get(string.substring(i, i += 2).toLowerCase()); | |
return n == null ? -1 : (date.p = n, i); | |
} | |
var d3_time_amPmLookup = d3.map({ | |
am: 0, | |
pm: 1 | |
}); | |
function d3_time_zone(d) { | |
var z = d.getTimezoneOffset(), zs = z > 0 ? "-" : "+", zh = ~~(Math.abs(z) / 60), zm = Math.abs(z) % 60; | |
return zs + d3_time_formatPad(zh, "0", 2) + d3_time_formatPad(zm, "0", 2); | |
} | |
function d3_time_parseLiteralPercent(date, string, i) { | |
d3_time_percentRe.lastIndex = 0; | |
var n = d3_time_percentRe.exec(string.substring(i, i + 1)); | |
return n ? i + n[0].length : -1; | |
} | |
d3.time.format.utc = function(template) { | |
var local = d3.time.format(template); | |
function format(date) { | |
try { | |
d3_time = d3_time_utc; | |
var utc = new d3_time(); | |
utc._ = date; | |
return local(utc); | |
} finally { | |
d3_time = Date; | |
} | |
} | |
format.parse = function(string) { | |
try { | |
d3_time = d3_time_utc; | |
var date = local.parse(string); | |
return date && date._; | |
} finally { | |
d3_time = Date; | |
} | |
}; | |
format.toString = local.toString; | |
return format; | |
}; | |
var d3_time_formatIso = d3.time.format.utc("%Y-%m-%dT%H:%M:%S.%LZ"); | |
d3.time.format.iso = Date.prototype.toISOString && +new Date("2000-01-01T00:00:00.000Z") ? d3_time_formatIsoNative : d3_time_formatIso; | |
function d3_time_formatIsoNative(date) { | |
return date.toISOString(); | |
} | |
d3_time_formatIsoNative.parse = function(string) { | |
var date = new Date(string); | |
return isNaN(date) ? null : date; | |
}; | |
d3_time_formatIsoNative.toString = d3_time_formatIso.toString; | |
d3.time.second = d3_time_interval(function(date) { | |
return new d3_time(Math.floor(date / 1e3) * 1e3); | |
}, function(date, offset) { | |
date.setTime(date.getTime() + Math.floor(offset) * 1e3); | |
}, function(date) { | |
return date.getSeconds(); | |
}); | |
d3.time.seconds = d3.time.second.range; | |
d3.time.seconds.utc = d3.time.second.utc.range; | |
d3.time.minute = d3_time_interval(function(date) { | |
return new d3_time(Math.floor(date / 6e4) * 6e4); | |
}, function(date, offset) { | |
date.setTime(date.getTime() + Math.floor(offset) * 6e4); | |
}, function(date) { | |
return date.getMinutes(); | |
}); | |
d3.time.minutes = d3.time.minute.range; | |
d3.time.minutes.utc = d3.time.minute.utc.range; | |
d3.time.hour = d3_time_interval(function(date) { | |
var timezone = date.getTimezoneOffset() / 60; | |
return new d3_time((Math.floor(date / 36e5 - timezone) + timezone) * 36e5); | |
}, function(date, offset) { | |
date.setTime(date.getTime() + Math.floor(offset) * 36e5); | |
}, function(date) { | |
return date.getHours(); | |
}); | |
d3.time.hours = d3.time.hour.range; | |
d3.time.hours.utc = d3.time.hour.utc.range; | |
d3.time.month = d3_time_interval(function(date) { | |
date = d3.time.day(date); | |
date.setDate(1); | |
return date; | |
}, function(date, offset) { | |
date.setMonth(date.getMonth() + offset); | |
}, function(date) { | |
return date.getMonth(); | |
}); | |
d3.time.months = d3.time.month.range; | |
d3.time.months.utc = d3.time.month.utc.range; | |
function d3_time_scale(linear, methods, format) { | |
function scale(x) { | |
return linear(x); | |
} | |
scale.invert = function(x) { | |
return d3_time_scaleDate(linear.invert(x)); | |
}; | |
scale.domain = function(x) { | |
if (!arguments.length) return linear.domain().map(d3_time_scaleDate); | |
linear.domain(x); | |
return scale; | |
}; | |
scale.nice = function(m) { | |
return scale.domain(d3_scale_nice(scale.domain(), m)); | |
}; | |
scale.ticks = function(m, k) { | |
var extent = d3_scaleExtent(scale.domain()); | |
if (typeof m !== "function") { | |
var span = extent[1] - extent[0], target = span / m, i = d3.bisect(d3_time_scaleSteps, target); | |
if (i == d3_time_scaleSteps.length) return methods.year(extent, m); | |
if (!i) return linear.ticks(m).map(d3_time_scaleDate); | |
if (target / d3_time_scaleSteps[i - 1] < d3_time_scaleSteps[i] / target) --i; | |
m = methods[i]; | |
k = m[1]; | |
m = m[0].range; | |
} | |
return m(extent[0], new Date(+extent[1] + 1), k); | |
}; | |
scale.tickFormat = function() { | |
return format; | |
}; | |
scale.copy = function() { | |
return d3_time_scale(linear.copy(), methods, format); | |
}; | |
return d3_scale_linearRebind(scale, linear); | |
} | |
function d3_time_scaleDate(t) { | |
return new Date(t); | |
} | |
function d3_time_scaleFormat(formats) { | |
return function(date) { | |
var i = formats.length - 1, f = formats[i]; | |
while (!f[1](date)) f = formats[--i]; | |
return f[0](date); | |
}; | |
} | |
function d3_time_scaleSetYear(y) { | |
var d = new Date(y, 0, 1); | |
d.setFullYear(y); | |
return d; | |
} | |
function d3_time_scaleGetYear(d) { | |
var y = d.getFullYear(), d0 = d3_time_scaleSetYear(y), d1 = d3_time_scaleSetYear(y + 1); | |
return y + (d - d0) / (d1 - d0); | |
} | |
var d3_time_scaleSteps = [ 1e3, 5e3, 15e3, 3e4, 6e4, 3e5, 9e5, 18e5, 36e5, 108e5, 216e5, 432e5, 864e5, 1728e5, 6048e5, 2592e6, 7776e6, 31536e6 ]; | |
var d3_time_scaleLocalMethods = [ [ d3.time.second, 1 ], [ d3.time.second, 5 ], [ d3.time.second, 15 ], [ d3.time.second, 30 ], [ d3.time.minute, 1 ], [ d3.time.minute, 5 ], [ d3.time.minute, 15 ], [ d3.time.minute, 30 ], [ d3.time.hour, 1 ], [ d3.time.hour, 3 ], [ d3.time.hour, 6 ], [ d3.time.hour, 12 ], [ d3.time.day, 1 ], [ d3.time.day, 2 ], [ d3.time.week, 1 ], [ d3.time.month, 1 ], [ d3.time.month, 3 ], [ d3.time.year, 1 ] ]; | |
var d3_time_scaleLocalFormats = [ [ d3.time.format("%Y"), d3_true ], [ d3.time.format("%B"), function(d) { | |
return d.getMonth(); | |
} ], [ d3.time.format("%b %d"), function(d) { | |
return d.getDate() != 1; | |
} ], [ d3.time.format("%a %d"), function(d) { | |
return d.getDay() && d.getDate() != 1; | |
} ], [ d3.time.format("%I %p"), function(d) { | |
return d.getHours(); | |
} ], [ d3.time.format("%I:%M"), function(d) { | |
return d.getMinutes(); | |
} ], [ d3.time.format(":%S"), function(d) { | |
return d.getSeconds(); | |
} ], [ d3.time.format(".%L"), function(d) { | |
return d.getMilliseconds(); | |
} ] ]; | |
var d3_time_scaleLinear = d3.scale.linear(), d3_time_scaleLocalFormat = d3_time_scaleFormat(d3_time_scaleLocalFormats); | |
d3_time_scaleLocalMethods.year = function(extent, m) { | |
return d3_time_scaleLinear.domain(extent.map(d3_time_scaleGetYear)).ticks(m).map(d3_time_scaleSetYear); | |
}; | |
d3.time.scale = function() { | |
return d3_time_scale(d3.scale.linear(), d3_time_scaleLocalMethods, d3_time_scaleLocalFormat); | |
}; | |
var d3_time_scaleUTCMethods = d3_time_scaleLocalMethods.map(function(m) { | |
return [ m[0].utc, m[1] ]; | |
}); | |
var d3_time_scaleUTCFormats = [ [ d3.time.format.utc("%Y"), d3_true ], [ d3.time.format.utc("%B"), function(d) { | |
return d.getUTCMonth(); | |
} ], [ d3.time.format.utc("%b %d"), function(d) { | |
return d.getUTCDate() != 1; | |
} ], [ d3.time.format.utc("%a %d"), function(d) { | |
return d.getUTCDay() && d.getUTCDate() != 1; | |
} ], [ d3.time.format.utc("%I %p"), function(d) { | |
return d.getUTCHours(); | |
} ], [ d3.time.format.utc("%I:%M"), function(d) { | |
return d.getUTCMinutes(); | |
} ], [ d3.time.format.utc(":%S"), function(d) { | |
return d.getUTCSeconds(); | |
} ], [ d3.time.format.utc(".%L"), function(d) { | |
return d.getUTCMilliseconds(); | |
} ] ]; | |
var d3_time_scaleUTCFormat = d3_time_scaleFormat(d3_time_scaleUTCFormats); | |
function d3_time_scaleUTCSetYear(y) { | |
var d = new Date(Date.UTC(y, 0, 1)); | |
d.setUTCFullYear(y); | |
return d; | |
} | |
function d3_time_scaleUTCGetYear(d) { | |
var y = d.getUTCFullYear(), d0 = d3_time_scaleUTCSetYear(y), d1 = d3_time_scaleUTCSetYear(y + 1); | |
return y + (d - d0) / (d1 - d0); | |
} | |
d3_time_scaleUTCMethods.year = function(extent, m) { | |
return d3_time_scaleLinear.domain(extent.map(d3_time_scaleUTCGetYear)).ticks(m).map(d3_time_scaleUTCSetYear); | |
}; | |
d3.time.scale.utc = function() { | |
return d3_time_scale(d3.scale.linear(), d3_time_scaleUTCMethods, d3_time_scaleUTCFormat); | |
}; | |
d3.text = d3_xhrType(function(request) { | |
return request.responseText; | |
}); | |
d3.json = function(url, callback) { | |
return d3_xhr(url, "application/json", d3_json, callback); | |
}; | |
function d3_json(request) { | |
return JSON.parse(request.responseText); | |
} | |
d3.html = function(url, callback) { | |
return d3_xhr(url, "text/html", d3_html, callback); | |
}; | |
function d3_html(request) { | |
var range = d3_document.createRange(); | |
range.selectNode(d3_document.body); | |
return range.createContextualFragment(request.responseText); | |
} | |
d3.xml = d3_xhrType(function(request) { | |
return request.responseXML; | |
}); | |
return d3; | |
}(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>LDAvis</title> | |
<script src="d3.v3.js"></script> | |
<script src="ldavis.js"></script> | |
<link rel="stylesheet" type="text/css" href="lda.css"> | |
</head> | |
<body> | |
<div id = "lda"></div> | |
<script> | |
var vis = new LDAvis("#lda", "lda.json"); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path { | |
fill: none; | |
stroke: none; | |
} | |
.xaxis .tick.major { | |
fill: black; | |
stroke: black; | |
stroke-width: 0.1; | |
opacity: 0.7; | |
} | |
.slideraxis { | |
fill: black; | |
stroke: black; | |
stroke-width: 0.4; | |
opacity: 1; | |
} | |
text { | |
font-family: sans-serif; | |
font-size: 11px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"mdsDat": { | |
"x": [ -0.1496, 0.0045215, 0.019173, 0.036692, 0.0001843, 0.0046336, 0.047895, 0.038199, 0.031609, -0.075849, -0.026976, 0.14757, -0.17102, 0.14951, 0.12698, 0.13795, -0.27928, -0.24885, 0.037653, 0.16899 ], | |
"y": [ -0.0082829, -0.016022, 0.12867, -0.1416, 0.084346, 0.064292, 0.15719, -0.086431, -0.24936, 0.1763, -0.24663, 0.017401, 0.067915, -0.051662, 0.0249, 0.034004, -0.088054, 0.051242, 0.038991, 0.042798 ], | |
"topics": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], | |
"Freq": [ 12.459, 7.8907, 7.6098, 7.2535, 6.9132, 6.754, 6.5108, 5.6511, 5.6348, 5.345, 5.1055, 3.123, 3.0949, 3.0781, 2.6922, 2.4372, 2.2946, 2.2204, 1.9975, 1.9348 ], | |
"cluster": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] | |
}, | |
"tinfo": { | |
"Term": [ "population", "populations", "endemic", "marine", "similar", "degrees", "cruz", "genus", "santa", "sea", "results", "genetic", "ridge", "plume", "management", "tortoises", "distribution", "eastern", "california", "observed", "time", "fauna", "mantle", "spreading", "birds", "volcano", "temperature", "expedition", "fernandina", "male", "recommend", "hematology", "donlan", "innovative", "fessl", "sensitivity", "espinoza", "scorpaeniformes", "implication", "highlighting", "input", "plastic", "fewer", "exogenous", "product", "tim", "incorporate", "degraded", "landscape", "natal", "measurement", "convention", "whiteman", "outcome", "interest", "experimentally", "powell", "toomey", "perez", "survives", "helium", "kilometers", "saturated", "agariciidae", "consist", "rn", "originating", "norvegicus", "thematic", "producing", "pheidole", "compounds", "adapting", "flank", "sustain", "summit", "losses", "gonochoric", "whales", "suppression", "localized", "pn", "decrease", "stronger", "carbonate", "confirmation", "teleostei", "overlapped", "ellipsoidal", "heights", "sight", "hormonal", "jaw", "images", "fit", "methodologies", "formula", "deviated", "azul", "principles", "famine", "preyed", "mothers", "arises", "nina", "anal", "grant", "palacios", "nutrients", "supplemental", "matter", "lesions", "fin", "erupt", "pale", "statistics", "malaria", "velocities", "impossible", "numerical", "weaning", "fill", "disk", "mild", "datasets", "tiger", "rice", "separately", "participative", "sequeira", "equator", "expand", "itcz", "adequate", "spring", "documentation", "fluorescence", "garbe", "nesoryzomys", "subjected", "extirpation", "inversion", "oceans", "serves", "threaten", "reproduce", "experience", "andre", "utility", "gas", "erosional", "smectite", "glauconite", "mounds", "pseudoscorpiones", "''", "nutritional", "metal", "fluids", "saboga", "calibration", "gonads", "communication", "dorylaimida", "favored", "unaffected", "alteration", "bodies", "mineralizing", "phases", "modification", "shelves", "christie", "rabida", "buffered", "logic", "kyr", "slender", "propagating", "strontium", "rachel", "borne", "bmc", "gabriele", "conflicts", "methodology", "nicole", "ocecoaman", "accepted", "antonio", "construction", "atkinson", "competitive", "flamingo", "oib", "spanning", "timothy", "renowned", "helicopter", "josh", "designation", "drier", "ingo", "deffontaines", "hyseni", "electromagnetic", "botryococcus", "employed", "noemi", "sophie", "fishers", "recycled", "cottony", "mulsant", "maskell", "weed", "yanez", "gauge", "approved", "hidalgo", "simulate", "immunocompetence", "guided", "meeting", "fluctuating", "fermentative", "annually", "surgical", "convection", "cuts", "pooled", "decoupling", "counted", "translocated", "defecated", "herbivorous", "fringe", "immigrants", "refraction", "mutation", "inferences", "scorpiones", "gertsch", "howdenae", "symphylan", "fractured", "overwhelm", "drilled", "centipeds", "missing", "participate", "macquart", "crystals", "reddish", "pentodontini", "authigenic", "gentle", "kinematic", "symphyla", "gradual", "provisioning", "alternation", "anopsicus", "attenuated", "banksi", "deleted", "modicus", "modisimus", "nannopodellus", "odontostyle", "canarypox", "digestion", "behn", "alkanes", "exponentially", "meaningful", "india", "jessica", "predictive", "intervention", "activation", "walking", "protect", "characterise", "macro", "indices", "effusion", "cucumber", "baltra", "invertebrate", "decompression", "immunosuppression", "syn", "stems", "huyvaert", "deciduous", "technical", "dvorak", "witman", "coding", "penicillatus", "prickly", "detection", "panulirus", "gondii", "predicting", "classic", "compliance", "putative", "alkadienes", "frontiers", "squamates", "dinucleotide", "explicit", "scat", "tournefortia", "whilst", "kamykowski", "jones", "karnauskas", "unexplored", "explicitly", "advantageous", "trauma", "pinniped", "elongation", "lavoie", "validation", "biomarker", "steinfartz", "victor", "pablo", "marilyn", "ridgewayia", "representation", "figueroa", "autonomous", "recommendations", "bungartz", "birth", "chelonia", "mydas", "education", "gustavo", "lobsters", "phylogenies", "imaged", "jesus", "enrique", "vulnerability", "villegas", "reductions", "susana", "cabrera", "andrea", "hemosporidian", "geodetic", "cesar", "emissions", "enigmatic", "burros", "lamellar", "pads", "crossed", "snake", "abundantly", "gemelosi", "undeveloped", "ampullae", "erroneously", "saddlebacked", "aberrant", "vertically", "galium", "regurgitated", "trampling", "procedure", "cones", "people", "trifasciatus", "borer", "broken", "cavity", "fitted", "donkeys", "checklist", "spiders", "destruction", "deployed", "emergent", "dissolved", "organ", "fractionate", "metapopulation", "geometric", "leached", "atrium", "paralichthyid", "mesic", "latioresignata", "trifasciata", "expect", "leffler", "interspaces", "stabilizing", "sunset", "stolidus", "swath", "cortex", "appearing", "deficient", "anatomical", "approval", "horn", "vonhageni", "multiplied", "moister", "additive", "seals'", "authentic", "smallest", "maximal", "locus", "clustering", "chadwick", "economy", "scattered", "coarse", "chromatography", "planning", "geminata", "erected", "threatens", "americas", "zenaida", "exception", "continuous", "separated", "feature", "alleles", "visitor", "serve", "greatly", "bred", "basic", "substantially", "plumage", "segment", "introgressive", "originally", "carotene", "alga", "flatworms", "uplands", "manipulative", "fenced", "compressed", "cromwell", "fruited", "beds", "gross", "cirrus", "genesis", "nomenclatural", "floral", "diffusa", "easily", "spaced", "hircus", "feathers", "laevis", "wiedemann", "haul", "obtaining", "hatched", "fruits", "azores", "financial", "interrelationships", "observers", "mycteroperca", "annulatus", "pits", "hartman", "meteorological", "completion", "recognizable", "lying", "caranx", "galapagoense", "grouper", "encroachment", "annotated", "mus", "hitherto", "dealing", "pectinatum", "naso", "keeping", "fra", "star", "arachnida", "triaenodon", "references", "instances", "reproduced", "mirror", "hippoboscidae", "lists", "cactospiza", "tsunami", "serovars", "acids", "diols", "juanibali", "li", "hydroxy", "tyrannulus", "gigantolaelaps", "traveset", "heleno", "chd", "croton", "cyphellostereum", "ruben", "heterostylous", "serotyping", "hill", "dietz", "judith", "meise", "ova", "sphagnum", "anaesthesia", "abaetetuba", "chloroalkanes", "detached", "giddingsi", "pomona", "poona", "enterica", "omega", "dozouville", "keto", "pseudocyclops", "ngvp", "diatom", "ddt", "nogales", "perspectives", "roderick", "learning", "creek", "saltwater", "natives", "participants", "bce", "raspberry", "saenzi", "diablas", "ldd", "cortical", "chloroalkenes", "olesen", "syndromes", "pav", "trichomes", "emission", "apv", "depredation", "gamete", "approximates", "doubtfully", "chiriqui", "bipartite", "amalgamated", "enzymes", "agency", "logbooks", "gametes", "filamentous", "depositional", "ani", "layered", "calls", "revenue", "papillae", "demand", "collectively", "cairns", "refractile", "unequivocal", "chains", "sporozoites", "carrasco", "demonstrating", "milne", "sixteen", "persisted", "yields", "society's", "morton", "squid", "suppl", "bulk", "expressions", "variants", "cockerell", "deleterious", "habits", "task", "tagus", "devoid", "object", "precarious", "feeds", "unesco", "note", "figures", "eating", "linda", "inspired", "aedeagus", "spacing", "facts", "cooke", "winged", "tectonics", "skin", "courtship", "selective", "cerro", "permit", "elastic", "mosquitoes", "antibiotic", "scenarios", "disequilibria", "digestive", "surgery", "pectiniunguis", "demography", "offs", "california", "id", "regulations", "ni", "monthly", "nematodes", "antigen", "midges", "rifting", "finite", "restoration", "segregation", "pathogen", "darwini", "phylogeography", "closed", "fluid", "perspective", "residents", "vertebrate", "haplotypes", "mu", "depths", "tectonic", "ecotourism", "colonies", "mosquito", "arnaud", "avipoxvirus", "previous", "publication", "avifauna", "corticosterone", "predictor", "overview", "cyclic", "adalgisa", "lobster", "created", "fractionation", "geochelone", "phenocrysts", "vulnerable", "martinez", "scott", "alava", "rakers", "north", "organization", "intensity", "sb", "bleaching", "weevils", "infestations", "snails", "shell", "expeditions", "functions", "smooth", "edgar", "fished", "peaked", "plaza", "orders", "varronia", "braunii", "elevational", "expedition", "advances", "morb", "slopes", "statistical", "alan", "fidelity", "estimating", "hernan", "sexual", "soil", "beta", "volcano", "jul", "salinity", "ratios", "fishing", "spiny", "ecosystem", "pollen", "invasions", "eden", "seals", "capra", "myiarchus", "phenotypic", "surface", "october", "degrees", "'w", "chamberlin", "fishery", "virna", "prevalence", "beak", "origins", "mixed", "diet", "dry", "steep", "antibodies", "barrier", "clavus", "scleractinian", "microplate", "zalophus", "haemoproteus", "vector", "current", "scale", "beetle", "insar", "dennis", "sector", "tourists", "province", "downsi", "algae", "intestinal", "meristic", "vargas", "health", "integrative", "microsatellite", "nutrition", "galapagensis", "bog", "morphology", "eruption", "dive", "parasite", "invasion", "target", "classes", "lithosphere", "fuscus", "araneae", "listed", "soils", "george", "isolates", "salmonella", "earthquake", "correctly", "zoor", "management", "alcedo", "beetles", "dorsal", "females", "coomans", "role", "ridge", "nitrogen", "gmr", "fossil", "nutrient", "monograph", "techniques", "zoology", "flow", "warbler", "grouped", "dsdp", "cinchona", "root", "plasmodium", "breed", "list", "melt", "female", "substantial", "august", "geophysics", "lantana", "hawai'i", "chamber", "transmission", "pelicans", "discussion", "effectiveness", "morphometric", "caccone", "hot", "nigra", "separate", "peck", "aedes", "ring", "lion", "turtles", "holocene", "plumes", "academy", "darwinii", "consistent", "wolf", "values", "iguanas", "lava", "coral", "corals", "cardinalis", "rift", "interaction", "resilience", "dataset", "sightings", "nesting", "break", "natural", "individuals", "time", "analysis", "habitats", "risk", "territories", "infectious", "pollination", "foraged", "airborne", "industry", "whale", "galapagense", "endangered", "lower", "speciation", "energy", "seal", "enso", "population", "taking", "campaign", "spreading", "cd", "easter", "gc", "components", "bayesian", "highlands", "boundary", "hunter", "adaptations", "beagle", "conservation", "depth", "volcanoes", "mendiculus", "hydrothermal", "platform", "ancestry", "medicine", "euc", "consequences", "predation", "ontogeny", "spine", "eastern", "goats", "density", "approximately", "ca", "satellite", "research", "faunas", "parasites", "tortoises", "bathymetry", "cats", "fisheries", "mitochondrial", "fumarolic", "means", "seed", "sighting", "foundation", "males", "increases", "population", "deal", "earth", "center", "effects", "human", "project", "threshold", "similar", "populations", "invasive", "increase", "santa", "tortoises", "degrees", "marine", "applied", "dynamics", "contributions", "specimens", "distribution", "fishes", "alpha", "composition", "stage", "genovesa", "spatial", "disease", "santiago", "control", "juvenile", "melting", "endemic", "distance", "usnea", "triple", "tail", "nocturnal", "nino", "isotopic", "foraging", "element", "results", "variation", "cruz", "floreana", "masked", "diving", "lowland", "knowledge", "breeding", "minor", "chelonoidis", "pronounced", "kramer", "bird", "significantly", "mantle", "populations", "sea", "region", "lavas", "basalt", "genetic", "deformation", "sites", "eruptive", "seawater", "axis", "simon", "hook", "purchasi", "external", "sula", "provide", "shallow", "ecological", "magma", "darwin's", "mammals", "sea", "observed", "season", "ii", "periods", "ecology", "avian", "worldwide", "pathogens", "occurred", "wikelski", "control", "impact", "lions", "infection", "fernandina", "continental", "genera", "locality", "flora", "distinct", "ridge", "introduced", "gene", "variety", "anchialine", "model", "cryptic", "invasive", "extinction", "closer", "flows", "information", "academy", "bacterial", "social", "cruz", "plume", "introduced", "reproductive", "active", "effects", "geochemistry", "net", "class", "release", "bulletin", "taeniorhynchus", "previously", "development", "caldera", "molecular", "cruz", "frequently", "abundance", "populations", "depth", "revista", "report", "male", "genetic", "axis", "levels", "plant", "samples", "highland", "recent", "image", "behavior", "transmitted", "endemic", "suggest", "time", "endemic", "oceanic", "crust", "santa", "local", "reserve", "fecal", "eruptions", "coast", "reptiles", "political", "rodolia", "bulletin", "history", "taxa", "plant", "resources", "structure", "patterns", "entire", "radial", "flow", "survival", "potential", "elevations", "cells", "analyses", "collected", "native", "dynamic", "noble", "corals", "temperature", "considered", "genus", "flows", "climate", "results", "events", "evolutionary", "expedition", "observed", "environments", "territorial", "land", "west", "upwelling", "lineage", "crustal", "individual", "significant", "brown", "rise", "late", "shields", "proceedings", "interactions", "treatments", "birds", "habitat", "similar", "marine", "samples", "variation", "period", "level", "due", "temperature", "developed", "male", "detected", "ecosystems", "santa", "melting", "differentiation", "increased", "fisheries", "ef", "penguins", "records", "galapagoensis", "behavior", "genus", "host", "sequences", "avian", "rats", "model", "identification", "results", "season", "science", "vegetation", "development", "resulting", "site", "threatened", "impacts", "historic", "ef", "june", "insects", "fauna", "strain", "environmental", "lineages", "spreading", "temperature", "studies", "tortoise", "lower", "conservation", "faunas", "birds", "immune", "ground", "nino", "basaltic", "growth", "plants", "region", "marine", "explained", "family", "vegetation", "retention", "dispersal", "close", "evolution", "adult", "basalts", "field", "analysis", "transport", "females", "darwin", "importance", "differences", "cynthia", "intermediate", "presence", "model", "genus", "origin", "reintroduction", "magnirostris", "darwini", "differences", "bulletin", "occurred", "volcanic", "genetic", "range", "common", "events", "eradication", "analysis", "reported", "science", "specimens", "plumage", "detail", "scientific", "similar", "system", "provide", "season", "recorded", "system", "cardinalis", "expedition", "relations", "howard", "ecological", "findings", "recruitment", "specimens", "iguana", "fauna", "anna", "activity", "isabela", "eastern", "plant", "distribution", "density", "regional", "revealed", "native", "patterns", "galapagoensis", "galapagoensis", "management", "nest", "present", "levels", "biological", "structure", "increase", "iguana", "phylogenetic", "present", "shark", "subsp", "genus", "sea", "pattern", "recent", "analyses", "gulf", "growth", "related", "variations", "groups", "birds", "cristobal", "evolutionary", "taxa", "junction", "original", "floreana", "records", "morphological", "related", "identification", "formation", "identified", "information", "descriptions", "alien", "intermediate", "activity", "feeding", "local", "evolution", "marine", "natural", "endemic", "genus", "description", "mantle", "presence", "male", "contrast", "ground", "santa", "pinta", "similar", "influence", "reproductive", "period", "present", "values", "boobies", "reported", "mockingbirds", "fauna", "region", "information", "habitats", "recorded", "collected", "extinct", "lizards", "mantle", "flowers", "coleoptera", "science", "eastern", "caldera", "san", "result", "science", "vegetation", "male", "males", "management", "distribution", "colonization", "term", "fernandina", "related", "lava", "unique", "fauna", "galapagoensis", "eastern", "recorded", "due", "population", "cristobal", "level", "single", "plume", "showed", "content", "genus", "forms", "literature", "feeding", "ca", "genus", "response", "breeding", "individuals", "plume", "plume", "events", "iguanas", "volcano", "land", "san", "plants", "adult", "sea", "plume", "differences", "sites", "days", "birds", "tourism", "efforts", "distribution", "observed", "volcano", "biology", "hydrothermal", "related", "flow", "influenced", "evidence", "colonization", "cruz", "iguanas", "tortoises", "examined", "comparisons", "expedition", "significant", "southern", "birds", "taxa", "land", "sea", "degrees", "suggest", "evidence", "site", "deep", "genus", "research", "plants", "hawk", "recruitment", "marine", "conditions", "host", "galapagensis", "populations", "collected", "results", "darwin", "center", "fauna", "lava", "isabela", "taxa", "specimens", "living", "structure", "lava", "understanding", "days", "california", "previously", "santa", "east", "significantly", "genera", "population", "current", "period", "genetic", "iguana", "plants", "change", "groups", "cruz", "feeding", "suggest", "results", "field", "populations", "genera", "endemic", "differences", "coral", "observed", "range", "marine", "land", "parasites", "native", "environmental", "genera", "record", "significant", "fauna", "increased", "female", "science", "migration", "time", "evidence", "diversity", "distribution", "tortoises", "geophysical", "female", "individual", "change", "penguins", "population", "eastern", "santa", "structure", "recorded", "analysis", "endemic", "ecology", "males", "time", "observations", "marine", "habitat", "human", "spatial", "mid", "marine", "suggest", "santa", "fauna", "populations", "characteristics", "volcanic", "iguanas", "related", "morphology", "populations", "records", "males", "conditions", "similar", "abundance", "site", "diversity", "evidence", "science", "field", "mantle", "male", "collected", "history", "endemic", "sharks", "reported", "patterns", "region", "genera", "population", "breeding", "patterns", "distribution", "magma", "genus", "southern", "suggest", "endemic", "lava", "cruz", "lavas", "sea", "reported", "finches", "lower", "california", "mitochondrial", "specific", "observed", "reported" ], | |
"logprob": [ 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, -6.8037, -7.4812, -7.6784, -7.7167, -7.8592, -7.9053, -7.9736, -8.4415, -8.5081, -7.7485, -7.9148, -8.0148, -7.2655, -8.5081, -7.1351, -8.5432, -7.8592, -7.5126, -6.5699, -7.0394, -8.6565, -8.7399, -6.9891, -7.8152, -7.2507, -8.6367, -6.4377, -8.0914, -7.8683, -8.7184, -5.8625, -7.4028, -7.1356, -7.4583, -6.5949, -7.2448, -7.8495, -7.3761, -8.501, -7.0064, -7.7684, -7.0754, -7.8355, -5.5801, -8.4744, -5.3578, -7.7555, -6.8394, -5.0232, -7.8081, -7.8081, -6.6787, -5.2698, -7.0819, -7.0125, -7.7947, -7.1997, -7.8081, -7.4209, -7.4209, -7.1783, -7.2241, -6.9947, -6.8558, -6.6645, -7.2241, -7.8863, -7.8863, -5.6039, -7.3054, -7.3847, -7.9488, -6.6735, -7.917, -6.9885, -6.3016, -5.89, -6.9885, -6.3332, -7.9015, -6.0698, -7.2886, -5.7699, -7.8863, -8.6744, -6.8134, -6.7196, -7.0199, -7.1634, -6.5547, -7.0794, -7.646, -7.7939, -7.7514, -7.0794, -6.8464, -6.5644, -7.8384, -7.8384, -7.6586, -6.8749, -7.9849, -7.646, -8.0026, -6.953, -7.8691, -7.0794, -8.0577, -6.6301, -7.6586, -7.9009, -7.9009, -7.6843, -7.8536, -7.6214, -7.0043, -6.5644, -7.6336, -7.5508, -6.0829, -6.9432, -6.4081, -6.5597, -6.5292, -7.2439, -6.5465, -7.298, -6.5776, -6.1572, -6.3173, -7.0898, -6.0997, -6.9898, -7.2266, -7.2706, -7.2888, -5.7838, -6.5164, -8.3422, -6.6379, -7.168, -7.6626, -6.8154, -6.9966, -8.3689, -7.5028, -6.9966, -6.9762, -6.393, -7.3454, -6.6194, -6.6994, -6.7366, -6.7921, -6.8094, -6.827, -6.8943, -6.9135, -6.9802, -7.0081, -7.0894, -7.1049, -7.2119, -7.3517, -7.4135, -7.4795, -7.4909, -7.5501, -7.5501, -7.613, -7.6393, -7.6527, -7.6527, -7.6527, -7.6527, -7.6663, -7.6663, -7.6663, -7.6663, -7.6663, -6.0914, -6.8389, -6.9096, -6.9504, -7.1411, -7.1581, -7.1928, -7.5013, -7.5013, -7.5257, -7.5381, -7.5894, -7.6161, -7.6161, -7.6435, -7.6435, -7.6574, -7.6574, -7.6716, -7.686, -7.686, -7.7154, -7.7457, -7.7457, -7.8092, -6.627, -7.9882, -7.9882, -8.0282, -8.0698, -7.1736, -7.2144, -7.2248, -7.2569, -7.3243, -7.336, -7.6042, -7.6843, -7.7181, -7.7896, -7.7896, -7.8083, -7.8083, -7.8083, -7.8665, -7.8665, -7.8665, -7.8867, -7.8867, -7.9073, -7.9284, -7.9284, -7.9284, -7.9284, -7.9284, -7.9284, -7.9284, -7.9284, -7.9284, -7.9284, -6.5185, -6.7923, -7.2011, -6.2912, -7.254, -7.6814, -7.7503, -5.6579, -6.2666, -7.3215, -7.7153, -7.0754, -6.646, -7.276, -6.3206, -6.4578, -5.8706, -5.1694, -6.4336, -5.8411, -7.0397, -7.5562, -6.4578, -6.1484, -7.222, -7.4991, -6.739, -8.3742, -7.6326, -7.7503, -6.5584, -6.6669, -6.7887, -6.7959, -6.8403, -6.8633, -6.9524, -7.0136, -7.0318, -7.0691, -7.1798, -7.1798, -7.2804, -7.3042, -7.3536, -7.3663, -7.5035, -7.5183, -7.5641, -7.5641, -7.5958, -7.6286, -7.7911, -7.8942, -6.7125, -7.341, -7.3923, -7.3286, -7.3286, -6.6052, -6.3791, -6.4517, -6.5714, -6.6938, -6.7006, -6.7946, -6.8098, -6.8175, -6.8332, -6.8898, -6.9411, -6.9411, -6.9499, -6.9678, -6.9678, -6.9952, -7.0045, -7.0822, -7.1234, -7.1886, -7.1886, -7.1999, -7.2114, -7.2465, -7.2465, -7.2584, -7.2584, -7.2705, -7.2952, -7.3078, -6.203, -6.8045, -6.7557, -6.0627, -7.2743, -7.2945, -7.4974, -7.6027, -7.2545, -6.3908, -6.319, -7.3577, -7.8538, -7.2743, -6.5914, -7.6027, -6.8045, -5.8933, -6.8824, -6.5814, -7.2743, -7.6027, -7.6896, -7.3151, -6.5914, -5.9188, -5.559, -6.5914, -6.6118, -7.2351, -6.2872, -6.3334, -6.3984, -6.6028, -6.7001, -6.7348, -6.7586, -6.7707, -6.783, -6.808, -6.808, -7.152, -7.3061, -7.3061, -7.3061, -7.3061, -7.3061, -7.3061, -7.3271, -7.3271, -7.3271, -7.3271, -7.3486, -7.3486, -7.3486, -7.3486, -7.3486, -7.3706, -7.3706, -7.3931, -6.3763, -6.6077, -6.1159, -6.3681, -6.4014, -6.4626, -6.8026, -6.5569, -7.2016, -6.2093, -6.8153, -6.8679, -7.6453, -6.6288, -6.1417, -5.9627, -5.7561, -5.4165, -6.3846, -5.3345, -6.9093, -6.5471, -6.4716, -5.7472, -7.1289, -6.5669, -5.2453, -6.4272, -7.8757, -6.7532, -5.7107, -6.5058, -6.5611, -6.6317, -7.3246, -6.5498, -7.3492, -7.5415, -6.2101, -7.2315, -7.2095, -7.277, -7.3492, -7.3492, -6.7757, -8.1471, -6.2935, -6.7479, -6.2182, -7.4827, -6.3289, -7.6368, -7.3005, -7.3005, -6.7343, -5.5012, -7.5415, -7.3005, -7.3492, -7.254, -6.2118, -6.203, -7.2753, -5.4797, -7.25, -7.2753, -7.2753, -7.2753, -6.6084, -7.3012, -6.6084, -7.2753, -6.0266, -5.0477, -6.2663, -6.2207, -7.2753, -7.25, -7.2753, -8.105, -7.2753, -7.3012, -7.3012, -5.2124, -6.9136, -6.8786, -8.0479, -6.5571, -5.9625, -5.4299, -5.7611, -5.8292, -6.0349, -6.0999, -6.2156, -6.3043, -6.3146, -6.3357, -6.3572, -6.3572, -6.3792, -6.4969, -6.5222, -6.5222, -6.5482, -6.6162, -6.6742, -6.6892, -6.7357, -6.768, -6.7845, -6.8013, -6.8535, -6.8898, -6.9276, -6.9276, -6.9276, -6.9276, -6.9276, -6.9276, -5.4527, -5.8423, -5.941, -6.0504, -6.0587, -6.084, -6.2212, -6.2311, -6.2818, -6.3244, -6.3918, -6.5023, -6.5834, -6.5834, -6.6414, -6.6414, -6.6564, -6.6564, -6.6564, -6.6717, -6.6717, -6.7029, -6.7189, -6.7352, -6.7352, -6.7517, -6.7685, -6.803, -6.8207, -6.8207, -6.9563, -7.0515, -7.0769, -5.7368, -6.4502, -6.478, -7.1295, -7.3063, -7.3063, -5.5313, -5.7436, -7.185, -6.464, -6.7703, -5.3159, -7.4821, -6.464, -6.0963, -7.214, -6.1764, -7.4821, -7.562, -5.9045, -7.5213, -7.562, -7.0515, -7.1028, -7.2438, -7.3391, -5.9701, -6.1656, -6.7967, -6.8586, -6.9951, -6.971, -6.9951, -6.2203, -6.8375, -6.971, -4.8713, -6.902, -6.9951, -6.9475, -6.2901, -6.9245, -5.7963, -6.2662, -6.4462, -6.2316, -6.971, -6.902, -6.971, -6.9475, -7.0198, -6.971, -6.9245, -6.902, -7.0198, -6.243, -6.5344, -7.0595, -5.6054, -6.953, -6.7707, -6.7099, -6.8943, -7.0741, -7.015, -6.6473, -7.2017, -6.9112, -7.1938, -6.7923, -3.5998, -5.9905, -6.7759, -7.1707, -5.7205, -6.1454, -7.1862, -7.5013, -7.3128, -7.3842, -4.8387, -6.1925, -5.9217, -4.7571, -7.1008, -6.7552, -6.052, -6.7215, -6.5714, -5.4829, -6.8684, -5.5139, -5.3509, -6.2208, -6.3688, -4.6982, -5.7444, -7.3925, -6.9786, -4.777, -6.8042, -6.6856, -5.6677, -6.5815, -7.5257, -7.2248, -5.977, -5.3247, -6.7215, -5.9769, -5.2828, -6.4548, -6.1251, -6.6112, -5.9425, -6.986, -6.808, -4.5575, -6.3845, -6.0966, -5.7935, -6.1049, -7.0446, -6.7501, -5.5663, -5.3489, -4.7429, -5.5423, -5.9872, -6.8355, -6.2268, -6.7653, -6.2954, -6.4708, -7.403, -6.8253, -6.808, -3.8771, -6.6564, -5.8272, -5.8918, -6.4561, -6.2734, -6.366, -6.5029, -6.3296, -4.9203, -5.0007, -5.6586, -4.3414, -5.1705, -6.5945, -4.8257, -4.4622, -5.9272, -4.9021, -4.9573, -5.8485, -6.6118, -4.5984, -6.5611, -6.4246, -6.3972, -4.4249, -6.0219, -4.049, -5.9838, -6.4805, -5.1857, -6.9869, -4.9866, -5.8595, -5.8492, -6.1514, -5.1948, -5.3345, -5.8023, -6.6051, -6.4779, -6.4365, -7.0426, -6.1841, -4.9468, -5.8224, -5.5079, -5.2069, -5.3603, -6.1514, -6.6146, -6.4157, -6.4029, -6.3108, -5.7286, -5.6806, -5.1201, -6.1856, -5.945, -6.3806, -5.9556, -6.9504, -4.6671, -6.5525, -3.9981, -6.6414, -5.1887, -4.9399, -6.0244, -4.9854, -6.0063, -5.726, -6.383, -5.3903, -5.3463, -5.706, -5.6588, -5.4218, -5.2729, -5.463, -5.1392, -6.464, -6.4232, -5.6522, -4.7639, -5.4726, -5.7668, -5.89, -4.5888, -6.393, -5.0354, -4.1676, -6.4755, -5.8625, -5.0864, -5.5464, -6.0507, -6.3765, -5.6957, -4.6781, -6.1709, -7.0081, -7.2144, -5.7672, -6.3809, -5.6564, -6.2849, -4.5308, -5.6865, -4.6829, -6.0802, -6.1013, -5.6781, -5.9465, -6.7748, -5.5088, -6.0391, -6.6666, -5.6211, -6.0755, -5.6974, -6.2829, -5.3678, -5.4928, -5.6862, -5.7226, -6.6737, -6.9112, -4.8246, -5.7886, -5.4829, -5.3283, -5.0719, -5.4885, -5.3752, -5.6542, -4.9728, -4.5053, -4.6131, -4.768, -5.4136, -5.9091, -4.5763, -5.0753, -6.1721, -6.1669, -6.2797, -4.3039, -6.2781, -5.0304, -5.0156, -4.3618, -4.5684, -4.9508, -5.4512, -6.3961, -5.9425, -5.3179, -6.203, -5.7266, -6.0477, -5.4, -5.8894, -5.5833, -4.5369, -5.0641, -5.8052, -6.2537, -5.5033, -3.6698, -6.8768, -6.6839, -4.3156, -6.4413, -6.511, -5.7696, -5.4286, -6.2895, -5.6479, -5.5866, -6.7209, -6.1864, -6.3394, -4.7018, -5.2458, -4.9354, -5.9415, -5.1581, -5.4775, -6.366, -6.4607, -6.2098, -5.8224, -5.2413, -5.8116, -5.8843, -4.2359, -5.0572, -5.5759, -5.2466, -5.1989, -5.7012, -4.6077, -5.88, -5.2212, -4.3422, -6.1916, -5.5554, -5.5299, -4.912, -6.7231, -5.5374, -4.5093, -6.298, -5.7323, -4.8915, -6.1106, -4.001, -7.0299, -5.1575, -4.6432, -4.7036, -4.4696, -6.1721, -6.3573, -3.9991, -4.2877, -5.531, -5.0576, -4.2743, -4.5655, -4.4376, -3.8302, -5.9314, -5.346, -5.6977, -4.5972, -4.1101, -5.07, -6.0963, -5.1436, -5.7289, -5.6008, -5.2427, -5.2141, -5.1613, -4.9384, -5.4923, -5.0527, -3.7707, -4.4467, -6.2156, -5.4897, -5.5097, -5.5615, -5.0427, -5.3532, -4.9555, -5.2351, -4.1734, -4.5179, -4.0091, -4.4922, -6.1894, -5.0101, -5.718, -5.1833, -4.4415, -5.1778, -5.9738, -5.858, -6.243, -5.6753, -5.0274, -4.6836, -4.1103, -4.1735, -4.7449, -4.9503, -5.685, -4.1278, -6.0489, -4.498, -5.4948, -5.8928, -5.2687, -6.2264, -5.5686, -5.4803, -5.413, -5.5442, -5.5025, -5.1635, -4.748, -4.7445, -5.2071, -5.3313, -4.51, -4.962, -5.0021, -5.5315, -5.3391, -4.6937, -5.2141, -6.1163, -5.8683, -4.9405, -5.8844, -4.7967, -4.9929, -5.2445, -5.6325, -4.2384, -5.5374, -4.4187, -5.5272, -5.0323, -5.5025, -4.8235, -4.6579, -5.0043, -5.7725, -6.1804, -4.8673, -6.0533, -4.9055, -5.1902, -6.1177, -4.5751, -4.9319, -4.933, -5.8165, -4.6499, -4.4908, -4.5902, -4.8413, -5.0019, -5.4364, -4.8545, -5.6344, -6.4855, -6.0637, -5.8603, -4.7442, -5.6112, -4.9509, -5.2116, -5.1207, -5.0226, -4.4034, -6.0586, -4.9408, -3.9322, -4.4419, -6.1481, -4.8435, -4.4292, -4.7145, -5.5112, -5.0108, -4.7951, -4.9352, -6.0939, -4.6724, -6.1029, -4.6594, -6.243, -4.293, -4.846, -4.4823, -4.2626, -4.9405, -5.5367, -4.3184, -4.9842, -5.1038, -5.4839, -5.0271, -5.0258, -5.4178, -5.6313, -6.0259, -4.6118, -5.2937, -5.024, -4.9349, -5.5617, -4.894, -4.7998, -5.7824, -5.89, -4.7376, -5.3263, -4.9755, -5.314, -5.6682, -4.9222, -4.3367, -4.3571, -5.8102, -6.2212, -5.1168, -5.2848, -5.2828, -4.5684, -5.3146, -5.6079, -4.5265, -4.8145, -4.9276, -5.015, -4.2098, -5.4852, -5.3477, -5.0149, -5.3387, -5.3261, -5.9311, -5.5924, -5.2686, -4.7744, -5.8017, -5.3952, -5.5772, -6.0536, -5.232, -4.8983, -5.8063, -4.425, -5.3391, -4.6042, -4.3629, -5.0795, -4.8605, -5.1531, -5.1862, -4.5391, -4.4931, -5.32, -5.0234, -5.4031, -5.7178, -4.5325, -5.2525, -5.0525, -4.8584, -5.4689, -5.2895, -5.4476, -4.6206, -4.55, -5.2293, -4.612, -5.1305, -5.5634, -5.4266, -5.7303, -4.4608, -5.2075, -4.656, -5.1408, -4.9782, -5.0906, -5.2066, -5.7105, -5.0438, -5.6185, -5.2365, -6.124, -5.3314, -5.6679, -5.5621, -4.5064, -6.0192, -4.7573, -5.3329, -5.1388, -5.0796, -4.9677, -5.2477, -4.7541, -4.5229, -5.7976, -4.6694, -5.5282, -5.0323, -4.9752, -5.7322, -5.0583, -5.0639, -4.945, -4.3681, -5.2588, -5.3229, -5.0176, -5.72, -4.531, -5.1132, -5.1206, -5.1899, -5.58, -5.0982, -4.9459, -5.7434, -4.928, -5.0939, -5.5638, -4.659, -6.3029, -5.2686, -5.0679, -5.0287, -4.6299, -5.0216, -6.0507, -5.485, -5.1484, -4.6088, -5.1559, -5.225, -5.1235, -4.6797, -5.1071, -5.2477, -5.1548, -5.4251, -4.7061, -4.7921, -4.9249, -4.7866, -5.4339, -5.7817, -5.5329, -4.9591, -5.068, -4.9433, -5.0958, -4.8234, -4.5802, -5.5038, -5.0043, -6.0085, -5.9996, -4.9021, -5.6207, -5.3402, -4.7791, -5.2547, -4.9117, -6.2511, -5.1616, -5.0004, -5.0219, -4.9585, -4.8505, -5.4492, -5.7924, -5.3224, -5.1468, -4.6674, -4.8354, -4.7593, -4.5144, -5.3619, -4.9721, -5.1348, -5.2123, -5.1069, -5.3035, -5.2205, -5.5309, -4.7474, -5.6045, -5.771, -4.5147, -4.7163, -5.1909, -4.9842, -4.9711, -5.6656, -5.1967, -4.992, -5.4221, -5.3872, -5.0745, -5.3112, -5.2466, -4.8975, -5.7915, -5.6401, -5.1259, -5.188, -5.1469, -4.8964, -5.5957, -5.337, -5.1512, -5.3348, -5.3483, -5.4082, -5.3667, -5.1403, -5.3508, -5.3192, -5.0521, -4.6534, -4.7744, -4.5183, -4.6518, -5.3667, -5.2018, -5.2927, -5.1779, -5.2375, -5.1446, -4.5888, -5.5875, -4.5248, -5.1458, -5.2541, -5.2446, -5.1056, -5.1837, -5.6732, -5.1977, -5.5733, -4.8655, -5.1592, -5.375, -5.2963, -5.158, -5.0909, -5.6069, -5.4817, -4.7328, -5.8558, -5.389, -4.9345, -4.9928, -5.2461, -5.2509, -5.3068, -5.1681, -4.9277, -4.9256, -5.0324, -5.0548, -5.0139, -5.387, -5.2295, -5.0573, -4.9376, -5.0864, -5.2872, -5.1417, -5.2304, -4.8457, -5.1143, -5.4221, -4.8502, -5.3097, -5.0796, -5.4182, -5.0237, -5.1046, -5.7253, -4.7287, -5.3298, -5.5272, -5.2661, -5.4671, -4.8998, -5.4141, -4.984, -5.0212, -4.8853, -5.212, -5.1805, -5.109, -5.0966, -5.115, -5.3248, -5.3182, -5.0757, -4.7618, -4.9896, -5.056, -5.0614, -5.5448, -4.963, -5.3819, -5.5659, -4.9792, -5.1913, -5.1484, -5.2575, -5.4963, -4.9378, -5.149, -5.6205, -5.2657, -5.3577, -5.1045, -5.2828, -5.068, -5.3937, -5.605, -5.2797, -5.1607, -5.3804, -5.1647, -5.2437, -5.2325, -4.8618, -4.8824, -5.1065, -5.1574, -5.3656, -5.409, -5.0201, -5.2624, -5.0751, -5.7107, -5.389, -5.0143, -5.3164, -5.4421, -5.409, -4.9416, -5.1536, -5.0607, -5.3245, -5.442, -5.0869, -5.2808, -5.1737, -5.1974, -5.3785, -5.3605, -4.9778, -5.3721, -5.5631, -5.4526, -5.3109, -5.199, -5.1464, -5.3532, -5.309, -5.041, -5.1636, -5.4068, -5.3247, -5.1709, -5.2115, -5.1222, -5.4281, -5.3867, -5.1132, -5.3525, -5.2051, -5.2103, -5.1402, -5.0173, -5.2455, -5.0927, -5.1732, -5.0519, -5.2697, -5.3129, -5.0392, -5.1432, -5.5416, -5.3287, -5.4504, -5.4934, -5.4542, -5.3698, -5.2673, -5.3056, -5.2944, -5.3617, -5.7046, -5.2075, -5.4237, -5.3124, -5.3146, -5.0842, -5.6368, -5.3159, -5.4208, -5.5363, -5.5207, -5.2993, -5.2521, -5.3618, -5.151, -5.3255, -5.4068, -5.2326, -5.2062, -5.2957, -5.2209, -5.4466, -5.184, -5.3119, -5.4963, -5.5272, -5.5808, -5.3369, -5.3133, -5.2302, -5.0497, -5.3584, -5.6313, -5.3237, -5.2649, -5.4533, -5.3341, -5.2912, -5.2256, -5.3518, -5.4258, -5.1645, -5.3676, -5.3341, -5.1038, -5.1645, -5.3383, -5.2859, -5.3391, -5.4056, -5.3864, -5.3549, -5.409, -5.6861, -5.4073, -5.1061, -5.266, -5.6152, -5.3427, -5.3675, -5.3442, -5.4208, -5.5076, -5.5455, -5.6321, -5.5747, -5.5733, -5.4475, -5.462, -5.2584, -5.4862, -5.3009, -5.505, -5.1824, -5.5307, -5.3816, -5.6973, -5.4576, -5.4995 ], | |
"loglift": [ 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 2.0815, 2.0804, 2.0799, 2.0798, 2.0793, 2.0792, 2.0789, 2.0766, 2.0762, 2.0637, 2.0328, 2.0278, 2.0231, 2.01, 2.0096, 2.0076, 1.9853, 1.9836, 1.9763, 1.9727, 1.9628, 1.953, 1.9443, 1.9432, 1.94, 1.931, 1.9236, 1.922, 1.9206, 1.9189, 2.3787, 2.3786, 2.3726, 2.3703, 2.352, 2.3484, 2.3323, 2.3243, 2.314, 2.3065, 2.2848, 2.2813, 2.28, 2.2648, 2.2581, 2.2551, 2.2487, 2.2466, 2.228, 2.2249, 2.2249, 2.2131, 2.2096, 2.2023, 2.1871, 2.1808, 2.1777, 2.1675, 2.166, 2.1658, 2.4944, 2.4836, 2.4456, 2.438, 2.4369, 2.4283, 2.417, 2.4169, 2.3922, 2.388, 2.3816, 2.3807, 2.3786, 2.3734, 2.3635, 2.3579, 2.3479, 2.3193, 2.3092, 2.3035, 2.2842, 2.2795, 2.2697, 2.2619, 2.2548, 2.2464, 2.2374, 2.2368, 2.2345, 2.2245, 2.621, 2.619, 2.5354, 2.5263, 2.5013, 2.4906, 2.484, 2.4779, 2.4647, 2.4568, 2.4329, 2.4273, 2.4173, 2.4097, 2.4087, 2.3959, 2.3942, 2.3841, 2.3788, 2.3743, 2.3522, 2.3522, 2.3295, 2.3284, 2.318, 2.3131, 2.3057, 2.3053, 2.3026, 2.2997, 2.6693, 2.6478, 2.5937, 2.5723, 2.5688, 2.5589, 2.5551, 2.4858, 2.4804, 2.4759, 2.4663, 2.4444, 2.4292, 2.4056, 2.402, 2.3977, 2.3907, 2.3755, 2.3707, 2.3433, 2.3346, 2.3317, 2.3297, 2.3256, 2.2874, 2.287, 2.283, 2.2627, 2.2616, 2.2416, 2.6932, 2.6931, 2.693, 2.6929, 2.6928, 2.6928, 2.6926, 2.6926, 2.6924, 2.6923, 2.6921, 2.6921, 2.6917, 2.6912, 2.691, 2.6907, 2.6907, 2.6904, 2.6904, 2.6901, 2.69, 2.6899, 2.6899, 2.6899, 2.6899, 2.6898, 2.6898, 2.6898, 2.6898, 2.6898, 2.7306, 2.7294, 2.7292, 2.7291, 2.7285, 2.7285, 2.7284, 2.7271, 2.7271, 2.727, 2.727, 2.7267, 2.7266, 2.7266, 2.7264, 2.7264, 2.7264, 2.7264, 2.7263, 2.7262, 2.7262, 2.7261, 2.7259, 2.7259, 2.7255, 2.7248, 2.7243, 2.7243, 2.724, 2.7237, 2.8695, 2.8694, 2.8693, 2.8692, 2.8689, 2.8689, 2.8675, 2.867, 2.8668, 2.8663, 2.8663, 2.8662, 2.8662, 2.8662, 2.8658, 2.8658, 2.8658, 2.8656, 2.8656, 2.8654, 2.8653, 2.8653, 2.8653, 2.8653, 2.8653, 2.8653, 2.8653, 2.8653, 2.8653, 2.8653, 2.8236, 2.814, 2.8126, 2.7912, 2.7892, 2.7457, 2.7216, 2.7039, 2.6973, 2.6922, 2.6831, 2.6613, 2.6432, 2.6366, 2.6332, 2.6245, 2.6237, 2.6041, 2.5824, 2.5662, 2.5538, 2.5484, 2.548, 2.5371, 2.5369, 2.534, 2.5315, 2.5313, 2.5267, 2.5149, 2.9268, 2.9266, 2.9263, 2.9263, 2.9261, 2.9261, 2.9258, 2.9256, 2.9255, 2.9254, 2.925, 2.925, 2.9246, 2.9244, 2.9242, 2.9242, 2.9234, 2.9234, 2.9231, 2.9231, 2.9229, 2.9227, 2.9216, 2.9208, 2.9199, 2.9119, 2.911, 2.9001, 2.9001, 2.8915, 2.973, 2.9728, 2.9726, 2.9723, 2.9722, 2.972, 2.9719, 2.9719, 2.9719, 2.9717, 2.9715, 2.9715, 2.9715, 2.9714, 2.9714, 2.9713, 2.9713, 2.971, 2.9709, 2.9706, 2.9706, 2.9705, 2.9705, 2.9703, 2.9703, 2.9703, 2.9703, 2.9702, 2.9701, 2.9701, 3.3358, 3.3335, 3.3187, 3.3102, 3.2779, 3.2578, 3.2359, 3.2133, 3.2031, 3.1363, 3.0852, 3.085, 3.0762, 3.0431, 2.9713, 2.9659, 2.8696, 2.8421, 2.8334, 2.833, 2.7901, 2.7816, 2.7683, 2.7388, 2.7222, 2.7124, 2.7115, 2.7079, 2.7018, 2.6963, 3.4726, 3.4724, 3.4722, 3.4715, 3.4711, 3.471, 3.4708, 3.4708, 3.4707, 3.4706, 3.4706, 3.4687, 3.4675, 3.4675, 3.4675, 3.4675, 3.4675, 3.4675, 3.4674, 3.4674, 3.4674, 3.4674, 3.4672, 3.4672, 3.4672, 3.4672, 3.4672, 3.467, 3.467, 3.4668, 3.0436, 2.9864, 2.9334, 2.9029, 2.8334, 2.8319, 2.8302, 2.8161, 2.8129, 2.7899, 2.7169, 2.7013, 2.6979, 2.6705, 2.6665, 2.6609, 2.6499, 2.6387, 2.6246, 2.6185, 2.617, 2.571, 2.5701, 2.5697, 2.5446, 2.539, 2.5343, 2.5171, 2.5086, 2.4951, 3.613, 3.5688, 3.5555, 3.4637, 3.4089, 3.3817, 3.3264, 3.2747, 3.2646, 3.2415, 3.2328, 3.2271, 3.1864, 3.1232, 3.1036, 3.0597, 3.0545, 3.0345, 3.03, 3.0214, 3.0194, 3.0023, 2.9906, 2.9905, 2.9883, 2.9816, 2.9786, 2.9654, 2.9417, 2.9281, 3.6184, 3.5351, 3.4785, 3.4721, 3.4641, 3.4584, 3.4584, 3.4584, 3.4563, 3.4128, 3.4068, 3.3821, 3.3724, 3.3435, 3.341, 3.3243, 3.2941, 3.2702, 3.2443, 3.2382, 3.229, 3.203, 3.203, 3.1905, 3.1814, 3.1754, 3.159, 3.1515, 3.1437, 3.109, 3.7723, 3.7722, 3.7716, 3.7714, 3.771, 3.7707, 3.7706, 3.7706, 3.7705, 3.7705, 3.7704, 3.7699, 3.7697, 3.7697, 3.7696, 3.7693, 3.7689, 3.7688, 3.7686, 3.7684, 3.7683, 3.7682, 3.7678, 3.7676, 3.7673, 3.7673, 3.7673, 3.7673, 3.7673, 3.7673, 3.8058, 3.8049, 3.8047, 3.8044, 3.8043, 3.8043, 3.8038, 3.8037, 3.8035, 3.8034, 3.8031, 3.8026, 3.8022, 3.8022, 3.8018, 3.8018, 3.8018, 3.8018, 3.8018, 3.8017, 3.8017, 3.8015, 3.8014, 3.8013, 3.8013, 3.8012, 3.8011, 3.8008, 3.8007, 3.8007, 3.7581, 3.6246, 3.5994, 3.5538, 3.5365, 3.5277, 3.4744, 3.468, 3.4677, 3.4338, 3.4193, 3.4015, 3.3662, 3.3145, 3.2774, 3.2715, 3.2521, 3.2417, 3.2289, 3.228, 3.2125, 3.2118, 3.1751, 3.1734, 3.1711, 3.1662, 3.1033, 3.0604, 3.0604, 3.0573, 3.9411, 3.9376, 3.8757, 3.7195, 3.7054, 3.7002, 3.6343, 3.6205, 3.5174, 3.4379, 3.4285, 3.4191, 3.3831, 3.377, 3.367, 3.3544, 3.3348, 3.3292, 3.326, 3.3205, 3.3158, 3.2954, 3.2942, 3.2717, 3.2587, 3.2583, 3.2582, 3.2466, 3.2432, 3.1966, 1.911, 2.2164, 2.2991, 2.2381, 2.6878, 2.6863, 2.6847, 2.7215, 2.7145, 2.7195, 2.8628, 2.8593, 2.5109, 3.1046, 3.193, 1.9038, 1.9112, 2.1252, 2.2296, 2.6834, 2.7152, 2.8576, 2.8565, 2.4816, 2.5003, 2.9456, 2.4584, 1.9008, 2.2786, 2.8121, 2.9582, 2.9487, 2.6575, 1.8906, 2.094, 2.0835, 2.1187, 2.2637, 2.1538, 2.6173, 2.6808, 2.694, 2.4202, 2.9113, 1.8788, 2.1531, 2.2672, 2.7148, 2.8283, 2.8365, 2.7948, 2.9445, 2.1036, 2.1278, 2.2204, 2.5937, 2.4866, 2.8117, 2.9533, 3.4335, 2.3817, 2.8869, 1.825, 2.084, 2.1733, 2.2828, 2.9366, 2.6169, 2.5963, 3.0104, 2.9343, 2.9674, 1.8699, 1.8165, 2.1395, 2.176, 2.2192, 2.6703, 2.8615, 3.4214, 2.9323, 3.7868, 1.7767, 2.0528, 2.2134, 2.5603, 2.5646, 2.4475, 2.8037, 2.3834, 2.7511, 2.8114, 1.8884, 2.0632, 2.2219, 2.0336, 2.3967, 2.7478, 2.7315, 2.7363, 2.8241, 2.683, 3.1798, 2.8853, 3.7138, 1.8194, 1.8769, 2.1572, 1.9076, 2.1486, 2.6938, 2.2969, 2.8582, 2.7231, 3.2905, 2.4569, 2.0528, 2.0129, 2.0284, 2.1221, 2.5647, 2.5597, 2.6729, 2.7468, 2.6291, 2.5783, 2.8007, 2.7569, 1.6311, 1.6391, 2.0482, 2.5594, 2.5246, 2.5375, 2.6433, 2.3398, 2.6628, 2.3305, 3.0364, 2.9417, 1.7875, 2.44, 2.6117, 2.4714, 3.3434, 2.7003, 3.7726, 1.5877, 1.9027, 2.0875, 2.2697, 2.4364, 2.3976, 2.5027, 2.4316, 2.2562, 2.5262, 2.4076, 2.6582, 2.8859, 3.5261, 3.5118, 2.9993, 2.9863, 1.6401, 1.4656, 1.9088, 1.9577, 2.0608, 1.8269, 2.1948, 2.2344, 2.0835, 2.6108, 2.345, 2.4037, 3.1341, 3.6097, 1.7706, 1.9254, 1.8017, 2.4401, 2.6927, 2.7338, 2.3151, 2.7131, 2.6816, 2.779, 2.7055, 1.6051, 1.7863, 2.0805, 2.084, 2.3117, 2.361, 2.639, 2.2506, 2.757, 3.3194, 2.9129, 3.6552, 2.8105, 1.726, 1.5065, 1.9454, 1.9913, 2.0355, 2.5216, 2.6571, 2.3392, 2.7018, 2.4395, 3.0155, 2.2375, 2.7522, 1.5013, 1.5668, 1.713, 1.6994, 1.7058, 1.7992, 1.9436, 2.3068, 2.0728, 2.0951, 2.7718, 3.1856, 3.2061, 2.608, 3.0897, 1.4024, 1.3958, 1.5481, 1.6828, 1.7805, 2.1965, 2.4233, 2.5647, 2.5363, 2.5994, 3.0614, 3.1437, 2.9625, 2.9282, 1.5327, 1.5859, 1.7308, 1.9804, 2.1065, 1.9457, 1.7081, 2.5369, 2.4777, 1.8963, 2.4928, 2.509, 2.2566, 2.1595, 2.6413, 2.4574, 3.006, 2.836, 2.6847, 3.1019, 1.2723, 1.4328, 1.6778, 2.0131, 1.8405, 1.9308, 2.4387, 2.4066, 2.6153, 2.6408, 2.2994, 3.035, 3.0469, 1.9387, 2.3453, 1.5069, 1.7349, 1.7765, 1.9206, 1.5975, 2.0425, 2.0665, 1.7453, 2.4099, 2.1709, 2.1504, 2.2084, 3.2915, 2.3014, 3.0106, 2.9022, 2.8941, 1.2696, 1.6667, 1.3768, 2.5636, 2.0674, 1.889, 1.8801, 2.1726, 2.7204, 3.1636, 1.7726, 1.0496, 1.4697, 1.6998, 1.4228, 1.522, 1.519, 1.5834, 2.1834, 2.4194, 2.402, 1.9654, 1.7928, 2.5507, 2.8317, 1.6216, 1.8369, 1.8561, 1.7398, 2.0237, 1.9913, 1.8186, 2.0144, 1.9708, 1.6652, 2.47, 3.5081, 3.3542, 2.6162, 2.7976, 1.2482, 1.6948, 1.5365, 1.7783, 1.5975, 1.637, 1.7412, 1.9395, 2.5707, 2.6546, 2.9151, 2.1663, 2.0076, 2.2881, 3.4097, 2.7348, 3.0238, 1.4857, 1.5622, 1.4908, 1.227, 1.3124, 1.5314, 1.6203, 1.9098, 1.5529, 2.3127, 1.6246, 2.0866, 2.2458, 1.9917, 2.7109, 2.6971, 3.2969, 2.5599, 2.745, 1.4059, 1.6534, 1.69, 1.7429, 2.1506, 2.1996, 0.976, 1.1685, 1.5822, 1.8149, 1.741, 1.7178, 1.9384, 2.3386, 2.1397, 1.806, 2.2262, 1.9603, 2.173, 2.2765, 2.4442, 2.2348, 2.2754, 2.155, 2.7036, 2.4802, 1.404, 1.4276, 1.6557, 1.8125, 2.1605, 2.3337, 1.7537, 2.5022, 2.0951, 2.0829, 2.5057, 2.3852, 1.9987, 2.3765, 3.2706, 2.8249, 1.2595, 1.3638, 1.4723, 1.5146, 1.7518, 1.7292, 1.9717, 2.4753, 2.4986, 2.5185, 1.8422, 3.1714, 1.5104, 1.5861, 1.5962, 1.7802, 1.3469, 2.26, 1.7793, 1.4051, 2.2367, 2.5847, 2.2204, 1.9807, 0.9661, 1.7492, 1.4712, 1.5156, 1.6526, 2.6092, 1.8269, 2.8453, 2.1619, 3.0145, 1.1428, 1.3725, 1.4277, 1.1732, 1.6208, 1.9475, 1.3786, 2.0032, 2.0555, 2.7515, 2.4918, 2.2346, 2.4499, 3.2063, 3.4267, 1.9745, 1.2535, 1.4437, 1.3758, 2.0103, 1.4793, 1.5031, 2.0649, 2.1246, 1.7421, 2.0687, 1.974, 2.6434, 2.831, 1.9282, 1.8154, 2.3554, 3.2066, 3.5315, 2.2404, 1.2189, 1.663, 1.1587, 1.6457, 2.0195, 1.2444, 1.7421, 1.9119, 1.7945, 1.9208, 2.2486, 2.4781, 1.4855, 1.6045, 1.6508, 2.2071, 1.8611, 1.7126, 1.6839, 2.3338, 2.1844, 2.1158, 3.0293, 2.0912, 2.6722, 2.6016, 1.8646, 1.2337, 1.1675, 1.0507, 1.5082, 1.2945, 1.474, 1.7267, 2.052, 2.0106, 2.1355, 1.3865, 1.8411, 1.9346, 1.1645, 1.771, 1.8219, 1.686, 2.2114, 1.8912, 1.9989, 1.7972, 1.8736, 1.592, 1.1152, 1.6515, 1.9424, 1.7259, 2.1605, 2.1602, 2.1804, 1.1149, 1.4436, 1.3167, 1.4753, 1.5911, 1.9624, 1.5891, 2.1654, 2.0044, 2.4007, 1.8493, 2.0785, 1.9934, 1.6533, 3.2428, 2.3997, 2.7958, 1.0731, 1.4241, 1.4799, 1.6896, 1.3687, 1.4512, 2.1249, 1.6201, 2.9275, 2.0823, 1.3158, 1.8969, 1.5305, 1.4358, 1.3313, 1.0455, 2.3777, 2.0884, 1.5483, 2.9916, 2.1127, 2.0437, 1.4454, 1.4654, 1.764, 1.4419, 1.3053, 1.9651, 1.4877, 1.6739, 2.2201, 1.5288, 3.5112, 2.1418, 1.5736, 1.5923, 1.0972, 1.8265, 3.2253, 2.7928, 2.0672, 1.5791, 1.4305, 1.5214, 1.4226, 1.0009, 1.2735, 1.6557, 1.4018, 1.8699, 1.5451, 1.6222, 1.37, 1.776, 2.3456, 2.6188, 2.3861, 0.8126, 1.3509, 1.9651, 1.4885, 1.7817, 1.8386, 2.7121, 1.8052, 2.8146, 2.4354, 1.5358, 2.2276, 1.6448, 1.7835, 1.5967, 1.2479, 3.4228, 1.3957, 1.2957, 1.1527, 1.3522, 1.0524, 1.6336, 1.9873, 1.7283, 1.5657, 1.6354, 1.5882, 1.6643, 1.715, 2.1203, 1.2302, 1.3472, 1.4143, 1.2664, 1.4539, 1.6309, 1.9566, 1.455, 2.7251, 2.4799, 1.2124, 0.7697, 1.5832, 1.5152, 1.8794, 2.3549, 1.3921, 1.2723, 1.5175, 1.469, 1.2151, 1.4268, 1.5928, 1.5703, 2.9307, 2.3881, 1.3057, 1.2298, 1.4432, 1.3678, 1.7921, 2.265, 1.8609, 1.5959, 2.2476, 2.3844, 2.0436, 1.4171, 1.4564, 1.6681, 1.5139, 0.7602, 1.6584, 0.9175, 1.0753, 2.0086, 0.9725, 1.3488, 1.232, 2.1108, 1.9701, 1.1082, 1.8753, 1.2469, 2.055, 1.2625, 1.3825, 1.0968, 1.5021, 1.8775, 1.2166, 2.5091, 1.2941, 1.1171, 1.5556, 1.435, 1.4471, 1.0612, 1.7736, 1.6861, 1.4415, 2.8774, 1.9603, 1.3604, 1.1818, 1.4708, 1.2835, 1.5772, 1.1268, 1.6382, 1.4843, 1.1287, 1.1747, 0.889, 1.4711, 1.8855, 1.4159, 1.3266, 1.2325, 1.7842, 1.018, 1.1931, 1.3289, 1.4908, 1.1689, 0.5276, 1.4283, 1.8334, 1.4906, 0.9303, 1.8275, 1.9691, 0.9984, 2.0565, 2.1063, 1.5411, 1.5084, 0.8274, 1.9524, 1.4651, 1.3903, 1.0686, 0.742, 1.3761, 1.0957, 1.1333, 1.3854, 1.2096, 1.1815, 1.5796, 0.7241, 0.9644, 1.1318, 1.0612, 1.6242, 1.3266, 1.8622, 2.2221, 0.9237, 0.9392, 1.0814, 1.587, 1.5023, 1.3264, 1.3307, 2.3372, 0.9949, 1.5005, 0.6458, 0.9219, 1.0196, 1.6762, 2.1213, 1.5298, 1.2976, 1.3121, 1.1249, 1.2241, 1.2679, 0.6241, 1.0741, 1.112, 1.1032, 1.2673, 1.3104, 0.707, 0.9428, 1.4246, 1.8249, 1.596, 0.3993, 1.3865, 1.3399, 1.2895, 0.3957, 0.9985, 0.7102, 1.4433, 1.0902, 1.0727, 1.0382, 1.1224, 1.2703, 1.184, 2.109, 1.3955, 0.9468, 2.0033, 1.7164, 1.3935, 1.2624, 0.5506, 1.4181, 1.2806, 1.5328, 0.2142, 1.4311, 1.3024, 0.5098, 1.6399, 1.3775, 1.4274, 1.4696, 0.6371, 1.4547, 1.0134, 0.5606, 1.3998, 0.32, 1.3282, 0.3431, 1.0146, 1.5153, 0.8609, 1.0677, 0.3744, 1.3572, 1.7461, 1.3838, 1.7066, 1.0804, 1.3882, 1.0885, 0.8923, 1.2388, 1.1748, 0.9332, 2.3474, 0.7025, 0.8368, 1.2231, 0.5883, 1.0033, 1.9401, 1.1533, 1.5605, 1.3191, 1.9257, 0.0785, 0.9224, 0.3352, 1.2223, 1.2796, 0.8443, 0.2033, 1.2054, 0.8655, 0.6891, 1.4943, 0.2296, 1.2608, 1.146, 1.4553, 1.6967, 0.0767, 0.9052, 0.4669, 1.1099, -0.0211, 1.8267, 1.2224, 0.9398, 0.8109, 1.4422, 0.0461, 1.1922, 0.8094, 1.2771, 0.6072, 1.3526, 1.2988, 1.4317, 1.0961, 0.9566, 1.2542, 0.8353, 1.0043, 0.7657, 1.1923, 0.0268, 2.1255, 1.007, 1.1967, 1.0103, 0.9586, 0.0351, 1.0816, 0.9586, 0.4821, 0.9798, 0.1816, 1.0605, 0.6438, -0.1374, 0.8714, 0.2883, 1.3123, -0.0003, 1.1134, 1.364, 0.9404, 1.1738, 1.7389, 1.522, 0.6729, 0.9147 ], | |
"Freq": [ 10650, 11090, 10050, 10276, 7183, 5970, 7338, 7510, 7739, 9558, 7188, 7867, 4447, 5986, 4544, 5237, 6300, 4801, 2826, 5017, 6255, 4873, 4802, 4625, 4279, 4543, 3454, 2544, 3561, 3794, 318.87, 161.94, 132.96, 127.96, 110.97, 105.97, 98.973, 61.99, 57.992, 123.96, 104.97, 94.974, 200.92, 57.992, 228.91, 55.993, 110.97, 156.94, 402.83, 251.9, 49.996, 45.998, 264.89, 115.96, 203.92, 50.996, 459.8, 87.978, 109.97, 46.997, 517.63, 110.94, 144.91, 104.94, 248.83, 129.92, 70.966, 113.93, 36.992, 164.9, 76.962, 153.9, 71.966, 686.5, 37.991, 857.37, 77.961, 194.87, 1198.1, 73.964, 73.964, 228.85, 936.31, 152.9, 163.9, 74.963, 135.92, 73.964, 108.94, 108.94, 133.91, 127.92, 160.89, 184.87, 223.84, 127.92, 65.968, 65.968, 646.51, 117.93, 108.93, 61.971, 221.85, 63.97, 161.89, 321.77, 485.64, 161.89, 311.78, 64.969, 405.7, 119.93, 547.59, 65.968, 29.996, 192.87, 211.85, 156.9, 135.91, 249.82, 140.9, 79.954, 68.963, 71.961, 140.9, 177.87, 235.83, 65.966, 65.966, 78.955, 172.88, 56.973, 79.954, 55.974, 159.89, 63.967, 140.9, 52.976, 220.84, 78.955, 61.969, 61.969, 76.957, 64.967, 81.953, 151.89, 235.83, 80.953, 87.948, 381.71, 153.89, 262.79, 225.82, 232.82, 113.92, 228.82, 107.93, 221.83, 337.73, 287.77, 132.91, 357.71, 146.89, 115.92, 110.92, 108.93, 490.6, 235.82, 37.987, 208.84, 122.91, 74.955, 174.87, 145.89, 36.988, 87.944, 145.89, 148.89, 266.79, 102.93, 207.84, 191.85, 184.86, 174.87, 171.87, 168.87, 157.88, 154.88, 144.89, 140.9, 129.91, 127.91, 114.92, 99.932, 93.937, 87.942, 86.943, 81.948, 81.948, 76.952, 74.954, 73.955, 73.955, 73.955, 73.955, 72.956, 72.956, 72.956, 72.956, 72.956, 339.71, 160.87, 149.88, 143.89, 118.91, 116.91, 112.92, 82.944, 82.944, 80.946, 79.947, 75.95, 73.952, 73.952, 71.954, 71.954, 70.955, 70.955, 69.956, 68.957, 68.957, 66.959, 64.96, 64.96, 60.964, 198.84, 50.973, 50.973, 48.975, 46.977, 99.914, 95.919, 94.92, 91.923, 85.929, 84.93, 64.951, 59.957, 57.959, 53.963, 53.963, 52.964, 52.964, 52.964, 49.967, 49.967, 49.967, 48.968, 48.968, 47.969, 46.97, 46.97, 46.97, 46.97, 46.97, 46.97, 46.97, 46.97, 46.97, 46.97, 191.82, 145.87, 96.917, 240.76, 91.923, 59.956, 55.961, 453.54, 246.76, 85.929, 57.959, 109.9, 168.84, 89.925, 233.77, 203.8, 366.63, 739.24, 208.8, 377.62, 113.9, 67.948, 203.8, 277.73, 94.919, 71.944, 153.86, 29.988, 62.953, 55.961, 174.82, 156.84, 138.86, 137.87, 131.87, 128.88, 117.89, 110.9, 108.9, 104.9, 93.915, 93.915, 84.925, 82.927, 78.932, 77.933, 67.944, 66.945, 63.949, 63.949, 61.951, 59.953, 50.963, 45.969, 149.85, 79.931, 75.935, 80.93, 80.93, 166.83, 199.79, 185.8, 164.83, 145.85, 144.85, 131.87, 129.87, 128.87, 126.87, 119.88, 113.89, 113.89, 112.89, 110.89, 110.89, 107.89, 106.9, 98.904, 94.909, 88.916, 88.916, 87.917, 86.918, 83.922, 83.922, 82.923, 82.923, 81.924, 79.927, 78.928, 145.74, 79.867, 83.859, 167.7, 49.924, 48.926, 39.943, 35.951, 50.922, 120.79, 129.77, 45.932, 27.966, 49.924, 98.83, 35.951, 79.867, 198.64, 73.878, 99.828, 49.924, 35.951, 32.957, 47.928, 98.83, 193.65, 277.49, 98.83, 96.834, 51.92, 132.76, 126.78, 118.79, 96.833, 87.851, 84.856, 82.86, 81.862, 80.864, 78.868, 78.868, 55.912, 47.928, 47.928, 47.928, 47.928, 47.928, 47.928, 46.93, 46.93, 46.93, 46.93, 45.931, 45.931, 45.931, 45.931, 45.931, 44.933, 44.933, 43.935, 120.79, 95.834, 156.72, 121.78, 117.79, 110.8, 78.867, 100.82, 52.917, 142.74, 77.869, 73.877, 33.954, 93.838, 152.72, 182.67, 224.58, 315.41, 119.79, 342.36, 70.882, 101.82, 109.81, 226.58, 56.91, 99.826, 374.29, 114.8, 26.968, 82.859, 205.56, 92.813, 87.824, 81.837, 40.929, 88.822, 39.931, 32.946, 124.74, 44.92, 45.918, 42.924, 39.931, 39.931, 70.862, 17.98, 114.76, 72.857, 123.74, 34.942, 110.77, 29.953, 41.926, 41.926, 73.855, 253.45, 32.946, 41.926, 39.931, 43.922, 112.74, 113.74, 38.924, 234.44, 39.921, 38.924, 38.924, 38.924, 75.832, 37.926, 75.832, 38.924, 135.68, 361.13, 106.76, 111.74, 38.924, 39.921, 38.924, 16.978, 38.924, 37.926, 37.926, 306.26, 55.882, 57.877, 17.975, 79.822, 144.66, 246.41, 166.59, 155.62, 126.69, 118.71, 105.75, 96.768, 95.771, 93.776, 91.781, 91.781, 89.787, 79.812, 77.818, 77.818, 75.823, 70.836, 66.846, 65.849, 62.857, 60.862, 59.864, 58.867, 55.875, 53.88, 51.885, 51.885, 51.885, 51.885, 51.885, 51.885, 219.43, 148.62, 134.66, 120.7, 119.7, 116.71, 101.75, 100.75, 95.763, 91.773, 85.789, 76.814, 70.83, 70.83, 66.84, 66.84, 65.843, 65.843, 65.843, 64.846, 64.846, 62.851, 61.854, 60.856, 60.856, 59.859, 58.862, 56.867, 55.87, 55.87, 43.889, 39.901, 38.904, 148.58, 72.802, 70.808, 36.91, 30.927, 30.927, 182.47, 147.58, 34.916, 71.805, 52.862, 226.34, 25.942, 71.805, 103.71, 33.919, 95.734, 25.942, 23.948, 125.64, 24.945, 23.948, 39.901, 37.907, 32.922, 29.93, 117.67, 93.728, 49.865, 46.874, 40.892, 41.889, 40.892, 88.743, 47.871, 41.889, 341.95, 44.88, 40.892, 42.886, 82.762, 43.883, 135.6, 84.756, 70.799, 87.746, 41.889, 44.88, 41.889, 42.886, 39.896, 41.889, 43.883, 44.88, 39.896, 86.75, 64.818, 246.9, 645.51, 159.89, 182.86, 189.85, 157.88, 131.9, 134.9, 194.84, 111.92, 129.88, 97.917, 145.87, 1536.2, 111.67, 327.86, 220.91, 596.57, 341.72, 117.92, 82.944, 86.928, 80.935, 1028.9, 265.74, 315.65, 609.84, 236.91, 194.86, 306.7, 141.85, 164.83, 299.44, 298.88, 733.46, 863.37, 361.75, 286.78, 1452.8, 498.58, 95.935, 139.89, 597.86, 68.866, 358.85, 606.54, 231.83, 80.946, 94.92, 312.67, 600.35, 141.85, 461.67, 891.32, 250.8, 340.72, 174.83, 323.66, 108.89, 78.868, 744.58, 104.79, 646.71, 554.6, 391.71, 145.9, 137.86, 275.49, 342.36, 489.81, 180.48, 115.67, 308.87, 567.75, 209.86, 323.77, 246.81, 94.936, 133.87, 78.868, 1164.1, 65.843, 846.61, 502.64, 262.8, 293.76, 267.78, 194.81, 219.77, 518.01, 418.09, 216.54, 2369.2, 997.24, 228.83, 1278.9, 1732.4, 328.65, 875, 828.05, 339.62, 96.834, 718.63, 87.824, 85.797, 478.79, 2179.4, 405.69, 2917.6, 401.67, 199.81, 727.25, 113.89, 804.08, 203.63, 204.62, 387.73, 973.26, 846.36, 481.6, 210.83, 230.81, 208.8, 113.9, 268.74, 876.04, 348.61, 477.46, 1574.3, 1350.4, 387.73, 208.84, 254.79, 248.79, 236.77, 422.57, 420.55, 424.2, 115.73, 120.66, 486.79, 403.66, 143.89, 1158.7, 101.82, 1031.5, 66.84, 1603.3, 1197, 404.69, 1065.1, 383.68, 489.57, 253.79, 594.39, 619.36, 239.56, 247.54, 274.41, 288.31, 224.44, 300.21, 71.805, 74.796, 1008.5, 2451.8, 764.44, 569.59, 485.64, 1700.6, 266.79, 1013.1, 2325.9, 200.81, 369.63, 445.16, 278.48, 124.7, 488.79, 611.56, 1631.7, 313.73, 117.9, 95.919, 406.59, 208.79, 411.54, 115.76, 605.52, 974.55, 1547.7, 382.7, 374.71, 513.55, 392.66, 148.86, 526.46, 280.69, 90.845, 203.52, 117.7, 154.56, 536.76, 1340.4, 722.45, 567.55, 521.57, 196.85, 129.88, 989.91, 360.6, 299.44, 346.35, 445.16, 190.45, 1330.4, 1006.5, 1260.1, 1939.5, 1659.7, 1354.8, 710.41, 407.65, 1341.6, 812.16, 245.73, 149.73, 133.76, 603.14, 83.759, 1878.1, 1906.1, 2321.3, 1735.6, 1184, 668.43, 216.79, 323.66, 577.35, 145.74, 232.57, 168.69, 322.4, 155.63, 1080.5, 1948.5, 1150.1, 528.61, 321.76, 649.46, 3969.5, 154.88, 187.85, 1741.2, 207.8, 193.82, 405.59, 570.42, 228.76, 434.53, 267.5, 74.853, 127.73, 78.774, 2608.8, 1514.3, 1308, 439.66, 917.23, 666.44, 267.78, 234.8, 247.74, 348.61, 381.29, 213.61, 198.64, 1027, 395.14, 1088.5, 958.29, 969.26, 586.56, 1668.6, 445.64, 841.28, 1953.2, 266.74, 502.49, 515.47, 907.01, 85.854, 279.48, 582.51, 84.766, 144.57, 2158, 637.71, 3211.5, 132.9, 750.23, 1254.7, 1177.8, 1348.4, 245.73, 123.78, 1301.5, 3947.1, 1138.5, 1064.1, 2329.1, 1740.6, 1885.4, 3381, 398.65, 561.36, 241.56, 715.63, 1164.8, 353.15, 103.71, 1062.2, 591.57, 648.51, 884.29, 847.27, 893.23, 1076, 618.45, 833.14, 2839.8, 836.41, 105.75, 211.45, 186.46, 171.49, 1855.1, 861.37, 1282, 849.29, 2398.9, 1638.5, 2237.5, 806.47, 147.74, 476.1, 234.57, 398.25, 731.39, 350.24, 134.67, 131.63, 86.75, 985.55, 1193.1, 1622.7, 2878.8, 2575.9, 1454.8, 1129, 541.55, 2510.8, 367.7, 1671.5, 535.45, 359.64, 669.31, 232.75, 214.49, 213.45, 205.41, 174.48, 1171.5, 1004.2, 1301.8, 1133.8, 675.27, 596.35, 3160.5, 2011.1, 1180.1, 662.47, 765.36, 1425.8, 847.27, 343.72, 424.63, 932.04, 361.64, 1017.9, 799.09, 621.29, 421.53, 1030, 279.48, 677.34, 177.47, 291.11, 1171.5, 1462.9, 1477.7, 1045.1, 405.59, 269.74, 999.96, 289.7, 872, 401.25, 158.72, 735.6, 512.03, 405.02, 157.61, 489.7, 2040.5, 1781.6, 1385.9, 1125.1, 694.42, 1213.9, 536.53, 198.81, 286.7, 335.63, 626.82, 193.52, 1242, 912.27, 952.2, 1026.1, 1837.3, 304.7, 929.04, 2416.3, 840.4, 132.72, 442.92, 549.38, 2575.8, 735.46, 1115.1, 1241.9, 937.03, 265.71, 663.73, 125.71, 422.7, 86.75, 2398.1, 1314.9, 1761.5, 2115.1, 932.04, 513.48, 1731.2, 806.08, 715.18, 296.45, 468.12, 369.11, 249.4, 183.53, 123.69, 457.65, 1443.3, 1197.1, 1203, 598.49, 1125, 1072.9, 401.6, 360.64, 1079.8, 599.35, 813.07, 351.34, 246.54, 517.02, 735.2, 678.26, 158.61, 101.75, 276.19, 1456.3, 891.32, 1735.6, 784.34, 571.51, 1624.5, 999.9, 853.02, 478.1, 1060, 294.45, 212.36, 1165.1, 803.36, 775.35, 413.65, 559.51, 671.31, 1040.9, 372.6, 534.4, 272.5, 167.7, 379.28, 381.99, 138.61, 534.35, 1379.4, 1821.6, 2236.3, 1092.2, 1296, 967.22, 871.25, 762.55, 798.48, 347.35, 1101.1, 701.4, 493.57, 1401.5, 680.3, 788.14, 956.95, 496.44, 363.32, 267.42, 453.66, 471.55, 940.28, 1583.7, 921.21, 597.49, 660.41, 201.57, 611.43, 252.27, 1729.7, 979.21, 1152.1, 924.17, 714.27, 431.56, 838.13, 447.52, 626.29, 157.72, 300.35, 214.54, 238.49, 620.48, 128.69, 439.84, 247.36, 1685.2, 992.16, 1084.1, 819.3, 1119.8, 1278.5, 218.6, 665.73, 203.47, 291.11, 1257.1, 516.57, 990.14, 949.15, 1069, 1647.3, 371.3, 346.35, 411.1, 173.57, 551.54, 277.19, 1048.2, 932.25, 601.5, 917.18, 1068, 417.58, 941.02, 756.18, 451.49, 672.71, 93.768, 237.31, 818.15, 807.12, 702.67, 468.11, 124.7, 212.45, 259.21, 444.63, 1049.2, 944.28, 1045.2, 1552.7, 965.19, 819.3, 752.23, 572.41, 641.77, 588.88, 451.01, 468.86, 245.41, 137.59, 176.47, 2017.1, 1053.2, 509.04, 380.17, 451.9, 542.61, 215.46, 309.1, 109.68, 305.68, 875, 426.52, 345.36, 599.86, 324.3, 457, 98.755, 1043.2, 1182.1, 1051.1, 1094.1, 1174.9, 560.43, 397.6, 634.35, 717.22, 670.73, 563.93, 481.83, 579.51, 209.37, 1159.1, 884.21, 818.27, 789.19, 648.34, 666.28, 488.47, 615.83, 188.51, 143.59, 488.5, 1426.8, 686.25, 806.08, 495.07, 159.54, 1007.3, 1192.1, 704.41, 729.39, 939.16, 643.34, 684.3, 529.99, 161.6, 158.53, 1081.2, 890.25, 906.22, 879.99, 267.51, 343.36, 411.22, 299.35, 267.36, 229.4, 208.37, 912.21, 618.37, 636.35, 753.14, 591.7, 446.86, 502.52, 439.7, 208.37, 1582.3, 655.33, 406.24, 379.29, 416.22, 721.62, 232.5, 573.53, 308.22, 833.3, 792.29, 790.19, 691.25, 247.54, 398.26, 194.5, 343.95, 916.23, 695.38, 752.33, 709.23, 443.17, 264.51, 258.44, 465.81, 146.63, 210.39, 321.02, 1191.1, 881.29, 683.3, 644.34, 410.23, 517.02, 408.01, 1187.1, 1067.1, 866.11, 596.39, 274.28, 293.14, 320.02, 803.17, 595.32, 421.21, 332.28, 441.93, 268.18, 1269.4, 1247.9, 742.34, 444.16, 275.41, 988.11, 433.18, 202.57, 496.79, 272.35, 177.47, 906.31, 673.44, 967.99, 524.41, 486.08, 349.11, 386.98, 1566.3, 987.25, 941.19, 754.18, 707.19, 302.35, 304.34, 351.15, 437.84, 1239.1, 1118.1, 781.15, 281.48, 393.05, 243.39, 202.49, 1252.1, 887.25, 872.22, 613.3, 295.45, 509.03, 307.22, 185.52, 673.31, 612.37, 437.18, 315.32, 333.15, 209.39, 169.51, 227.31, 1044.2, 734.39, 890.23, 686.29, 658.29, 910.96, 540.98, 310.19, 265.23, 745.38, 583.4, 814.11, 373.3, 446.16, 205.56, 210.39, 1059.1, 737.34, 564.42, 322.4, 378.04, 266.22, 292.15, 217.34, 1244.4, 1084.2, 811.32, 882.24, 651.26, 332.38, 335.37, 489.07, 288.38, 196.49, 197.43, 220.33, 650.26, 419.21, 242.37, 253.34, 459.13, 355.23, 237.4, 224.35, 740.24, 389.27, 335.19, 232.42, 234.39, 277.19, 211.36, 713.26, 393.26, 329.2, 305.11, 959.29, 979.17, 667.24, 454.14, 272.31, 252.34, 289.12, 328.21, 207.48, 630.35, 529.43, 255.45, 226.43, 238.38, 822.31, 745.34, 652.33, 248.37, 170.56, 252.27, 1267.4, 740.34, 354.34, 348.16, 182.53, 226.34, 197.4, 1132.5, 493.47, 1435.3, 786.3, 291.37, 969.22, 632.35, 237.4, 238.28, 962.26, 799.33, 811.28, 531.43, 258.25, 768.34, 295.45, 210.47, 199.5, 246.36, 785.34, 630.28, 455.14, 292.37, 183.53, 759.35, 776.31, 308.43, 344.36, 656.33, 302.27, 218.37, 196.41, 1003.2, 549.38, 344.36, 431.18, 956.23, 624.36, 921.32, 765.36, 585.4, 564.39, 556.37, 322.4, 179.55, 584.4, 430.19, 290.3, 186.52, 220.36, 606.38, 562.36, 197.4, 1165.5, 242.48, 189.53, 235.49, 194.5, 198.43, 189.43, 913.3, 298.45, 280.33, 181.45, 939.25, 285.47, 328.39, 177.56, 196.43, 182.45 ], | |
"Total": [ 10650, 11090, 10050, 10276, 7183, 5970, 7338, 7510, 7739, 9558, 7188, 7867, 4447, 5986, 4544, 5237, 6300, 4801, 2826, 5017, 6255, 4873, 4802, 4625, 4279, 4543, 3454, 2544, 3561, 3794, 319.25, 162.32, 133.34, 128.34, 111.35, 106.35, 99.352, 62.37, 58.372, 126.34, 110.34, 100.34, 213.28, 62.365, 246.27, 60.362, 122.32, 173.3, 448.09, 281.2, 56.367, 52.37, 304.23, 133.33, 235.22, 59.354, 539.12, 103.32, 129.33, 55.364, 607.93, 130.3, 171.22, 124.29, 300.15, 157.28, 87.303, 141.28, 46.348, 208.15, 99.284, 199.24, 93.29, 903.56, 50.34, 1139.3, 104.27, 261.19, 1635.9, 101.31, 101.31, 317.18, 1302.3, 214.21, 233.14, 107.31, 195.17, 107.3, 158.27, 158.29, 145.27, 140.27, 183.25, 212.18, 257.19, 148.25, 77.319, 77.321, 776.74, 142.28, 132.27, 75.317, 270.18, 78.312, 200.17, 400.06, 609.89, 209.22, 406.99, 85.295, 543.02, 161.27, 743.65, 90.285, 41.349, 268.09, 297.13, 220.2, 191.18, 354.95, 141.28, 80.334, 75.327, 79.322, 159.25, 203.2, 271.17, 76.32, 77.332, 93.298, 209.22, 69.337, 98.285, 69.327, 198.23, 80.328, 177.25, 67.318, 282.12, 101.31, 81.297, 81.299, 103.28, 87.287, 111.25, 207.22, 324.12, 111.31, 121.24, 527.76, 154.27, 269.16, 244.16, 257.17, 126.27, 256.16, 121.28, 267.15, 408.95, 350.03, 163.22, 449.02, 187.22, 151.27, 145.27, 143.27, 649.8, 317.14, 51.333, 290.04, 172.2, 105.31, 246.18, 206.24, 54.323, 129.2, 215.21, 224.14, 402.05, 158.25, 208.22, 192.23, 185.24, 175.24, 172.25, 169.25, 158.26, 155.26, 145.27, 141.27, 130.28, 128.29, 115.3, 100.31, 94.316, 88.322, 87.323, 82.327, 82.327, 77.331, 75.333, 74.334, 74.334, 74.334, 74.334, 73.335, 73.335, 73.335, 73.335, 73.335, 340.09, 161.25, 150.26, 144.27, 119.29, 117.29, 113.3, 83.323, 83.323, 81.325, 80.326, 76.33, 74.332, 74.332, 72.333, 72.333, 71.334, 71.334, 70.335, 69.336, 69.336, 67.338, 65.34, 65.34, 61.343, 200.22, 51.353, 51.353, 49.354, 47.356, 100.29, 96.298, 95.299, 92.302, 86.309, 85.31, 65.331, 60.336, 58.338, 54.342, 54.342, 53.343, 53.343, 53.343, 50.347, 50.347, 50.347, 49.348, 49.348, 48.349, 47.35, 47.35, 47.35, 47.35, 47.35, 47.35, 47.35, 47.35, 47.35, 47.35, 202.17, 155.22, 103.28, 262.12, 100.28, 68.315, 65.316, 538.83, 295.09, 103.29, 70.308, 136.26, 213.15, 114.28, 298.08, 262.13, 471.93, 970.37, 280.12, 514.84, 157.23, 94.304, 282.99, 389.84, 133.26, 101.3, 217.18, 42.338, 89.294, 80.312, 175.2, 157.22, 139.24, 138.25, 132.25, 129.26, 118.27, 111.28, 109.28, 105.28, 94.295, 94.295, 85.305, 83.307, 79.311, 78.312, 68.324, 67.325, 64.328, 64.328, 62.33, 60.332, 51.342, 46.348, 151.23, 81.309, 77.312, 83.304, 83.307, 173.21, 200.17, 186.18, 165.21, 146.23, 145.23, 132.25, 130.25, 129.25, 127.25, 120.26, 114.27, 114.27, 113.27, 111.27, 111.27, 108.27, 107.27, 99.284, 95.288, 89.295, 89.295, 88.297, 87.298, 84.301, 84.301, 83.302, 83.302, 82.304, 80.306, 79.307, 166.07, 91.217, 97.203, 196.05, 60.277, 60.276, 50.296, 46.304, 66.261, 168.03, 189.99, 67.256, 41.311, 76.229, 162.14, 59.303, 145.06, 370.83, 139.12, 188.07, 98.18, 71.299, 66.24, 99.217, 208.01, 411.6, 590.33, 211.01, 208, 112.14, 133.14, 127.15, 119.17, 97.213, 88.23, 85.236, 83.24, 82.242, 81.243, 79.247, 79.247, 56.292, 48.307, 48.307, 48.307, 48.307, 48.307, 48.307, 47.309, 47.309, 47.309, 47.309, 46.311, 46.311, 46.311, 46.311, 46.311, 45.313, 45.313, 44.315, 187.03, 157.14, 270.93, 217.07, 225.06, 212.03, 151.17, 196.02, 103.21, 284.86, 167.17, 161.08, 74.291, 211.01, 344.83, 414.71, 515.55, 732.21, 282.01, 810.92, 168.16, 252.93, 273.01, 563.54, 145.14, 256.02, 964.52, 300.95, 71.301, 222.06, 205.94, 97.185, 93.19, 95.183, 50.285, 112.14, 53.277, 46.291, 177.06, 65.247, 67.277, 63.25, 61.286, 65.285, 118.15, 31.324, 200.97, 130.16, 222.08, 63.249, 200.91, 55.266, 78.265, 78.273, 138.18, 477.39, 62.248, 80.267, 78.276, 87.281, 124.09, 136.06, 49.277, 298.69, 51.271, 50.274, 50.274, 50.274, 98.155, 51.271, 103.14, 54.264, 191, 523.26, 155.07, 165.05, 59.253, 62.243, 62.276, 27.331, 63.239, 63.238, 63.238, 517.11, 95.215, 99.213, 31.321, 140.14, 255.95, 451.38, 166.97, 155.99, 127.07, 119.09, 106.12, 97.148, 96.15, 94.156, 92.161, 92.161, 90.166, 80.192, 78.197, 78.197, 76.202, 71.215, 67.226, 66.228, 63.236, 61.241, 60.244, 59.246, 56.254, 54.259, 52.265, 52.265, 52.265, 52.265, 52.265, 52.265, 219.81, 149, 135.04, 121.08, 120.08, 117.09, 102.13, 101.13, 96.142, 92.153, 86.169, 77.193, 71.209, 71.209, 67.22, 67.22, 66.223, 66.223, 66.223, 65.225, 65.225, 63.231, 62.233, 61.236, 61.236, 60.239, 59.241, 57.247, 56.249, 56.249, 51.257, 53.251, 53.249, 212.85, 106.12, 104.12, 57.242, 48.276, 48.29, 294.74, 241.86, 58.244, 124.09, 96.196, 427.46, 49.287, 139.1, 202.99, 67.244, 189.95, 52.282, 48.296, 262.86, 52.276, 50.3, 84.22, 85.203, 77.241, 70.227, 276.94, 94.107, 50.244, 50.245, 51.246, 53.24, 52.243, 121.1, 66.234, 64.249, 567.89, 75.239, 69.199, 75.237, 146.08, 78.231, 244.8, 156.05, 131.08, 162.97, 78.236, 84.214, 80.226, 82.23, 78.236, 83.221, 87.217, 89.208, 80.228, 175.04, 137.03, 293.16, 924.59, 221.19, 282.12, 191.23, 159.26, 133.28, 136.27, 198.22, 113.3, 131.26, 99.295, 210.18, 2826.4, 236.93, 392.09, 262.26, 902.78, 531.74, 119.29, 84.322, 88.305, 82.311, 1526.7, 387, 325.01, 1695.4, 284.17, 275.18, 326.05, 144.23, 169.2, 672.35, 362.2, 1145.1, 1362.2, 550.99, 411.05, 2438.5, 538.89, 97.313, 145.27, 1726.8, 139.17, 440.03, 925.59, 331.12, 82.324, 99.289, 342.97, 686.58, 146.23, 713.88, 1395, 393.88, 377.07, 258.14, 363.93, 111.27, 82.245, 2234.9, 216.98, 836.84, 874.6, 585.79, 205.17, 143.23, 644.22, 817.25, 990.2, 480.36, 297.85, 382.14, 740.95, 313.08, 482.88, 388.04, 97.31, 143.23, 83.244, 2544.6, 67.22, 1149.7, 817.71, 396.1, 336.12, 305.09, 299.1, 249.12, 1552.2, 991.69, 483.54, 4543.2, 1664.9, 341.98, 2420.9, 2421.7, 393.95, 1116.1, 1051.1, 394.89, 211.96, 965.79, 182.16, 91.171, 623.04, 4227.5, 646.84, 5970.8, 677.77, 239.09, 1298, 122.25, 1034.2, 244.99, 569.73, 630.81, 1708.7, 1463.1, 834.44, 240.18, 274.14, 255.14, 129.26, 343.07, 1244, 414.93, 593.73, 2473.1, 2104.4, 633.69, 239.18, 302.15, 302.13, 298.02, 722.52, 548.8, 1340.3, 227.98, 318.77, 653.98, 520.94, 162.23, 1831.2, 116.19, 2843.3, 69.217, 2630.3, 2461.8, 691.78, 1629.7, 496.92, 683.79, 319.1, 924.5, 1151.4, 613.37, 724.01, 714.24, 660.12, 287.75, 403.5, 179.09, 189, 1570, 4545, 1436.3, 1019.1, 812.73, 3772.5, 429.85, 1605.8, 4447.3, 261.09, 628.71, 1288.4, 391.78, 147.05, 667.86, 1130.1, 3538.5, 419.97, 141.23, 110.28, 712.61, 259.11, 551.8, 267.03, 1660.5, 1571.2, 3576, 658.83, 642.83, 781.6, 568.87, 188.17, 984.18, 349.01, 106.18, 453.57, 137.07, 465.58, 766.85, 2384.9, 1356.9, 1068.2, 985.44, 234.13, 161.24, 1785.5, 473.83, 836.16, 548.58, 1543.5, 608.17, 2379.5, 1686.1, 2879.7, 4658.7, 4155.7, 3242, 1471.4, 623.47, 2987.3, 1773.6, 301.05, 200.07, 175.1, 2296.9, 197.03, 3708.5, 3788.5, 6255.8, 4447.2, 2751.5, 1100.4, 341, 465.91, 895.19, 346.81, 351.86, 235.04, 538.45, 341.61, 1872.8, 5056.3, 2582.1, 958.66, 539.68, 1342.4, 10651, 188.18, 242.17, 4625.4, 304.03, 279.02, 753.66, 1168, 305.03, 696.39, 427.76, 163.1, 323.76, 183.06, 5867, 2900.4, 3096.4, 809.62, 2106, 1398.1, 346.04, 325.01, 339.03, 486.87, 1224.8, 331.8, 304.91, 4801.1, 1406.3, 1936.1, 2142.6, 2155.4, 1129.4, 4656.4, 836.11, 1577.3, 5237.6, 423.98, 1017.3, 1065.2, 1864.4, 103.19, 909, 1250.5, 232.99, 413.58, 4866, 966.74, 10651, 157.23, 1679.6, 3357.4, 3189, 3007.7, 316.95, 169.07, 7183.2, 11091, 2101.7, 2680.6, 7740, 5237.6, 5970.8, 10276, 689.8, 978.31, 700.26, 3257.2, 6300, 1130.6, 305.88, 2659.8, 1194.3, 1331.8, 2140.2, 1658, 1805.4, 2681.7, 1267.1, 2054.3, 10050, 2285.8, 138.04, 332.71, 682.15, 540.3, 4273.7, 2004.6, 3495.3, 2075.3, 7188.8, 4896.3, 7338.6, 3712.9, 361.8, 1081.8, 410.76, 1482.8, 3648.8, 1319.8, 193.98, 427.72, 217.98, 1790.4, 3170.4, 4802.2, 11091, 9558.8, 4336.9, 3230.9, 1160.2, 7867.7, 538.94, 5057.2, 1176, 673.58, 1620.9, 303.06, 593.14, 355.68, 795.02, 579.35, 2305, 2525.7, 3689.5, 3511.5, 1470.7, 1236.7, 9558.8, 5017.3, 3187.2, 1487.4, 1941.2, 3788.2, 1805.6, 490.9, 767.56, 2710, 692.72, 2681.7, 1781.6, 1249.1, 716.62, 3561.7, 932.98, 3221, 614.21, 1259.8, 2309.3, 4447.3, 4178, 2526, 827.28, 462.7, 3072.3, 443.92, 2101.7, 1600.5, 414.78, 2188.4, 2254.1, 1543.5, 260.9, 1308.1, 7338.6, 5986.3, 4178, 3410.7, 1742.3, 3189, 1147.3, 296.01, 440.93, 529.75, 3180.6, 353.75, 3604.2, 2574.8, 2791.4, 2561.6, 7338.6, 562.64, 2782.2, 11091, 2900.4, 371.82, 1972.9, 3794.5, 7867.7, 1620.9, 3530.5, 4190.3, 3176.1, 383, 3469.9, 299.75, 2514.8, 220.01, 10050, 4594.9, 6255.8, 10050, 3261.4, 1296, 7740, 2130, 1793.5, 611.43, 1251.8, 1621.1, 883.16, 334.82, 181.01, 3180.6, 3307.5, 3581.2, 4190.3, 1186.9, 3935.9, 4223.3, 901.35, 762.52, 3538.5, 1416.8, 2212, 807.36, 469.64, 2442.4, 4910.3, 2803.7, 279.89, 134.09, 1471.4, 3454.8, 2220.4, 7510.6, 2188.4, 1123, 7188.8, 3276.7, 2469.5, 2544.6, 5017.3, 1009.7, 920.92, 3466.1, 2226, 2152.1, 673.8, 1336.4, 2143, 3615.2, 675.68, 1178, 1051.8, 261.98, 1522.3, 1188.8, 514.55, 4279.7, 3224.2, 7183.2, 10276, 3176.1, 4896.3, 3053.7, 2294.4, 3165.7, 3454.8, 1333.7, 3794.5, 1647.5, 1095.3, 7740, 2054.3, 2384.6, 3316.9, 1065.2, 1755.4, 1345.8, 3764.7, 3743, 2514.8, 7510.6, 2615.5, 1268.2, 1805.6, 863.06, 3072.3, 1427.1, 7188.8, 3187.2, 4256.9, 3246.5, 2574.8, 1073.1, 3036, 960.37, 1652.9, 457.81, 1755.4, 997.01, 1206.8, 4873.5, 219.02, 1797.6, 680.32, 4625.4, 3454.8, 3653.9, 2239.1, 5056.3, 5867, 836.11, 4279.7, 490.54, 1875.3, 4273.7, 1121.1, 3172.8, 3468.5, 4336.9, 10276, 1112.9, 1394, 3246.5, 379.75, 3003.5, 1797.7, 3246.1, 2968.8, 1491, 3331.4, 4447.2, 1035.6, 3772.5, 2652.8, 960.39, 4738, 126.11, 1395.3, 3009.8, 3072.3, 7510.6, 2448.1, 215.97, 586.07, 1695.4, 4738, 3180.6, 2710, 3311.3, 7867.7, 3907.2, 2316.5, 3276.7, 1565.8, 4447.2, 3777.9, 4256.9, 3257.2, 964.52, 518.34, 839.04, 7183.2, 3760.6, 2305, 3187.2, 3121.5, 3760.6, 623.47, 2544.6, 339.7, 500.78, 3689.5, 900.5, 2134.9, 3257.2, 2440, 4873.5, 145.09, 3274.2, 4251.6, 4801.1, 4190.3, 6300, 1936.1, 964.39, 1999.2, 2803.7, 4223.3, 3743, 3743, 4545, 1298.5, 4669.6, 3530.5, 3055.1, 3935.9, 2680.6, 2440, 1291.7, 4669.6, 556.45, 602.06, 7510.6, 9558.8, 2636.1, 3469.9, 2442.4, 757.99, 3172.8, 4389.4, 2234, 2428.2, 4279.7, 2733.2, 2469.5, 3581.2, 375.77, 752.18, 3712.9, 3764.7, 3168.9, 4389.4, 1427.1, 1151.9, 2077.8, 2254.1, 1158.9, 952.05, 1395.3, 3274.2, 2550.4, 2130, 3246.1, 10276, 3708.5, 10050, 7510.6, 1445.1, 4802.2, 3009.8, 3794.5, 1484.7, 1875.3, 7740, 1324, 7183.2, 1720.6, 3410.7, 3053.7, 4669.6, 2879.7, 1212.5, 3777.9, 712.55, 4873.5, 4336.9, 2254.1, 2751.5, 3121.5, 4910.3, 1437.6, 1778.2, 4802.2, 371.67, 1483.1, 4256.9, 4801.1, 2791.4, 3350.2, 2362, 4256.9, 3246.5, 3794.5, 4866, 4545, 6300, 2423.7, 1874.6, 3561.7, 4389.4, 4155.7, 1958.1, 4873.5, 3743, 4801.1, 3121.5, 3165.7, 10651, 2733.2, 2294.4, 2304.2, 5986.3, 2250.9, 1050.2, 7510.6, 1429.2, 1116.1, 2550.4, 2155.4, 7510.6, 1457.9, 3648.8, 3788.5, 5986.3, 5986.3, 3276.7, 4658.7, 4543.2, 3466.1, 3350.2, 3468.5, 2968.8, 9558.8, 5986.3, 4738, 5057.2, 1776.1, 4279.7, 1647.6, 956.43, 6300, 5017.3, 4543.2, 2457.1, 2106, 4389.4, 3538.5, 807.13, 4405.6, 2423.7, 7338.6, 4658.7, 5237.6, 1961.1, 1017.3, 2544.6, 3615.2, 2860.2, 4279.7, 3581.2, 3466.1, 9558.8, 5970.8, 4594.9, 4405.6, 3036, 2784.5, 7510.6, 4656.4, 3468.5, 1231, 2134.9, 10276, 2830.7, 2615.5, 2843.3, 11091, 4910.3, 7188.8, 2652.8, 3357.4, 4873.5, 4155.7, 4251.6, 3581.2, 3257.2, 1315.2, 3935.9, 4155.7, 1193.7, 1776.1, 2826.4, 3604.2, 7740, 2643.4, 3170.4, 3221, 10651, 2473.1, 3053.7, 7867.7, 2440, 3468.5, 2430.3, 2428.2, 7338.6, 2550.4, 4594.9, 7188.8, 3331.4, 11091, 3221, 10050, 4738, 3242, 5017.3, 3907.2, 10276, 3466.1, 1577.3, 2803.7, 1797.6, 3221, 2462.2, 3615.2, 4873.5, 3316.9, 3576, 4256.9, 734.49, 6255.8, 4405.6, 3346.6, 6300, 5237.6, 1181.3, 3576, 2143, 2430.3, 1345.8, 10651, 4801.1, 7740, 3935.9, 3121.5, 4447.2, 10050, 3788.2, 4866, 6255.8, 2231.2, 10276, 3224.2, 3007.7, 2140.2, 1593.5, 10276, 4594.9, 7740, 4873.5, 11091, 1330.3, 3311.3, 4658.7, 4389.4, 2630.3, 11091, 3764.7, 4866, 2830.7, 7183.2, 2782.2, 3036, 3346.6, 4405.6, 4256.9, 3331.4, 4802.2, 3794.5, 4910.3, 3307.5, 10050, 934.07, 3777.9, 4223.3, 4336.9, 3221, 10651, 3648.8, 4223.3, 6300, 3511.5, 7510.6, 2860.2, 4594.9, 10050, 4155.7, 7338.6, 3230.9, 9558.8, 3777.9, 2397.6, 5056.3, 2826.4, 1864.4, 1689, 5017.3, 3777.9 ], | |
"Category": [ "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20", "Topic1", "Topic3", "Topic4", "Topic5", "Topic6", "Topic6", "Topic6", "Topic7", "Topic7", "Topic7", "Topic8", "Topic8", "Topic9", "Topic16", "Topic20", "Topic1", "Topic1", "Topic2", "Topic5", "Topic6", "Topic7", "Topic8", "Topic8", "Topic9", "Topic9", "Topic11", "Topic14", "Topic1", "Topic4", "Topic8", "Topic11", "Topic11", "Topic12", "Topic1", "Topic2", "Topic2", "Topic2", "Topic4", "Topic5", "Topic6", "Topic6", "Topic7", "Topic14", "Topic15", "Topic1", "Topic3", "Topic4", "Topic7", "Topic8", "Topic10", "Topic10", "Topic11", "Topic2", "Topic3", "Topic5", "Topic6", "Topic9", "Topic10", "Topic11", "Topic13", "Topic14", "Topic15", "Topic1", "Topic2", "Topic3", "Topic4", "Topic11", "Topic12", "Topic12", "Topic16", "Topic19", "Topic19", "Topic1", "Topic1", "Topic2", "Topic3", "Topic5", "Topic6", "Topic10", "Topic13", "Topic16", "Topic18", "Topic1", "Topic2", "Topic4", "Topic6", "Topic6", "Topic9", "Topic10", "Topic14", "Topic15", "Topic15", "Topic2", "Topic3", "Topic4", "Topic5", "Topic7", "Topic10", "Topic11", "Topic11", "Topic11", "Topic12", "Topic13", "Topic15", "Topic17", "Topic1", "Topic2", "Topic4", "Topic4", "Topic5", "Topic8", "Topic9", "Topic10", "Topic11", "Topic13", "Topic14", "Topic2", "Topic3", "Topic3", "Topic5", "Topic6", "Topic7", "Topic8", "Topic8", "Topic8", "Topic10", "Topic11", "Topic11", "Topic1", "Topic1", "Topic2", "Topic6", "Topic6", "Topic7", "Topic8", "Topic9", "Topic10", "Topic14", "Topic16", "Topic19", "Topic1", "Topic6", "Topic7", "Topic10", "Topic13", "Topic16", "Topic18", "Topic1", "Topic4", "Topic4", "Topic6", "Topic6", "Topic7", "Topic7", "Topic8", "Topic9", "Topic12", "Topic14", "Topic15", "Topic16", "Topic17", "Topic18", "Topic19", "Topic19", "Topic1", "Topic1", "Topic2", "Topic2", "Topic3", "Topic4", "Topic5", "Topic6", "Topic7", "Topic8", "Topic9", "Topic12", "Topic13", "Topic17", "Topic1", "Topic2", "Topic3", "Topic7", "Topic8", "Topic8", "Topic9", "Topic10", "Topic11", "Topic15", "Topic16", "Topic1", "Topic4", "Topic4", "Topic4", "Topic7", "Topic7", "Topic8", "Topic9", "Topic11", "Topic13", "Topic16", "Topic18", "Topic19", "Topic1", "Topic1", "Topic3", "Topic4", "Topic5", "Topic6", "Topic8", "Topic10", "Topic11", "Topic12", "Topic13", "Topic14", "Topic19", "Topic1", "Topic1", "Topic2", "Topic3", "Topic4", "Topic5", "Topic5", "Topic7", "Topic8", "Topic9", "Topic11", "Topic13", "Topic13", "Topic20", "Topic20", "Topic1", "Topic1", "Topic2", "Topic4", "Topic4", "Topic6", "Topic9", "Topic10", "Topic11", "Topic12", "Topic13", "Topic13", "Topic13", "Topic16", "Topic1", "Topic2", "Topic2", "Topic3", "Topic4", "Topic5", "Topic6", "Topic7", "Topic7", "Topic8", "Topic8", "Topic8", "Topic9", "Topic9", "Topic10", "Topic10", "Topic13", "Topic15", "Topic15", "Topic20", "Topic1", "Topic1", "Topic2", "Topic4", "Topic5", "Topic5", "Topic6", "Topic7", "Topic10", "Topic11", "Topic12", "Topic13", "Topic13", "Topic14", "Topic15", "Topic1", "Topic2", "Topic3", "Topic3", "Topic4", "Topic5", "Topic6", "Topic7", "Topic8", "Topic9", "Topic9", "Topic10", "Topic13", "Topic14", "Topic17", "Topic19", "Topic20", "Topic1", "Topic1", "Topic3", "Topic7", "Topic8", "Topic8", "Topic9", "Topic11", "Topic11", "Topic13", "Topic14", "Topic1", "Topic1", "Topic4", "Topic4", "Topic4", "Topic5", "Topic6", "Topic7", "Topic11", "Topic12", "Topic14", "Topic14", "Topic16", "Topic19", "Topic2", "Topic2", "Topic3", "Topic4", "Topic6", "Topic6", "Topic7", "Topic7", "Topic8", "Topic10", "Topic13", "Topic17", "Topic18", "Topic19", "Topic20", "Topic1", "Topic2", "Topic2", "Topic5", "Topic6", "Topic7", "Topic10", "Topic12", "Topic12", "Topic13", "Topic13", "Topic14", "Topic15", "Topic15", "Topic17", "Topic19", "Topic20", "Topic1", "Topic2", "Topic3", "Topic3", "Topic4", "Topic4", "Topic5", "Topic5", "Topic6", "Topic6", "Topic7", "Topic8", "Topic8", "Topic9", "Topic11", "Topic16", "Topic18", "Topic19", "Topic20", "Topic1", "Topic3", "Topic7", "Topic8", "Topic10", "Topic10", "Topic1", "Topic1", "Topic3", "Topic4", "Topic5", "Topic6", "Topic6", "Topic6", "Topic7", "Topic8", "Topic9", "Topic10", "Topic11", "Topic11", "Topic11", "Topic13", "Topic14", "Topic16", "Topic20", "Topic20", "Topic1", "Topic2", "Topic6", "Topic6", "Topic8", "Topic8", "Topic9", "Topic10", "Topic11", "Topic12", "Topic12", "Topic13", "Topic14", "Topic16", "Topic17", "Topic18", "Topic2", "Topic3", "Topic3", "Topic4", "Topic5", "Topic6", "Topic7", "Topic8", "Topic10", "Topic11", "Topic12", "Topic17", "Topic3", "Topic4", "Topic5", "Topic6", "Topic7", "Topic8", "Topic9", "Topic10", "Topic13", "Topic15", "Topic16", "Topic19", "Topic1", "Topic2", "Topic4", "Topic7", "Topic8", "Topic11", "Topic14", "Topic16", "Topic20", "Topic20", "Topic3", "Topic4", "Topic6", "Topic7", "Topic8", "Topic8", "Topic9", "Topic11", "Topic11", "Topic13", "Topic13", "Topic16", "Topic16", "Topic18", "Topic18", "Topic19", "Topic1", "Topic2", "Topic4", "Topic6", "Topic7", "Topic8", "Topic8", "Topic8", "Topic10", "Topic10", "Topic11", "Topic13", "Topic13", "Topic14", "Topic16", "Topic17", "Topic17", "Topic18", "Topic19", "Topic1", "Topic3", "Topic4", "Topic5", "Topic6", "Topic7", "Topic10", "Topic11", "Topic12", "Topic13", "Topic14", "Topic20", "Topic3", "Topic4", "Topic5", "Topic6", "Topic7", "Topic8", "Topic10", "Topic10", "Topic11", "Topic12", "Topic13", "Topic14", "Topic18", "Topic19", "Topic20", "Topic1", "Topic2", "Topic3", "Topic3", "Topic4", "Topic4", "Topic6", "Topic13", "Topic13", "Topic14", "Topic4", "Topic6", "Topic7", "Topic8", "Topic9", "Topic10", "Topic10", "Topic11", "Topic12", "Topic15", "Topic19", "Topic20", "Topic3", "Topic5", "Topic6", "Topic6", "Topic7", "Topic15", "Topic17", "Topic19", "Topic2", "Topic4", "Topic4", "Topic7", "Topic8", "Topic8", "Topic9", "Topic10", "Topic11", "Topic12", "Topic15", "Topic15", "Topic15", "Topic16", "Topic17", "Topic18", "Topic18", "Topic1", "Topic5", "Topic6", "Topic6", "Topic9", "Topic11", "Topic12", "Topic14", "Topic18", "Topic20", "Topic2", "Topic5", "Topic6", "Topic7", "Topic7", "Topic9", "Topic13", "Topic14", "Topic15", "Topic17", "Topic18", "Topic19", "Topic3", "Topic4", "Topic5", "Topic7", "Topic7", "Topic8", "Topic9", "Topic10", "Topic11", "Topic14", "Topic18", "Topic19", "Topic9", "Topic10", "Topic12", "Topic14", "Topic17", "Topic18", "Topic20", "Topic20", "Topic2", "Topic3", "Topic3", "Topic4", "Topic5", "Topic6", "Topic8", "Topic9", "Topic14", "Topic14", "Topic15", "Topic16", "Topic16", "Topic20", "Topic20", "Topic1", "Topic4", "Topic13", "Topic15", "Topic16", "Topic17", "Topic17", "Topic19", "Topic20", "Topic10", "Topic11", "Topic11", "Topic12", "Topic13", "Topic15", "Topic15", "Topic18", "Topic2", "Topic3", "Topic5", "Topic6", "Topic7", "Topic8", "Topic8", "Topic9", "Topic10", "Topic13", "Topic14", "Topic16", "Topic17", "Topic20", "Topic4", "Topic7", "Topic7", "Topic8", "Topic8", "Topic10", "Topic10", "Topic14", "Topic18", "Topic19", "Topic20", "Topic5", "Topic10", "Topic11", "Topic13", "Topic19", "Topic2", "Topic3", "Topic5", "Topic5", "Topic7", "Topic8", "Topic9", "Topic14", "Topic17", "Topic20", "Topic2", "Topic5", "Topic6", "Topic11", "Topic12", "Topic13", "Topic14", "Topic15", "Topic16", "Topic18", "Topic20", "Topic6", "Topic8", "Topic9", "Topic11", "Topic15", "Topic17", "Topic19", "Topic19", "Topic20", "Topic1", "Topic8", "Topic12", "Topic13", "Topic13", "Topic14", "Topic15", "Topic17", "Topic17", "Topic5", "Topic7", "Topic8", "Topic10", "Topic12", "Topic12", "Topic18", "Topic20", "Topic5", "Topic7", "Topic7", "Topic10", "Topic12", "Topic12", "Topic15", "Topic17", "Topic18", "Topic19", "Topic20", "Topic3", "Topic4", "Topic8", "Topic9", "Topic12", "Topic13", "Topic16", "Topic2", "Topic4", "Topic8", "Topic8", "Topic18", "Topic19", "Topic20", "Topic9", "Topic11", "Topic12", "Topic15", "Topic16", "Topic20", "Topic1", "Topic5", "Topic7", "Topic13", "Topic15", "Topic7", "Topic13", "Topic15", "Topic16", "Topic16", "Topic20", "Topic3", "Topic5", "Topic9", "Topic11", "Topic14", "Topic17", "Topic18", "Topic1", "Topic3", "Topic6", "Topic10", "Topic11", "Topic15", "Topic15", "Topic16", "Topic18", "Topic2", "Topic3", "Topic10", "Topic12", "Topic16", "Topic17", "Topic17", "Topic2", "Topic5", "Topic7", "Topic11", "Topic12", "Topic14", "Topic17", "Topic18", "Topic8", "Topic9", "Topic12", "Topic15", "Topic17", "Topic19", "Topic19", "Topic20", "Topic2", "Topic5", "Topic6", "Topic9", "Topic10", "Topic11", "Topic13", "Topic18", "Topic19", "Topic5", "Topic8", "Topic10", "Topic12", "Topic13", "Topic15", "Topic19", "Topic5", "Topic7", "Topic8", "Topic12", "Topic17", "Topic19", "Topic19", "Topic20", "Topic1", "Topic3", "Topic5", "Topic6", "Topic11", "Topic12", "Topic13", "Topic14", "Topic15", "Topic18", "Topic19", "Topic20", "Topic11", "Topic12", "Topic18", "Topic18", "Topic14", "Topic15", "Topic17", "Topic19", "Topic8", "Topic13", "Topic16", "Topic17", "Topic18", "Topic19", "Topic20", "Topic9", "Topic12", "Topic16", "Topic19", "Topic2", "Topic5", "Topic11", "Topic14", "Topic17", "Topic18", "Topic20", "Topic16", "Topic17", "Topic9", "Topic10", "Topic15", "Topic17", "Topic18", "Topic5", "Topic7", "Topic9", "Topic17", "Topic18", "Topic19", "Topic1", "Topic7", "Topic12", "Topic16", "Topic18", "Topic19", "Topic20", "Topic1", "Topic10", "Topic1", "Topic7", "Topic15", "Topic4", "Topic9", "Topic17", "Topic20", "Topic3", "Topic5", "Topic7", "Topic10", "Topic19", "Topic6", "Topic12", "Topic17", "Topic17", "Topic18", "Topic5", "Topic11", "Topic14", "Topic15", "Topic18", "Topic6", "Topic7", "Topic12", "Topic13", "Topic8", "Topic16", "Topic19", "Topic20", "Topic3", "Topic11", "Topic13", "Topic14", "Topic4", "Topic9", "Topic2", "Topic5", "Topic8", "Topic10", "Topic11", "Topic12", "Topic17", "Topic8", "Topic14", "Topic16", "Topic18", "Topic19", "Topic9", "Topic11", "Topic20", "Topic1", "Topic15", "Topic17", "Topic15", "Topic18", "Topic19", "Topic20", "Topic3", "Topic12", "Topic16", "Topic20", "Topic4", "Topic12", "Topic13", "Topic17", "Topic19", "Topic20" ] | |
}, | |
"token.table": { | |
"Term": [ "''", "''", "''", "'w", "'w", "'w", "'w", "'w", "'w", "abaetetuba", "aberrant", "aberrant", "aberrant", "abundance", "abundance", "abundance", "abundance", "abundance", "abundance", "abundance", "abundance", "abundance", "abundantly", "abundantly", "academy", "academy", "academy", "academy", "academy", "academy", "academy", "academy", "academy", "accepted", "acids", "activation", "activation", "activation", "active", "active", "active", "active", "active", "active", "active", "activity", "activity", "activity", "activity", "activity", "activity", "activity", "activity", "activity", "adalgisa", "adalgisa", "adalgisa", "adaptations", "adaptations", "adaptations", "adaptations", "adaptations", "adapting", "adapting", "additive", "adequate", "adequate", "adequate", "adult", "adult", "adult", "adult", "adult", "adult", "adult", "adult", "adult", "advances", "advances", "advantageous", "aedeagus", "aedeagus", "aedes", "aedes", "aedes", "agariciidae", "agariciidae", "agariciidae", "agency", "agency", "agency", "airborne", "airborne", "alan", "alan", "alan", "alava", "alava", "alcedo", "alcedo", "alcedo", "alcedo", "alcedo", "alcedo", "alga", "alga", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "alien", "alien", "alien", "alien", "alien", "alkadienes", "alkanes", "alkanes", "alkanes", "alleles", "alleles", "alleles", "alleles", "alleles", "alleles", "alpha", "alpha", "alpha", "alpha", "alpha", "alteration", "alteration", "alteration", "alteration", "alternation", "amalgamated", "amalgamated", "amalgamated", "americas", "americas", "americas", "americas", "americas", "ampullae", "ampullae", "anaesthesia", "anal", "anal", "anal", "analyses", "analyses", "analyses", "analyses", "analyses", "analyses", "analysis", "analysis", "analysis", "analysis", "analysis", "analysis", "analysis", "analysis", "analysis", "anatomical", "ancestry", "ancestry", "ancestry", "ancestry", "anchialine", "anchialine", "anchialine", "anchialine", "anchialine", "andre", "andre", "andrea", "ani", "ani", "ani", "ani", "anna", "anna", "annotated", "annotated", "annotated", "annually", "annulatus", "annulatus", "anopsicus", "antibiotic", "antibiotic", "antibodies", "antibodies", "antibodies", "antigen", "antigen", "antonio", "appearing", "applied", "applied", "applied", "approval", "approved", "approximately", "approximately", "approximately", "approximately", "approximately", "approximately", "approximately", "approximates", "approximates", "approximates", "apv", "arachnida", "arachnida", "araneae", "araneae", "araneae", "araneae", "araneae", "arises", "arises", "arnaud", "arnaud", "atkinson", "atrium", "attenuated", "august", "august", "august", "august", "authentic", "authigenic", "autonomous", "avian", "avian", "avian", "avian", "avian", "avian", "avifauna", "avifauna", "avifauna", "avipoxvirus", "avipoxvirus", "axis", "axis", "axis", "axis", "axis", "axis", "azores", "azores", "azul", "azul", "azul", "azul", "azul", "bacterial", "bacterial", "bacterial", "baltra", "baltra", "banksi", "barrier", "barrier", "basalt", "basalt", "basalt", "basalt", "basalt", "basalt", "basaltic", "basaltic", "basaltic", "basaltic", "basaltic", "basalts", "basalts", "basalts", "basalts", "basalts", "basalts", "basic", "basic", "basic", "basic", "bathymetry", "bathymetry", "bathymetry", "bathymetry", "bayesian", "bayesian", "bayesian", "bce", "beagle", "beagle", "beak", "beak", "beak", "beds", "beds", "beetle", "beetle", "beetle", "beetle", "beetle", "beetle", "beetle", "beetles", "beetles", "beetles", "beetles", "beetles", "beetles", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behn", "behn", "behn", "beta", "beta", "beta", "beta", "beta", "biological", "biological", "biological", "biological", "biological", "biological", "biological", "biological", "biological", "biological", "biological", "biology", "biology", "biology", "biology", "biology", "biology", "biology", "biology", "biology", "biomarker", "biomarker", "bipartite", "bipartite", "bipartite", "bird", "bird", "bird", "bird", "bird", "bird", "bird", "bird", "bird", "bird", "birds", "birds", "birds", "birds", "birds", "birds", "birds", "birds", "birds", "birds", "birth", "bleaching", "bleaching", "bleaching", "bmc", "bodies", "bodies", "bodies", "bog", "bog", "boobies", "boobies", "boobies", "boobies", "boobies", "boobies", "borer", "borer", "borer", "borer", "borne", "botryococcus", "boundary", "boundary", "boundary", "boundary", "braunii", "braunii", "break", "break", "break", "break", "break", "break", "break", "bred", "bred", "bred", "bred", "breed", "breed", "breed", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "broken", "broken", "brown", "brown", "brown", "brown", "brown", "brown", "buffered", "buffered", "bulk", "bulk", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "bungartz", "burros", "burros", "ca", "ca", "ca", "ca", "cabrera", "caccone", "caccone", "caccone", "caccone", "cactospiza", "cactospiza", "cactospiza", "cactospiza", "cactospiza", "cairns", "cairns", "cairns", "cairns", "cairns", "caldera", "caldera", "caldera", "caldera", "caldera", "caldera", "caldera", "caldera", "calibration", "calibration", "calibration", "california", "california", "california", "california", "california", "california", "california", "california", "california", "california", "calls", "calls", "calls", "calls", "calls", "campaign", "campaign", "canarypox", "canarypox", "canarypox", "capra", "capra", "caranx", "caranx", "carbonate", "carbonate", "cardinalis", "cardinalis", "carotene", "carrasco", "carrasco", "cats", "cats", "cats", "cats", "cats", "cats", "cats", "cats", "cavity", "cavity", "cavity", "cd", "cd", "cd", "cd", "cells", "cells", "cells", "cells", "cells", "cells", "center", "center", "center", "center", "center", "center", "centipeds", "cerro", "cerro", "cerro", "cerro", "cerro", "cesar", "chadwick", "chadwick", "chadwick", "chains", "chains", "chains", "chamber", "chamber", "chamber", "chamber", "chamber", "chamberlin", "chamberlin", "change", "change", "change", "change", "change", "characterise", "characterise", "characterise", "characteristics", "characteristics", "characteristics", "characteristics", "characteristics", "characteristics", "characteristics", "characteristics", "characteristics", "characteristics", "characteristics", "chd", "checklist", "checklist", "checklist", "checklist", "checklist", "chelonia", "chelonoidis", "chelonoidis", "chelonoidis", "chiriqui", "chiriqui", "chiriqui", "chiriqui", "chloroalkanes", "chloroalkenes", "christie", "christie", "christie", "christie", "chromatography", "chromatography", "chromatography", "chromatography", "chromatography", "cinchona", "cinchona", "cirrus", "cirrus", "class", "class", "class", "class", "classes", "classes", "classes", "classic", "clavus", "clavus", "climate", "climate", "climate", "climate", "climate", "climate", "close", "close", "close", "close", "close", "close", "close", "close", "close", "closed", "closed", "closer", "closer", "closer", "closer", "closer", "clustering", "clustering", "clustering", "clustering", "clustering", "coarse", "coarse", "coarse", "coarse", "coast", "coast", "coast", "coast", "coast", "coast", "coast", "coast", "cockerell", "cockerell", "coding", "coding", "coding", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "collected", "collected", "collected", "collected", "collected", "collected", "collected", "collected", "collected", "collected", "collected", "collected", "collectively", "collectively", "collectively", "collectively", "colonies", "colonies", "colonies", "colonies", "colonies", "colonies", "colonies", "colonies", "colonization", "colonization", "colonization", "colonization", "colonization", "colonization", "colonization", "colonization", "colonization", "colonization", "common", "common", "common", "common", "common", "common", "common", "common", "common", "communication", "communication", "communication", "comparisons", "comparisons", "comparisons", "comparisons", "comparisons", "competitive", "completion", "completion", "compliance", "components", "components", "components", "components", "components", "components", "components", "composition", "composition", "composition", "composition", "composition", "composition", "composition", "compounds", "compounds", "compounds", "compounds", "compressed", "compressed", "compressed", "conditions", "conditions", "conditions", "conditions", "conditions", "conditions", "conditions", "conditions", "conditions", "cones", "cones", "cones", "cones", "confirmation", "confirmation", "confirmation", "conflicts", "consequences", "consequences", "consequences", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "considered", "considered", "considered", "considered", "considered", "considered", "considered", "considered", "considered", "consist", "consist", "consist", "consistent", "consistent", "consistent", "consistent", "consistent", "consistent", "consistent", "consistent", "construction", "content", "content", "content", "content", "content", "continental", "continental", "continental", "continental", "continental", "continental", "continental", "continuous", "continuous", "continuous", "continuous", "continuous", "contrast", "contrast", "contrast", "contrast", "contrast", "contrast", "contrast", "contrast", "contributions", "contributions", "contributions", "contributions", "contributions", "contributions", "contributions", "contributions", "control", "control", "control", "control", "control", "convection", "convention", "convention", "cooke", "cooke", "cooke", "coomans", "coomans", "coomans", "coomans", "coral", "coral", "coral", "coral", "coral", "coral", "coral", "coral", "corals", "corals", "corals", "corals", "corals", "corals", "corals", "correctly", "correctly", "correctly", "correctly", "cortex", "cortical", "corticosterone", "corticosterone", "corticosterone", "corticosterone", "cottony", "counted", "courtship", "courtship", "courtship", "courtship", "created", "created", "creek", "cristobal", "cristobal", "cristobal", "cristobal", "cristobal", "cristobal", "cristobal", "cristobal", "cromwell", "cromwell", "crossed", "crossed", "croton", "crust", "crust", "crust", "crust", "crust", "crust", "crust", "crustal", "crustal", "crustal", "crustal", "crustal", "crustal", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cryptic", "cryptic", "cryptic", "crystals", "cucumber", "cucumber", "cucumber", "cucumber", "current", "current", "current", "current", "current", "current", "current", "current", "current", "current", "cuts", "cyclic", "cyclic", "cynthia", "cynthia", "cyphellostereum", "darwin", "darwin", "darwin", "darwin", "darwin", "darwin", "darwin", "darwin", "darwin", "darwin", "darwin's", "darwin's", "darwin's", "darwin's", "darwin's", "darwin's", "darwin's", "darwin's", "darwin's", "darwini", "darwini", "darwini", "darwini", "darwini", "darwini", "darwini", "darwinii", "darwinii", "darwinii", "darwinii", "darwinii", "darwinii", "darwinii", "dataset", "dataset", "dataset", "dataset", "datasets", "datasets", "datasets", "days", "days", "days", "days", "days", "days", "days", "days", "days", "ddt", "deal", "deal", "dealing", "dealing", "dealing", "deciduous", "deciduous", "deciduous", "decompression", "decompression", "decompression", "decoupling", "decrease", "decrease", "decrease", "decrease", "decrease", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "defecated", "deffontaines", "deficient", "deformation", "deformation", "deformation", "deformation", "degraded", "degraded", "degraded", "degrees", "degrees", "degrees", "degrees", "degrees", "degrees", "degrees", "deleted", "deleterious", "deleterious", "demand", "demand", "demand", "demography", "demography", "demonstrating", "demonstrating", "demonstrating", "demonstrating", "dennis", "dennis", "dennis", "dennis", "density", "density", "density", "deployed", "deployed", "deployed", "deployed", "deployed", "depositional", "depositional", "depositional", "depredation", "depth", "depth", "depth", "depth", "depth", "depth", "depth", "depth", "depths", "depths", "depths", "depths", "depths", "description", "description", "description", "description", "description", "description", "description", "description", "description", "descriptions", "descriptions", "descriptions", "descriptions", "descriptions", "descriptions", "descriptions", "designation", "destruction", "destruction", "destruction", "destruction", "destruction", "detached", "detail", "detail", "detail", "detail", "detail", "detail", "detail", "detail", "detected", "detected", "detected", "detected", "detected", "detected", "detected", "detected", "detected", "detected", "detection", "developed", "developed", "developed", "developed", "developed", "developed", "developed", "development", "development", "development", "development", "development", "development", "development", "development", "deviated", "deviated", "deviated", "devoid", "devoid", "diablas", "diatom", "diet", "diet", "diet", "diet", "diet", "diet", "diet", "dietz", "differences", "differences", "differences", "differences", "differences", "differences", "differences", "differences", "differences", "differences", "differences", "differentiation", "differentiation", "differentiation", "differentiation", "differentiation", "differentiation", "differentiation", "differentiation", "diffusa", "diffusa", "digestion", "digestion", "digestive", "digestive", "digestive", "dinucleotide", "diols", "discussion", "discussion", "discussion", "discussion", "discussion", "discussion", "discussion", "discussion", "disease", "disease", "disease", "disease", "disequilibria", "disequilibria", "disk", "disk", "dispersal", "dispersal", "dispersal", "dispersal", "dispersal", "dispersal", "dispersal", "dissolved", "distance", "distance", "distance", "distance", "distance", "distance", "distinct", "distinct", "distinct", "distinct", "distinct", "distinct", "distinct", "distinct", "distinct", "distribution", "distribution", "distribution", "distribution", "distribution", "distribution", "distribution", "distribution", "distribution", "distribution", "dive", "dive", "dive", "dive", "diversity", "diversity", "diversity", "diversity", "diversity", "diversity", "diversity", "diversity", "diversity", "diving", "diving", "diving", "diving", "diving", "diving", "diving", "diving", "diving", "documentation", "documentation", "donkeys", "donkeys", "donkeys", "donkeys", "donkeys", "donlan", "dorsal", "dorsal", "dorsal", "dorylaimida", "dorylaimida", "doubtfully", "doubtfully", "doubtfully", "doubtfully", "doubtfully", "downsi", "downsi", "downsi", "downsi", "dozouville", "drier", "drilled", "dry", "dry", "dry", "dry", "dry", "dry", "dry", "dsdp", "dsdp", "due", "due", "due", "due", "due", "due", "due", "due", "dvorak", "dvorak", "dvorak", "dvorak", "dynamic", "dynamic", "dynamic", "dynamic", "dynamics", "dynamics", "dynamics", "dynamics", "dynamics", "dynamics", "dynamics", "earth", "earth", "earth", "earth", "earth", "earth", "earthquake", "earthquake", "earthquake", "earthquake", "easily", "easily", "easily", "easily", "east", "east", "east", "east", "east", "east", "east", "east", "east", "easter", "easter", "easter", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eating", "eating", "ecological", "ecological", "ecological", "ecological", "ecological", "ecological", "ecological", "ecological", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "economy", "economy", "economy", "ecosystem", "ecosystem", "ecosystem", "ecosystem", "ecosystems", "ecosystems", "ecosystems", "ecosystems", "ecosystems", "ecotourism", "ecotourism", "ecotourism", "eden", "eden", "eden", "eden", "eden", "edgar", "edgar", "edgar", "education", "ef", "ef", "ef", "ef", "ef", "ef", "ef", "ef", "effectiveness", "effectiveness", "effects", "effects", "effects", "effects", "effects", "effects", "effects", "effects", "effects", "efforts", "efforts", "efforts", "effusion", "effusion", "effusion", "elastic", "elastic", "elastic", "elastic", "electromagnetic", "element", "element", "element", "element", "element", "element", "element", "elevational", "elevational", "elevations", "elevations", "elevations", "elevations", "elevations", "ellipsoidal", "ellipsoidal", "elongation", "elongation", "emergent", "emergent", "emission", "emissions", "employed", "encroachment", "encroachment", "endangered", "endangered", "endangered", "endangered", "endangered", "endangered", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "energy", "energy", "energy", "energy", "energy", "enigmatic", "enrique", "enso", "enso", "enso", "enso", "enterica", "entire", "entire", "entire", "entire", "entire", "entire", "entire", "entire", "environmental", "environmental", "environmental", "environmental", "environmental", "environmental", "environmental", "environments", "environments", "environments", "environments", "environments", "environments", "environments", "environments", "enzymes", "enzymes", "enzymes", "equator", "equator", "equator", "eradication", "eradication", "eradication", "eradication", "eradication", "erected", "erected", "erected", "erected", "erected", "erected", "erosional", "erroneously", "erroneously", "erroneously", "erupt", "erupt", "eruption", "eruption", "eruption", "eruption", "eruption", "eruption", "eruption", "eruptions", "eruptions", "eruptions", "eruptions", "eruptions", "eruptions", "eruptive", "eruptive", "eruptive", "eruptive", "espinoza", "estimating", "estimating", "estimating", "estimating", "euc", "euc", "events", "events", "events", "events", "events", "events", "events", "evidence", "evidence", "evidence", "evidence", "evidence", "evidence", "evidence", "evidence", "evidence", "evidence", "evolution", "evolution", "evolution", "evolution", "evolution", "evolution", "evolution", "evolution", "evolution", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "examined", "examined", "examined", "examined", "examined", "examined", "examined", "exception", "exception", "exception", "exception", "exception", "exogenous", "exogenous", "exogenous", "expand", "expand", "expand", "expect", "expedition", "expedition", "expedition", "expedition", "expedition", "expedition", "expedition", "expedition", "expedition", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "experience", "experience", "experience", "experience", "experience", "experimentally", "experimentally", "explained", "explained", "explained", "explained", "explained", "explained", "explained", "explicit", "explicitly", "exponentially", "exponentially", "expressions", "expressions", "external", "external", "external", "external", "external", "external", "external", "external", "extinct", "extinct", "extinct", "extinct", "extinct", "extinct", "extinct", "extinction", "extinction", "extinction", "extinction", "extinction", "extinction", "extinction", "extinction", "extirpation", "extirpation", "facts", "facts", "family", "family", "family", "family", "family", "family", "family", "family", "famine", "famine", "famine", "fauna", "fauna", "fauna", "fauna", "fauna", "fauna", "fauna", "fauna", "fauna", "faunas", "faunas", "faunas", "faunas", "faunas", "favored", "favored", "feathers", "feathers", "feathers", "feature", "feature", "feature", "feature", "fecal", "fecal", "fecal", "fecal", "fecal", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeds", "feeds", "feeds", "feeds", "female", "female", "female", "female", "female", "female", "female", "female", "female", "female", "females", "females", "females", "females", "females", "females", "females", "females", "fenced", "fenced", "fermentative", "fernandina", "fernandina", "fernandina", "fernandina", "fernandina", "fernandina", "fernandina", "fernandina", "fessl", "fewer", "fewer", "fidelity", "fidelity", "field", "field", "field", "field", "field", "field", "field", "field", "field", "field", "field", "figueroa", "figures", "figures", "figures", "figures", "filamentous", "filamentous", "filamentous", "fill", "fin", "fin", "fin", "fin", "financial", "financial", "financial", "finches", "finches", "finches", "finches", "finches", "finches", "finches", "finches", "findings", "findings", "findings", "findings", "finite", "finite", "fished", "fished", "fished", "fished", "fished", "fisheries", "fisheries", "fisheries", "fisheries", "fisheries", "fisheries", "fishers", "fishery", "fishery", "fishery", "fishery", "fishery", "fishes", "fishes", "fishes", "fishes", "fishes", "fishes", "fishing", "fishing", "fishing", "fishing", "fishing", "fit", "fit", "fitted", "fitted", "fitted", "fitted", "fitted", "flamingo", "flank", "flank", "flank", "flank", "flank", "flatworms", "flatworms", "flora", "flora", "flora", "flora", "flora", "flora", "flora", "flora", "floral", "floral", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "flow", "flow", "flow", "flow", "flow", "flow", "flow", "flowers", "flowers", "flowers", "flowers", "flowers", "flows", "flows", "flows", "flows", "flows", "flows", "flows", "fluctuating", "fluid", "fluid", "fluid", "fluids", "fluids", "fluids", "fluids", "fluorescence", "fluorescence", "foraged", "foraged", "foraged", "foraged", "foraged", "foraged", "foraging", "foraging", "foraging", "foraging", "foraging", "foraging", "foraging", "formation", "formation", "formation", "formation", "formation", "formation", "formation", "forms", "forms", "forms", "forms", "forms", "forms", "forms", "formula", "formula", "fossil", "fossil", "fossil", "fossil", "fossil", "fossil", "fossil", "fossil", "foundation", "foundation", "foundation", "foundation", "foundation", "foundation", "fra", "fra", "fractionate", "fractionation", "fractionation", "fractionation", "fractionation", "fractionation", "fractured", "frequently", "frequently", "frequently", "frequently", "frequently", "fringe", "frontiers", "fruited", "fruited", "fruited", "fruited", "fruits", "fruits", "fruits", "fruits", "fruits", "fumarolic", "fumarolic", "functions", "functions", "functions", "functions", "functions", "fuscus", "fuscus", "fuscus", "fuscus", "fuscus", "gabriele", "galapagense", "galapagense", "galapagense", "galapagense", "galapagense", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagoense", "galapagoense", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galium", "galium", "galium", "gamete", "gamete", "gamete", "gametes", "gametes", "gametes", "garbe", "garbe", "gas", "gas", "gas", "gas", "gas", "gauge", "gc", "gc", "gc", "gc", "gemelosi", "gemelosi", "geminata", "geminata", "geminata", "geminata", "geminata", "gene", "gene", "gene", "gene", "gene", "gene", "gene", "genera", "genera", "genera", "genera", "genera", "genera", "genera", "genera", "genera", "genesis", "genesis", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genovesa", "genovesa", "genovesa", "genovesa", "genovesa", "genovesa", "gentle", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "geochelone", "geochelone", "geochelone", "geochelone", "geochelone", "geochelone", "geochelone", "geochemistry", "geochemistry", "geochemistry", "geochemistry", "geochemistry", "geodetic", "geometric", "geophysical", "geophysical", "geophysical", "geophysical", "geophysics", "geophysics", "geophysics", "george", "george", "george", "george", "george", "george", "george", "gertsch", "giddingsi", "gigantolaelaps", "glauconite", "glauconite", "gmr", "gmr", "goats", "goats", "goats", "goats", "goats", "goats", "gonads", "gonads", "gondii", "gonochoric", "gonochoric", "gradual", "grant", "grant", "grant", "grant", "grant", "greatly", "greatly", "greatly", "greatly", "greatly", "gross", "gross", "gross", "ground", "ground", "ground", "ground", "ground", "ground", "ground", "ground", "ground", "ground", "ground", "grouped", "grouped", "grouped", "grouper", "grouper", "groups", "groups", "groups", "groups", "groups", "groups", "groups", "groups", "groups", "growth", "growth", "growth", "growth", "growth", "growth", "growth", "growth", "growth", "growth", "guided", "gulf", "gulf", "gulf", "gulf", "gulf", "gulf", "gulf", "gustavo", "habitat", "habitat", "habitat", "habitat", "habitat", "habitat", "habitat", "habitat", "habitat", "habitats", "habitats", "habitats", "habitats", "habitats", "habitats", "habits", "habits", "habits", "habits", "habits", "habits", "habits", "habits", "haemoproteus", "haemoproteus", "haemoproteus", "haplotypes", "haplotypes", "haplotypes", "haplotypes", "hartman", "hartman", "hartman", "hartman", "hatched", "hatched", "hatched", "hatched", "haul", "haul", "haul", "haul", "hawai'i", "hawai'i", "hawk", "hawk", "hawk", "hawk", "hawk", "hawk", "hawk", "hawk", "hawk", "health", "health", "health", "health", "heights", "heights", "heights", "heleno", "helicopter", "helium", "helium", "helium", "hematology", "hemosporidian", "herbivorous", "herbivorous", "hernan", "hernan", "heterostylous", "hidalgo", "highland", "highland", "highland", "highlands", "highlands", "highlands", "highlands", "highlands", "highlighting", "highlighting", "hill", "hippoboscidae", "hippoboscidae", "hippoboscidae", "hippoboscidae", "hircus", "hircus", "historic", "historic", "historic", "historic", "historic", "historic", "history", "history", "history", "history", "history", "history", "history", "history", "history", "history", "hitherto", "hitherto", "hitherto", "holocene", "holocene", "holocene", "holocene", "holocene", "holocene", "holocene", "hook", "hook", "hook", "hook", "hook", "hook", "hook", "hook", "hormonal", "hormonal", "horn", "host", "host", "host", "host", "host", "host", "host", "hot", "hot", "hot", "hot", "hot", "howard", "howard", "howard", "howard", "howard", "howdenae", "human", "human", "human", "human", "human", "human", "human", "human", "human", "hunter", "hunter", "hunter", "hunter", "hunter", "huyvaert", "huyvaert", "huyvaert", "huyvaert", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydroxy", "hyseni", "id", "id", "id", "id", "id", "id", "id", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identified", "identified", "identified", "identified", "identified", "identified", "identified", "identified", "identified", "identified", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "ii", "ii", "ii", "ii", "ii", "ii", "ii", "ii", "ii", "image", "image", "image", "image", "imaged", "images", "images", "immigrants", "immune", "immune", "immune", "immune", "immune", "immunocompetence", "immunosuppression", "immunosuppression", "impact", "impact", "impact", "impact", "impact", "impacts", "impacts", "impacts", "impacts", "impacts", "impacts", "implication", "importance", "importance", "importance", "importance", "impossible", "impossible", "impossible", "incorporate", "incorporate", "increase", "increase", "increase", "increase", "increase", "increase", "increase", "increase", "increase", "increased", "increased", "increased", "increased", "increased", "increased", "increased", "increased", "increased", "increased", "increases", "increases", "increases", "increases", "india", "india", "indices", "indices", "indices", "individual", "individual", "individual", "individual", "individual", "individual", "individual", "individual", "individual", "individuals", "individuals", "individuals", "individuals", "individuals", "individuals", "individuals", "individuals", "individuals", "industry", "industry", "infection", "infection", "infection", "infectious", "infectious", "infectious", "inferences", "infestations", "infestations", "influence", "influence", "influence", "influence", "influence", "influence", "influence", "influence", "influence", "influenced", "influenced", "influenced", "influenced", "influenced", "influenced", "influenced", "information", "information", "information", "information", "information", "information", "information", "information", "information", "information", "information", "ingo", "innovative", "input", "input", "input", "insar", "insar", "insar", "insects", "insects", "insects", "insects", "insects", "insects", "inspired", "inspired", "inspired", "instances", "instances", "integrative", "integrative", "integrative", "intensity", "intensity", "intensity", "intensity", "intensity", "intensity", "interaction", "interaction", "interaction", "interaction", "interaction", "interactions", "interactions", "interactions", "interactions", "interactions", "interest", "interest", "intermediate", "intermediate", "intermediate", "intermediate", "intermediate", "intermediate", "intermediate", "intermediate", "interrelationships", "interrelationships", "interrelationships", "interspaces", "intervention", "intervention", "intestinal", "intestinal", "intestinal", "introduced", "introduced", "introduced", "introduced", "introduced", "introduced", "introduced", "introduced", "introduced", "introgressive", "introgressive", "invasion", "invasion", "invasion", "invasion", "invasion", "invasions", "invasions", "invasions", "invasions", "invasive", "invasive", "invasive", "invasive", "invasive", "invasive", "inversion", "inversion", "invertebrate", "invertebrate", "invertebrate", "invertebrate", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isolates", "isolates", "isotopic", "isotopic", "isotopic", "isotopic", "isotopic", "itcz", "itcz", "jaw", "jaw", "jessica", "jessica", "jessica", "jessica", "jesus", "jones", "josh", "juanibali", "judith", "jul", "jul", "jul", "jul", "jul", "jul", "junction", "junction", "junction", "junction", "junction", "june", "june", "june", "june", "june", "june", "june", "june", "juvenile", "juvenile", "juvenile", "juvenile", "juvenile", "juvenile", "juvenile", "juvenile", "kamykowski", "karnauskas", "keeping", "keeping", "keto", "kilometers", "kilometers", "kinematic", "knowledge", "knowledge", "knowledge", "knowledge", "knowledge", "knowledge", "knowledge", "knowledge", "knowledge", "kramer", "kramer", "kramer", "kramer", "kyr", "kyr", "kyr", "laevis", "laevis", "laevis", "lamellar", "lamellar", "land", "land", "land", "land", "land", "land", "land", "land", "land", "landscape", "landscape", "lantana", "lantana", "lantana", "lantana", "late", "late", "late", "late", "late", "late", "late", "latioresignata", "lava", "lava", "lava", "lava", "lava", "lava", "lava", "lava", "lavas", "lavas", "lavas", "lavas", "lavas", "lavoie", "lavoie", "layered", "layered", "ldd", "leached", "learning", "leffler", "lesions", "lesions", "lesions", "level", "level", "level", "level", "level", "level", "level", "levels", "levels", "levels", "levels", "levels", "levels", "levels", "li", "linda", "linda", "lineage", "lineage", "lineage", "lineage", "lineage", "lineage", "lineages", "lineages", "lineages", "lineages", "lineages", "lineages", "lineages", "lineages", "lineages", "lion", "lion", "lion", "lion", "lion", "lion", "lion", "lions", "lions", "lions", "lions", "lions", "lions", "lions", "lions", "list", "list", "list", "list", "list", "list", "list", "list", "list", "list", "list", "list", "listed", "listed", "listed", "listed", "listed", "listed", "lists", "lists", "lists", "literature", "literature", "literature", "literature", "literature", "literature", "literature", "literature", "literature", "literature", "lithosphere", "lithosphere", "lithosphere", "lithosphere", "lithosphere", "lithosphere", "living", "living", "living", "living", "living", "living", "living", "living", "living", "living", "living", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lobster", "lobster", "lobster", "lobsters", "local", "local", "local", "local", "local", "local", "local", "locality", "locality", "locality", "locality", "locality", "locality", "locality", "locality", "localized", "localized", "localized", "localized", "locus", "locus", "locus", "locus", "logbooks", "logbooks", "logbooks", "logic", "logic", "logic", "losses", "losses", "lower", "lower", "lower", "lower", "lower", "lower", "lower", "lower", "lower", "lowland", "lowland", "lowland", "lying", "lying", "macquart", "macro", "macro", "magma", "magma", "magma", "magma", "magma", "magma", "magnirostris", "magnirostris", "magnirostris", "magnirostris", "magnirostris", "magnirostris", "magnirostris", "malaria", "malaria", "male", "male", "male", "male", "male", "male", "male", "male", "male", "male", "males", "males", "males", "males", "males", "males", "males", "males", "mammals", "mammals", "mammals", "mammals", "mammals", "mammals", "mammals", "management", "management", "management", "management", "management", "management", "manipulative", "manipulative", "mantle", "mantle", "mantle", "mantle", "mantle", "mantle", "mantle", "marilyn", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "martinez", "martinez", "martinez", "masked", "masked", "masked", "masked", "maskell", "matter", "matter", "maximal", "maximal", "maximal", "meaningful", "meaningful", "meaningful", "meaningful", "means", "means", "means", "means", "means", "means", "means", "measurement", "measurement", "measurement", "medicine", "medicine", "medicine", "medicine", "meeting", "meise", "melt", "melt", "melt", "melt", "melt", "melting", "melting", "melting", "melting", "melting", "melting", "mendiculus", "mendiculus", "mendiculus", "mendiculus", "mendiculus", "mendiculus", "meristic", "meristic", "meristic", "meristic", "meristic", "meristic", "mesic", "metal", "metal", "metal", "metapopulation", "meteorological", "meteorological", "methodologies", "methodologies", "methodology", "microplate", "microplate", "microplate", "microplate", "microsatellite", "microsatellite", "microsatellite", "microsatellite", "mid", "mid", "mid", "mid", "mid", "mid", "mid", "mid", "mid", "mid", "mid", "mid", "midges", "midges", "migration", "migration", "migration", "migration", "migration", "migration", "migration", "mild", "mild", "milne", "milne", "milne", "mineralizing", "mineralizing", "minor", "minor", "minor", "minor", "minor", "minor", "mirror", "mirror", "missing", "mitochondrial", "mitochondrial", "mitochondrial", "mitochondrial", "mitochondrial", "mixed", "mixed", "mixed", "mixed", "mixed", "mixed", "mixed", "mixed", "mockingbirds", "mockingbirds", "mockingbirds", "model", "model", "model", "model", "model", "model", "modicus", "modification", "modification", "modification", "modification", "modisimus", "moister", "molecular", "molecular", "molecular", "molecular", "molecular", "molecular", "molecular", "monograph", "monograph", "monograph", "monthly", "monthly", "monthly", "monthly", "morb", "morb", "morb", "morb", "morb", "morb", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphology", "morphology", "morphology", "morphology", "morphology", "morphometric", "morphometric", "morphometric", "morphometric", "morphometric", "morton", "mosquito", "mosquito", "mosquito", "mosquitoes", "mosquitoes", "mothers", "mothers", "mounds", "mounds", "mu", "mu", "mu", "mu", "mu", "mulsant", "multiplied", "mus", "mus", "mus", "mus", "mutation", "mycteroperca", "mycteroperca", "mycteroperca", "mydas", "myiarchus", "myiarchus", "myiarchus", "nannopodellus", "naso", "naso", "naso", "natal", "natal", "native", "native", "native", "native", "native", "native", "native", "native", "native", "natives", "natural", "natural", "natural", "natural", "natural", "natural", "natural", "natural", "nematodes", "nematodes", "nematodes", "nematodes", "nematodes", "nesoryzomys", "nesoryzomys", "nesoryzomys", "nest", "nest", "nest", "nest", "nest", "nest", "nest", "nest", "nesting", "nesting", "nesting", "nesting", "nesting", "nesting", "nesting", "nesting", "net", "net", "net", "net", "net", "ngvp", "ni", "ni", "ni", "ni", "ni", "nicole", "nigra", "nigra", "nigra", "nigra", "nigra", "nigra", "nina", "nina", "nino", "nino", "nino", "nino", "nino", "nino", "nino", "nitrogen", "nitrogen", "nitrogen", "noble", "noble", "nocturnal", "nocturnal", "nocturnal", "nocturnal", "nocturnal", "nocturnal", "nocturnal", "noemi", "nogales", "nomenclatural", "nomenclatural", "nomenclatural", "north", "north", "north", "north", "north", "north", "north", "north", "norvegicus", "norvegicus", "note", "note", "note", "note", "numerical", "numerical", "numerical", "nutrient", "nutrient", "nutrient", "nutrients", "nutrients", "nutrients", "nutrients", "nutrients", "nutrition", "nutrition", "nutritional", "nutritional", "nutritional", "object", "object", "object", "observations", "observations", "observations", "observations", "observations", "observations", "observations", "observations", "observations", "observed", "observed", "observed", "observed", "observed", "observed", "observed", "observed", "observed", "observed", "observed", "observers", "observers", "obtaining", "obtaining", "occurred", "occurred", "occurred", "occurred", "occurred", "occurred", "occurred", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceans", "oceans", "oceans", "ocecoaman", "october", "october", "october", "october", "odontostyle", "offs", "offs", "offs", "offs", "oib", "olesen", "omega", "ontogeny", "ontogeny", "ontogeny", "ontogeny", "ontogeny", "orders", "orders", "orders", "orders", "orders", "organ", "organization", "organization", "organization", "organization", "origin", "origin", "origin", "origin", "origin", "origin", "origin", "origin", "origin", "origin", "origin", "original", "original", "original", "original", "original", "original", "original", "original", "original", "originally", "originally", "originally", "originally", "originally", "originally", "originating", "originating", "origins", "origins", "origins", "origins", "origins", "origins", "outcome", "outcome", "ova", "overlapped", "overlapped", "overlapped", "overview", "overview", "overwhelm", "pablo", "pads", "pads", "palacios", "palacios", "pale", "pale", "pale", "panulirus", "papillae", "papillae", "papillae", "paralichthyid", "parasite", "parasite", "parasite", "parasite", "parasite", "parasites", "parasites", "parasites", "parasites", "parasites", "parasites", "parasites", "parasites", "participants", "participate", "participative", "participative", "participative", "pathogen", "pathogen", "pathogens", "pathogens", "pathogens", "pattern", "pattern", "pattern", "pattern", "pattern", "pattern", "pattern", "pattern", "pattern", "patterns", "patterns", "patterns", "patterns", "patterns", "patterns", "patterns", "patterns", "patterns", "pav", "peaked", "peaked", "peaked", "peaked", "peaked", "peck", "peck", "peck", "peck", "peck", "peck", "peck", "pectinatum", "pectinatum", "pectinatum", "pectiniunguis", "pectiniunguis", "pelicans", "pelicans", "penguins", "penguins", "penguins", "penguins", "penicillatus", "pentodontini", "people", "people", "people", "people", "perez", "perez", "perez", "period", "period", "period", "period", "period", "period", "period", "period", "period", "period", "period", "period", "periods", "periods", "periods", "periods", "periods", "periods", "periods", "periods", "periods", "permit", "permit", "permit", "persisted", "persisted", "persisted", "persisted", "persisted", "perspective", "perspective", "perspectives", "phases", "phases", "phases", "phases", "phases", "pheidole", "pheidole", "phenocrysts", "phenocrysts", "phenocrysts", "phenocrysts", "phenocrysts", "phenotypic", "phenotypic", "phenotypic", "phenotypic", "phylogenetic", "phylogenetic", "phylogenetic", "phylogenetic", "phylogenetic", "phylogenetic", "phylogenetic", "phylogenies", "phylogeography", "phylogeography", "phylogeography", "pinniped", "pinniped", "pinta", "pinta", "pinta", "pinta", "pinta", "pinta", "pinta", "pits", "pits", "planning", "planning", "planning", "planning", "planning", "plant", "plant", "plant", "plant", "plant", "plant", "plant", "plant", "plants", "plants", "plants", "plants", "plants", "plants", "plants", "plants", "plants", "plants", "plants", "plasmodium", "plasmodium", "plasmodium", "plasmodium", "plastic", "plastic", "platform", "platform", "platform", "platform", "platform", "plaza", "plaza", "plaza", "plaza", "plaza", "plumage", "plumage", "plumage", "plumage", "plumage", "plumage", "plumage", "plume", "plume", "plume", "plume", "plume", "plume", "plume", "plumes", "plumes", "plumes", "pn", "pn", "pn", "political", "political", "political", "pollen", "pollen", "pollen", "pollination", "pollination", "pollination", "pollination", "pollination", "pollination", "pomona", "pooled", "poona", "population", "population", "population", "population", "population", "population", "population", "population", "populations", "populations", "populations", "populations", "populations", "populations", "populations", "populations", "populations", "populations", "potential", "potential", "potential", "potential", "potential", "potential", "potential", "powell", "powell", "precarious", "precarious", "predation", "predation", "predation", "predation", "predation", "predation", "predation", "predation", "predicting", "predictive", "predictive", "predictive", "predictor", "predictor", "predictor", "predictor", "predictor", "presence", "presence", "presence", "presence", "presence", "presence", "presence", "presence", "presence", "presence", "presence", "present", "present", "present", "present", "present", "present", "present", "present", "present", "present", "present", "prevalence", "prevalence", "prevalence", "previous", "previous", "previous", "previous", "previous", "previous", "previous", "previous", "previous", "previously", "previously", "previously", "previously", "previously", "previously", "previously", "previously", "previously", "previously", "previously", "preyed", "preyed", "prickly", "principles", "principles", "procedure", "procedure", "procedure", "proceedings", "proceedings", "proceedings", "proceedings", "proceedings", "proceedings", "proceedings", "producing", "producing", "producing", "product", "product", "product", "product", "project", "project", "project", "project", "pronounced", "pronounced", "pronounced", "pronounced", "pronounced", "pronounced", "pronounced", "propagating", "propagating", "propagating", "protect", "protect", "protect", "provide", "provide", "provide", "provide", "provide", "provide", "provide", "province", "province", "province", "province", "province", "province", "province", "provisioning", "pseudocyclops", "pseudoscorpiones", "pseudoscorpiones", "pseudoscorpiones", "publication", "publication", "publication", "purchasi", "purchasi", "putative", "rabida", "rabida", "rabida", "rabida", "rachel", "radial", "radial", "radial", "radial", "radial", "radial", "rakers", "rakers", "range", "range", "range", "range", "range", "range", "range", "range", "range", "range", "range", "range", "raspberry", "ratios", "ratios", "ratios", "ratios", "ratios", "ratios", "rats", "rats", "rats", "rats", "rats", "rats", "rats", "rats", "rats", "recent", "recent", "recent", "recent", "recent", "recent", "recent", "recent", "recent", "recognizable", "recognizable", "recommend", "recommendations", "record", "record", "record", "record", "record", "record", "record", "record", "record", "record", "record", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "records", "records", "records", "records", "records", "records", "records", "records", "records", "records", "records", "recruitment", "recruitment", "recruitment", "recruitment", "recruitment", "recruitment", "recruitment", "recycled", "reddish", "reductions", "references", "references", "references", "references", "references", "references", "refractile", "refractile", "refractile", "refraction", "region", "region", "region", "region", "region", "region", "region", "region", "regional", "regional", "regional", "regional", "regulations", "regulations", "regulations", "regulations", "regulations", "regurgitated", "regurgitated", "regurgitated", "reintroduction", "reintroduction", "reintroduction", "related", "related", "related", "related", "related", "related", "related", "related", "related", "related", "related", "related", "relations", "relations", "relations", "relations", "relations", "relations", "relations", "release", "release", "release", "release", "release", "release", "renowned", "report", "report", "report", "report", "report", "report", "report", "report", "reported", "reported", "reported", "reported", "reported", "reported", "reported", "reported", "reported", "reported", "reported", "representation", "reproduce", "reproduce", "reproduce", "reproduced", "reproduced", "reproduced", "reproduced", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reptiles", "reptiles", "reptiles", "reptiles", "reptiles", "reptiles", "reptiles", "reptiles", "reptiles", "research", "research", "research", "research", "research", "research", "research", "research", "research", "research", "research", "research", "reserve", "reserve", "reserve", "reserve", "reserve", "reserve", "reserve", "residents", "residents", "residents", "resilience", "resilience", "resources", "resources", "resources", "resources", "resources", "resources", "resources", "resources", "response", "response", "response", "response", "response", "response", "response", "restoration", "restoration", "result", "result", "result", "result", "result", "result", "result", "result", "result", "result", "result", "resulting", "resulting", "resulting", "resulting", "resulting", "resulting", "resulting", "resulting", "resulting", "results", "results", "results", "results", "results", "results", "results", "results", "results", "results", "retention", "retention", "retention", "retention", "retention", "retention", "retention", "revealed", "revealed", "revealed", "revealed", "revealed", "revealed", "revealed", "revealed", "revealed", "revealed", "revenue", "revenue", "revenue", "revista", "revista", "revista", "revista", "revista", "rice", "rice", "rice", "ridge", "ridge", "ridge", "ridge", "ridge", "ridgewayia", "rift", "rift", "rift", "rift", "rift", "rift", "rifting", "rifting", "ring", "ring", "ring", "rise", "rise", "rise", "rise", "rise", "risk", "risk", "risk", "risk", "risk", "risk", "rn", "rn", "roderick", "rodolia", "rodolia", "role", "role", "role", "role", "role", "role", "role", "role", "root", "root", "ruben", "saboga", "saboga", "saddlebacked", "saddlebacked", "saenzi", "salinity", "salinity", "salinity", "salinity", "salmonella", "salmonella", "salmonella", "saltwater", "samples", "samples", "samples", "samples", "samples", "samples", "samples", "samples", "san", "san", "san", "san", "san", "san", "san", "san", "san", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santiago", "santiago", "santiago", "santiago", "santiago", "santiago", "santiago", "santiago", "satellite", "satellite", "satellite", "satellite", "saturated", "saturated", "saturated", "saturated", "sb", "sb", "sb", "sb", "sb", "sb", "scale", "scale", "scale", "scale", "scale", "scale", "scale", "scale", "scale", "scale", "scat", "scattered", "scattered", "scenarios", "scenarios", "science", "science", "science", "science", "science", "science", "science", "science", "science", "science", "scientific", "scientific", "scientific", "scientific", "scientific", "scientific", "scientific", "scientific", "scientific", "scleractinian", "scleractinian", "scleractinian", "scorpaeniformes", "scorpiones", "scott", "scott", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "seal", "seal", "seal", "seal", "seal", "seals", "seals", "seals", "seals", "seals", "seals'", "season", "season", "season", "season", "season", "season", "season", "seawater", "seawater", "seawater", "seawater", "seawater", "sector", "sector", "seed", "seed", "seed", "seed", "seed", "seed", "segment", "segment", "segment", "segment", "segment", "segment", "segregation", "segregation", "segregation", "segregation", "selective", "selective", "sensitivity", "separate", "separate", "separate", "separate", "separate", "separate", "separate", "separate", "separated", "separated", "separated", "separated", "separated", "separated", "separated", "separately", "separately", "separately", "sequeira", "sequeira", "sequences", "sequences", "sequences", "sequences", "sequences", "sequences", "serotyping", "serovars", "serve", "serve", "serve", "serve", "serve", "serves", "serves", "sexual", "sexual", "sexual", "sexual", "sexual", "sexual", "sexual", "sexual", "sexual", "shallow", "shallow", "shallow", "shallow", "shallow", "shallow", "shallow", "shallow", "shallow", "shallow", "shark", "shark", "shark", "shark", "shark", "shark", "sharks", "sharks", "sharks", "sharks", "sharks", "sharks", "sharks", "shell", "shell", "shell", "shell", "shell", "shell", "shell", "shell", "shelves", "shelves", "shields", "shields", "shields", "showed", "showed", "showed", "showed", "showed", "showed", "showed", "showed", "showed", "showed", "sight", "sight", "sight", "sighting", "sighting", "sighting", "sighting", "sightings", "sightings", "sightings", "significant", "significant", "significant", "significant", "significant", "significant", "significant", "significant", "significantly", "significantly", "significantly", "significantly", "significantly", "significantly", "significantly", "similar", "similar", "similar", "similar", "similar", "similar", "similar", "similar", "similar", "similar", "similar", "simon", "simon", "simon", "simon", "simon", "simulate", "single", "single", "single", "single", "single", "single", "single", "single", "single", "single", "site", "site", "site", "site", "site", "site", "site", "site", "site", "site", "sites", "sites", "sites", "sites", "sites", "sites", "sites", "sites", "sites", "sites", "sites", "sites", "sixteen", "sixteen", "sixteen", "sixteen", "skin", "skin", "skin", "slender", "slender", "slender", "slender", "slender", "slopes", "slopes", "slopes", "slopes", "smallest", "smallest", "smallest", "smallest", "smectite", "smectite", "smooth", "smooth", "smooth", "smooth", "snails", "snails", "snails", "snails", "snails", "snails", "snake", "snake", "social", "social", "social", "social", "social", "social", "social", "social", "society's", "soil", "soil", "soil", "soil", "soil", "soil", "soil", "soils", "soils", "soils", "soils", "soils", "soils", "soils", "soils", "soils", "sophie", "southern", "southern", "southern", "southern", "southern", "southern", "southern", "southern", "southern", "spaced", "spaced", "spaced", "spacing", "spacing", "spacing", "spanning", "spatial", "spatial", "spatial", "spatial", "spatial", "spatial", "spatial", "speciation", "speciation", "speciation", "speciation", "speciation", "speciation", "speciation", "speciation", "speciation", "specific", "specific", "specific", "specific", "specific", "specific", "specific", "specific", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "sphagnum", "spiders", "spiders", "spiders", "spiders", "spiders", "spine", "spine", "spine", "spine", "spiny", "spiny", "spiny", "sporozoites", "sporozoites", "sporozoites", "spreading", "spreading", "spreading", "spreading", "spreading", "spreading", "spring", "spring", "spring", "squamates", "squid", "squid", "stabilizing", "stage", "stage", "stage", "stage", "stage", "stage", "stage", "star", "star", "statistical", "statistical", "statistical", "statistical", "statistics", "statistics", "statistics", "statistics", "steep", "steep", "steep", "steep", "steep", "steinfartz", "steinfartz", "steinfartz", "stems", "stems", "stems", "stems", "stems", "stolidus", "strain", "strain", "stronger", "stronger", "stronger", "strontium", "strontium", "structure", "structure", "structure", "structure", "structure", "structure", "structure", "structure", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "subjected", "subjected", "subjected", "subjected", "subsp", "subsp", "subsp", "subsp", "subsp", "subsp", "subsp", "substantial", "substantial", "substantial", "substantial", "substantially", "substantially", "substantially", "substantially", "substantially", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "sula", "sula", "sula", "sula", "sula", "sula", "sula", "summit", "summit", "summit", "summit", "summit", "summit", "sunset", "suppl", "suppl", "supplemental", "supplemental", "suppression", "suppression", "suppression", "surface", "surface", "surface", "surface", "surface", "surface", "surface", "surface", "surface", "surface", "surgery", "surgery", "surgical", "survival", "survival", "survival", "survival", "survival", "survival", "survives", "survives", "survives", "susana", "sustain", "sustain", "swath", "symphyla", "symphylan", "syn", "syn", "syn", "syndromes", "system", "system", "system", "system", "system", "system", "system", "taeniorhynchus", "taeniorhynchus", "tagus", "tagus", "tagus", "tail", "tail", "tail", "tail", "tail", "tail", "taking", "taking", "target", "target", "target", "target", "task", "task", "task", "taxa", "taxa", "taxa", "taxa", "taxa", "taxa", "taxa", "taxa", "taxa", "technical", "technical", "techniques", "techniques", "techniques", "techniques", "tectonic", "tectonic", "tectonic", "tectonic", "tectonics", "tectonics", "teleostei", "teleostei", "teleostei", "temperature", "temperature", "temperature", "temperature", "temperature", "term", "term", "term", "term", "term", "term", "term", "territorial", "territorial", "territorial", "territorial", "territorial", "territorial", "territories", "territories", "territories", "thematic", "thematic", "threaten", "threaten", "threatened", "threatened", "threatened", "threatened", "threatened", "threatens", "threatens", "threatens", "threshold", "threshold", "threshold", "threshold", "tiger", "tiger", "tiger", "tim", "tim", "time", "time", "time", "time", "time", "time", "time", "time", "time", "time", "time", "timothy", "toomey", "toomey", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoises", "tortoises", "tortoises", "tortoises", "tortoises", "tortoises", "tortoises", "tortoises", "tortoises", "tortoises", "tourism", "tourism", "tourism", "tourism", "tourism", "tourism", "tourists", "tourists", "tourists", "tourists", "tournefortia", "trampling", "trampling", "translocated", "transmission", "transmission", "transmission", "transmission", "transmitted", "transmitted", "transmitted", "transmitted", "transmitted", "transport", "transport", "transport", "transport", "trauma", "traveset", "treatments", "treatments", "treatments", "treatments", "treatments", "treatments", "treatments", "treatments", "triaenodon", "triaenodon", "trichomes", "trifasciata", "trifasciatus", "trifasciatus", "trifasciatus", "trifasciatus", "trifasciatus", "triple", "triple", "triple", "triple", "tsunami", "turtles", "turtles", "turtles", "turtles", "tyrannulus", "unaffected", "unaffected", "unaffected", "understanding", "understanding", "understanding", "understanding", "understanding", "understanding", "understanding", "understanding", "understanding", "undeveloped", "undeveloped", "unequivocal", "unequivocal", "unequivocal", "unesco", "unesco", "unexplored", "unique", "unique", "unique", "unique", "unique", "unique", "unique", "unique", "unique", "uplands", "uplands", "upwelling", "upwelling", "upwelling", "upwelling", "upwelling", "upwelling", "upwelling", "usnea", "usnea", "utility", "utility", "validation", "validation", "values", "values", "values", "values", "values", "values", "values", "vargas", "vargas", "vargas", "vargas", "vargas", "variants", "variants", "variants", "variation", "variation", "variation", "variation", "variation", "variation", "variation", "variation", "variation", "variation", "variation", "variations", "variations", "variations", "variations", "variations", "variations", "variations", "variations", "variations", "variations", "variety", "variety", "variety", "variety", "variety", "variety", "variety", "variety", "varronia", "varronia", "vector", "vector", "vector", "vector", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "velocities", "velocities", "vertebrate", "vertebrate", "vertebrate", "vertebrate", "vertebrate", "vertebrate", "vertically", "vertically", "victor", "villegas", "virna", "virna", "visitor", "visitor", "visitor", "visitor", "visitor", "visitor", "volcanic", "volcanic", "volcanic", "volcanic", "volcanic", "volcanic", "volcanic", "volcanic", "volcano", "volcano", "volcano", "volcano", "volcano", "volcano", "volcano", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "vonhageni", "vulnerability", "vulnerable", "vulnerable", "vulnerable", "walking", "walking", "walking", "warbler", "warbler", "warbler", "weaning", "weed", "weevils", "weevils", "weevils", "west", "west", "west", "west", "west", "west", "west", "whale", "whale", "whale", "whale", "whale", "whale", "whales", "whales", "whales", "whales", "whales", "whilst", "whiteman", "whiteman", "wiedemann", "wiedemann", "wikelski", "wikelski", "wikelski", "wikelski", "wikelski", "winged", "winged", "witman", "witman", "witman", "witman", "wolf", "wolf", "wolf", "wolf", "wolf", "wolf", "worldwide", "worldwide", "worldwide", "worldwide", "yanez", "yields", "yields", "yields", "yields", "zalophus", "zalophus", "zalophus", "zalophus", "zalophus", "zenaida", "zenaida", "zenaida", "zenaida", "zenaida", "zenaida", "zoology", "zoology", "zoology", "zoology", "zoology", "zoology", "zoor", "zoor", "zoor", "zoor", "zoor", "zoor" ], | |
"Topic": [ 5, 10, 12, 1, 3, 4, 5, 10, 16, 17, 12, 17, 18, 4, 6, 8, 9, 11, 12, 15, 19, 20, 12, 18, 7, 8, 9, 12, 13, 14, 15, 16, 20, 6, 17, 9, 13, 17, 3, 5, 6, 11, 13, 14, 15, 2, 3, 4, 6, 7, 12, 14, 15, 19, 9, 10, 17, 4, 11, 12, 15, 20, 2, 17, 13, 4, 10, 17, 2, 4, 7, 10, 12, 15, 16, 18, 19, 18, 19, 10, 7, 20, 6, 17, 18, 2, 5, 17, 5, 18, 19, 2, 13, 1, 6, 7, 11, 17, 1, 2, 4, 9, 10, 12, 12, 15, 1, 3, 8, 11, 12, 14, 15, 16, 18, 20, 1, 6, 12, 13, 18, 10, 7, 9, 13, 7, 8, 12, 14, 15, 19, 6, 8, 10, 18, 19, 1, 5, 6, 12, 8, 12, 17, 19, 8, 14, 16, 17, 19, 12, 18, 17, 3, 6, 11, 1, 8, 12, 13, 14, 15, 4, 5, 7, 11, 12, 14, 15, 17, 20, 13, 2, 6, 8, 15, 8, 12, 14, 15, 19, 4, 6, 11, 11, 12, 17, 19, 6, 18, 8, 12, 16, 7, 16, 18, 8, 6, 7, 6, 9, 10, 6, 18, 6, 13, 2, 4, 7, 13, 7, 1, 2, 3, 4, 11, 12, 19, 12, 18, 19, 18, 16, 18, 2, 10, 12, 17, 19, 3, 18, 6, 11, 6, 13, 8, 4, 7, 8, 12, 13, 8, 11, 3, 4, 6, 7, 16, 20, 1, 16, 17, 6, 7, 1, 2, 5, 6, 9, 17, 15, 18, 3, 5, 10, 11, 18, 3, 10, 17, 6, 9, 8, 7, 10, 4, 5, 9, 10, 15, 19, 4, 5, 13, 15, 19, 4, 5, 7, 10, 18, 19, 8, 13, 14, 18, 2, 4, 7, 8, 9, 10, 17, 18, 6, 20, 1, 4, 13, 15, 17, 2, 3, 5, 12, 15, 19, 20, 2, 4, 9, 12, 17, 19, 3, 5, 10, 11, 12, 14, 15, 16, 19, 20, 9, 13, 18, 5, 10, 14, 15, 19, 1, 2, 4, 6, 7, 10, 11, 12, 14, 15, 16, 1, 2, 3, 7, 11, 12, 14, 15, 18, 8, 10, 12, 18, 19, 1, 4, 8, 9, 12, 15, 16, 17, 19, 20, 3, 5, 6, 7, 12, 13, 14, 15, 16, 20, 11, 3, 4, 13, 6, 1, 4, 5, 11, 18, 3, 8, 9, 12, 14, 20, 12, 16, 18, 19, 6, 6, 1, 5, 7, 13, 10, 17, 2, 6, 7, 11, 15, 18, 20, 5, 9, 14, 15, 1, 9, 15, 4, 5, 8, 9, 11, 12, 14, 15, 16, 19, 20, 6, 12, 1, 2, 3, 9, 10, 16, 5, 17, 17, 20, 2, 5, 9, 12, 14, 15, 16, 19, 11, 12, 17, 1, 3, 5, 19, 11, 1, 4, 10, 13, 2, 9, 15, 16, 20, 5, 12, 17, 18, 19, 2, 3, 4, 5, 7, 12, 15, 19, 5, 13, 19, 1, 3, 5, 10, 12, 14, 15, 16, 19, 20, 2, 3, 7, 19, 20, 7, 10, 9, 14, 18, 1, 15, 16, 17, 2, 13, 7, 17, 15, 8, 19, 3, 5, 9, 10, 12, 13, 14, 16, 12, 18, 19, 5, 8, 17, 19, 2, 3, 12, 13, 16, 20, 1, 3, 8, 9, 12, 19, 8, 3, 4, 5, 6, 12, 11, 7, 8, 14, 5, 17, 19, 5, 9, 13, 14, 15, 8, 16, 1, 2, 11, 17, 19, 6, 9, 18, 3, 5, 8, 9, 10, 12, 14, 15, 16, 18, 20, 17, 2, 11, 12, 16, 19, 11, 10, 11, 17, 5, 13, 17, 19, 17, 18, 4, 5, 7, 19, 5, 11, 14, 15, 18, 9, 11, 15, 18, 3, 8, 10, 18, 5, 7, 11, 10, 3, 8, 3, 6, 8, 12, 16, 20, 2, 3, 4, 6, 7, 8, 12, 19, 20, 3, 4, 4, 7, 12, 13, 19, 2, 8, 10, 12, 14, 5, 14, 18, 19, 4, 8, 9, 12, 15, 16, 19, 20, 6, 20, 9, 10, 11, 3, 5, 9, 12, 13, 15, 16, 19, 20, 2, 4, 5, 6, 7, 9, 10, 12, 15, 16, 19, 20, 10, 12, 17, 19, 2, 3, 5, 10, 13, 15, 19, 20, 2, 4, 8, 9, 10, 11, 12, 13, 14, 18, 2, 6, 7, 9, 12, 15, 16, 19, 20, 5, 7, 19, 1, 2, 9, 16, 19, 6, 16, 18, 10, 2, 6, 7, 9, 13, 14, 19, 1, 2, 7, 12, 15, 19, 20, 2, 7, 8, 9, 11, 15, 18, 2, 7, 8, 10, 12, 15, 16, 19, 20, 1, 10, 12, 19, 2, 8, 11, 6, 2, 9, 11, 1, 2, 4, 9, 11, 12, 14, 15, 16, 17, 19, 20, 3, 7, 8, 11, 12, 14, 15, 16, 20, 2, 10, 13, 1, 2, 5, 10, 12, 13, 17, 19, 6, 2, 3, 6, 9, 15, 8, 9, 10, 12, 14, 15, 16, 8, 9, 12, 14, 15, 1, 8, 9, 12, 13, 14, 15, 19, 1, 3, 8, 12, 14, 15, 19, 20, 4, 7, 8, 10, 15, 7, 1, 11, 7, 12, 20, 3, 5, 12, 19, 3, 4, 5, 11, 12, 14, 16, 19, 2, 3, 5, 10, 16, 19, 20, 8, 10, 16, 19, 13, 18, 1, 3, 7, 10, 7, 7, 15, 16, 18, 20, 11, 12, 18, 4, 7, 8, 10, 12, 15, 19, 20, 15, 18, 6, 12, 17, 1, 3, 6, 8, 13, 14, 18, 1, 2, 3, 5, 7, 9, 2, 6, 7, 10, 12, 15, 16, 18, 19, 20, 5, 9, 10, 8, 1, 4, 9, 10, 1, 2, 3, 8, 12, 15, 16, 17, 19, 20, 7, 8, 17, 10, 18, 17, 2, 9, 10, 11, 12, 13, 14, 15, 16, 20, 1, 3, 8, 9, 10, 11, 15, 16, 20, 3, 5, 9, 14, 16, 18, 20, 3, 6, 9, 12, 14, 15, 19, 2, 3, 6, 13, 4, 10, 17, 1, 2, 3, 10, 11, 12, 15, 18, 19, 18, 7, 12, 7, 16, 18, 7, 9, 13, 5, 9, 18, 7, 2, 6, 7, 10, 19, 1, 3, 4, 6, 8, 12, 14, 15, 20, 7, 6, 13, 3, 4, 5, 6, 1, 9, 17, 1, 4, 5, 7, 9, 13, 14, 8, 6, 20, 6, 8, 19, 2, 8, 10, 11, 12, 19, 1, 3, 6, 18, 1, 3, 8, 4, 8, 12, 17, 19, 5, 17, 19, 18, 1, 5, 8, 9, 12, 13, 16, 19, 1, 2, 6, 15, 19, 4, 7, 8, 10, 12, 14, 15, 16, 20, 1, 4, 5, 12, 15, 16, 20, 6, 7, 9, 11, 12, 20, 17, 3, 4, 5, 6, 12, 16, 19, 20, 1, 6, 8, 9, 10, 11, 12, 13, 15, 19, 10, 3, 5, 7, 12, 14, 15, 20, 1, 3, 4, 7, 8, 15, 18, 20, 3, 11, 17, 6, 20, 18, 18, 3, 4, 7, 8, 11, 13, 20, 17, 3, 5, 6, 7, 10, 11, 12, 14, 15, 16, 20, 4, 5, 9, 10, 15, 17, 19, 20, 15, 18, 9, 18, 3, 6, 7, 10, 17, 2, 4, 8, 9, 11, 16, 19, 20, 3, 6, 7, 11, 3, 7, 4, 17, 4, 5, 6, 7, 12, 18, 19, 13, 1, 5, 6, 10, 13, 15, 1, 2, 3, 6, 13, 15, 16, 18, 20, 2, 4, 7, 8, 12, 14, 15, 16, 19, 20, 3, 4, 15, 20, 4, 6, 7, 8, 10, 12, 14, 15, 16, 3, 4, 5, 6, 9, 10, 12, 13, 19, 4, 11, 5, 10, 11, 12, 20, 1, 3, 5, 6, 5, 7, 2, 12, 17, 18, 19, 2, 3, 9, 10, 18, 6, 8, 2, 3, 6, 7, 11, 12, 15, 8, 10, 1, 6, 8, 11, 12, 13, 14, 20, 1, 9, 17, 18, 1, 12, 13, 17, 1, 2, 3, 7, 11, 15, 17, 1, 4, 8, 9, 10, 17, 5, 8, 10, 19, 12, 13, 15, 17, 1, 2, 3, 5, 11, 12, 14, 15, 18, 7, 8, 20, 3, 5, 6, 7, 12, 13, 14, 15, 16, 20, 7, 20, 2, 6, 7, 8, 11, 14, 15, 20, 3, 5, 6, 9, 12, 15, 16, 19, 20, 8, 14, 15, 8, 9, 11, 19, 5, 6, 7, 10, 12, 4, 6, 7, 9, 12, 15, 17, 19, 1, 9, 17, 11, 1, 2, 10, 12, 15, 16, 19, 20, 6, 18, 2, 6, 8, 9, 10, 12, 13, 15, 16, 1, 4, 17, 2, 6, 9, 5, 7, 10, 17, 6, 1, 2, 5, 13, 16, 18, 19, 2, 13, 2, 3, 4, 13, 17, 2, 8, 7, 10, 12, 17, 18, 11, 6, 16, 17, 1, 6, 8, 10, 11, 13, 1, 3, 5, 7, 10, 11, 12, 15, 16, 18, 19, 20, 1, 3, 7, 13, 15, 11, 11, 1, 4, 5, 6, 18, 4, 6, 7, 8, 9, 14, 15, 16, 3, 6, 8, 10, 18, 19, 20, 3, 7, 8, 12, 14, 15, 19, 20, 12, 18, 19, 4, 8, 9, 4, 6, 9, 11, 13, 7, 8, 12, 14, 15, 16, 5, 12, 17, 19, 3, 17, 3, 4, 8, 9, 12, 15, 19, 1, 3, 5, 7, 13, 19, 4, 7, 8, 19, 1, 2, 9, 10, 11, 9, 10, 3, 8, 9, 10, 15, 18, 19, 1, 4, 8, 10, 11, 12, 15, 16, 19, 20, 1, 3, 5, 7, 11, 12, 14, 15, 16, 2, 3, 9, 11, 12, 14, 19, 20, 1, 4, 5, 9, 12, 17, 19, 7, 8, 12, 14, 16, 1, 7, 17, 4, 11, 18, 13, 1, 2, 9, 10, 12, 15, 16, 19, 20, 1, 2, 5, 9, 12, 15, 16, 19, 20, 4, 5, 6, 7, 8, 1, 17, 5, 7, 10, 11, 13, 15, 19, 10, 10, 9, 18, 17, 20, 1, 2, 8, 11, 12, 16, 19, 20, 2, 3, 9, 11, 12, 14, 16, 1, 2, 6, 9, 12, 16, 19, 20, 4, 18, 11, 20, 2, 5, 9, 12, 14, 15, 16, 20, 3, 9, 17, 3, 5, 8, 12, 14, 15, 16, 19, 20, 5, 12, 14, 19, 20, 5, 10, 13, 15, 17, 3, 4, 8, 14, 5, 9, 11, 13, 14, 1, 2, 3, 5, 6, 8, 10, 12, 14, 15, 20, 6, 15, 16, 20, 4, 5, 8, 9, 10, 11, 12, 15, 16, 19, 4, 5, 7, 9, 11, 12, 14, 15, 15, 18, 7, 1, 2, 5, 10, 12, 13, 15, 19, 1, 1, 12, 6, 13, 2, 3, 5, 6, 7, 10, 12, 15, 16, 19, 20, 11, 3, 13, 16, 20, 8, 9, 19, 4, 3, 10, 17, 18, 7, 15, 18, 1, 3, 8, 11, 13, 15, 16, 20, 2, 3, 10, 11, 8, 18, 1, 2, 3, 4, 9, 4, 8, 9, 11, 17, 19, 7, 3, 9, 10, 11, 18, 4, 5, 9, 13, 16, 20, 7, 10, 12, 13, 19, 3, 11, 6, 11, 12, 17, 19, 6, 2, 9, 14, 15, 19, 15, 17, 1, 8, 12, 14, 15, 16, 17, 20, 13, 15, 1, 2, 5, 10, 11, 12, 15, 16, 19, 20, 3, 5, 8, 10, 12, 17, 19, 10, 11, 12, 13, 18, 3, 5, 10, 12, 13, 14, 15, 7, 4, 8, 10, 5, 11, 17, 18, 4, 6, 5, 8, 10, 12, 14, 15, 1, 2, 6, 8, 11, 12, 19, 1, 5, 9, 12, 13, 15, 20, 1, 5, 12, 13, 15, 16, 17, 3, 17, 5, 6, 9, 11, 12, 13, 14, 19, 3, 6, 15, 16, 17, 20, 16, 18, 13, 1, 2, 4, 6, 15, 8, 3, 4, 8, 14, 15, 7, 10, 7, 11, 15, 17, 9, 12, 13, 15, 18, 13, 18, 3, 8, 12, 18, 19, 1, 3, 4, 9, 15, 6, 9, 12, 16, 18, 19, 1, 8, 12, 13, 14, 16, 19, 20, 16, 18, 2, 4, 8, 9, 10, 12, 14, 15, 16, 20, 12, 18, 19, 5, 17, 19, 2, 8, 19, 4, 18, 2, 4, 6, 18, 19, 7, 4, 6, 9, 13, 12, 18, 1, 7, 8, 9, 14, 4, 5, 6, 7, 12, 14, 15, 2, 3, 7, 12, 14, 15, 16, 18, 20, 11, 15, 1, 4, 5, 6, 8, 12, 15, 16, 19, 20, 3, 5, 9, 10, 14, 18, 8, 4, 5, 9, 10, 12, 15, 16, 17, 19, 20, 1, 3, 5, 6, 10, 11, 12, 3, 5, 7, 10, 11, 11, 13, 1, 2, 9, 18, 7, 10, 13, 3, 4, 7, 10, 13, 15, 16, 8, 17, 17, 5, 17, 9, 11, 4, 8, 9, 12, 15, 20, 4, 5, 10, 2, 5, 8, 3, 6, 8, 10, 17, 1, 4, 8, 14, 18, 6, 15, 18, 1, 3, 4, 5, 7, 12, 13, 14, 15, 16, 20, 2, 8, 13, 16, 18, 3, 5, 10, 12, 14, 15, 16, 18, 20, 1, 2, 6, 9, 12, 13, 14, 15, 16, 19, 7, 3, 6, 8, 13, 14, 16, 19, 11, 1, 5, 6, 8, 12, 13, 15, 16, 20, 4, 5, 7, 12, 15, 19, 1, 5, 8, 9, 15, 16, 19, 20, 7, 9, 11, 1, 6, 9, 10, 12, 16, 18, 19, 3, 7, 15, 17, 6, 11, 15, 18, 8, 13, 1, 3, 5, 6, 10, 11, 12, 15, 20, 4, 6, 7, 10, 1, 2, 3, 17, 6, 2, 6, 18, 1, 11, 4, 7, 9, 10, 17, 7, 2, 4, 11, 1, 10, 12, 15, 18, 1, 10, 17, 6, 10, 11, 16, 1, 15, 1, 2, 6, 10, 11, 12, 1, 5, 11, 12, 13, 14, 15, 16, 17, 20, 7, 16, 20, 2, 3, 6, 8, 12, 15, 19, 8, 9, 11, 12, 14, 15, 16, 20, 3, 18, 13, 6, 7, 8, 13, 14, 15, 16, 1, 2, 8, 9, 10, 5, 9, 10, 15, 19, 8, 2, 8, 9, 11, 12, 14, 15, 16, 20, 7, 12, 13, 15, 17, 3, 6, 9, 18, 2, 3, 4, 5, 6, 10, 12, 19, 17, 6, 1, 2, 4, 6, 11, 16, 20, 2, 5, 6, 9, 10, 12, 13, 16, 19, 20, 2, 3, 5, 6, 9, 12, 14, 15, 16, 20, 1, 2, 4, 10, 12, 13, 15, 16, 20, 1, 3, 5, 6, 7, 12, 13, 15, 19, 20, 1, 4, 5, 12, 13, 16, 17, 19, 20, 11, 16, 18, 20, 11, 3, 17, 7, 6, 7, 9, 11, 18, 7, 7, 9, 1, 3, 5, 11, 12, 1, 3, 7, 8, 11, 13, 1, 2, 9, 11, 19, 3, 9, 17, 1, 17, 1, 4, 7, 8, 9, 15, 16, 19, 20, 3, 5, 7, 8, 10, 12, 15, 16, 18, 19, 1, 3, 8, 15, 9, 18, 4, 9, 10, 1, 4, 6, 8, 12, 15, 16, 19, 20, 1, 4, 8, 12, 14, 15, 16, 17, 20, 1, 13, 4, 9, 11, 3, 9, 10, 8, 10, 11, 1, 2, 3, 4, 9, 12, 15, 17, 19, 1, 8, 10, 12, 14, 17, 18, 2, 3, 4, 7, 10, 11, 12, 14, 15, 16, 20, 6, 1, 1, 9, 13, 6, 7, 9, 1, 5, 9, 13, 15, 16, 10, 11, 20, 11, 16, 7, 13, 17, 1, 2, 6, 11, 13, 19, 2, 4, 9, 11, 12, 1, 6, 8, 11, 18, 1, 18, 1, 2, 5, 12, 13, 16, 19, 20, 3, 7, 15, 13, 9, 11, 10, 16, 18, 3, 6, 7, 8, 9, 12, 14, 16, 20, 8, 14, 3, 6, 9, 11, 17, 5, 7, 11, 19, 1, 4, 7, 10, 11, 15, 4, 17, 5, 9, 10, 14, 1, 3, 5, 6, 9, 12, 14, 15, 16, 19, 10, 17, 2, 7, 8, 10, 11, 4, 18, 3, 11, 4, 6, 9, 10, 11, 10, 6, 17, 17, 3, 5, 6, 15, 17, 19, 4, 6, 8, 11, 17, 2, 3, 4, 12, 13, 15, 18, 20, 2, 4, 7, 11, 12, 14, 17, 18, 10, 10, 11, 16, 18, 2, 6, 8, 8, 9, 12, 13, 14, 15, 18, 19, 20, 6, 9, 11, 20, 1, 5, 6, 15, 16, 20, 12, 17, 3, 5, 10, 11, 12, 15, 16, 17, 20, 1, 17, 3, 6, 7, 18, 3, 4, 8, 9, 12, 14, 18, 13, 2, 4, 5, 6, 9, 12, 15, 19, 1, 3, 5, 11, 19, 10, 18, 8, 19, 18, 13, 18, 13, 3, 7, 10, 6, 8, 9, 12, 13, 14, 19, 1, 2, 4, 7, 12, 15, 19, 17, 11, 20, 3, 5, 6, 7, 9, 14, 1, 2, 6, 9, 12, 13, 14, 17, 18, 1, 3, 5, 10, 11, 15, 17, 1, 2, 4, 5, 6, 8, 11, 13, 1, 2, 3, 5, 6, 11, 12, 15, 16, 17, 19, 20, 7, 8, 12, 14, 15, 16, 2, 7, 16, 1, 4, 5, 9, 12, 15, 16, 18, 19, 20, 1, 4, 8, 9, 10, 13, 2, 4, 7, 8, 11, 12, 13, 14, 15, 16, 20, 1, 3, 4, 5, 6, 9, 10, 14, 15, 16, 20, 7, 10, 17, 11, 2, 3, 9, 11, 12, 19, 20, 3, 5, 10, 12, 14, 15, 16, 20, 2, 10, 11, 13, 4, 12, 14, 15, 1, 8, 19, 5, 18, 19, 2, 17, 1, 2, 4, 9, 11, 12, 15, 16, 19, 5, 11, 13, 16, 17, 8, 9, 11, 1, 3, 4, 7, 8, 19, 5, 6, 9, 12, 16, 18, 20, 3, 11, 1, 4, 6, 7, 8, 12, 15, 16, 19, 20, 1, 2, 5, 12, 14, 15, 19, 20, 2, 7, 10, 12, 16, 18, 20, 1, 4, 5, 12, 17, 19, 15, 17, 1, 2, 3, 5, 11, 12, 17, 11, 3, 5, 6, 8, 9, 12, 15, 16, 17, 18, 19, 20, 6, 9, 10, 2, 12, 19, 20, 7, 1, 3, 7, 12, 14, 9, 13, 17, 19, 2, 6, 7, 12, 14, 16, 19, 1, 11, 17, 6, 7, 9, 20, 7, 17, 1, 3, 8, 18, 19, 4, 8, 9, 14, 18, 19, 1, 2, 4, 15, 16, 18, 3, 9, 10, 12, 17, 19, 13, 5, 11, 17, 13, 16, 18, 3, 17, 6, 1, 8, 10, 17, 3, 9, 10, 18, 1, 3, 4, 5, 8, 9, 11, 14, 16, 17, 18, 19, 7, 10, 1, 2, 3, 4, 12, 14, 18, 4, 17, 2, 13, 19, 5, 17, 1, 4, 8, 15, 16, 20, 16, 17, 8, 1, 3, 8, 10, 13, 1, 2, 5, 7, 9, 11, 12, 19, 1, 10, 18, 2, 9, 10, 11, 14, 17, 8, 5, 8, 13, 17, 8, 13, 1, 2, 4, 6, 10, 14, 15, 6, 11, 17, 1, 2, 4, 9, 1, 4, 5, 7, 8, 13, 2, 4, 6, 8, 9, 10, 11, 12, 15, 19, 20, 1, 2, 4, 13, 19, 1, 8, 12, 13, 19, 20, 6, 7, 13, 6, 17, 3, 6, 5, 10, 2, 8, 12, 14, 19, 7, 13, 1, 4, 16, 20, 7, 16, 18, 20, 11, 10, 11, 17, 8, 16, 17, 18, 1, 17, 5, 9, 10, 12, 13, 16, 17, 19, 20, 18, 1, 2, 9, 12, 14, 15, 16, 17, 3, 5, 12, 14, 19, 4, 11, 16, 2, 5, 9, 10, 12, 15, 16, 20, 3, 5, 7, 10, 12, 15, 16, 20, 8, 9, 10, 14, 19, 18, 1, 5, 7, 8, 14, 6, 3, 4, 8, 13, 16, 18, 3, 17, 1, 2, 8, 10, 13, 14, 15, 8, 10, 13, 10, 18, 1, 3, 4, 7, 10, 17, 20, 6, 18, 6, 11, 15, 5, 7, 12, 13, 14, 15, 16, 20, 2, 10, 10, 16, 17, 20, 3, 10, 17, 1, 8, 13, 3, 7, 10, 11, 13, 3, 13, 5, 8, 18, 6, 18, 20, 3, 8, 10, 12, 13, 15, 16, 18, 20, 1, 5, 9, 10, 12, 13, 15, 16, 17, 19, 20, 1, 15, 7, 15, 3, 8, 12, 13, 14, 16, 20, 3, 4, 5, 8, 9, 12, 14, 15, 16, 18, 19, 20, 4, 11, 17, 6, 3, 4, 6, 9, 8, 3, 6, 9, 11, 6, 18, 18, 4, 5, 12, 13, 19, 3, 5, 9, 10, 11, 13, 4, 13, 15, 20, 2, 3, 4, 8, 9, 11, 12, 14, 15, 16, 20, 3, 4, 5, 7, 10, 12, 16, 19, 20, 2, 3, 11, 12, 13, 14, 2, 18, 1, 2, 5, 6, 12, 14, 1, 4, 17, 2, 11, 17, 4, 7, 8, 11, 12, 18, 3, 11, 1, 3, 17, 10, 5, 12, 19, 13, 2, 5, 6, 9, 14, 1, 3, 5, 6, 9, 14, 16, 17, 18, 8, 4, 7, 11, 11, 18, 7, 10, 13, 2, 3, 8, 10, 12, 15, 16, 19, 20, 1, 7, 8, 9, 11, 12, 13, 14, 15, 18, 2, 5, 7, 13, 18, 2, 3, 5, 6, 8, 12, 19, 15, 16, 18, 5, 8, 13, 18, 3, 4, 10, 15, 10, 8, 6, 12, 15, 17, 1, 3, 7, 2, 4, 5, 7, 8, 12, 13, 14, 15, 16, 19, 20, 3, 5, 6, 9, 12, 14, 15, 18, 19, 3, 4, 13, 5, 7, 8, 17, 19, 10, 11, 18, 2, 5, 8, 17, 19, 2, 17, 1, 5, 14, 17, 19, 1, 4, 6, 10, 3, 4, 6, 8, 10, 17, 19, 11, 1, 3, 18, 1, 10, 1, 2, 6, 7, 12, 15, 20, 16, 17, 7, 12, 14, 18, 19, 4, 5, 6, 7, 12, 14, 15, 16, 4, 5, 6, 7, 10, 12, 13, 15, 16, 19, 20, 4, 7, 10, 11, 1, 18, 3, 5, 6, 12, 19, 3, 6, 10, 15, 20, 5, 9, 11, 14, 15, 16, 20, 1, 2, 3, 7, 11, 18, 19, 1, 13, 18, 1, 2, 6, 1, 6, 18, 7, 11, 15, 7, 8, 9, 11, 15, 17, 17, 7, 17, 1, 3, 5, 6, 12, 15, 19, 20, 1, 3, 8, 10, 12, 15, 16, 17, 19, 20, 2, 4, 7, 9, 11, 12, 19, 1, 3, 7, 20, 1, 2, 6, 7, 12, 14, 15, 20, 10, 4, 9, 10, 2, 3, 4, 7, 8, 3, 4, 6, 7, 8, 9, 11, 12, 14, 15, 20, 4, 6, 7, 8, 9, 12, 14, 15, 16, 17, 20, 2, 9, 11, 3, 5, 7, 11, 12, 14, 15, 16, 20, 1, 3, 5, 10, 11, 12, 14, 15, 16, 19, 20, 3, 17, 10, 3, 11, 12, 17, 19, 3, 5, 6, 12, 14, 15, 16, 2, 18, 19, 1, 3, 6, 9, 11, 14, 15, 20, 1, 4, 5, 11, 12, 13, 19, 1, 5, 9, 9, 11, 18, 1, 7, 8, 11, 12, 13, 19, 3, 6, 9, 10, 12, 14, 18, 8, 18, 5, 8, 18, 6, 15, 18, 9, 18, 10, 1, 3, 5, 9, 6, 2, 6, 8, 9, 10, 19, 5, 13, 1, 4, 5, 6, 9, 12, 15, 16, 17, 18, 19, 20, 18, 4, 5, 6, 7, 14, 17, 3, 5, 10, 12, 14, 15, 16, 18, 20, 4, 5, 9, 11, 12, 14, 15, 16, 20, 16, 18, 1, 11, 1, 3, 5, 10, 12, 13, 14, 15, 16, 17, 20, 4, 8, 9, 10, 12, 15, 16, 19, 20, 2, 4, 5, 9, 10, 11, 12, 15, 16, 19, 20, 1, 2, 3, 5, 10, 12, 19, 7, 8, 11, 12, 15, 16, 17, 19, 20, 8, 17, 19, 7, 1, 4, 5, 7, 14, 15, 16, 20, 3, 6, 8, 16, 1, 12, 17, 18, 19, 8, 11, 12, 10, 11, 17, 2, 3, 5, 6, 8, 9, 11, 12, 14, 15, 16, 20, 5, 10, 12, 14, 15, 16, 20, 3, 7, 8, 11, 17, 19, 6, 1, 5, 6, 12, 13, 16, 18, 20, 1, 2, 3, 8, 12, 14, 15, 16, 17, 18, 20, 11, 4, 5, 10, 3, 7, 16, 18, 3, 4, 5, 7, 9, 10, 12, 14, 15, 16, 1, 5, 6, 11, 12, 13, 15, 16, 17, 1, 4, 5, 7, 8, 10, 12, 15, 16, 17, 19, 20, 1, 8, 9, 10, 11, 12, 19, 10, 11, 17, 9, 11, 2, 3, 5, 6, 7, 12, 14, 15, 2, 3, 8, 9, 10, 11, 14, 9, 11, 1, 2, 4, 5, 6, 9, 14, 15, 16, 17, 20, 3, 5, 7, 8, 9, 10, 12, 16, 20, 2, 3, 5, 6, 7, 12, 15, 16, 19, 20, 2, 3, 4, 6, 8, 9, 17, 2, 4, 6, 9, 11, 12, 14, 15, 17, 20, 5, 18, 19, 4, 7, 12, 14, 15, 4, 7, 14, 2, 7, 10, 13, 14, 11, 1, 4, 8, 12, 17, 19, 8, 18, 3, 8, 9, 3, 5, 11, 12, 14, 1, 2, 3, 6, 8, 9, 2, 7, 18, 9, 18, 2, 3, 5, 6, 9, 12, 15, 17, 8, 10, 17, 5, 13, 12, 18, 18, 2, 4, 9, 18, 7, 9, 18, 18, 3, 6, 8, 10, 12, 14, 15, 16, 3, 6, 7, 8, 12, 14, 15, 16, 20, 4, 5, 8, 9, 11, 12, 14, 15, 16, 20, 3, 5, 6, 12, 14, 15, 18, 20, 3, 5, 7, 10, 2, 4, 17, 18, 1, 2, 5, 9, 12, 19, 1, 5, 8, 9, 10, 12, 13, 16, 18, 19, 10, 8, 14, 6, 18, 3, 4, 5, 9, 12, 15, 16, 17, 19, 20, 1, 5, 8, 11, 12, 15, 16, 19, 20, 2, 8, 13, 1, 8, 10, 18, 1, 2, 4, 5, 11, 12, 15, 16, 17, 18, 19, 20, 4, 5, 10, 16, 19, 1, 5, 6, 13, 16, 13, 2, 3, 4, 11, 12, 15, 20, 2, 8, 11, 18, 19, 4, 7, 1, 3, 5, 9, 12, 17, 2, 5, 7, 12, 13, 14, 3, 6, 9, 10, 1, 18, 1, 2, 4, 7, 9, 11, 12, 15, 19, 3, 8, 9, 12, 14, 15, 16, 4, 6, 18, 4, 17, 2, 3, 6, 8, 17, 19, 17, 17, 3, 5, 14, 16, 18, 4, 18, 3, 7, 8, 9, 10, 12, 14, 15, 19, 2, 3, 5, 6, 7, 10, 12, 15, 19, 20, 6, 8, 9, 13, 16, 18, 1, 3, 5, 11, 16, 17, 18, 1, 4, 7, 8, 10, 12, 14, 15, 5, 6, 3, 8, 13, 1, 5, 6, 11, 12, 13, 15, 16, 19, 20, 3, 17, 18, 1, 2, 18, 19, 7, 13, 17, 2, 7, 9, 10, 12, 15, 18, 19, 1, 2, 7, 10, 14, 15, 18, 1, 2, 3, 5, 8, 12, 14, 15, 16, 17, 20, 1, 5, 9, 11, 14, 7, 1, 2, 4, 7, 10, 12, 14, 15, 16, 20, 4, 5, 6, 9, 10, 11, 12, 13, 14, 19, 2, 4, 5, 7, 8, 9, 10, 12, 13, 16, 19, 20, 1, 11, 12, 19, 7, 10, 20, 3, 5, 9, 15, 18, 2, 5, 9, 10, 8, 13, 14, 18, 5, 17, 5, 6, 12, 19, 5, 6, 12, 16, 18, 20, 12, 18, 2, 3, 9, 10, 15, 17, 18, 20, 20, 2, 6, 7, 9, 12, 15, 19, 3, 4, 6, 8, 12, 14, 15, 17, 20, 6, 1, 3, 5, 6, 12, 14, 16, 17, 20, 8, 15, 20, 7, 15, 20, 6, 1, 2, 4, 9, 12, 17, 19, 1, 2, 5, 10, 11, 14, 15, 19, 20, 4, 5, 9, 12, 14, 15, 16, 17, 1, 5, 7, 8, 12, 13, 14, 15, 16, 17, 20, 17, 5, 6, 12, 16, 19, 5, 7, 11, 13, 10, 11, 18, 5, 18, 19, 1, 3, 8, 9, 12, 19, 4, 5, 11, 10, 18, 20, 13, 1, 2, 6, 11, 12, 14, 15, 16, 18, 1, 4, 5, 11, 3, 11, 12, 19, 3, 4, 5, 13, 20, 1, 4, 10, 8, 9, 12, 14, 19, 13, 1, 17, 2, 10, 11, 5, 8, 4, 7, 8, 11, 12, 14, 15, 16, 2, 4, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 18, 20, 1, 4, 7, 17, 1, 12, 13, 16, 17, 19, 20, 4, 5, 7, 14, 8, 9, 11, 14, 19, 1, 4, 5, 7, 9, 11, 12, 13, 14, 15, 18, 2, 9, 11, 12, 14, 19, 20, 2, 6, 7, 11, 14, 15, 13, 17, 20, 3, 18, 2, 11, 14, 1, 2, 5, 6, 10, 11, 12, 15, 19, 20, 7, 9, 7, 3, 7, 8, 10, 18, 20, 1, 7, 18, 11, 2, 17, 13, 8, 8, 9, 16, 18, 18, 1, 4, 5, 7, 14, 17, 19, 6, 17, 17, 19, 20, 2, 5, 9, 12, 14, 19, 7, 15, 3, 4, 5, 7, 1, 7, 20, 2, 3, 9, 11, 12, 14, 15, 18, 20, 6, 9, 1, 2, 5, 13, 1, 2, 7, 18, 11, 20, 2, 13, 19, 1, 5, 13, 15, 20, 1, 2, 5, 10, 12, 14, 18, 5, 9, 10, 15, 16, 20, 6, 9, 16, 2, 17, 4, 18, 2, 3, 7, 10, 20, 8, 10, 14, 7, 11, 13, 18, 4, 7, 18, 1, 18, 2, 3, 6, 7, 9, 12, 15, 16, 17, 19, 20, 6, 1, 18, 5, 6, 7, 12, 13, 15, 16, 18, 19, 20, 1, 4, 5, 6, 7, 8, 12, 16, 17, 20, 1, 2, 4, 12, 17, 19, 8, 10, 15, 17, 10, 11, 12, 7, 5, 8, 9, 11, 1, 7, 9, 18, 20, 1, 4, 7, 8, 10, 17, 2, 5, 8, 9, 10, 14, 15, 19, 16, 18, 18, 13, 4, 6, 10, 12, 13, 5, 10, 11, 18, 17, 2, 4, 11, 16, 17, 5, 6, 11, 2, 4, 8, 9, 10, 11, 16, 18, 19, 12, 18, 8, 18, 19, 11, 20, 10, 1, 2, 3, 4, 11, 12, 14, 15, 20, 15, 17, 4, 5, 6, 9, 11, 14, 19, 17, 18, 4, 17, 10, 18, 2, 5, 7, 9, 10, 15, 19, 1, 3, 4, 11, 13, 3, 14, 20, 1, 4, 5, 6, 7, 11, 12, 14, 15, 16, 20, 2, 3, 5, 8, 9, 11, 12, 14, 16, 19, 4, 6, 8, 9, 12, 14, 15, 16, 6, 18, 3, 9, 11, 17, 7, 8, 10, 12, 13, 14, 15, 16, 20, 3, 11, 1, 4, 5, 10, 12, 13, 12, 18, 11, 11, 10, 17, 5, 7, 8, 11, 13, 14, 3, 5, 6, 7, 10, 12, 15, 19, 2, 4, 5, 7, 10, 15, 19, 1, 2, 3, 11, 12, 13, 19, 20, 13, 11, 4, 5, 6, 6, 9, 18, 6, 7, 12, 4, 7, 4, 10, 13, 2, 3, 4, 7, 14, 15, 16, 5, 6, 11, 12, 13, 19, 1, 2, 3, 4, 19, 10, 1, 10, 15, 18, 1, 2, 3, 9, 11, 11, 20, 1, 9, 10, 17, 1, 2, 5, 7, 10, 18, 5, 6, 9, 12, 7, 1, 5, 10, 19, 2, 7, 8, 10, 15, 7, 8, 11, 12, 14, 15, 2, 3, 5, 9, 12, 14, 1, 10, 12, 13, 14, 16 ], | |
"Freq": [ 0.89396, 0.066364, 0.039038, 0.12246, 0.039836, 0.097378, 0.59312, 0.091476, 0.056066, 0.99494, 0.68395, 0.25276, 0.059474, 0.27676, 0.005032, 0.10603, 0.33391, 0.19733, 0.021566, 0.0057508, 0.012221, 0.041334, 0.81293, 0.18249, 0.17105, 0.0077748, 0.0012958, 0.15744, 0.060902, 0.28831, 0.049888, 0.2624, 0.0012958, 0.99813, 0.99945, 0.82495, 0.014223, 0.15646, 0.22326, 0.39832, 0.048785, 0.027549, 0.18194, 0.09757, 0.022384, 0.31855, 0.19547, 0.00030542, 0.27854, 0.087349, 0.017409, 0.051004, 0.049477, 0.0021379, 0.0029157, 0.91261, 0.084555, 0.23783, 0.10502, 0.037064, 0.39535, 0.22547, 0.77178, 0.2251, 0.9931, 0.80777, 0.072122, 0.1154, 0.21591, 0.31393, 0.2432, 0.0030315, 0.016168, 0.011116, 0.11823, 0.0384, 0.040084, 0.98186, 0.014877, 0.99333, 0.47428, 0.52292, 0.84142, 0.11532, 0.042712, 0.84481, 0.080458, 0.072412, 0.16571, 0.18643, 0.64214, 0.3382, 0.66219, 0.11008, 0.87469, 0.014876, 0.97963, 0.017975, 0.22628, 0.53193, 0.16501, 0.022976, 0.00069624, 0.052914, 0.041159, 0.95694, 0.041783, 0.38426, 0.019399, 0.0037306, 0.005969, 0.31636, 0.051483, 0.026861, 0.042529, 0.10819, 0.12499, 0.48842, 0.052518, 0.093483, 0.24053, 0.99732, 0.049596, 0.91944, 0.030521, 0.16278, 0.11468, 0.049327, 0.42174, 0.14921, 0.10235, 0.25827, 0.3825, 0.0032692, 0.016346, 0.34, 0.080024, 0.75561, 0.087719, 0.076946, 0.99261, 0.29772, 0.019208, 0.68189, 0.28435, 0.44548, 0.18483, 0.061609, 0.023696, 0.76968, 0.22638, 0.99522, 0.80488, 0.044993, 0.14998, 0.40329, 0.15108, 0.019243, 0.20267, 0.21168, 0.012283, 0.39036, 0.088146, 0.24015, 0.034854, 0.03283, 0.14436, 0.012143, 0.053293, 0.0040475, 0.99347, 0.020229, 0.77448, 0.095365, 0.10981, 0.58353, 0.16209, 0.11022, 0.077804, 0.066998, 0.72772, 0.26953, 0.99643, 0.16923, 0.16117, 0.088643, 0.58021, 0.31704, 0.68232, 0.24608, 0.041885, 0.71205, 0.99531, 0.83787, 0.16169, 0.99261, 0.9921, 0.0062791, 0.8785, 0.11241, 0.008327, 0.98917, 0.0083828, 0.99805, 0.99347, 0.2131, 0.20875, 0.57842, 0.99329, 0.99612, 0.30337, 0.44712, 0.095211, 0.013535, 0.070942, 0.022869, 0.047139, 0.15023, 0.093894, 0.75115, 0.99557, 0.6009, 0.39533, 0.24781, 0.18097, 0.39128, 0.004891, 0.17608, 0.81725, 0.17877, 0.9865, 0.010276, 0.99777, 0.99712, 0.99261, 0.58336, 0.26601, 0.14467, 0.0062225, 0.9929, 0.99312, 0.9981, 0.11686, 0.0016615, 0.46909, 0.36552, 0.01883, 0.027691, 0.81586, 0.17272, 0.011363, 0.034419, 0.96374, 0.00061693, 0.45344, 0.027762, 0.098092, 0.41273, 0.0067862, 0.53014, 0.46588, 0.83297, 0.021886, 0.038623, 0.10042, 0.0064372, 0.24914, 0.14565, 0.6056, 0.25347, 0.74612, 0.99261, 0.84264, 0.15685, 0.23272, 0.46716, 0.1698, 0.047405, 0.068091, 0.015514, 0.27652, 0.46117, 0.12756, 0.11507, 0.020516, 0.28236, 0.40375, 0.20993, 0.0778, 0.015426, 0.011402, 0.24114, 0.30315, 0.39272, 0.062008, 0.018869, 0.16982, 0.18161, 0.62974, 0.1672, 0.75076, 0.08196, 0.99664, 0.56811, 0.43155, 0.16327, 0.0040819, 0.8327, 0.68968, 0.30653, 0.61229, 0.17201, 0.0047342, 0.028405, 0.10573, 0.064701, 0.012625, 0.5593, 0.073592, 0.090273, 0.13639, 0.032381, 0.10892, 0.37379, 0.13361, 0.072769, 0.14355, 0.019485, 0.0015906, 0.050103, 0.0338, 0.0035788, 0.1682, 0.93918, 0.0096823, 0.048411, 0.35364, 0.062043, 0.0020681, 0.44877, 0.13443, 0.14009, 0.20916, 0.11162, 0.0098197, 0.26775, 0.024876, 0.0013093, 0.044516, 0.1234, 0.05008, 0.017675, 0.23646, 0.24501, 0.11111, 0.031338, 0.24949, 0.024419, 0.098085, 0.0024419, 0.002035, 0.024008, 0.97231, 0.28271, 0.028271, 0.68793, 0.55071, 0.028485, 0.12735, 0.013963, 0.054736, 0.088248, 0.02681, 0.068699, 0.0078194, 0.03407, 0.023132, 0.10188, 0.20796, 0.21941, 0.022665, 0.032011, 0.15562, 0.020796, 0.091828, 0.12477, 0.99784, 0.66919, 0.10584, 0.22534, 0.99873, 0.081983, 0.17343, 0.74416, 0.028894, 0.96796, 0.16907, 0.25731, 0.15587, 0.20453, 0.076699, 0.13773, 0.50927, 0.31575, 0.13241, 0.040741, 0.9988, 0.99543, 0.11221, 0.17767, 0.084159, 0.62652, 0.93558, 0.062837, 0.36542, 0.065978, 0.0050752, 0.11673, 0.01015, 0.01015, 0.42632, 0.21471, 0.24843, 0.40281, 0.13486, 0.32206, 0.24342, 0.43441, 0.12799, 0.14717, 0.01754, 0.16608, 0.088249, 0.020829, 0.1332, 0.20034, 0.056184, 0.00027407, 0.04248, 0.49089, 0.50491, 0.00148, 0.11248, 0.27528, 0.00148, 0.55203, 0.057719, 0.68111, 0.31294, 0.20661, 0.78888, 0.32981, 0.060052, 0.15123, 0.19713, 0.078916, 0.029869, 0.0094322, 0.144, 0.99803, 0.87916, 0.12043, 0.16702, 0.44956, 0.31223, 0.070984, 0.99643, 0.70027, 0.0039121, 0.23994, 0.056073, 0.079756, 0.13071, 0.044309, 0.545, 0.19939, 0.1474, 0.28954, 0.026322, 0.031587, 0.50538, 0.04693, 0.033317, 0.31562, 0.34105, 0.11965, 0.029735, 0.046214, 0.067351, 0.81484, 0.15929, 0.024506, 0.064039, 0.028304, 0.020875, 0.076068, 0.10083, 0.059439, 0.027951, 0.54345, 0.0010614, 0.077837, 0.24797, 0.11229, 0.0046788, 0.5287, 0.10527, 0.77632, 0.22299, 0.9497, 0.0049463, 0.044517, 0.51603, 0.4831, 0.77429, 0.22414, 0.70343, 0.29596, 0.65441, 0.34485, 1.0003, 0.51689, 0.47713, 0.13861, 0.028508, 0.49348, 0.25657, 0.049152, 0.00098303, 0.00098303, 0.031457, 0.49819, 0.10568, 0.39251, 0.21051, 0.68414, 0.0032892, 0.10196, 0.15331, 0.15331, 0.085172, 0.52594, 0.080913, 0.0021293, 0.37052, 0.07744, 0.3738, 0.12093, 0.043784, 0.013701, 0.9942, 0.69869, 0.0010816, 0.017305, 0.22713, 0.056241, 0.99631, 0.088865, 0.38656, 0.5243, 0.41087, 0.11033, 0.47935, 0.22252, 0.53445, 0.055884, 0.1514, 0.035563, 0.8365, 0.16312, 0.46579, 0.31643, 0.10616, 0.095463, 0.015636, 0.17502, 0.78757, 0.035003, 0.21048, 0.11727, 0.0218, 0.0022552, 0.17215, 0.052621, 0.1308, 0.099979, 0.0090207, 0.13832, 0.046607, 0.99761, 0.17979, 0.05831, 0.47134, 0.048591, 0.24296, 0.99767, 0.18558, 0.11857, 0.69594, 0.075172, 0.20672, 0.018793, 0.70004, 0.99494, 0.99625, 0.12186, 0.71087, 0.1503, 0.016248, 0.17441, 0.038758, 0.51354, 0.077516, 0.19379, 0.57114, 0.42941, 0.67984, 0.31621, 0.13834, 0.20865, 0.65089, 0.0022679, 0.11595, 0.79598, 0.087746, 0.99774, 0.18029, 0.81915, 0.15316, 0.50934, 0.1683, 0.017809, 0.042742, 0.10953, 0.026701, 0.22529, 0.016132, 0.14853, 0.0011126, 0.24643, 0.089005, 0.15409, 0.092899, 0.29072, 0.70864, 0.28208, 0.21216, 0.38333, 0.036164, 0.086793, 0.21652, 0.14742, 0.036855, 0.036855, 0.56203, 0.22957, 0.51526, 0.0051016, 0.24998, 0.31646, 0.1499, 0.2011, 0.052435, 0.014188, 0.22763, 0.016039, 0.022825, 0.27176, 0.7247, 0.69728, 0.012451, 0.28638, 0.40254, 0.14429, 0.033039, 0.090352, 0.0026971, 0.047199, 0.095746, 0.1416, 0.043153, 0.041545, 0.16659, 0.14459, 0.041749, 0.087367, 0.060281, 0.11486, 0.090218, 0.02118, 0.14968, 0.054172, 0.027697, 0.26768, 0.11897, 0.1041, 0.50562, 0.011482, 0.15665, 0.59585, 0.043059, 0.079556, 0.015583, 0.073815, 0.024195, 0.032594, 0.096132, 0.2459, 0.2525, 0.21496, 0.10315, 0.0016503, 0.004951, 0.047447, 0.00041259, 0.20289, 0.35355, 0.0047486, 0.20333, 0.069502, 0.054393, 0.04101, 0.043169, 0.02806, 0.78517, 0.17626, 0.037389, 0.39418, 0.40106, 0.000983, 0.037354, 0.16711, 0.99742, 0.77576, 0.2188, 0.99752, 0.15497, 0.18579, 0.010274, 0.48802, 0.076199, 0.0017123, 0.083049, 0.35829, 0.39927, 0.087599, 0.02331, 0.050003, 0.033461, 0.048499, 0.77294, 0.15559, 0.0050191, 0.065248, 0.01877, 0.75079, 0.22524, 0.25718, 0.26036, 0.086551, 0.1784, 0.01625, 0.050164, 0.040626, 0.040979, 0.069241, 0.14022, 0.28854, 0.53663, 0.035056, 0.69894, 0.0093192, 0.2889, 0.99856, 0.1561, 0.12734, 0.71683, 0.44469, 0.13925, 0.047554, 0.05369, 0.218, 0.021135, 0.0023862, 0.014147, 0.0056246, 0.019601, 0.026419, 0.0078404, 0.40127, 0.0022518, 0.10674, 0.16483, 0.022518, 0.17789, 0.011709, 0.079714, 0.033327, 0.82959, 0.13993, 0.029985, 0.55894, 0.31603, 0.012608, 0.00084051, 0.020172, 0.0042026, 0.063039, 0.023955, 0.99782, 0.33135, 0.18377, 0.16853, 0.12378, 0.19329, 0.37943, 0.10611, 0.025724, 0.10504, 0.29904, 0.042873, 0.041802, 0.10668, 0.23082, 0.18427, 0.43643, 0.042673, 0.40547, 0.26403, 0.00067354, 0.0026942, 0.25527, 0.00067354, 0.045801, 0.025595, 0.001428, 0.397, 0.0042841, 0.34559, 0.10282, 0.001428, 0.088539, 0.059978, 0.08353, 0.40124, 0.11896, 0.37962, 0.016781, 0.99523, 0.87836, 0.11457, 0.42423, 0.068794, 0.50449, 0.13958, 0.62115, 0.072119, 0.1675, 0.24491, 0.093461, 0.41795, 0.079889, 0.015423, 0.14004, 0.0077113, 0.0006169, 0.091751, 0.03806, 0.48254, 0.15632, 0.016991, 0.18758, 0.026506, 0.037038, 0.3598, 0.20635, 0.39683, 0.99347, 0.99635, 0.0064823, 0.65579, 0.12532, 0.21284, 0.99826, 0.9948, 0.3284, 0.12406, 0.072978, 0.47435, 0.9711, 0.027355, 0.99706, 0.21916, 0.27148, 0.23526, 0.13537, 0.027806, 0.057076, 0.041709, 0.01244, 0.71288, 0.28083, 0.14282, 0.85691, 0.99748, 0.15201, 0.088736, 0.17902, 0.39584, 0.14892, 0.0015432, 0.033951, 0.23422, 0.18483, 0.047891, 0.074082, 0.41905, 0.040408, 0.27798, 0.00027253, 0.25032, 0.30496, 0.059548, 0.021939, 0.0010901, 0.020304, 0.037745, 0.025754, 0.081096, 0.26581, 0.65327, 0.99356, 0.0010305, 0.022672, 0.76157, 0.21435, 0.63646, 0.10271, 0.0012131, 0.061058, 0.020218, 0.025474, 0.039627, 0.095833, 0.0028305, 0.014557, 0.99515, 0.95681, 0.040287, 0.25374, 0.74537, 0.99748, 0.21449, 0.18132, 0.28498, 0.058805, 0.056544, 0.042973, 0.054282, 0.02111, 0.0041465, 0.0818, 0.13395, 0.17135, 0.087034, 0.033318, 0.45897, 0.00067995, 0.040117, 0.00067995, 0.074115, 0.16516, 0.10322, 0.10499, 0.3598, 0.10794, 0.0064883, 0.15277, 0.20554, 0.0016443, 0.0016443, 0.17265, 0.29433, 0.01151, 0.31241, 0.10996, 0.0049983, 0.13495, 0.74974, 0.88542, 0.037678, 0.075355, 0.25167, 0.27982, 0.08558, 0.0050672, 0.021958, 0.15821, 0.040538, 0.046168, 0.11092, 0.99873, 0.84589, 0.15264, 0.23024, 0.67859, 0.090883, 0.27642, 0.71079, 0.0098721, 0.22897, 0.72506, 0.044521, 0.99498, 0.71873, 0.12977, 0.10213, 0.02534, 0.023804, 0.076495, 0.23559, 0.29772, 0.019393, 0.20937, 0.076854, 0.056025, 0.0079009, 0.02083, 0.9944, 0.99551, 0.99347, 0.15586, 0.092775, 0.068654, 0.68283, 0.90592, 0.080783, 0.01154, 0.053594, 0.48871, 0.3157, 0.00016748, 0.050412, 0.090607, 0.0008374, 0.99261, 0.34242, 0.6537, 0.14286, 0.34485, 0.51234, 0.010071, 0.98696, 0.10686, 0.27309, 0.14248, 0.47495, 0.12577, 0.026477, 0.84396, 0.0033096, 0.56197, 0.14824, 0.28925, 0.10096, 0.16346, 0.46634, 0.11058, 0.15865, 0.085846, 0.30904, 0.60092, 0.99557, 0.522, 0.1355, 0.0089643, 0.0034478, 0.012757, 0.28962, 0.019652, 0.00793, 0.096903, 0.63354, 0.17472, 0.092499, 0.0022023, 0.19169, 0.19099, 0.13217, 0.038752, 0.12387, 0.04498, 0.051208, 0.083041, 0.14394, 0.43056, 0.098365, 0.13374, 0.010354, 0.047457, 0.23038, 0.049183, 0.99558, 0.15165, 0.0094782, 0.18009, 0.46917, 0.18956, 0.99494, 0.12733, 0.15048, 0.052089, 0.013505, 0.19292, 0.067523, 0.13119, 0.26623, 0.0078909, 0.4255, 0.10258, 0.20941, 0.066162, 0.004249, 0.0048559, 0.13354, 0.023673, 0.022459, 0.99825, 0.1642, 0.1597, 0.31341, 0.072729, 0.26018, 0.029242, 0.00074979, 0.0015535, 0.19613, 0.35421, 0.10176, 0.27731, 0.010486, 0.04078, 0.017866, 0.85359, 0.012933, 0.12933, 0.42532, 0.57152, 0.99655, 0.99877, 0.56943, 0.16152, 0.023409, 0.076081, 0.10651, 0.014046, 0.04916, 0.99627, 0.23596, 0.14078, 0.035669, 0.14035, 0.0021106, 0.14078, 0.020473, 0.14204, 0.038413, 0.0094977, 0.093921, 0.19962, 0.143, 0.19962, 0.33046, 0.053679, 0.047808, 0.0033549, 0.023065, 0.57463, 0.41501, 0.9406, 0.057982, 0.01009, 0.0050449, 0.98376, 0.99643, 0.99924, 0.14331, 0.066142, 0.11465, 0.12787, 0.0022047, 0.44976, 0.070551, 0.026457, 0.20085, 0.51087, 0.2871, 0.0012063, 0.0073381, 0.99064, 0.91601, 0.079653, 0.27568, 0.18046, 0.16581, 0.13717, 0.011986, 0.18379, 0.045614, 0.99892, 0.38935, 0.19861, 0.0034998, 0.038935, 0.36573, 0.0039373, 0.50708, 0.13814, 0.079245, 0.10696, 0.059325, 0.014723, 0.035509, 0.029013, 0.030312, 0.19873, 0.12603, 0.18651, 0.13746, 0.05619, 0.18492, 0.032222, 0.024921, 0.021746, 0.03127, 0.35705, 0.58544, 0.056376, 0.0014455, 0.21096, 0.092332, 0.22112, 0.15568, 0.14851, 0.021215, 0.12879, 0.0092631, 0.011654, 0.010168, 0.20428, 0.076721, 0.00092435, 0.1026, 0.11277, 0.044369, 0.43999, 0.0083191, 0.79673, 0.19918, 0.17788, 0.1298, 0.0048075, 0.47594, 0.21153, 0.99748, 0.59798, 0.13042, 0.27192, 0.76685, 0.23138, 0.01878, 0.037559, 0.075118, 0.13146, 0.7324, 0.0036443, 0.0072887, 0.2223, 0.76713, 0.99972, 0.99551, 0.99443, 0.1285, 0.57824, 0.19275, 0.001367, 0.019821, 0.02734, 0.051946, 0.87049, 0.12695, 0.40086, 0.075496, 0.15542, 0.00031588, 0.022744, 0.24102, 0.078339, 0.026218, 0.023619, 0.70858, 0.14172, 0.1181, 0.33942, 0.071456, 0.021437, 0.56808, 0.0010222, 0.13697, 0.025554, 0.20648, 0.57344, 0.051108, 0.0051108, 0.076207, 0.2572, 0.44653, 0.14587, 0.0089305, 0.065491, 0.4858, 0.0055839, 0.10609, 0.40204, 0.15923, 0.23386, 0.57222, 0.03483, 0.25648, 0.13505, 0.19028, 0.11198, 0.019293, 0.070741, 0.11235, 0.012484, 0.091548, 0.13978, 0.6953, 0.16487, 0.24807, 0.21891, 0.0056237, 0.16371, 0.038324, 0.0016663, 0.21391, 0.0033326, 0.092062, 0.014372, 0.46015, 0.53684, 0.14772, 0.16561, 0.3529, 0.013552, 0.23716, 0.0075892, 0.060443, 0.015178, 0.25394, 0.1539, 0.37643, 0.071273, 0.028773, 0.052531, 0.010031, 0.034581, 0.019006, 0.27826, 0.52351, 0.19809, 0.061824, 0.12813, 0.784, 0.025984, 0.034694, 0.22186, 0.45102, 0.22916, 0.06391, 0.69821, 0.19706, 0.10461, 0.13682, 0.45764, 0.1321, 0.11323, 0.16041, 0.8086, 0.13608, 0.054953, 0.99764, 0.16008, 0.19198, 0.027914, 0.20679, 0.1709, 0.08773, 0.080325, 0.074628, 0.13862, 0.8609, 0.13264, 0.38068, 0.0065851, 0.36939, 0.00031358, 0.023205, 0.06052, 0.0047036, 0.022264, 0.52905, 0.2593, 0.2112, 0.15892, 0.063569, 0.77766, 0.64866, 0.20204, 0.099248, 0.049624, 0.99543, 0.37007, 0.014938, 0.4091, 0.11709, 0.0096372, 0.057341, 0.022165, 0.048051, 0.94901, 0.30594, 0.074316, 0.1796, 0.43475, 0.0049544, 0.68872, 0.30961, 0.012299, 0.9839, 0.46369, 0.53503, 0.99569, 0.99619, 0.99543, 0.71871, 0.27643, 0.57722, 0.041116, 0.077426, 0.13029, 0.00053397, 0.17354, 0.00099501, 0.2386, 0.097412, 0.21045, 0.28258, 0.0012935, 0.032039, 0.023084, 0.020497, 0.019303, 0.050049, 0.023681, 0.29729, 0.55181, 0.1064, 0.0031294, 0.041725, 0.99613, 0.99697, 0.30021, 0.18772, 0.48346, 0.028307, 0.99632, 0.1642, 0.0022189, 0.02108, 0.446, 0.22744, 0.067676, 0.049925, 0.022189, 0.28372, 0.0033378, 0.087896, 0.29429, 0.24477, 0.014464, 0.071763, 0.11192, 0.096071, 0.23374, 0.061406, 0.29118, 0.02377, 0.1347, 0.04754, 0.13976, 0.20964, 0.64638, 0.82688, 0.12427, 0.047797, 0.082386, 0.25866, 0.36531, 0.29187, 0.0012773, 0.006208, 0.13037, 0.074496, 0.45939, 0.086912, 0.24211, 0.99827, 0.72011, 0.04761, 0.2321, 0.73102, 0.26582, 0.11496, 0.48624, 0.21854, 0.089367, 0.005687, 0.017873, 0.067431, 0.14619, 0.0015977, 0.23566, 0.22367, 0.37385, 0.019172, 0.18027, 0.2483, 0.45494, 0.1165, 0.99646, 0.25075, 0.65195, 0.0033433, 0.093613, 0.26842, 0.73151, 0.30122, 0.2295, 0.071414, 0.30519, 0.039369, 0.015565, 0.037843, 0.28759, 0.217, 0.15276, 0.069004, 0.097377, 0.061286, 0.040403, 0.0070366, 0.060151, 0.0074905, 0.17837, 0.32285, 0.11861, 0.0012323, 0.23197, 0.0083178, 0.061613, 0.040973, 0.036352, 0.23041, 0.0012148, 0.27698, 0.34542, 0.0048594, 0.11177, 0.013363, 0.015793, 0.23456, 0.29269, 0.21315, 0.00050992, 0.11575, 0.037224, 0.10657, 0.089219, 0.26766, 0.10851, 0.44127, 0.094041, 0.93002, 0.03207, 0.03207, 0.82207, 0.15865, 0.014422, 0.99482, 0.0094319, 0.028689, 0.0058949, 0.086459, 0.18785, 0.013362, 0.45745, 0.12144, 0.08921, 0.067663, 0.068673, 0.0010099, 0.022218, 0.14139, 0.0090891, 0.49485, 0.080792, 0.11513, 0.72813, 0.012341, 0.018512, 0.11416, 0.1265, 0.85925, 0.13478, 0.15455, 0.28484, 0.18241, 0.00089856, 0.33336, 0.030551, 0.013478, 0.99632, 0.99449, 0.91743, 0.079776, 0.21055, 0.78479, 0.071696, 0.28175, 0.033961, 0.095595, 0.17107, 0.051571, 0.25786, 0.036477, 0.25112, 0.13147, 0.031303, 0.25808, 0.18434, 0.099475, 0.045216, 0.28803, 0.16307, 0.21305, 0.0068727, 0.25054, 0.023742, 0.02874, 0.026241, 0.76263, 0.23371, 0.49266, 0.50468, 0.11908, 0.062412, 0.19656, 0.077477, 0.24821, 0.070303, 0.15137, 0.074607, 0.82406, 0.083163, 0.090723, 0.22243, 0.16867, 0.099724, 0.086386, 0.093363, 0.093773, 0.12722, 0.03755, 0.070586, 0.53342, 0.26193, 0.039468, 0.11601, 0.050233, 0.76412, 0.23405, 0.01581, 0.55336, 0.42688, 0.21985, 0.0070919, 0.3475, 0.42551, 0.099765, 0.19299, 0.099765, 0.48411, 0.12266, 0.072928, 0.0015684, 0.35523, 0.099198, 0.0070576, 0.24231, 0.049011, 0.030975, 0.027446, 0.031367, 0.082731, 0.2165, 0.14706, 0.081699, 0.55556, 0.43289, 0.097876, 0.06292, 0.18233, 0.0013982, 0.00055929, 0.06348, 0.03132, 0.064039, 0.0632, 0.45089, 0.15692, 0.011663, 0.24943, 0.028628, 0.010338, 0.056991, 0.03552, 0.79365, 0.2051, 0.99539, 0.30856, 0.048573, 0.090688, 0.1168, 0.019935, 0.28919, 0.044081, 0.082265, 0.99689, 0.94242, 0.056264, 0.87842, 0.12128, 0.27646, 0.041424, 0.032119, 0.054932, 0.27526, 0.12878, 0.029717, 0.0054031, 0.098758, 0.023113, 0.03422, 0.99815, 0.06136, 0.17794, 0.2209, 0.53997, 0.1199, 0.26875, 0.61193, 0.99585, 0.73691, 0.17212, 0.090096, 0.0013447, 0.4485, 0.52325, 0.024917, 0.32116, 0.16475, 0.20771, 0.084252, 0.0012513, 0.070905, 0.074659, 0.075493, 0.078845, 0.34536, 0.10217, 0.47418, 0.98407, 0.012149, 0.76658, 0.0013496, 0.0040488, 0.041838, 0.18625, 0.0075103, 0.03098, 0.48348, 0.46564, 0.0028164, 0.0084491, 0.99974, 0.042373, 0.5601, 0.070879, 0.32358, 0.0030817, 0.17336, 0.02742, 0.34938, 0.09995, 0.31223, 0.038034, 0.71519, 0.15237, 0.054093, 0.061526, 0.01693, 0.87097, 0.12831, 0.25197, 0.020158, 0.48379, 0.15118, 0.09071, 0.9969, 0.76033, 0.14277, 0.045376, 0.049803, 0.0022135, 0.9443, 0.053654, 0.088108, 0.18495, 0.039688, 0.18733, 0.098427, 0.088108, 0.083345, 0.23099, 0.3978, 0.60093, 0.19823, 0.29115, 0.023971, 0.09696, 0.070565, 0.21708, 0.0010773, 0.066525, 0.023971, 0.010504, 0.46121, 0.11728, 0.010174, 0.30521, 0.0090433, 0.086759, 0.010456, 0.27175, 0.059192, 0.043049, 0.23139, 0.39551, 0.10282, 0.35826, 0.080425, 0.022848, 0.33632, 0.043868, 0.055749, 0.99539, 0.003067, 0.94156, 0.055205, 0.82651, 0.044015, 0.11493, 0.014672, 0.79548, 0.2031, 0.0028835, 0.25374, 0.023068, 0.42099, 0.19896, 0.10092, 0.20141, 0.36678, 0.14362, 0.092696, 0.13103, 0.057506, 0.0071524, 0.30298, 0.24308, 0.0017363, 0.045143, 0.29777, 0.071186, 0.038198, 0.18472, 0.2351, 0.064372, 0.2239, 0.099357, 0.19032, 0.0020991, 0.85361, 0.14227, 0.27399, 0.0077618, 0.14126, 0.014747, 0.3454, 0.074513, 0.063646, 0.07917, 0.162, 0.25872, 0.1354, 0.060448, 0.033851, 0.3506, 0.62201, 0.36589, 0.99857, 0.25214, 0.64716, 0.063035, 0.01821, 0.019611, 0.99637, 0.085312, 0.049765, 0.54208, 0.19195, 0.13152, 0.99313, 0.99688, 0.19768, 0.050831, 0.70598, 0.045183, 0.056557, 0.033515, 0.29116, 0.52996, 0.087978, 0.83343, 0.16475, 0.11033, 0.12491, 0.28104, 0.10825, 0.37472, 0.24666, 0.046899, 0.16762, 0.5376, 0.0008685, 0.9986, 0.093675, 0.1493, 0.45667, 0.28981, 0.011709, 0.20856, 0.11817, 0.11325, 0.052053, 0.0721, 0.36261, 0.038688, 0.034819, 0.74117, 0.25356, 0.21186, 0.0037403, 0.064387, 0.13626, 0.042747, 0.046754, 0.15068, 0.088699, 0.12877, 0.1261, 0.65592, 0.1443, 0.19677, 0.078038, 0.058529, 0.85842, 0.091605, 0.28839, 0.61749, 0.78731, 0.20797, 0.073897, 0.72381, 0.0018948, 0.15916, 0.041685, 0.99612, 0.057055, 0.39938, 0.5387, 0.0053074, 0.79529, 0.19882, 0.1974, 0.053836, 0.11964, 0.16151, 0.46658, 0.25099, 0.076801, 0.4137, 0.1924, 0.0063341, 0.043547, 0.016231, 0.29773, 0.12822, 0.00031046, 0.036014, 0.1425, 0.079168, 0.21018, 0.058056, 0.047811, 0.34266, 0.65268, 0.32742, 0.19739, 0.0001271, 0.31915, 0.094056, 0.011312, 0.024404, 0.0066093, 0.014744, 0.004957, 0.4873, 0.064572, 0.20498, 0.03529, 0.10887, 0.099862, 0.99312, 0.23114, 0.2109, 0.12888, 0.10838, 0.093601, 0.032221, 0.066173, 0.0051927, 0.058584, 0.064975, 0.00071683, 0.6387, 0.07455, 0.011469, 0.091038, 0.061648, 0.12186, 0.18827, 0.03225, 0.46806, 0.20832, 0.10372, 0.99637, 0.99739, 0.3327, 0.49016, 0.022857, 0.15492, 0.65762, 0.30066, 0.042221, 0.016664, 0.13331, 0.051506, 0.053021, 0.17876, 0.13028, 0.43629, 0.99686, 0.99494, 0.99826, 0.92563, 0.073723, 0.58851, 0.41196, 0.2311, 0.17137, 0.20763, 0.070396, 0.28087, 0.039109, 0.20267, 0.7973, 0.99809, 0.74657, 0.25268, 0.99279, 0.79687, 0.034433, 0.11478, 0.052469, 0.0016396, 0.018314, 0.33698, 0.18314, 0.40291, 0.058605, 0.29728, 0.68374, 0.014864, 0.15144, 0.033594, 0.0010665, 0.14397, 0.095982, 0.075719, 0.22183, 0.062388, 0.038393, 0.020796, 0.15517, 0.0070806, 0.83551, 0.15577, 0.73687, 0.26178, 0.31299, 0.30022, 0.091426, 0.0090602, 0.12643, 0.0098838, 0.002471, 0.096367, 0.050655, 0.0069339, 0.31738, 0.31202, 0.16452, 0.031202, 0.049483, 0.013868, 0.047907, 0.052634, 0.0040973, 0.99554, 0.16491, 0.022428, 0.1372, 0.20185, 0.20053, 0.063325, 0.21108, 0.99758, 0.4277, 0.11476, 0.2382, 0.0043421, 0.060789, 0.095836, 0.010855, 0.023882, 0.023571, 0.43031, 0.17917, 0.2733, 0.039251, 0.030165, 0.047973, 0.068676, 0.010565, 0.035218, 0.0052827, 0.0070436, 0.24301, 0.028175, 0.60223, 0.079532, 0.079532, 0.84111, 0.82552, 0.12976, 0.041414, 0.0027609, 0.1741, 0.78343, 0.030132, 0.010044, 0.31843, 0.1375, 0.53553, 0.0072369, 0.34498, 0.063885, 0.53664, 0.051108, 0.79185, 0.20726, 0.24614, 0.061737, 0.17871, 0.23964, 0.002437, 0.037367, 0.040616, 0.16734, 0.026807, 0.069106, 0.77552, 0.15165, 0.0038392, 0.27797, 0.6886, 0.031587, 0.99816, 0.99603, 0.85208, 0.1464, 0.0016449, 0.99802, 0.99637, 0.0049946, 0.99393, 0.11641, 0.8831, 0.99698, 0.996, 0.26893, 0.036554, 0.69452, 0.066055, 0.62465, 0.10913, 0.050259, 0.15078, 0.9815, 0.015831, 0.99655, 0.12844, 0.24975, 0.049951, 0.57086, 0.44129, 0.55837, 0.0021843, 0.15727, 0.23372, 0.24901, 0.013106, 0.34512, 0.43628, 0.087075, 0.1681, 0.014513, 0.090703, 0.049584, 0.01421, 0.060469, 0.04898, 0.030234, 0.23861, 0.69002, 0.070937, 0.011959, 0.08252, 0.34443, 0.055014, 0.35759, 0.10764, 0.040662, 0.09104, 0.05395, 0.052264, 0.16859, 0.097784, 0.055636, 0.36079, 0.1197, 0.91255, 0.085551, 0.99329, 0.35214, 0.26802, 0.21564, 0.06691, 0.054292, 0.013, 0.029823, 0.56187, 0.32999, 0.0083861, 0.090151, 0.0092248, 0.1957, 0.059907, 0.61105, 0.087864, 0.045929, 0.99673, 0.12834, 0.053863, 0.18785, 0.44819, 0.098083, 0.045218, 0.023606, 0.01064, 0.0039898, 0.26977, 0.18394, 0.012262, 0.45984, 0.073575, 0.007504, 0.26264, 0.71288, 0.015008, 0.079772, 0.084995, 0.0075973, 0.43542, 0.18661, 0.00047483, 0.14008, 0.065052, 0.99844, 0.99551, 0.10552, 0.0084412, 0.1435, 0.21103, 0.0042206, 0.054868, 0.47271, 0.0098103, 0.081986, 0.30272, 0.10301, 0.0028029, 0.1878, 0.10791, 0.021022, 0.17658, 0.0070073, 0.13139, 0.023101, 0.037058, 0.25555, 0.27625, 0.046202, 0.1978, 0.011069, 0.007219, 0.014438, 0.22951, 0.077048, 0.0086065, 0.27295, 0.022131, 0.15942, 0.13279, 0.076229, 0.021311, 0.00021465, 0.41621, 0.11055, 0.20199, 0.16657, 0.0047223, 0.0045077, 0.067615, 0.00064396, 0.026831, 0.15463, 0.44506, 0.10353, 0.062523, 0.00067229, 0.089415, 0.00067229, 0.07933, 0.06454, 0.34696, 0.42035, 0.0033361, 0.23019, 0.99744, 0.87188, 0.12725, 0.99313, 0.0040772, 0.010193, 0.35267, 0.21813, 0.41383, 0.99568, 0.27571, 0.72108, 0.26829, 0.13808, 0.041535, 0.44847, 0.10384, 0.3642, 0.073204, 0.0072599, 0.14278, 0.37872, 0.03388, 0.99363, 0.22491, 0.29884, 0.4696, 0.0062475, 0.71136, 0.11507, 0.17261, 0.90747, 0.08993, 0.018653, 0.39693, 0.15519, 0.24174, 0.11788, 0.01828, 0.01716, 0.0093263, 0.024994, 0.27104, 0.13145, 0.22461, 0.00030149, 0.28852, 0.0072357, 0.03437, 0.011457, 0.027435, 0.0036178, 0.65995, 0.15413, 0.14585, 0.040342, 0.85737, 0.13779, 0.10682, 0.77825, 0.11445, 0.30611, 0.096594, 0.099861, 0.31311, 0.072329, 0.0041997, 0.0037331, 0.012133, 0.091928, 0.5031, 0.14438, 0.10928, 0.030619, 0.057279, 0.044609, 0.01531, 0.092121, 0.0036954, 0.2808, 0.71902, 0.15768, 0.25397, 0.58887, 0.15668, 0.1481, 0.69542, 0.99707, 0.034908, 0.96347, 0.38416, 0.19063, 0.21155, 0.0017436, 0.00058119, 0.0023247, 0.026735, 0.17901, 0.0034871, 0.33452, 0.053275, 0.013629, 0.12761, 0.22177, 0.019823, 0.23045, 0.076304, 0.07453, 0.025287, 0.30832, 0.0044363, 0.073199, 0.022181, 0.22714, 0.13265, 0.0244, 0.031498, 0.99551, 0.99737, 0.95158, 0.036251, 0.0090627, 0.87381, 0.0083618, 0.11707, 0.17649, 0.39773, 0.080375, 0.058831, 0.19721, 0.08949, 0.33655, 0.13711, 0.52352, 0.4096, 0.58814, 0.88762, 0.10479, 0.006164, 0.77315, 0.10038, 0.001195, 0.071699, 0.01673, 0.037044, 0.15844, 0.10262, 0.45783, 0.27177, 0.0090213, 0.38863, 0.072342, 0.1245, 0.093372, 0.32134, 0.86728, 0.13179, 0.29743, 0.19494, 0.10965, 0.065936, 0.012184, 0.0007167, 0.16986, 0.14907, 0.076652, 0.40881, 0.51101, 0.99364, 0.83262, 0.16459, 0.45619, 0.50883, 0.035092, 0.33173, 0.35375, 0.030397, 0.11824, 0.047869, 0.037099, 0.042125, 0.0093345, 0.029679, 0.61711, 0.37868, 0.12477, 0.77276, 0.0020124, 0.054335, 0.046285, 0.020259, 0.040518, 0.861, 0.078503, 0.54145, 0.035685, 0.0042821, 0.00047579, 0.41489, 0.0028548, 0.76262, 0.2337, 0.13014, 0.73421, 0.079636, 0.056328, 0.23944, 0.27801, 0.15594, 0.20745, 0.0025873, 0.015053, 0.076677, 0.013877, 0.0094082, 0.0014112, 0.21894, 0.77847, 0.42951, 0.31927, 0.0434, 0.20503, 0.0024943, 0.81396, 0.18314, 0.87859, 0.12006, 0.0037118, 0.0018559, 0.84257, 0.15218, 0.99714, 0.9949, 0.99571, 0.99883, 0.99606, 0.59882, 0.097902, 0.26668, 0.026427, 0.0012012, 0.0090094, 0.17564, 0.074514, 0.24483, 0.074514, 0.43111, 0.083249, 0.32297, 0.24975, 0.004012, 0.003009, 0.21564, 0.009027, 0.11334, 0.26123, 0.00078921, 0.48773, 0.15232, 0.03946, 0.036303, 0.0023676, 0.01973, 0.99518, 0.9949, 0.36932, 0.62624, 0.99938, 0.85189, 0.14582, 0.99295, 0.14635, 0.23065, 0.10926, 0.031698, 0.26842, 0.025628, 0.11263, 0.00067442, 0.075535, 0.032112, 0.24314, 0.32571, 0.39911, 0.018586, 0.67839, 0.30202, 0.5525, 0.2638, 0.18417, 0.87702, 0.12059, 0.33611, 0.066645, 0.18984, 0.20397, 0.064049, 0.037217, 0.09463, 0.00086552, 0.0066357, 0.89937, 0.10043, 0.13887, 0.14942, 0.69084, 0.021094, 0.1835, 0.025671, 0.21487, 0.0019015, 0.25861, 0.26526, 0.04944, 0.99688, 0.00024063, 0.39945, 0.19515, 0.059195, 0.19323, 0.035613, 0.069302, 0.047645, 0.28413, 0.28258, 0.34944, 0.079544, 0.0043331, 0.98303, 0.012935, 0.447, 0.55096, 0.99655, 0.99723, 0.9975, 0.99364, 0.74411, 0.24804, 0.0062009, 0.37962, 0.13555, 0.12073, 0.085426, 0.19352, 0.083246, 0.0021792, 0.29146, 0.096303, 0.31582, 0.25039, 0.002266, 0.023509, 0.020394, 0.99848, 0.46311, 0.53435, 0.10834, 0.11131, 0.61443, 0.097952, 0.059365, 0.0089048, 0.32191, 0.044097, 0.082315, 0.013229, 0.017639, 0.016169, 0.1367, 0.0044097, 0.36307, 0.14394, 0.040886, 0.043126, 0.55448, 0.14954, 0.056568, 0.011762, 0.00080056, 0.04243, 0.18573, 0.051236, 0.16091, 0.060042, 0.49715, 0.0016011, 0.15537, 0.086719, 0.00060221, 0.036735, 0.027702, 0.15898, 0.062028, 0.015658, 0.36494, 0.00060221, 0.031315, 0.060221, 0.11878, 0.060773, 0.15746, 0.34254, 0.059391, 0.26243, 0.23833, 0.19535, 0.56652, 0.02419, 0.11826, 0.09945, 0.084219, 0.13618, 0.040317, 0.17202, 0.10841, 0.059132, 0.15858, 0.065982, 0.1828, 0.64251, 0.091942, 0.015143, 0.0010817, 0.012166, 0.00076037, 0.14903, 0.11634, 0.029654, 0.066152, 0.25472, 0.21442, 0.11177, 0.030415, 0.014447, 0.0022494, 0.19626, 0.0028118, 0.1957, 0.0011247, 0.15015, 0.257, 0.016871, 0.14509, 0.02137, 0.011809, 0.064086, 0.8739, 0.061173, 0.99758, 0.15681, 0.094838, 0.2986, 0.37841, 0.01831, 0.032865, 0.020188, 0.092802, 0.27678, 0.0016281, 0.078149, 0.11071, 0.084661, 0.066752, 0.28817, 0.73042, 0.15793, 0.098705, 0.0098705, 0.23622, 0.029528, 0.57948, 0.15502, 0.020708, 0.33133, 0.64196, 0.68109, 0.085136, 0.23219, 0.74804, 0.24935, 0.026106, 0.38546, 0.18571, 0.22151, 0.10442, 0.0094931, 0.0077132, 0.030853, 0.028875, 0.18015, 0.24832, 0.5721, 0.77574, 0.2188, 0.99356, 0.78503, 0.21471, 0.33177, 0.17486, 0.072619, 0.074613, 0.32294, 0.023352, 0.12968, 0.011944, 0.047775, 0.17063, 0.12285, 0.36173, 0.15527, 0.71348, 0.28607, 0.097511, 0.29016, 0.020029, 0.0026354, 0.15417, 0.107, 0.04981, 0.10753, 0.14468, 0.026354, 0.44348, 0.24394, 0.1642, 0.038635, 0.012741, 0.043567, 0.0448, 0.0086312, 0.12048, 0.1698, 0.48192, 0.080858, 0.0080858, 0.1035, 0.035578, 0.5395, 0.23477, 0.028603, 0.036304, 0.12761, 0.033444, 0.81536, 0.17898, 0.32943, 0.066637, 0.33797, 0.1593, 0.0014577, 0.0081213, 0.097039, 0.99875, 0.21759, 0.10305, 0.32902, 0.00019463, 0.16027, 0.027442, 0.057609, 0.022382, 0.0050603, 0.023939, 0.025107, 0.028124, 0.25568, 0.67793, 0.065857, 0.40906, 0.40906, 0.063571, 0.11885, 0.99757, 0.25229, 0.74768, 0.25456, 0.13364, 0.61093, 0.87828, 0.014638, 0.087828, 0.014638, 0.30363, 0.029703, 0.09461, 0.13531, 0.30693, 0.084709, 0.045105, 0.88704, 0.088704, 0.017741, 0.14769, 0.72305, 0.0030768, 0.12615, 0.99554, 0.99595, 0.62056, 0.08656, 0.22849, 0.054736, 0.010184, 0.24437, 0.40549, 0.33101, 0.0077886, 0.0097357, 0.0014604, 0.30384, 0.0012351, 0.54346, 0.065463, 0.062992, 0.023468, 0.27292, 0.018822, 0.050192, 0.27606, 0.003137, 0.37958, 0.997, 0.83098, 0.1647, 0.0037432, 0.99781, 0.78017, 0.21455, 0.86342, 0.13491, 0.99852, 0.16032, 0.7841, 0.052468, 0.0029149, 0.037134, 0.25939, 0.63292, 0.070992, 0.0025102, 0.14747, 0.37402, 0.0075306, 0.18889, 0.10104, 0.0087857, 0.0081581, 0.017571, 0.12551, 0.0087857, 0.010668, 0.98432, 0.011859, 0.38938, 0.014976, 0.034037, 0.22464, 0.066713, 0.038122, 0.23281, 0.90769, 0.088248, 0.07042, 0.48121, 0.446, 0.74027, 0.25325, 0.41899, 0.13411, 0.13032, 0.26518, 0.034095, 0.017426, 0.57469, 0.41505, 0.9937, 0.31913, 0.00053636, 0.0177, 0.48648, 0.17592, 0.020608, 0.61508, 0.042802, 0.0031705, 0.090359, 0.19499, 0.0095115, 0.023779, 0.55154, 0.17543, 0.27226, 0.18618, 0.32549, 0.26267, 0.00065099, 0.026039, 0.19888, 0.99261, 0.7143, 0.075495, 0.092917, 0.11615, 0.99261, 0.99329, 0.42591, 0.036306, 0.11516, 0.40054, 0.0058558, 0.0074174, 0.0085885, 0.074803, 0.074803, 0.85004, 0.3024, 0.66129, 0.0011077, 0.035446, 0.73672, 0.077412, 0.0008698, 0.024354, 0.15743, 0.0034792, 0.13759, 0.2452, 0.2859, 0.0034712, 0.13885, 0.002209, 0.074474, 0.023668, 0.011676, 0.048282, 0.029032, 0.60944, 0.19352, 0.038399, 0.13078, 0.027754, 0.3458, 0.025774, 0.2019, 0.094505, 0.33292, 0.99514, 0.92598, 0.0092784, 0.064949, 0.99357, 0.0052293, 0.82167, 0.17766, 0.90601, 0.093323, 0.64012, 0.12575, 0.027072, 0.14671, 0.060257, 0.99815, 0.99329, 0.078355, 0.12613, 0.68991, 0.10511, 0.99248, 0.91063, 0.080587, 0.0080587, 0.99767, 0.032905, 0.021937, 0.94329, 0.99261, 0.64264, 0.24099, 0.11246, 0.89615, 0.10313, 0.097013, 0.2247, 0.25573, 0.01284, 0.088453, 0.021757, 0.24182, 0.020687, 0.037093, 0.99673, 0.5064, 0.22192, 0.0029661, 0.043683, 0.030201, 0.021842, 0.052582, 0.12053, 0.11284, 0.64317, 0.06018, 0.067702, 0.1166, 0.78337, 0.13115, 0.085072, 0.050829, 0.21949, 0.25107, 0.17482, 0.084715, 0.043898, 0.014633, 0.16096, 0.35788, 0.14106, 0.056163, 0.12147, 0.04702, 0.0082721, 0.0056598, 0.26253, 0.67228, 0.10473, 0.010135, 0.14189, 0.070944, 0.99927, 0.84269, 0.11821, 0.015252, 0.019065, 0.0038131, 0.99836, 0.53209, 0.2491, 0.062642, 0.00073697, 0.050114, 0.10539, 0.8093, 0.18984, 0.43405, 0.29412, 0.032992, 0.092425, 0.073472, 0.064814, 0.0079555, 0.76985, 0.080432, 0.14937, 0.23865, 0.76068, 0.0037017, 0.12771, 0.0018508, 0.099945, 0.20914, 0.24061, 0.31649, 0.99543, 0.99852, 0.21444, 0.16849, 0.6127, 0.18211, 0.22999, 0.028637, 0.10247, 0.33335, 0.048772, 0.060853, 0.014766, 0.80689, 0.19111, 0.27465, 0.12206, 0.061032, 0.54166, 0.70432, 0.042259, 0.25355, 0.1506, 0.13783, 0.70959, 0.76661, 0.0024571, 0.029485, 0.0172, 0.18428, 0.12049, 0.87786, 0.89049, 0.049472, 0.057717, 0.40389, 0.027383, 0.56819, 0.31149, 0.10443, 0.23799, 0.024202, 0.11563, 0.027339, 0.08381, 0.07888, 0.016583, 0.40082, 0.17679, 0.00039862, 0.036673, 0.056007, 0.21127, 0.0099656, 0.0071752, 0.054213, 0.039065, 0.0073745, 0.49266, 0.50412, 0.45993, 0.53658, 0.34834, 0.34391, 0.083394, 0.061992, 0.14723, 0.000738, 0.014391, 0.13062, 0.15944, 0.18244, 0.28576, 0.020237, 0.01901, 0.11682, 0.0070521, 0.018703, 0.009505, 0.044766, 0.0061323, 0.74553, 0.096821, 0.15491, 0.99831, 0.066477, 0.62767, 0.12832, 0.17779, 0.99261, 0.033304, 0.19982, 0.69463, 0.071366, 0.99665, 0.99615, 1, 0.09343, 0.081375, 0.11151, 0.64497, 0.069319, 0.095351, 0.63653, 0.02577, 0.23709, 0.0051541, 0.99878, 0.20739, 0.24426, 0.48391, 0.064521, 0.20179, 0.12704, 0.00040847, 0.0964, 0.13725, 0.088639, 0.042481, 0.19117, 0.081695, 0.012254, 0.021649, 0.017283, 0.21936, 0.11035, 0.14491, 0.082428, 0.14358, 0.066474, 0.0053179, 0.21139, 0.12609, 0.20715, 0.02702, 0.045033, 0.22066, 0.37377, 0.81326, 0.18327, 0.20712, 0.14568, 0.071964, 0.19483, 0.021063, 0.35982, 0.87002, 0.1275, 0.99584, 0.68968, 0.25164, 0.05592, 0.012147, 0.98391, 0.99494, 0.99902, 0.86417, 0.13374, 0.77431, 0.22465, 0.024184, 0.72552, 0.24184, 0.99822, 0.266, 0.21568, 0.51763, 0.99706, 0.010431, 0.011659, 0.65349, 0.21353, 0.11106, 0.019019, 0.069104, 0.039941, 0.53318, 0.050084, 0.083685, 0.073542, 0.13123, 0.99673, 0.9937, 0.85346, 0.012931, 0.12931, 0.97229, 0.027692, 0.5537, 0.33353, 0.11335, 0.15136, 0.28906, 0.12898, 0.26023, 0.0030348, 0.037176, 0.017829, 0.052729, 0.059937, 0.2247, 0.00023678, 0.25407, 0.09708, 0.13307, 0.013496, 0.15888, 0.10182, 0.016811, 0.99604, 0.67075, 0.0031941, 0.12137, 0.20123, 0.0031941, 0.20295, 0.17454, 0.52971, 0.012177, 0.0060886, 0.018266, 0.056827, 0.11814, 0.6582, 0.2194, 0.0076184, 0.99039, 0.857, 0.14126, 0.14638, 0.28831, 0.36633, 0.1984, 0.99883, 0.99312, 0.14376, 0.5319, 0.028751, 0.2947, 0.85054, 0.0077322, 0.13918, 0.023251, 0.31667, 0.17324, 0.25936, 0.00065495, 0.027836, 0.0052396, 0.015391, 0.06746, 0.0298, 0.073355, 0.0078594, 0.14115, 0.3941, 0.12827, 0.092728, 0.052546, 0.1154, 0.074698, 0.0010303, 0.00051516, 0.17632, 0.72334, 0.09946, 0.042719, 0.01424, 0.12816, 0.38447, 0.42719, 0.013867, 0.98453, 0.99834, 0.068956, 0.72059, 0.020687, 0.068956, 0.12067, 0.77555, 0.22159, 0.11933, 0.63726, 0.0050777, 0.0025389, 0.23611, 0.76881, 0.1284, 0.057781, 0.044941, 0.25316, 0.023999, 0.020903, 0.13238, 0.3778, 0.13548, 0.056515, 0.99748, 0.83401, 0.017595, 0.1478, 0.0066124, 0.99186, 0.23338, 0.42446, 0.0030211, 0.11631, 0.036253, 0.17598, 0.011329, 0.79144, 0.20293, 0.14744, 0.22467, 0.50199, 0.11936, 0.0070209, 0.28709, 0.071116, 0.26108, 0.2964, 0.036513, 0.011694, 0.026967, 0.0093072, 0.0028831, 0.094278, 0.143, 0.27361, 0.11186, 0.030849, 0.12859, 0.087647, 0.096584, 0.017587, 0.013262, 0.19935, 0.027184, 0.027184, 0.74665, 0.94678, 0.04983, 0.29182, 0.47635, 0.18811, 0.030755, 0.012874, 0.67097, 0.055914, 0.1781, 0.0020709, 0.09319, 0.009331, 0.24261, 0.0041471, 0.38776, 0.024883, 0.25401, 0.076722, 0.2616, 0.20697, 0.29768, 0.16504, 0.00016705, 0.064648, 0.0038421, 0.32265, 0.63072, 0.045572, 0.26168, 0.72198, 0.015764, 0.32555, 0.12544, 0.54955, 0.13129, 0.78773, 0.080866, 0.014522, 0.16421, 0.022342, 0.64455, 0.046917, 0.10724, 0.99494, 0.99515, 0.99494, 0.13473, 0.30148, 0.11718, 0.37275, 0.014178, 0.033331, 0.020656, 0.0056334, 0.35588, 0.25958, 0.059148, 0.21784, 0.011902, 0.026328, 0.001623, 0.034082, 0.0275, 0.006041, 0.15099, 0.10307, 0.30424, 0.019439, 0.36753, 0.022604, 0.032097, 0.85325, 0.14654, 0.43461, 0.56243, 0.1788, 0.10042, 0.1984, 0.12492, 0.31106, 0.017962, 0.01388, 0.054702, 0.99802, 0.037277, 0.83704, 0.12539, 0.11778, 0.0090601, 0.70064, 0.15704, 0.0151, 0.02359, 0.14586, 0.0073095, 0.0046515, 0.21763, 0.27178, 0.1525, 0.023922, 0.12958, 0.0073095, 0.015616, 0.2482, 0.11671, 0.097652, 0.16918, 0.11307, 0.037048, 0.13192, 0.038333, 0.024841, 0.0079236, 0.015419, 0.035776, 0.18661, 0.77739, 0.11177, 0.09729, 0.22411, 0.040537, 0.1135, 0.34631, 0.015636, 0.0057911, 0.045749, 0.078241, 0.34459, 0.14538, 0.026358, 0.18034, 0.074079, 0.058819, 0.033017, 0.057987, 0.0005549, 0.0011098, 0.82319, 0.1726, 0.99857, 0.82936, 0.16868, 0.55151, 0.068939, 0.37916, 0.39414, 0.069631, 0.062405, 0.14714, 0.24896, 0.068317, 0.0098534, 0.79269, 0.086475, 0.1201, 0.92986, 0.012182, 0.012182, 0.044666, 0.77615, 0.0063101, 0.20508, 0.01262, 0.14496, 0.25718, 0.12158, 0.04676, 0.10989, 0.01169, 0.30861, 0.1169, 0.66409, 0.21888, 0.79287, 0.15013, 0.056298, 0.50802, 0.0030368, 0.075921, 0.15791, 0.013883, 0.22082, 0.02039, 0.0055362, 0.18546, 0.58545, 0.001384, 0.076123, 0.14533, 0.001384, 0.99261, 0.99935, 0.90281, 0.015839, 0.079194, 0.4455, 0.4958, 0.057484, 0.39924, 0.59886, 0.99746, 0.27152, 0.0048487, 0.7079, 0.014546, 0.99896, 0.25311, 0.0039343, 0.47343, 0.14819, 0.031475, 0.09049, 0.036476, 0.96055, 0.24494, 0.17327, 0.24698, 0.047349, 0.11005, 0.026362, 0.018172, 0.034296, 0.004095, 0.064497, 0.00051188, 0.029689, 0.99664, 0.19002, 0.52833, 0.025611, 0.12021, 0.071049, 0.065266, 0.13325, 0.097328, 0.37309, 0.056775, 0.003476, 0.23405, 0.011587, 0.0011587, 0.090376, 0.19885, 0.12796, 0.16369, 0.23228, 0.031701, 0.19136, 0.0057639, 0.027955, 0.020462, 0.77576, 0.2188, 0.99923, 0.99808, 0.093006, 0.28105, 0.2246, 0.068231, 0.040208, 0.033303, 0.064576, 0.037365, 0.05158, 0.091788, 0.014621, 0.086176, 0.13135, 0.20247, 0.22713, 0.070799, 0.033317, 0.1448, 0.01826, 0.085856, 0.052328, 0.0595, 0.2364, 0.12484, 0.08314, 0.11555, 0.059234, 0.036656, 0.080218, 0.12059, 0.03214, 0.13959, 0.040283, 0.36302, 0.13209, 0.06464, 0.1616, 0.098366, 0.99844, 0.99356, 0.99664, 0.11216, 0.098625, 0.59175, 0.02514, 0.094757, 0.077353, 0.34429, 0.15302, 0.4973, 0.99282, 0.069635, 0.33549, 0.21121, 0.24649, 0.036893, 0.018446, 0.066868, 0.014988, 0.34322, 0.16591, 0.4127, 0.078806, 0.83654, 0.084164, 0.012752, 0.0076513, 0.05866, 0.33304, 0.055507, 0.61058, 0.069454, 0.3519, 0.57878, 0.0061512, 0.27157, 0.097964, 0.00091129, 0.0034174, 0.10138, 0.20048, 0.07017, 0.11596, 0.026883, 0.032351, 0.072904, 0.26788, 0.0058875, 0.15013, 0.18546, 0.038269, 0.029437, 0.32381, 0.15101, 0.12081, 0.011326, 0.63426, 0.0094384, 0.07362, 0.99603, 0.44503, 0.094277, 0.058289, 0.025343, 0.13787, 0.22454, 0.013178, 0.0015206, 0.11859, 0.12864, 0.13156, 0.15458, 0.10535, 0.15591, 0.03997, 0.074116, 0.0002647, 0.042881, 0.048175, 0.99842, 0.73351, 0.17373, 0.091689, 0.010079, 0.37293, 0.5846, 0.030238, 0.036943, 0.32984, 0.24423, 0.1293, 0.061278, 0.012901, 0.027267, 0.11816, 0.028733, 0.011435, 0.25364, 0.11549, 0.0090584, 0.23325, 0.020381, 0.081526, 0.0033969, 0.28194, 0.0011323, 0.22872, 0.35843, 0.020617, 0.087406, 0.11318, 0.0090198, 0.080104, 0.017395, 0.012885, 0.020187, 0.035864, 0.016536, 0.18233, 0.1578, 0.16839, 0.028437, 0.39867, 0.0368, 0.027879, 0.0059102, 0.97519, 0.017731, 0.18269, 0.81713, 0.0674, 0.001685, 0.02696, 0.50382, 0.089305, 0.096888, 0.12216, 0.091833, 0.021264, 0.30936, 0.058991, 0.11181, 0.087114, 0.35943, 0.052131, 0.67399, 0.32553, 0.0025403, 0.00042338, 0.27943, 0.20576, 0.17104, 0.27265, 0.0021169, 0.011008, 0.00042338, 0.03133, 0.023286, 0.14723, 0.039138, 0.0027956, 0.40257, 0.00093187, 0.29261, 0.041002, 0.027024, 0.047525, 0.24065, 0.068301, 0.0001391, 0.33371, 0.22605, 0.054668, 0.0090418, 0.021839, 0.040619, 0.0051469, 0.010533, 0.092165, 0.097432, 0.036866, 0.1185, 0.18696, 0.45819, 0.23959, 0.014005, 0.30862, 0.31712, 0.00050019, 0.0050019, 0.054021, 0.015506, 0.014005, 0.031512, 0.30434, 0.16231, 0.52752, 0.2555, 0.19095, 0.12909, 0.067237, 0.3577, 0.8703, 0.12538, 0.0036877, 0.32897, 0.52302, 0.10141, 0.045196, 0.001574, 0.99843, 0.23064, 0.19114, 0.44923, 0.087369, 0.027449, 0.014729, 0.98522, 0.011324, 0.18606, 0.80626, 0.006202, 0.28946, 0.094224, 0.45329, 0.093375, 0.069607, 0.003635, 0.046347, 0.094511, 0.60705, 0.00090876, 0.24718, 0.82657, 0.17167, 0.99804, 0.31491, 0.68506, 0.092788, 0.075974, 0.0093411, 0.63084, 0.11458, 0.014946, 0.037364, 0.024287, 0.19297, 0.8066, 0.99735, 0.82278, 0.17713, 0.68425, 0.31581, 0.99664, 0.11112, 0.66962, 0.0058482, 0.21346, 0.25031, 0.0049567, 0.7435, 0.99706, 0.34382, 0.15648, 0.29502, 0.10862, 0.023929, 0.032745, 0.027392, 0.012279, 0.21462, 0.21611, 0.082384, 0.20387, 0.03761, 0.10477, 0.090145, 0.024477, 0.02567, 0.3009, 0.0040052, 0.18114, 0.22364, 0.081395, 0.054134, 0.093282, 0.037597, 0.0024548, 0.021447, 0.24592, 0.064804, 0.49462, 0.025479, 0.12518, 0.031017, 0.0049849, 0.0083082, 0.51975, 0.020365, 0.23995, 0.22047, 0.84685, 0.0058403, 0.075924, 0.070084, 0.024011, 0.63458, 0.23782, 0.040018, 0.014864, 0.049165, 0.64151, 0.057973, 0.014256, 0.049895, 0.058923, 0.018057, 0.019483, 0.03659, 0.079357, 0.024235, 0.99608, 0.47628, 0.52259, 0.9904, 0.007503, 0.046278, 0.27062, 0.12521, 0.14659, 0.096315, 0.10595, 0.036882, 0.058259, 0.038526, 0.075408, 0.34206, 0.028604, 0.025029, 0.15017, 0.039331, 0.097731, 0.075086, 0.03218, 0.20976, 0.077362, 0.88193, 0.038681, 0.99407, 0.9969, 0.89028, 0.10991, 0.33069, 0.0082646, 0.26949, 0.14929, 0.095304, 0.031175, 0.021237, 0.01224, 0.00010462, 0.045821, 0.019668, 0.016843, 0.59665, 0.12785, 0.012971, 0.14453, 0.11859, 0.13046, 0.026921, 0.059019, 0.74447, 0.039346, 0.9931, 0.13805, 0.37024, 0.30717, 0.044868, 0.011295, 0.11923, 0.009099, 0.26871, 0.53446, 0.062353, 0.083138, 0.051961, 0.17542, 0.82415, 0.44861, 0.025589, 0.050379, 0.0063973, 0.0031987, 0.46621, 0.10965, 0.0066456, 0.29905, 0.12627, 0.076425, 0.38212, 0.010336, 0.19897, 0.68733, 0.10336, 0.84255, 0.15691, 0.99672, 0.10485, 0.53172, 0.00093612, 0.19378, 0.00093612, 0.044934, 0.11889, 0.0046806, 0.060092, 0.11745, 0.20076, 0.11199, 0.4302, 0.025949, 0.053263, 0.86478, 0.013103, 0.11792, 0.84675, 0.15006, 0.046522, 0.37375, 0.47074, 0.070177, 0.0047311, 0.033906, 0.99664, 1, 0.24117, 0.011861, 0.40327, 0.30838, 0.035582, 0.74467, 0.25204, 0.13207, 0.11467, 0.15913, 0.14882, 0.0096636, 0.057981, 0.33372, 0.04252, 0.0019327, 0.13382, 0.39751, 0.063348, 0.27279, 0.0019796, 0.0011878, 0.035237, 0.017421, 0.029298, 0.047511, 0.248, 0.26597, 0.019768, 0.059305, 0.068291, 0.33966, 0.059953, 0.076012, 0.19592, 0.39076, 0.083506, 0.19271, 0.0021412, 0.0012236, 0.075864, 0.10034, 0.14928, 0.25206, 0.41848, 0.0012236, 0.0012236, 0.7122, 0.28488, 0.0038171, 0.35499, 0.64128, 0.42028, 0.15016, 0.00044427, 0.14039, 0.010662, 0.19237, 0.024435, 0.029322, 0.013328, 0.019104, 0.92245, 0.061955, 0.013768, 0.19314, 0.31332, 0.12876, 0.36482, 0.22844, 0.76527, 0.0057109, 0.28878, 0.18809, 0.11618, 0.28795, 0.0022129, 0.019639, 0.065833, 0.031257, 0.36588, 0.37629, 0.040689, 0.041951, 0.085794, 0.0091471, 0.079801, 0.28079, 0.25365, 0.13963, 0.0041764, 0.0015313, 0.015035, 0.18112, 0.016984, 0.018794, 0.079909, 0.008492, 0.013199, 0.12869, 0.085791, 0.76882, 0.0032997, 0.99594, 0.0217, 0.25128, 0.055117, 0.16578, 0.09895, 0.078118, 0.15407, 0.11935, 0.01302, 0.042965, 0.00065876, 0.24539, 0.19697, 0.27602, 0.13307, 0.00098813, 0.021739, 0.11331, 0.010869, 0.00065876, 0.14593, 0.16076, 0.13288, 0.33042, 0.0029661, 0.0021751, 0.15443, 0.023926, 0.0011864, 0.0033615, 0.01226, 0.029463, 0.012946, 0.40134, 0.15536, 0.42723, 0.19424, 0.30851, 0.49704, 0.008923, 0.66476, 0.13384, 0.18292, 0.008923, 0.61513, 0.19689, 0.067261, 0.12107, 0.026734, 0.2406, 0.64695, 0.085548, 0.97713, 0.022292, 0.33574, 0.13765, 0.13765, 0.38945, 0.060538, 0.25147, 0.42687, 0.038806, 0.13039, 0.091583, 0.82951, 0.1659, 0.059627, 0.099378, 0.10702, 0.30272, 0.030578, 0.0015289, 0.37458, 0.025227, 0.99886, 0.18958, 0.16336, 0.0030251, 0.057478, 0.058486, 0.4215, 0.10689, 0.16521, 0.0014001, 0.18201, 0.084006, 0.018201, 0.13441, 0.38363, 0.0042003, 0.026602, 0.99543, 0.21852, 0.25348, 0.25662, 0.0097895, 0.050696, 0.091602, 0.046151, 0.066429, 0.0069925, 0.37646, 0.56085, 0.061463, 0.44736, 0.038345, 0.51127, 0.99636, 0.17055, 0.21494, 0.41305, 0.051398, 0.003738, 0.098123, 0.048127, 0.22618, 0.44538, 0.13013, 0.020914, 0.068163, 0.062353, 0.025948, 0.00077457, 0.020526, 0.26998, 0.075192, 0.2836, 0.010065, 0.18235, 0.027827, 0.046181, 0.10539, 0.22903, 0.0095174, 0.00061403, 0.090262, 0.10193, 0.18421, 0.21982, 0.011052, 0.14399, 0.0021491, 0.0076753, 0.99548, 0.091474, 0.21852, 0.46923, 0.052513, 0.1677, 0.11807, 0.045916, 0.18366, 0.65266, 0.83514, 0.14723, 0.017769, 0.24868, 0.26781, 0.47823, 0.36429, 0.13555, 0.3764, 0.08237, 0.032213, 0.0092964, 0.80712, 0.18665, 0.0050445, 0.99688, 0.059707, 0.93541, 0.99364, 0.26124, 0.49568, 0.0058611, 0.075357, 0.033492, 0.10634, 0.022607, 0.61671, 0.37951, 0.21459, 0.66397, 0.11613, 0.0050492, 0.7199, 0.096981, 0.078331, 0.10444, 0.1498, 0.044341, 0.57763, 0.17976, 0.049135, 0.0057734, 0.028867, 0.96416, 0.030782, 0.71312, 0.023087, 0.079521, 0.15391, 0.99364, 0.41092, 0.58898, 0.71424, 0.12604, 0.15872, 0.65086, 0.34755, 0.2462, 0.28583, 0.20046, 0.080541, 0.021342, 0.12424, 0.031505, 0.0099088, 0.22661, 0.00027368, 0.29667, 0.1965, 0.0038315, 0.008484, 0.00082103, 0.02682, 0.047073, 0.039683, 0.058293, 0.073072, 0.0104, 0.011494, 0.049351, 0.77975, 0.15792, 0.0098702, 0.074743, 0.18437, 0.28735, 0.093014, 0.083048, 0.23918, 0.039863, 0.58133, 0.062231, 0.35214, 0.0045535, 0.37496, 0.17186, 0.031247, 0.39059, 0.031247, 0.075736, 0.28619, 0.17084, 0.00021763, 0.15517, 0.073995, 0.010446, 0.024592, 0.084006, 0.051144, 0.067466, 0.27099, 0.10184, 0.12082, 0.17088, 0.015535, 0.018987, 0.30034, 0.75219, 0.0017554, 0.12727, 0.0052662, 0.07636, 0.036863, 0.99364, 0.19514, 0.80006, 0.76206, 0.23448, 0.73042, 0.25664, 0.0098706, 0.26446, 0.51544, 0.0004731, 0.017505, 0.04589, 0.038084, 0.025784, 0.036192, 0.032407, 0.023891, 0.98856, 0.0088265, 0.99531, 0.27174, 0.1207, 0.097404, 0.42279, 0.055055, 0.032468, 0.84892, 0.090311, 0.054187, 0.99659, 0.75487, 0.23838, 0.99364, 0.99295, 0.99642, 0.72088, 0.26856, 0.010601, 0.99615, 0.28958, 0.28001, 0.15848, 0.12471, 0.00026591, 0.14439, 0.0026591, 0.45229, 0.5484, 0.39018, 0.014451, 0.59249, 0.0058638, 0.2844, 0.08356, 0.13194, 0.22136, 0.27267, 0.82366, 0.17536, 0.038024, 0.077509, 0.16818, 0.7166, 0.19937, 0.19937, 0.5981, 0.33425, 0.07344, 0.19156, 0.18178, 0.035743, 0.148, 0.01089, 0.001117, 0.023177, 0.29008, 0.70909, 0.73219, 0.0014973, 0.053904, 0.21262, 0.16516, 0.657, 0.17605, 0.0018149, 0.49858, 0.49858, 0.69683, 0.23569, 0.066609, 0.42145, 0.28714, 0.23098, 0.039076, 0.02113, 0.47958, 0.25766, 0.06028, 0.0064015, 0.026673, 0.023472, 0.14617, 0.040177, 0.23889, 0.44955, 0.026061, 0.015202, 0.2302, 0.24927, 0.63637, 0.11437, 0.79831, 0.19418, 0.73705, 0.26066, 0.14682, 0.072888, 0.27177, 0.46649, 0.042692, 0.52496, 0.013461, 0.45766, 0.082808, 0.0059148, 0.73344, 0.17745, 0.87598, 0.03937, 0.083661, 0.92774, 0.066267, 0.37102, 0.012309, 0.2815, 0.12964, 0.079766, 0.033889, 0.018063, 0.028933, 0.0003197, 0.040283, 0.0041561, 0.99631, 0.85175, 0.14518, 0.035281, 0.36576, 0.17462, 0.10495, 0.13755, 0.030815, 0.092446, 0.01965, 0.008932, 0.030369, 0.062624, 0.3324, 0.06186, 0.0072552, 0.37288, 0.00019093, 0.030548, 0.066442, 0.063578, 0.0022911, 0.27434, 0.31136, 0.18876, 0.05159, 0.14749, 0.026705, 0.79526, 0.050333, 0.033555, 0.1208, 0.99601, 0.38784, 0.60705, 0.9948, 0.10315, 0.0057306, 0.085958, 0.80514, 0.10909, 0.39543, 0.090904, 0.0090904, 0.39543, 0.3457, 0.24141, 0.0096565, 0.40364, 0.99249, 0.99826, 0.015548, 0.0058304, 0.12438, 0.45088, 0.064134, 0.013604, 0.05636, 0.27014, 0.6009, 0.39533, 0.99593, 0.99688, 0.031902, 0.015951, 0.16483, 0.53171, 0.25522, 0.11121, 0.24947, 0.0030057, 0.63419, 1.0002, 0.15618, 0.0021105, 0.76188, 0.080198, 0.99835, 0.76082, 0.01396, 0.22336, 0.015917, 0.00083772, 0.10053, 0.23037, 0.34682, 0.10471, 0.032671, 0.16419, 0.0041886, 0.77748, 0.21597, 0.41411, 0.082823, 0.49694, 0.45498, 0.54469, 0.9947, 0.2482, 0.21449, 0.0005107, 0.0005107, 0.30387, 0.053624, 0.091926, 0.0143, 0.07303, 0.8615, 0.13658, 0.16867, 0.36011, 0.0018586, 0.26625, 0.15612, 0.001394, 0.045536, 0.7679, 0.23182, 0.72582, 0.27218, 0.97235, 0.024009, 0.43754, 0.044449, 0.2462, 0.011807, 0.23995, 0.01389, 0.0059033, 0.74467, 0.022936, 0.044344, 0.17585, 0.012233, 0.25599, 0.0082579, 0.73495, 0.068419, 0.26469, 0.12622, 0.067806, 0.33474, 0.0006127, 0.024712, 0.056369, 0.019198, 0.011233, 0.026142, 0.0053714, 0.29006, 0.31512, 0.012086, 0.096238, 0.19024, 0.021486, 0.022829, 0.017457, 0.029543, 0.029011, 0.0048351, 0.49076, 0.18132, 0.010879, 0.18857, 0.04956, 0.045933, 0.97626, 0.020553, 0.079161, 0.11453, 0.8034, 0.0016843, 0.28462, 0.15463, 0.11428, 0.017558, 0.15925, 0.06869, 0.1266, 0.029879, 0.044664, 0.71298, 0.2861, 0.19335, 0.069904, 0.0089239, 0.0014873, 0.44471, 0.2811, 0.67779, 0.31469, 0.99917, 0.99669, 0.9325, 0.065439, 0.0059468, 0.18435, 0.11299, 0.26166, 0.011894, 0.42222, 0.31559, 0.21623, 0.22922, 0.073687, 0.12623, 0.016006, 0.01208, 0.010872, 0.52144, 0.0046223, 0.077259, 0.19194, 0.16596, 0.018269, 0.02047, 0.16148, 0.42242, 0.18731, 0.12627, 0.038108, 0.00032295, 0.051027, 0.013564, 0.99329, 0.99669, 0.0079561, 0.087518, 0.90435, 0.18348, 0.80729, 0.007339, 0.13334, 0.74768, 0.11906, 0.99799, 0.99751, 0.71161, 0.014622, 0.27295, 0.18733, 0.0040432, 0.36074, 0.24888, 0.12938, 0.0035939, 0.066039, 0.20615, 0.018572, 0.011143, 0.092858, 0.59801, 0.07243, 0.00061127, 0.7323, 0.022617, 0.18888, 0.055626, 0.99526, 0.87105, 0.12819, 0.54283, 0.45236, 0.018767, 0.09672, 0.19921, 0.52258, 0.16313, 0.49323, 0.50444, 0.055995, 0.70554, 0.13439, 0.10079, 0.59723, 0.22003, 0.013048, 0.00059308, 0.1032, 0.066425, 0.075371, 0.70075, 0.12019, 0.10389, 0.99739, 0.25638, 0.29971, 0.018055, 0.42609, 0.057876, 0.17363, 0.036976, 0.70415, 0.02733, 0.1508, 0.1131, 0.0638, 0.1421, 0.4437, 0.087, 0.54155, 0.0061942, 0.051323, 0.092028, 0.16016, 0.14954, 0.64266, 0.1777, 0.011465, 0.047133, 0.086623, 0.035031 ] | |
}, | |
"R": 30, | |
"lambda.step": 0.01, | |
"plot.opts": { | |
"xlab": "PC1", | |
"ylab": "PC2" | |
}, | |
"topic.order": [ 6, 4, 18, 9, 5, 20, 1, 13, 14, 16, 7, 8, 2, 3, 11, 10, 15, 12, 17, 19 ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LDAvis = function(to_select, json_file) { | |
// This section sets up the logic for event handling | |
var current_clicked = { | |
what: "nothing", | |
element: undefined | |
}, | |
current_hover = { | |
what: "nothing", | |
element: undefined | |
}, | |
old_winning_state = { | |
what: "nothing", | |
element: undefined | |
}, | |
vis_state = { | |
lambda: 1, | |
topic: 0, | |
term: "" | |
}; | |
// Set up a few 'global' variables to hold the data: | |
var K, // number of topics | |
R, // number of terms to display in bar chart | |
mdsData, // (x,y) locations and topic proportions | |
mdsData3, // topic proportions for all terms in the viz | |
lamData, // all terms that are among the top-R most relevant for all topics, lambda values | |
lambda = { | |
old: 1, | |
current: 1 | |
}, | |
color1 = "#1f77b4", // baseline color for default topic circles and overall term frequencies | |
color2 = "#d62728"; // 'highlight' color for selected topics and term-topic frequencies | |
// Set the duration of each half of the transition: | |
var duration = 750; | |
// Set global margins used for everything | |
var margin = { | |
top: 30, | |
right: 30, | |
bottom: 70, | |
left: 30 | |
}, | |
mdswidth = 530, | |
mdsheight = 530, | |
barwidth = 530, | |
barheight = 530, | |
termwidth = 90, // width to add between two panels to display terms | |
mdsarea = mdsheight * mdswidth; | |
// controls how big the maximum circle can be | |
// doesn't depend on data, only on mds width and height: | |
var rMax = 60; | |
// proportion of area of MDS plot to which the sum of default topic circle areas is set | |
var circle_prop = 0.25; | |
var word_prop = 0.25; | |
// opacity of topic circles: | |
var base_opacity = 0.2, | |
highlight_opacity = 0.6; | |
// topic/lambda selection names are specific to *this* vis | |
var topic_select = to_select + "-topic"; | |
var lambda_select = to_select + "-lambda"; | |
// get rid of the # in the to_select (useful) for setting ID values | |
var parts = to_select.split("#"); | |
var visID = parts[parts.length - 1]; | |
var topicID = visID + "-topic"; | |
var lambdaID = visID + "-lambda"; | |
var termID = visID + "-term"; | |
var topicDown = topicID + "-down"; | |
var topicUp = topicID + "-up"; | |
var topicClear = topicID + "-clear"; | |
////////////////////////////////////////////////////////////////////////////// | |
// sort array according to a specified object key name | |
// Note that default is decreasing sort, set decreasing = -1 for increasing | |
// adpated from http://stackoverflow.com/questions/16648076/sort-array-on-key-value | |
function fancysort(key_name, decreasing) { | |
decreasing = (typeof decreasing === "undefined") ? 1 : decreasing; | |
return function(a, b) { | |
if (a[key_name] < b[key_name]) | |
return 1 * decreasing; | |
if (a[key_name] > b[key_name]) | |
return -1 * decreasing; | |
return 0; | |
}; | |
} | |
// The actual read-in of the data and main code: | |
d3.json(json_file, function(error, data) { | |
// set the number of topics to global variable K: | |
K = data['mdsDat'].x.length; | |
// R is the number of top relevant (or salient) words whose bars we display | |
R = data['R']; | |
// a (K x 5) matrix with columns x, y, topics, Freq, cluster (where x and y are locations for left panel) | |
mdsData = []; | |
for (var i = 0; i < K; i++) { | |
var obj = {}; | |
for (var key in data['mdsDat']) { | |
obj[key] = data['mdsDat'][key][i]; | |
} | |
mdsData.push(obj); | |
} | |
// a huge matrix with 3 columns: Term, Topic, Freq, where Freq is all non-zero probabilities of topics given terms | |
// for the terms that appear in the barcharts for this data | |
mdsData3 = []; | |
for (var i = 0; i < data['token.table'].Term.length; i++) { | |
var obj = {}; | |
for (var key in data['token.table']) { | |
obj[key] = data['token.table'][key][i]; | |
} | |
mdsData3.push(obj); | |
} | |
// large data for the widths of bars in bar-charts. 6 columns: Term, logprob, loglift, Freq, Total, Category | |
// Contains all possible terms for topics in (1, 2, ..., k) and lambda in the user-supplied grid of lambda values | |
// which defaults to (0, 0.01, 0.02, ..., 0.99, 1). | |
lamData = []; | |
for (var i = 0; i < data['tinfo'].Term.length; i++) { | |
var obj = {}; | |
for (var key in data['tinfo']) { | |
obj[key] = data['tinfo'][key][i]; | |
} | |
lamData.push(obj); | |
} | |
// Create the topic input & lambda slider forms. Inspired from: | |
// http://bl.ocks.org/d3noob/10632804 | |
// http://bl.ocks.org/d3noob/10633704 | |
init_forms(topicID, lambdaID, visID); | |
// When the value of lambda changes, update the visualization | |
d3.select(lambda_select) | |
.on("mouseup", function() { | |
// store the previous lambda value | |
lambda.old = lambda.current; | |
lambda.current = document.getElementById(lambdaID).value; | |
vis_state.lambda = +this.value; | |
// adjust the text on the range slider | |
d3.select(lambda_select).property("value", vis_state.lambda); | |
d3.select(lambda_select + "-value").text(vis_state.lambda); | |
// transition the order of the bars | |
var increased = lambda.old < vis_state.lambda; | |
if (vis_state.topic > 0) reorder_bars(increased); | |
// store the current lambda value | |
state_save(true); | |
document.getElementById(lambdaID).value = vis_state.lambda; | |
}); | |
d3.select("#" + topicUp) | |
.on("click", function() { | |
// remove term selection if it exists (from a saved URL) | |
var termElem = document.getElementById(termID + vis_state.term); | |
if (termElem !== undefined) term_off(termElem); | |
vis_state.term = ""; | |
var value_old = document.getElementById(topicID).value; | |
var value_new = Math.min(K, +value_old + 1).toFixed(0); | |
// increment the value in the input box | |
document.getElementById(topicID).value = value_new; | |
topic_off(document.getElementById(topicID + value_old)); | |
topic_on(document.getElementById(topicID + value_new)); | |
vis_state.topic = value_new; | |
state_save(true); | |
}) | |
d3.select("#" + topicDown) | |
.on("click", function() { | |
// remove term selection if it exists (from a saved URL) | |
var termElem = document.getElementById(termID + vis_state.term); | |
if (termElem !== undefined) term_off(termElem); | |
vis_state.term = ""; | |
var value_old = document.getElementById(topicID).value; | |
var value_new = Math.max(0, +value_old - 1).toFixed(0); | |
// increment the value in the input box | |
document.getElementById(topicID).value = value_new; | |
topic_off(document.getElementById(topicID + value_old)); | |
topic_on(document.getElementById(topicID + value_new)); | |
vis_state.topic = value_new; | |
state_save(true); | |
}) | |
d3.select("#" + topicID) | |
.on("keyup", function() { | |
// remove term selection if it exists (from a saved URL) | |
var termElem = document.getElementById(termID + vis_state.term); | |
if (termElem !== undefined) term_off(termElem); | |
vis_state.term = ""; | |
topic_off(document.getElementById(topicID + vis_state.topic)) | |
var value_new = document.getElementById(topicID).value; | |
if (!isNaN(value_new) && value_new > 0) { | |
value_new = Math.min(K, Math.max(1, value_new)) | |
topic_on(document.getElementById(topicID + value_new)); | |
vis_state.topic = value_new; | |
state_save(true); | |
document.getElementById(topicID).value = vis_state.topic; | |
} | |
}) | |
d3.select("#" + topicClear) | |
.on("click", function() { | |
state_reset(); | |
state_save(true); | |
}) | |
// create linear scaling to pixels (and add some padding on outer region of scatterplot) | |
var xrange = d3.extent(mdsData, function(d) { | |
return d.x; | |
}); //d3.extent returns min and max of an array | |
var xdiff = xrange[1] - xrange[0], | |
xpad = 0.05; | |
var yrange = d3.extent(mdsData, function(d) { | |
return d.y; | |
}); | |
var ydiff = yrange[1] - yrange[0], | |
ypad = 0.05; | |
if (xdiff > ydiff) { | |
var xScale = d3.scale.linear() | |
.range([0, mdswidth]) | |
.domain([xrange[0] - xpad * xdiff, xrange[1] + xpad * xdiff]); | |
var yScale = d3.scale.linear() | |
.range([mdsheight, 0]) | |
.domain([yrange[0] - 0.5*(xdiff - ydiff) - ypad*xdiff, yrange[1] + 0.5*(xdiff - ydiff) + ypad*xdiff]); | |
} else { | |
var xScale = d3.scale.linear() | |
.range([0, mdswidth]) | |
.domain([xrange[0] - 0.5*(ydiff - xdiff) - xpad*ydiff, xrange[1] + 0.5*(ydiff - xdiff) + xpad*ydiff]); | |
var yScale = d3.scale.linear() | |
.range([mdsheight, 0]) | |
.domain([yrange[0] - ypad * ydiff, yrange[1] + ypad * ydiff]); | |
} | |
// Create new svg element (that will contain everything): | |
var svg = d3.select(to_select).append("svg") | |
.attr("width", mdswidth + barwidth + margin.left + termwidth + margin.right) | |
.attr("height", mdsheight + 2 * margin.top + margin.bottom + 2 * rMax); | |
// Create a group for the mds plot | |
var mdsplot = svg.append("g") | |
.attr("id", "leftpanel") | |
.attr("class", "points") | |
.attr("transform", "translate(" + margin.left + "," + 2 * margin.top + ")"); | |
// Clicking on the mdsplot should clear the selection | |
mdsplot | |
.append("rect") | |
.attr("x", 0) | |
.attr("y", 0) | |
.attr("height", mdsheight) | |
.attr("width", mdswidth) | |
.style("fill", color1) | |
.attr("opacity", 0) | |
.on("click", function() { | |
state_reset(); | |
state_save(true); | |
}); | |
mdsplot.append("line") // draw x-axis | |
.attr("x1", 0) | |
.attr("x2", mdswidth) | |
.attr("y1", mdsheight / 2) | |
.attr("y2", mdsheight / 2) | |
.attr("stroke", "gray") | |
.attr("opacity", 0.3); | |
mdsplot.append("text") // label x-axis | |
.attr("x", 0) | |
.attr("y", mdsheight/2 - 5) | |
.text(data['plot.opts'].xlab) | |
.attr("fill", "gray"); | |
mdsplot.append("line") // draw y-axis | |
.attr("x1", mdswidth / 2) | |
.attr("x2", mdswidth / 2) | |
.attr("y1", 0) | |
.attr("y2", mdsheight) | |
.attr("stroke", "gray") | |
.attr("opacity", 0.3); | |
mdsplot.append("text") // label y-axis | |
.attr("x", mdswidth/2 + 5) | |
.attr("y", 7) | |
.text(data['plot.opts'].ylab) | |
.attr("fill", "gray"); | |
// new definitions based on fixing the sum of the areas of the default topic circles: | |
var newSmall = Math.sqrt(0.02*mdsarea*circle_prop/Math.PI); | |
var newMedium = Math.sqrt(0.05*mdsarea*circle_prop/Math.PI); | |
var newLarge = Math.sqrt(0.10*mdsarea*circle_prop/Math.PI); | |
var cx = 10 + newLarge, | |
cx2 = cx + 1.5 * newLarge; | |
// circle guide inspired from | |
// http://www.nytimes.com/interactive/2012/02/13/us/politics/2013-budget-proposal-graphic.html?_r=0 | |
circleGuide = function(rSize, size) { | |
d3.select("#leftpanel").append("circle") | |
.attr('class', "circleGuide" + size) | |
.attr('r', rSize) | |
.attr('cx', cx) | |
.attr('cy', mdsheight + rSize) | |
.style('fill', 'none') | |
.style('stroke-dasharray', '2 2') | |
.style('stroke', '#999'); | |
d3.select("#leftpanel").append("line") | |
.attr('class', "lineGuide" + size) | |
.attr("x1", cx) | |
.attr("x2", cx2) | |
.attr("y1", mdsheight + 2 * rSize) | |
.attr("y2", mdsheight + 2 * rSize) | |
.style("stroke", "gray") | |
.style("opacity", 0.3); | |
} | |
circleGuide(newSmall, "Small"); | |
circleGuide(newMedium, "Medium"); | |
circleGuide(newLarge, "Large"); | |
var defaultLabelSmall = "2%"; | |
var defaultLabelMedium = "5%"; | |
var defaultLabelLarge = "10%"; | |
d3.select("#leftpanel").append("text") | |
.attr("x", 10) | |
.attr("y", mdsheight - 10) | |
.attr('class', "circleGuideTitle") | |
.style("text-anchor", "left") | |
.style("fontWeight", "bold") | |
.text("Marginal topic distribtion"); | |
d3.select("#leftpanel").append("text") | |
.attr("x", cx2 + 10) | |
.attr("y", mdsheight + 2 * newSmall) | |
.attr('class', "circleGuideLabelSmall") | |
.style("text-anchor", "start") | |
.text(defaultLabelSmall); | |
d3.select("#leftpanel").append("text") | |
.attr("x", cx2 + 10) | |
.attr("y", mdsheight + 2 * newMedium) | |
.attr('class', "circleGuideLabelMedium") | |
.style("text-anchor", "start") | |
.text(defaultLabelMedium); | |
d3.select("#leftpanel").append("text") | |
.attr("x", cx2 + 10) | |
.attr("y", mdsheight + 2 * newLarge) | |
.attr('class', "circleGuideLabelLarge") | |
.style("text-anchor", "start") | |
.text(defaultLabelLarge); | |
// bind mdsData to the points in the left panel: | |
var points = mdsplot.selectAll("points") | |
.data(mdsData) | |
.enter(); | |
// text to indicate topic | |
points.append("text") | |
.attr("class", "txt") | |
.attr("x", function(d) { | |
return (xScale(+d.x)); | |
}) | |
.attr("y", function(d) { | |
return (yScale(+d.y) + 4); | |
}) | |
.attr("stroke", "black") | |
.attr("opacity", 1) | |
.style("text-anchor", "middle") | |
.style("font-size", "11px") | |
.style("fontWeight", 100) | |
.text(function(d) { | |
return d.topics; | |
}); | |
// draw circles | |
points.append("circle") | |
.attr("class", "dot") | |
.style("opacity", 0.2) | |
.style("fill", color1) | |
.attr("r", function(d) { | |
//return (rScaleMargin(+d.Freq)); | |
return (Math.sqrt((d.Freq/100)*mdswidth*mdsheight*circle_prop/Math.PI)); | |
}) | |
.attr("cx", function(d) { | |
return (xScale(+d.x)); | |
}) | |
.attr("cy", function(d) { | |
return (yScale(+d.y)); | |
}) | |
.attr("stroke", "black") | |
.attr("id", function(d) { | |
return (topicID + d.topics) | |
}) | |
.on("mouseover", function(d) { | |
var old_topic = topicID + vis_state.topic; | |
if (vis_state.topic > 0 && old_topic != this.id) { | |
topic_off(document.getElementById(old_topic)); | |
} | |
topic_on(this); | |
}) | |
.on("click", function(d) { | |
// prevent click event defined on the div container from firing | |
// http://bl.ocks.org/jasondavies/3186840 | |
d3.event.stopPropagation(); | |
var old_topic = topicID + vis_state.topic; | |
if (vis_state.topic > 0 && old_topic != this.id) { | |
topic_off(document.getElementById(old_topic)); | |
} | |
// make sure topic input box value and fragment reflects clicked selection | |
document.getElementById(topicID).value = vis_state.topic = d.topics; | |
state_save(true); | |
topic_on(this); | |
}) | |
.on("mouseout", function(d) { | |
if (vis_state.topic != d.topics) topic_off(this); | |
if (vis_state.topic > 0) topic_on(document.getElementById(topicID + vis_state.topic)); | |
}); | |
svg.append("text") | |
.text("Intertopic Distance Map (via multidimensional scaling)") | |
.attr("x", mdswidth/2 + margin.left) | |
.attr("y", 30) | |
.style("font-size", "16px") | |
.style("text-anchor", "middle"); | |
// establish layout and vars for bar chart | |
var barDefault2 = lamData.filter(function(d) { | |
return d.Category == "Default" | |
}); | |
var y = d3.scale.ordinal() | |
.domain(barDefault2.map(function(d) { | |
return d.Term; | |
})) | |
.rangeRoundBands([0, barheight], 0.15); | |
var x = d3.scale.linear() | |
.domain([0, d3.max(barDefault2, function(d) { | |
return d.Total; | |
})]) | |
.range([0, barwidth]) | |
.nice(); | |
var yAxis = d3.svg.axis() | |
.scale(y); | |
// Add a group for the bar chart | |
var chart = svg.append("g") | |
.attr("transform", "translate(" + +(mdswidth + margin.left + termwidth) + "," + 2 * margin.top + ")") | |
.attr("id", "bar-freqs"); | |
// bar chart legend/guide: | |
var barguide = {"width": 100, "height": 15}; | |
d3.select("#bar-freqs").append("rect") | |
.attr("x", 0) | |
.attr("y", mdsheight + 10) | |
.attr("height", barguide.height) | |
.attr("width", barguide.width) | |
.style("fill", color1) | |
.attr("opacity", 0.4); | |
d3.select("#bar-freqs").append("text") | |
.attr("x", barguide.width + 5) | |
.attr("y", mdsheight + 10 + barguide.height/2) | |
.style("dominant-baseline", "middle") | |
.text("Overall term frequency"); | |
d3.select("#bar-freqs").append("rect") | |
.attr("x", 0) | |
.attr("y", mdsheight + 10 + barguide.height + 5) | |
.attr("height", barguide.height) | |
.attr("width", barguide.width/2) | |
.style("fill", color2) | |
.attr("opacity", 0.8); | |
d3.select("#bar-freqs").append("text") | |
.attr("x", barguide.width/2 + 5) | |
.attr("y", mdsheight + 10 + (3/2)*barguide.height + 5) | |
.style("dominant-baseline", "middle") | |
.text("Estimated term frequency within the selected topic"); | |
// footnotes: | |
d3.select("#bar-freqs") | |
.append("a") | |
.attr("xlink:href", "http://vis.stanford.edu/files/2012-Termite-AVI.pdf") | |
.attr("target", "_blank") | |
.append("text") | |
.attr("x", 0) | |
.attr("y", mdsheight + 10 + (6/2)*barguide.height + 5) | |
.style("dominant-baseline", "middle") | |
.text("1. saliency(term w) = frequency(w) * [sum_t p(t | w) * log(p(t | w)/p(t))] for topics t; see Chuang et. al (2012)"); | |
d3.select("#bar-freqs") | |
.append("a") | |
.attr("xlink:href", "http://nlp.stanford.edu/events/illvi2014/papers/sievert-illvi2014.pdf") | |
.attr("target", "_blank") | |
.append("text") | |
.attr("x", 0) | |
.attr("y", mdsheight + 10 + (8/2)*barguide.height + 5) | |
.style("dominant-baseline", "middle") | |
.text("2. relevance(term w | topic t) = \u03BB * p(w | t) + (1 - \u03BB) * p(w | t)/p(w); see Sievert & Shirley (2014)"); | |
// Bind 'default' data to 'default' bar chart | |
var basebars = chart.selectAll(".bar-totals") | |
.data(barDefault2) | |
.enter(); | |
// Draw the gray background bars defining the overall frequency of each word | |
basebars | |
.append("rect") | |
.attr("class", "bar-totals") | |
.attr("x", 0) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}) | |
.attr("height", y.rangeBand()) | |
.attr("width", function(d) { | |
return x(d.Total); | |
}) | |
.style("fill", color1) | |
.attr("opacity", 0.4); | |
// Add word labels to the side of each bar | |
basebars | |
.append("text") | |
.attr("x", -5) | |
.attr("class", "terms") | |
.attr("y", function(d) { | |
return y(d.Term) + 12; | |
}) | |
.attr("cursor", "pointer") | |
.attr("id", function(d) { | |
return (termID + d.Term) | |
}) | |
.style("text-anchor", "end") // right align text - use 'middle' for center alignment | |
.text(function(d) { | |
return d.Term; | |
}) | |
.on("mouseover", function() { | |
term_hover(this); | |
}) | |
// .on("click", function(d) { | |
// var old_term = termID + vis_state.term; | |
// if (vis_state.term != "" && old_term != this.id) { | |
// term_off(document.getElementById(old_term)); | |
// } | |
// vis_state.term = d.Term; | |
// state_save(true); | |
// term_on(this); | |
// debugger; | |
// }) | |
.on("mouseout", function() { | |
vis_state.term = ""; | |
term_off(this); | |
state_save(true); | |
}); | |
var title = chart.append("text") | |
.attr("x", barwidth/2) | |
.attr("y", -30) | |
.attr("class", "bubble-tool") // set class so we can remove it when highlight_off is called | |
.style("text-anchor", "middle") | |
.style("font-size", "16px") | |
.text("Top-" + R + " Most Salient Terms"); | |
title.append("tspan") | |
.attr("baseline-shift", "super") | |
.attr("font-size", "12px") | |
.text("(1)"); | |
// barchart axis adapted from http://bl.ocks.org/mbostock/1166403 | |
var xAxis = d3.svg.axis().scale(x) | |
.orient("top") | |
.tickSize(-barheight) | |
.tickSubdivide(true) | |
.ticks(6); | |
chart.attr("class", "xaxis") | |
.call(xAxis); | |
// dynamically create the topic and lambda input forms at the top of the page: | |
function init_forms(topicID, lambdaID, visID) { | |
// create container div for topic and lambda input: | |
var inputDiv = document.createElement("div"); | |
inputDiv.setAttribute("id", "top"); | |
inputDiv.setAttribute("style", "width: 1210px"); // to match the width of the main svg element | |
document.getElementById(visID).appendChild(inputDiv); | |
// topic input container: | |
var topicDiv = document.createElement("div"); | |
topicDiv.setAttribute("style", "padding: 5px; background-color: #e8e8e8; display: inline-block; width: " + mdswidth + "px; height: 50px; float: left"); | |
inputDiv.appendChild(topicDiv); | |
var topicLabel = document.createElement("label"); | |
topicLabel.setAttribute("for", topicID); | |
topicLabel.setAttribute("style", "font-family: sans-serif; font-size: 14px"); | |
topicLabel.innerHTML = "Selected Topic: <span id='" + topicID + "-value'></span>"; | |
topicDiv.appendChild(topicLabel); | |
var topicInput = document.createElement("input"); | |
topicInput.setAttribute("style", "width: 50px"); | |
topicInput.type = "text"; | |
topicInput.min = "0"; | |
topicInput.max = K; // assumes the data has already been read in | |
topicInput.step = "1"; | |
topicInput.value = "0"; // a value of 0 indicates no topic is selected | |
topicInput.id = topicID; | |
topicDiv.appendChild(topicInput); | |
var previous = document.createElement("button"); | |
previous.setAttribute("id", topicDown); | |
previous.setAttribute("style", "margin-left: 5px"); | |
previous.innerHTML = "Previous Topic"; | |
topicDiv.appendChild(previous); | |
var next = document.createElement("button"); | |
next.setAttribute("id", topicUp); | |
next.setAttribute("style", "margin-left: 5px"); | |
next.innerHTML = "Next Topic"; | |
topicDiv.appendChild(next); | |
var clear = document.createElement("button"); | |
clear.setAttribute("id", topicClear); | |
clear.setAttribute("style", "margin-left: 5px"); | |
clear.innerHTML = "Clear Topic"; | |
topicDiv.appendChild(clear); | |
// lambda inputs | |
//var lambdaDivLeft = 8 + mdswidth + margin.left + termwidth; | |
var lambdaDivWidth = barwidth; | |
var lambdaDiv = document.createElement("div"); | |
lambdaDiv.setAttribute("id", "lambdaInput"); | |
lambdaDiv.setAttribute("style", "padding: 5px; background-color: #e8e8e8; display: inline-block; height: 50px; width: " + lambdaDivWidth + "px; float: right; margin-right: 30px"); | |
inputDiv.appendChild(lambdaDiv); | |
var lambdaZero = document.createElement("div"); | |
lambdaZero.setAttribute("style", "padding: 5px; height: 20px; width: 220px; font-family: sans-serif; float: left"); | |
lambdaZero.setAttribute("id", "lambdaZero"); | |
lambdaDiv.appendChild(lambdaZero); | |
var xx = d3.select("#lambdaZero") | |
.append("text") | |
.attr("x", 0) | |
.attr("y", 0) | |
.style("font-size", "14px") | |
.text("Slide to adjust relevance metric:"); | |
var yy = d3.select("#lambdaZero") | |
.append("text") | |
.attr("x", 125) | |
.attr("y", -5) | |
.style("font-size", "10px") | |
.style("position", "absolute") | |
.text("(2)"); | |
var sliderDiv = document.createElement("div"); | |
sliderDiv.setAttribute("id", "sliderdiv"); | |
sliderDiv.setAttribute("style", "padding: 5px; height: 40px; width: 250px; float: right; margin-top: -5px; margin-right: 10px"); | |
lambdaDiv.appendChild(sliderDiv); | |
var lambdaInput = document.createElement("input"); | |
lambdaInput.setAttribute("style", "width: 250px; margin-left: 0px; margin-right: 0px"); | |
lambdaInput.type = "range"; | |
lambdaInput.min = 0; | |
lambdaInput.max = 1; | |
lambdaInput.step = data['lambda.step']; | |
lambdaInput.value = vis_state.lambda; | |
lambdaInput.id = lambdaID; | |
lambdaInput.setAttribute("list", "ticks"); // to enable automatic ticks (with no labels, see below) | |
sliderDiv.appendChild(lambdaInput); | |
var lambdaLabel = document.createElement("label"); | |
lambdaLabel.setAttribute("id", "lamlabel"); | |
lambdaLabel.setAttribute("for", lambdaID); | |
lambdaLabel.setAttribute("style", "height: 20px; width: 60px; font-family: sans-serif; font-size: 14px; margin-left: 80px"); | |
lambdaLabel.innerHTML = "λ = <span id='" + lambdaID + "-value'>" + vis_state.lambda + "</span>"; | |
lambdaDiv.appendChild(lambdaLabel); | |
// Create the svg to contain the slider scale: | |
var scaleContainer = d3.select("#sliderdiv").append("svg") | |
.attr("width", 250) | |
.attr("height", 25); | |
var sliderScale = d3.scale.linear() | |
.domain([0, 1]) | |
.range([7.5, 242.5]) // trimmed by 7.5px on each side to match the input type=range slider: | |
.nice(); | |
// adapted from http://bl.ocks.org/mbostock/1166403 | |
var sliderAxis = d3.svg.axis() | |
.scale(sliderScale) | |
.orient("bottom") | |
.tickSize(10) | |
.tickSubdivide(true) | |
.ticks(6); | |
// group to contain the elements of the slider axis: | |
var sliderAxisGroup = scaleContainer.append("g") | |
.attr("class", "slideraxis") | |
.attr("margin-top", "-10px") | |
.call(sliderAxis); | |
// Another strategy for tick marks on the slider; simpler, but not labels | |
// var sliderTicks = document.createElement("datalist"); | |
// sliderTicks.setAttribute("id", "ticks"); | |
// for (var tick = 0; tick <= 10; tick++) { | |
// var tickOption = document.createElement("option"); | |
// //tickOption.value = tick/10; | |
// tickOption.innerHTML = tick/10; | |
// sliderTicks.appendChild(tickOption); | |
// } | |
// append the forms to the containers | |
//lambdaDiv.appendChild(sliderTicks); | |
} | |
// function to re-order the bars (gray and red), and terms: | |
function reorder_bars(increase) { | |
// grab the bar-chart data for this topic only: | |
var dat2 = lamData.filter(function(d) { | |
//return d.Category == "Topic" + Math.min(K, Math.max(0, vis_state.topic)) // fails for negative topic numbers... | |
return d.Category == "Topic" + vis_state.topic; | |
}); | |
// define relevance: | |
for (var i = 0; i < dat2.length; i++) { | |
dat2[i].relevance = vis_state.lambda * dat2[i].logprob + | |
(1 - vis_state.lambda) * dat2[i].loglift; | |
} | |
// sort by relevance: | |
dat2.sort(fancysort("relevance")); | |
// truncate to the top R tokens: | |
var dat3 = dat2.slice(0, R); | |
var y = d3.scale.ordinal() | |
.domain(dat3.map(function(d) { | |
return d.Term; | |
})) | |
.rangeRoundBands([0, barheight], 0.15); | |
var x = d3.scale.linear() | |
.domain([0, d3.max(dat3, function(d) { | |
return d.Total; | |
})]) | |
.range([0, barwidth]) | |
.nice(); | |
// Change Total Frequency bars | |
var graybars = d3.select("#bar-freqs") | |
.selectAll(".bar-totals") | |
.data(dat3, function(d) { | |
return d.Term; | |
}); | |
// Change word labels | |
var labels = d3.select("#bar-freqs") | |
.selectAll(".terms") | |
.data(dat3, function(d) { | |
return d.Term; | |
}); | |
// Create red bars (drawn over the gray ones) to signify the frequency under the selected topic | |
var redbars = d3.select("#bar-freqs") | |
.selectAll(".overlay") | |
.data(dat3, function(d) { | |
return d.Term; | |
}); | |
// adapted from http://bl.ocks.org/mbostock/1166403 | |
var xAxis = d3.svg.axis().scale(x) | |
.orient("top") | |
.tickSize(-barheight) | |
.tickSubdivide(true) | |
.ticks(6); | |
// New axis definition: | |
var newaxis = d3.selectAll(".xaxis"); | |
// define the new elements to enter: | |
var graybarsEnter = graybars.enter().append("rect") | |
.attr("class", "bar-totals") | |
.attr("x", 0) | |
.attr("y", function(d) { | |
return y(d.Term) + barheight + margin.bottom + 2 * rMax; | |
}) | |
.attr("height", y.rangeBand()) | |
.style("fill", color1) | |
.attr("opacity", 0.4); | |
var labelsEnter = labels.enter() | |
.append("text") | |
.attr("x", -5) | |
.attr("class", "terms") | |
.attr("y", function(d) { | |
return y(d.Term) + 12 + barheight + margin.bottom + 2 * rMax; | |
}) | |
.attr("cursor", "pointer") | |
.style("text-anchor", "end") | |
.attr("id", function(d) { | |
return (termID + d.Term) | |
}) | |
.text(function(d) { | |
return d.Term; | |
}) | |
.on("mouseover", function() { | |
term_hover(this); | |
}) | |
// .on("click", function(d) { | |
// var old_term = termID + vis_state.term; | |
// if (vis_state.term != "" && old_term != this.id) { | |
// term_off(document.getElementById(old_term)); | |
// } | |
// vis_state.term = d.Term; | |
// state_save(true); | |
// term_on(this); | |
// }) | |
.on("mouseout", function() { | |
vis_state.term = ""; | |
term_off(this); | |
state_save(true); | |
}); | |
var redbarsEnter = redbars.enter().append("rect") | |
.attr("class", "overlay") | |
.attr("x", 0) | |
.attr("y", function(d) { | |
return y(d.Term) + barheight + margin.bottom + 2 * rMax; | |
}) | |
.attr("height", y.rangeBand()) | |
.style("fill", color2) | |
.attr("opacity", 0.8); | |
if (increase) { | |
graybarsEnter | |
.attr("width", function(d) { | |
return x(d.Total); | |
}) | |
.transition().duration(duration) | |
.delay(duration) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}); | |
labelsEnter | |
.transition().duration(duration) | |
.delay(duration) | |
.attr("y", function(d) { | |
return y(d.Term) + 12; | |
}); | |
redbarsEnter | |
.attr("width", function(d) { | |
return x(d.Freq); | |
}) | |
.transition().duration(duration) | |
.delay(duration) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}); | |
graybars.transition().duration(duration) | |
.attr("width", function(d) { | |
return x(d.Total); | |
}) | |
.transition().duration(duration) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}); | |
labels.transition().duration(duration) | |
.delay(duration) | |
.attr("y", function(d) { | |
return y(d.Term) + 12; | |
}); | |
redbars.transition().duration(duration) | |
.attr("width", function(d) { | |
return x(d.Freq); | |
}) | |
.transition().duration(duration) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}); | |
// Transition exiting rectangles to the bottom of the barchart: | |
graybars.exit() | |
.transition().duration(duration) | |
.attr("width", function(d) { | |
return x(d.Total); | |
}) | |
.transition().duration(duration) | |
.attr("y", function(d, i) { | |
return barheight + margin.bottom + 6 + i * 18; | |
}) | |
.remove(); | |
labels.exit() | |
.transition().duration(duration) | |
.delay(duration) | |
.attr("y", function(d, i) { | |
return barheight + margin.bottom + 18 + i * 18; | |
}) | |
.remove(); | |
redbars.exit() | |
.transition().duration(duration) | |
.attr("width", function(d) { | |
return x(d.Freq); | |
}) | |
.transition().duration(duration) | |
.attr("y", function(d, i) { | |
return barheight + margin.bottom + 6 + i * 18; | |
}) | |
.remove(); | |
// https://github.com/mbostock/d3/wiki/Transitions#wiki-d3_ease | |
newaxis.transition().duration(duration) | |
.call(xAxis) | |
.transition().duration(duration); | |
} else { | |
graybarsEnter | |
.attr("width", 100) // FIXME by looking up old width of these bars | |
.transition().duration(duration) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}) | |
.transition().duration(duration) | |
.attr("width", function(d) { | |
return x(d.Total); | |
}); | |
labelsEnter | |
.transition().duration(duration) | |
.attr("y", function(d) { | |
return y(d.Term) + 12; | |
}); | |
redbarsEnter | |
.attr("width", 50) // FIXME by looking up old width of these bars | |
.transition().duration(duration) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}) | |
.transition().duration(duration) | |
.attr("width", function(d) { | |
return x(d.Freq); | |
}); | |
graybars.transition().duration(duration) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}) | |
.transition().duration(duration) | |
.attr("width", function(d) { | |
return x(d.Total); | |
}); | |
labels.transition().duration(duration) | |
.attr("y", function(d) { | |
return y(d.Term) + 12; | |
}); | |
redbars.transition().duration(duration) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}) | |
.transition().duration(duration) | |
.attr("width", function(d) { | |
return x(d.Freq); | |
}); | |
// Transition exiting rectangles to the bottom of the barchart: | |
graybars.exit() | |
.transition().duration(duration) | |
.attr("y", function(d, i) { | |
return barheight + margin.bottom + 6 + i * 18 + 2 * rMax; | |
}) | |
.remove(); | |
labels.exit() | |
.transition().duration(duration) | |
.attr("y", function(d, i) { | |
return barheight + margin.bottom + 18 + i * 18 + 2 * rMax; | |
}) | |
.remove(); | |
redbars.exit() | |
.transition().duration(duration) | |
.attr("y", function(d, i) { | |
return barheight + margin.bottom + 6 + i * 18 + 2 * rMax; | |
}) | |
.remove(); | |
// https://github.com/mbostock/d3/wiki/Transitions#wiki-d3_ease | |
newaxis.transition().duration(duration) | |
.transition().duration(duration) | |
.call(xAxis); | |
} | |
} | |
////////////////////////////////////////////////////////////////////////////// | |
// function to update bar chart when a topic is selected | |
// the circle argument should be the appropriate circle element | |
function topic_on(circle) { | |
if (circle == null) return null; | |
// grab data bound to this element | |
var d = circle.__data__ | |
var Freq = Math.round(d.Freq * 10) / 10, | |
topics = d.topics; | |
// change opacity and fill of the selected circle | |
circle.style.opacity = highlight_opacity; | |
circle.style.fill = color2; | |
// Remove 'old' bar chart title | |
var text = d3.select(".bubble-tool"); | |
text.remove(); | |
// append text with info relevant to topic of interest | |
d3.select("#bar-freqs") | |
.append("text") | |
.attr("x", barwidth/2) | |
.attr("y", -30) | |
.attr("class", "bubble-tool") // set class so we can remove it when highlight_off is called | |
.style("text-anchor", "middle") | |
.style("font-size", "16px") | |
.text("Top-" + R + " Most Relevant Terms for Topic " + topics + " (" + Freq + "% of tokens)"); | |
// grab the bar-chart data for this topic only: | |
var dat2 = lamData.filter(function(d) { | |
return d.Category == "Topic" + topics | |
}); | |
// define relevance: | |
for (var i = 0; i < dat2.length; i++) { | |
dat2[i].relevance = lambda.current * dat2[i].logprob + | |
(1 - lambda.current) * dat2[i].loglift; | |
} | |
// sort by relevance: | |
dat2.sort(fancysort("relevance")); | |
// truncate to the top R tokens: | |
var dat3 = dat2.slice(0, R); | |
// scale the bars to the top R terms: | |
var y = d3.scale.ordinal() | |
.domain(dat3.map(function(d) { | |
return d.Term; | |
})) | |
.rangeRoundBands([0, barheight], 0.15); | |
var x = d3.scale.linear() | |
.domain([0, d3.max(dat3, function(d) { | |
return d.Total; | |
})]) | |
.range([0, barwidth]) | |
.nice(); | |
// remove the red bars if there are any: | |
d3.selectAll(".overlay").remove(); | |
// Change Total Frequency bars | |
d3.selectAll(".bar-totals") | |
.data(dat3) | |
.attr("x", 0) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}) | |
.attr("height", y.rangeBand()) | |
.attr("width", function(d) { | |
return x(d.Total); | |
}) | |
.style("fill", color1) | |
.attr("opacity", 0.4); | |
// Change word labels | |
d3.selectAll(".terms") | |
.data(dat3) | |
.attr("x", -5) | |
.attr("y", function(d) { | |
return y(d.Term) + 12; | |
}) | |
.attr("id", function(d) { | |
return (termID + d.Term) | |
}) | |
.style("text-anchor", "end") // right align text - use 'middle' for center alignment | |
.text(function(d) { | |
return d.Term; | |
}); | |
// Create red bars (drawn over the gray ones) to signify the frequency under the selected topic | |
d3.select("#bar-freqs").selectAll(".overlay") | |
.data(dat3) | |
.enter() | |
.append("rect") | |
.attr("class", "overlay") | |
.attr("x", 0) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}) | |
.attr("height", y.rangeBand()) | |
.attr("width", function(d) { | |
return x(d.Freq); | |
}) | |
.style("fill", color2) | |
.attr("opacity", 0.8); | |
// adapted from http://bl.ocks.org/mbostock/1166403 | |
var xAxis = d3.svg.axis().scale(x) | |
.orient("top") | |
.tickSize(-barheight) | |
.tickSubdivide(true) | |
.ticks(6); | |
// redraw x-axis | |
d3.selectAll(".xaxis") | |
//.attr("class", "xaxis") | |
.call(xAxis); | |
} | |
function topic_off(circle) { | |
if (circle == null) return circle; | |
// go back to original opacity/fill | |
circle.style.opacity = base_opacity; | |
circle.style.fill = color1; | |
var title = d3.selectAll(".bubble-tool") | |
.text("Top-" + R + " Most Salient Terms"); | |
title.append("tspan") | |
.attr("baseline-shift", "super") | |
.attr("font-size", 12) | |
.text(1); | |
// remove the red bars | |
d3.selectAll(".overlay").remove(); | |
// go back to 'default' bar chart | |
var dat2 = lamData.filter(function(d) { | |
return d.Category == "Default" | |
}); | |
var y = d3.scale.ordinal() | |
.domain(dat2.map(function(d) { | |
return d.Term; | |
})) | |
.rangeRoundBands([0, barheight], 0.15); | |
var x = d3.scale.linear() | |
.domain([0, d3.max(dat2, function(d) { | |
return d.Total; | |
})]) | |
.range([0, barwidth]) | |
.nice(); | |
// Change Total Frequency bars | |
d3.selectAll(".bar-totals") | |
.data(dat2) | |
.attr("x", 0) | |
.attr("y", function(d) { | |
return y(d.Term); | |
}) | |
.attr("height", y.rangeBand()) | |
.attr("width", function(d) { | |
return x(d.Total); | |
}) | |
.style("fill", color1) | |
.attr("opacity", 0.4); | |
//Change word labels | |
d3.selectAll(".terms") | |
.data(dat2) | |
.attr("x", -5) | |
.attr("y", function(d) { | |
return y(d.Term) + 12; | |
}) | |
.style("text-anchor", "end") // right align text - use 'middle' for center alignment | |
.text(function(d) { | |
return d.Term; | |
}); | |
// adapted from http://bl.ocks.org/mbostock/1166403 | |
var xAxis = d3.svg.axis().scale(x) | |
.orient("top") | |
.tickSize(-barheight) | |
.tickSubdivide(true) | |
.ticks(6); | |
// redraw x-axis | |
d3.selectAll(".xaxis") | |
.attr("class", "xaxis") | |
.call(xAxis); | |
} | |
// event definition for mousing over a term | |
function term_hover(term) { | |
var old_term = termID + vis_state.term; | |
if (vis_state.term != "" && old_term != term.id) { | |
term_off(document.getElementById(old_term)); | |
} | |
vis_state.term = term.innerHTML; | |
term_on(term); | |
state_save(true); | |
} | |
// updates vis when a term is selected via click or hover | |
function term_on(term) { | |
if (term == null) return null; | |
term.style["fontWeight"] = "bold"; | |
var d = term.__data__ | |
var Term = d.Term; | |
var dat2 = mdsData3.filter(function(d2) { | |
return d2.Term == Term | |
}); | |
var k = dat2.length; // number of topics for this token with non-zero frequency | |
var radius = []; | |
for (var i = 0; i < K; ++i) { | |
radius[i] = 0; | |
} | |
for (i = 0; i < k; i++) { | |
radius[dat2[i].Topic - 1] = dat2[i].Freq; | |
} | |
var size = []; | |
for (var i = 0; i < K; ++i) { | |
size[i] = 0; | |
} | |
for (i = 0; i < k; i++) { | |
// If we want to also re-size the topic number labels, do it here | |
// 11 is the default, so leaving this as 11 won't change anything. | |
size[dat2[i].Topic - 1] = 11; | |
} | |
var rScaleCond = d3.scale.sqrt() | |
.domain([0, 1]).range([0, rMax]); | |
// Change size of bubbles according to the word's distribution over topics | |
d3.selectAll(".dot") | |
.data(radius) | |
.transition() | |
.attr("r", function(d) { | |
//return (rScaleCond(d)); | |
return (Math.sqrt(d*mdswidth*mdsheight*word_prop/Math.PI)); | |
}); | |
// re-bind mdsData so we can handle multiple selection | |
d3.selectAll(".dot") | |
.data(mdsData) | |
// Change sizes of topic numbers: | |
d3.selectAll(".txt") | |
.data(size) | |
.transition() | |
.style("font-size", function(d) { | |
return +d; | |
}); | |
// Alter the guide | |
d3.select(".circleGuideTitle") | |
.text("Conditional topic distribution given term = '" + term.innerHTML + "'"); | |
} | |
function term_off(term) { | |
if (term == null) return null; | |
term.style["fontWeight"] = "normal"; | |
d3.selectAll(".dot") | |
.data(mdsData) | |
.transition() | |
.attr("r", function(d) { | |
//return (rScaleMargin(+d.Freq)); | |
return (Math.sqrt((d.Freq/100)*mdswidth*mdsheight*circle_prop/Math.PI)); | |
}); | |
// Change sizes of topic numbers: | |
d3.selectAll(".txt") | |
.transition() | |
.style("font-size", "11px"); | |
// Go back to the default guide | |
d3.select(".circleGuideTitle") | |
.text("Marginal topic distribution"); | |
d3.select(".circleGuideLabelLarge") | |
.text(defaultLabelLarge); | |
d3.select(".circleGuideLabelSmall") | |
.attr("y", mdsheight + 2 * newSmall) | |
.text(defaultLabelSmall); | |
d3.select(".circleGuideSmall") | |
.attr("r", newSmall) | |
.attr("cy", mdsheight + newSmall); | |
d3.select(".lineGuideSmall") | |
.attr("y1", mdsheight + 2 * newSmall) | |
.attr("y2", mdsheight + 2 * newSmall); | |
} | |
// serialize the visualization state using fragment identifiers -- http://en.wikipedia.org/wiki/Fragment_identifier | |
// location.hash holds the address information | |
var params = location.hash.split("&"); | |
if (params.length > 1) { | |
vis_state.topic = params[0].split("=")[1]; | |
vis_state.lambda = params[1].split("=")[1]; | |
vis_state.term = params[2].split("=")[1]; | |
// Idea: write a function to parse the URL string | |
// only accept values in [0,1] for lambda, {0, 1, ..., K} for topics (any string is OK for term) | |
// Allow for subsets of the three to be entered: | |
// (1) topic only (lambda = 1 term = "") | |
// (2) lambda only (topic = 0 term = "") visually the same but upon hovering a topic, the effect of lambda will be seen | |
// (3) term only (topic = 0 lambda = 1) only fires when the term is among the R most salient | |
// (4) topic + lambda (term = "") | |
// (5) topic + term (lambda = 1) | |
// (6) lambda + term (topic = 0) visually lambda doesn't make a difference unless a topic is hovered | |
// (7) topic + lambda + term | |
// Short-term: assume format of "#topic=k&lambda=l&term=s" where k, l, and s are strings (b/c they're from a URL) | |
// Force k (topic identifier) to be an integer between 0 and K: | |
vis_state.topic = Math.round(Math.min(K, Math.max(0, vis_state.topic))); | |
// Force l (lambda identifier) to be in [0, 1]: | |
vis_state.lambda = Math.min(1, Math.max(0, vis_state.lambda)); | |
// impose the value of lambda: | |
document.getElementById(lambdaID).value = vis_state.lambda; | |
document.getElementById(lambdaID + "-value").innerHTML = vis_state.lambda; | |
// select the topic and transition the order of the bars (if approporiate) | |
if (!isNaN(vis_state.topic)) { | |
document.getElementById(topicID).value = vis_state.topic; | |
if (vis_state.topic > 0) { | |
topic_on(document.getElementById(topicID + vis_state.topic)); | |
} | |
if (vis_state.lambda < 1 && vis_state.topic > 0) { | |
reorder_bars(false); | |
} | |
} | |
lambda.current = vis_state.lambda; | |
var termElem = document.getElementById(termID + vis_state.term); | |
if (termElem !== undefined) term_on(termElem); | |
} | |
function state_url() { | |
return location.origin + location.pathname + "#topic=" + vis_state.topic + | |
"&lambda=" + vis_state.lambda + "&term=" + vis_state.term; | |
} | |
function state_save(replace) { | |
if (replace) | |
history.replaceState(vis_state, "Query", state_url()); | |
else | |
history.pushState(vis_state, "Query", state_url()); | |
} | |
function state_reset() { | |
if (vis_state.topic > 0) { | |
topic_off(document.getElementById(topicID + vis_state.topic)); | |
} | |
if (vis_state.term != "") { | |
term_off(document.getElementById(termID + vis_state.term)); | |
} | |
vis_state.term = ""; | |
document.getElementById(topicID).value = vis_state.topic = 0; | |
state_save(true); | |
} | |
}); | |
// var current_clicked = { | |
// what: "nothing", | |
// element: undefined | |
// }, | |
//debugger; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment