Created
June 25, 2016 01:40
-
-
Save jaimeortiz-david/51f6702559dcb0b3727902d9e192eba8 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.020863, 0.10194, -0.011659, 0.0025381, 0.064338, -0.042593, 0.025151, 0.0059716, 0.04886, -0.021136, -0.11394, -0.10606, 0.16853, 0.16645, 0.14072, 0.14981, 0.16119, -0.23287, -0.23917, -0.28893 ], | |
"y": [ -0.21572, 0.12969, -0.081752, -0.10235, 0.15517, -0.072627, 0.029072, 0.2563, 0.19905, 0.0081, -0.12707, 0.11321, -0.063999, -0.021016, -0.052719, -0.065499, -0.057913, -0.020194, -0.069097, 0.059375 ], | |
"topics": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], | |
"Freq": [ 11.664, 10.312, 9.8966, 7.801, 7.1269, 5.8643, 5.1696, 5.1631, 5.1335, 4.9109, 4.7142, 4.2736, 3.1482, 2.7121, 2.5676, 2.4643, 1.9442, 1.7392, 1.7084, 1.6862 ], | |
"cluster": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] | |
}, | |
"tinfo": { | |
"Term": [ "population", "marine", "endemic", "sea", "conservation", "santa", "mantle", "genetic", "ridge", "tortoises", "genus", "plume", "california", "model", "cruz", "time", "spreading", "effects", "birds", "expedition", "plant", "native", "patterns", "ecological", "iguanas", "analysis", "lower", "system", "foraging", "eastern", "disturbances", "distinctiveness", "cumulate", "implement", "select", "operating", "selfing", "respond", "step", "mechanism", "modeling", "qualitative", "wave", "underlying", "gradients", "fire", "correspondence", "approaching", "influx", "overlying", "regular", "sanchez", "multilocus", "error", "options", "match", "initiate", "notably", "planetary", "profoundly", "chelonian", "patch", "fumarole", "migrations", "documentation", "separately", "conroy", "adequate", "vessels", "operational", "spectrometer", "demands", "lag", "weevils", "responded", "outbreaks", "rediscovery", "longest", "shelter", "walter", "tiger", "expand", "utilized", "sunrise", "residence", "steeply", "captures", "limitation", "itcz", "ph", "haplotypes", "milinkovitch", "ympev", "ayora", "bathymetric", "inbred", "conceptual", "highlighting", "volatile", "incorporate", "sorting", "sensitivity", "blunt", "node", "columbiformes", "guajava", "salazar", "equipped", "ecography", "gomez", "steinitz", "tim", "implication", "biocon", "specificity", "hematology", "millennial", "applicability", "unable", "kannan", "fractionate", "mesic", "nutrition", "elevational", "paralichthyid", "rakers", "atrium", "latioresignata", "trifasciata", "leached", "geometric", "organ", "dissolved", "airborne", "deficient", "anatomical", "basins", "artois", "cultural", "moister", "additive", "seals'", "platyhelminthes", "authentic", "absorption", "appearing", "multiplied", "consistency", "swath", "stolidus", "erosional", "smectite", "strontium", "glauconite", "mounds", "''", "gonads", "chilopoda", "cd", "favored", "ams", "dorylaimida", "calibration", "disclosed", "alteration", "inferences", "galapagoan", "bodies", "saboga", "crystals", "reddish", "christie", "shelves", "macquart", "kyr", "buffered", "participate", "hess", "clavus", "clarified", "scott", "rachel", "gabriele", "antibiotic", "nicole", "ocecoaman", "scenarios", "construction", "hogna", "atkinson", "ovule", "aurioles", "virna", "aquifer", "boraginaceae", "competitive", "improvements", "kleindorfer", "flamingo", "arnaud", "oib", "linkage", "spanning", "sonia", "poaching", "explicit", "renowned", "submitted", "lycopadienes", "lavoie", "pectiniunguis", "nutritional", "cyclic", "scorpiones", "gertsch", "rifting", "symphylan", "flexure", "pentodontini", "authigenic", "wr", "fecundities", "kinematic", "setiform", "symphyla", "alternation", "anopsicus", "attenuated", "banksi", "deleted", "modicus", "modisimus", "odontostyle", "virgin", "aware", "pseudoscorpiones", "mineralizing", "pachymerium", "provisioning", "howdenae", "penicillatus", "panulirus", "dinucleotide", "elongation", "putative", "prickly", "murtugudde", "gondii", "alkadienes", "steinfartz", "predicting", "pinniped", "whilst", "squamates", "karnauskas", "validation", "traditionally", "classic", "biomarker", "encounter", "adalgisa", "spiny", "compliance", "kimberly", "frontiers", "orca", "reintroduced", "gonzalez", "noah", "orcinus", "canarypox", "alkanes", "meeting", "jessica", "fermentative", "disequilibria", "isostichopus", "defecated", "transform", "psittaci", "cuts", "effusion", "cucumber", "protect", "offs", "stems", "fuscus", "simulate", "macro", "immunosuppression", "disasters", "degraded", "performance", "strains", "residual", "cordia", "chlamydophila", "hl", "ray", "indices", "behn", "exponentially", "fluctuating", "cushman", "surgical", "convection", "constrains", "counted", "translocated", "digestion", "assembly", "designate", "activation", "india", "swell", "precautionary", "drastic", "pooled", "meaningful", "roots", "dinoflagellate", "regenerate", "unchanged", "deciduous", "mulsant", "deal", "solanum", "walking", "progressively", "fleshy", "conflicts", "residents", "marilyn", "ridgewayia", "infestations", "jonathan", "birth", "gustavo", "lobsters", "amtmann", "villegas", "drive", "regina", "cesar", "emissions", "enigmatic", "trueman", "garrett", "morphs", "philopatry", "pteridium", "hogfish", "drier", "aureola", "chamorro", "employed", "chiari", "sharon", "berjano", "focusing", "recycled", "cottony", "maskell", "weed", "yanez", "lycopersicum", "lutea", "midges", "overview", "predominance", "guided", "annually", "correcting", "cleithral", "refraction", "tenella", "microscope", "unambiguously", "adiabatic", "alkalic", "biologies", "phenotypically", "shriver", "boosted", "recoveries", "concepts", "vigorously", "laboratories", "topology", "incision", "burros", "lamellar", "pads", "crossed", "snake", "abundantly", "gemelosi", "undeveloped", "ampullae", "erroneously", "saddlebacked", "aberrant", "vertically", "galium", "regurgitated", "trampling", "people", "trifasciatus", "procedure", "cones", "fitted", "borer", "broken", "checklist", "donkeys", "deployed", "spiders", "destruction", "cavity", "colonizing", "doubtfully", "gamete", "chiriqui", "agency", "approximates", "enzymes", "bipartite", "amalgamated", "gametes", "depositional", "ani", "filamentous", "logbooks", "layered", "calls", "collectively", "revenue", "refractile", "sporozoites", "demand", "cairns", "chains", "unequivocal", "papillae", "carrasco", "sixteen", "persisted", "milne", "spawners", "yields", "carotene", "flatworms", "alga", "uplands", "manipulative", "fenced", "compressed", "cromwell", "fruited", "genesis", "beds", "cirrus", "nomenclatural", "gross", "floral", "diffusa", "hircus", "laevis", "feathers", "azores", "easily", "wiedemann", "obtaining", "haul", "fruits", "financial", "hatched", "interrelationships", "spaced", "publication", "mycteroperca", "annulatus", "pits", "hartman", "meteorological", "completion", "lying", "caranx", "hitherto", "galapagoense", "grouper", "encroachment", "annotated", "mus", "dealing", "pectinatum", "naso", "keeping", "fra", "star", "arachnida", "triaenodon", "instances", "references", "reproduced", "mirror", "hippoboscidae", "lists", "california", "cactospiza", "society's", "suppl", "squid", "morton", "expressions", "bulk", "variants", "cockerell", "deleterious", "feeds", "figures", "object", "devoid", "habits", "tagus", "unesco", "eating", "spacing", "task", "inspired", "aedeagus", "precarious", "linda", "tectonics", "note", "winged", "beagle", "facts", "cooke", "categories", "serovars", "dozouville", "keto", "juanibali", "hydroxy", "gigantolaelaps", "roderick", "chd", "croton", "ruben", "advances", "participants", "cortical", "chloroalkenes", "apv", "anaesthesia", "intrathecal", "aegialomys", "tabaci", "odontasteridae", "pfge", "pomona", "xbai", "carcharhiniformes", "driesche", "parmeliaceae", "competency", "ultra", "biotic", "carolina", "usnea", "pseudocyclops", "ngvp", "li", "traveset", "natives", "serotyping", "hill", "raspberry", "meise", "pav", "ova", "sphagnum", "laelapine", "chloroalkanes", "giddingsi", "poona", "garrick", "bush", "diaspores", "generalized", "morph", "subjective", "seddon", "truong", "vectorial", "ying", "magnet", "marpol", "aguilera", "tsunami", "acids", "ddt", "tyrannulus", "perspectives", "heleno", "cyphellostereum", "creek", "bog", "saenzi", "judith", "enterica", "trichomes", "'n", "abaetetuba", "detached", "pigeons", "scope", "clerc", "syndrome", "wetlands", "asci", "copying", "profundacella", "dung", "hepatozoon", "pei", "odontaspis", "rrna", "equivalency", "downsi", "baltra", "victor", "representation", "digestive", "darwinii", "skin", "signatures", "phenotypic", "nematodes", "resistivity", "fluids", "fluid", "braunii", "heavily", "avipoxvirus", "herbivorous", "eden", "heterostylous", "weak", "infecting", "beak", "chronic", "slender", "grouped", "invaders", "surgery", "saltwater", "diols", "chickens", "preventing", "approximate", "gamboa", "methodology", "finite", "assigned", "antibody", "vertebrate", "dietz", "olesen", "ldd", "neotropical", "range", "phylogeography", "adenovirus", "elevations", "coomans", "fall", "attacks", "diseases", "metapopulation", "peck", "gmr", "cats", "proxy", "integrative", "expedition", "break", "syndromes", "spatially", "overlap", "dropped", "eradication", "decisions", "orders", "antigen", "modification", "fishers", "plasmodium", "decoupling", "depredation", "rocky", "regime", "onset", "dataset", "vulnerable", "alan", "phases", "fractured", "euc", "lantana", "gauge", "snails", "soil", "expeditions", "seals", "laid", "scleractinian", "resistance", "pathogen", "assuming", "shell", "myiarchus", "hand", "rice", "eradicate", "network", "phalacrocorax", "cinchona", "fished", "segregation", "nestling", "andrea", "smooth", "dates", "effectiveness", "sites", "anthropogenic", "reveals", "balaenoptera", "steep", "corals", "'w", "suggestions", "prevalence", "chelonia", "functions", "beta", "organization", "fibrils", "dictyonema", "past", "control", "projects", "molecular", "subpopulations", "salmonella", "lower", "shows", "peduncularis", "fault", "min", "propagating", "zootaxa", "spot", "restoration", "fishing", "taking", "soils", "isolates", "complex", "time", "measured", "gas", "cells", "migrating", "colony", "microplate", "pb", "gut", "phenotypes", "correction", "meristic", "galapagensis", "intestinal", "increase", "determined", "behaviour", "site", "decades", "anderson", "hydrothermal", "health", "diversification", "alien", "araneae", "tail", "capra", "george", "monograph", "conditions", "upper", "scale", "faunas", "unaffected", "metal", "annals", "elevated", "province", "mockingbirds", "fisheries", "efficiency", "medicine", "sector", "process", "domestic", "season", "whales", "ratios", "dennis", "ring", "lion", "scalesia", "project", "parasites", "jorge", "fossil", "correctly", "breed", "hunter", "list", "discussion", "intra", "distance", "trillmich", "subsurface", "parameters", "protected", "dive", "colonies", "gene", "background", "predict", "indirect", "effects", "address", "taxa", "approximately", "fernandina", "habitat", "bayesian", "geosystems", "impact", "nile", "trace", "surface", "risk", "specific", "efforts", "platform", "mosquito", "bathymetry", "dsdp", "cormorants", "cryptic", "managers", "holocene", "adaptations", "galapagense", "nesting", "chelonoidis", "shallow", "reptile", "sea", "surveys", "microsatellite", "mating", "ubiquitous", "mitochondrial", "offspring", "barrier", "turtles", "foraged", "morphometric", "omega", "suggest", "direct", "distances", "mid", "critical", "significantly", "fe", "enso", "insar", "radial", "easter", "stable", "components", "mantle", "pone", "enabled", "gulf", "earthquake", "reintroduction", "occurs", "negative", "seawater", "penguins", "howard", "zoo", "acid", "local", "alpha", "iconic", "structure", "separate", "trends", "invasive", "diving", "averaged", "element", "plant", "glynn", "northern", "chamber", "density", "dispersal", "tools", "predation", "triple", "cruz", "origin", "hotspot", "isabela", "diet", "height", "nitrogen", "cost", "albelo", "energy", "estimating", "communities", "contributions", "fishes", "kramer", "host", "derived", "dry", "combined", "diversity", "population", "invasion", "earth", "spreading", "tomatoes", "markers", "global", "melting", "masked", "mantle", "adult", "basalt", "center", "genetic", "caribbean", "baits", "community", "ridge", "goats", "anatomy", "rodolia", "andes", "dorsal", "processes", "lower", "highest", "caldera", "nuclear", "disease", "darwin's", "model", "interaction", "critically", "floreana", "minor", "nocturnal", "cardinalis", "consistent", "analysis", "nino", "volcanic", "magmas", "plate", "lavas", "allopatric", "endemic", "penguin", "morphology", "constraints", "vertebrates", "bird", "breeding", "image", "mound", "ridge", "levels", "volcanoes", "ranged", "santa", "lions", "temperature", "coarse", "academy", "political", "population", "occur", "multiple", "plume", "scales", "speciation", "level", "pollen", "magma", "tortoises", "lavas", "biodiversity", "extinction", "closer", "id", "purchasi", "survey", "plumes", "endangered", "group", "class", "magma", "dynamics", "endemic", "revista", "genera", "hook", "sula", "locality", "dynamic", "system", "sea", "research", "birds", "spreading", "evidence", "santiago", "anchialine", "lepidoptera", "conservation", "santa", "levels", "social", "bulletin", "bulletin", "noble", "anna", "research", "native", "flows", "variations", "pollination", "male", "report", "ecosystem", "strain", "antimicrobials", "bacterial", "lineages", "caldera", "volcano", "oceanic", "periods", "isotope", "dna", "avian", "crustal", "host", "late", "behavior", "contemporary", "volcano", "previous", "eruption", "development", "males", "recent", "resources", "highly", "samples", "center", "tortoises", "giant", "external", "environments", "reptiles", "canal", "behavior", "considered", "marine", "region", "avian", "influence", "isotope", "factors", "expedition", "coast", "learning", "model", "previously", "group", "lava", "impacts", "spatial", "land", "series", "setae", "colonization", "presence", "increased", "marine", "invasive", "disease", "enriched", "corals", "penguins", "transmitted", "flycatcher", "pcr", "lipid", "marine", "reproductive", "event", "deep", "mantle", "individual", "estimated", "spread", "analysis", "pronounced", "treatments", "scientific", "native", "junction", "cruz", "period", "population", "volcanoes", "effects", "eastern", "males", "tropical", "historical", "plume", "ef", "flora", "potential", "shark", "iguanas", "basaltic", "human", "eastern", "conservation", "decline", "june", "galapagoensis", "arid", "morphological", "genus", "morphological", "volcanic", "foraging", "provide", "records", "rats", "birds", "nectar", "frigatebirds", "magnirostris", "east", "surface", "isotopic", "estimates", "society", "genovesa", "result", "historic", "alleles", "sediment", "insects", "plumage", "vector", "retention", "alcedo", "coral", "introduced", "regional", "region", "history", "tortoise", "sharks", "governance", "evidence", "samples", "lithosphere", "crust", "genetic", "dna", "layer", "vegetation", "territorial", "ground", "genus", "natural", "upwelling", "records", "growth", "identified", "iguanas", "plants", "colonization", "genus", "identification", "iguana", "specimens", "conservation", "avian", "recent", "region", "santa", "models", "plume", "intermediate", "content", "information", "recorded", "darwini", "understanding", "seed", "foraging", "markers", "plant", "southern", "evolutionary", "record", "reviewed", "pollen", "lions", "ridge", "period", "identified", "element", "faunas", "close", "season", "descriptions", "description", "ecological", "colonization", "geochelone", "methods", "expedition", "galapagoensis", "traits", "temperature", "lava", "morphology", "success", "role", "understanding", "ca", "hotspot", "recruitment", "isabela", "sea", "san", "parasite", "adult", "pinta", "intermediate", "foundation", "interactions", "social", "iguanas", "deep", "feeding", "analysis", "genus", "human", "patterns", "reported", "whales", "older", "genetic", "climate", "introduced", "abundance", "boobies", "studies", "time", "feeding", "zalophus", "field", "ef", "environmental", "harpp", "depth", "ecological", "field", "dispersal", "significant", "plants", "structure", "identification", "juvenile", "genetic", "tortoises", "marine", "values", "increased", "significant", "extinct", "endemic", "single", "nest", "seawater", "foraging", "evolution", "common", "ecology", "axis", "population", "male", "genus", "lizards", "sea", "reserve", "volcano", "ecology", "endemic", "tourism", "reported", "marine", "male", "related", "original", "related", "reproductive", "groups", "microsatellite", "san", "result", "suggest", "days", "insular", "assessment", "born", "habitats", "santa", "eastern", "expedition", "pollination", "breeding", "eastern", "galapagoensis", "forms", "exposure", "sites", "model", "series", "san", "genus", "birds", "impacts", "eradication", "vegetation", "cruz", "represent", "fernandina", "hawk", "recorded", "studies", "fruit", "processes", "vegetation", "suggest", "presence", "variable", "adult", "conditions", "dispersed", "patterns", "axial", "time", "variability", "coleoptera", "plants", "boobies", "ecosystems", "system", "hydrothermal", "natural", "interactions", "cruz", "galapagensis", "examined", "penguin", "marine", "coastal", "depth", "males", "eastern", "specimens", "period", "field", "feeding", "plume", "patterns", "patterns", "fe", "research", "oceanic", "arid", "geophysical", "development", "endemic", "east", "period", "lava", "marine", "models", "recruitment", "ecological", "santa", "iguanas", "darwin", "california", "influence", "presence", "nino", "iguanas", "ecology", "plants", "mid", "related", "introduced", "population", "fernandina", "records", "growth", "individual", "rift", "wild", "recruitment", "multiple", "nino", "reproductive", "land", "level", "mainland", "influenced", "studies", "endemic", "genetic", "history", "evidence", "tortoises", "genera", "plant", "significantly", "flow", "darwin", "potential", "combination", "morphology", "rift", "molecular", "human", "cruz", "santa", "evolution", "shape", "development", "research", "patterns", "endemic", "seed", "land", "human", "biological", "related", "time", "temperature", "genera", "establishment", "natural", "site", "divergence", "specimens", "records", "birds", "male", "males", "significant", "breeding", "morphological", "marine", "seals", "breeding", "genus", "endemic", "california", "north", "growth", "environment", "phylogenetic", "growth", "system", "santa", "suggest", "region", "recovered", "groups", "region", "reported", "environment", "bulletin", "distance", "endemic", "cruz", "genus", "floreana", "diversity", "sea", "records", "migration", "system", "field", "levels", "genus", "determine", "conservation", "previously", "genera", "foraging", "marine", "analysis", "santa", "seeds", "common", "eastern", "fe", "breeding", "ecological", "finches" ], | |
"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, -7.1025, -7.6085, -7.8198, -7.8198, -7.6006, -7.6085, -7.772, -7.9122, -7.117, -6.1242, -6.1854, -7.7627, -6.1892, -6.3559, -6.2444, -6.9559, -7.3697, -7.8396, -7.5032, -7.8297, -6.6489, -7.6573, -7.7174, -7.9674, -7.5395, -7.8396, -7.7534, -7.5395, -6.2628, -7.9904, -7.4018, -7.5177, -7.6583, -7.6773, -7.9396, -7.9909, -8.0589, -8.0875, -8.0875, -8.1169, -8.1627, -8.2107, -8.244, -7.0037, -7.4542, -8.1021, -7.4855, -7.5943, -8.1021, -7.6032, -7.0643, -8.1627, -8.1319, -8.045, -7.5342, -8.3703, -7.6773, -7.1178, -7.879, -6.9013, -6.3891, -7.0712, -7.2181, -7.2181, -7.2244, -7.339, -7.4286, -7.4443, -7.4523, -7.4766, -7.5444, -7.6171, -7.7697, -7.7697, -7.7807, -7.9111, -6.6353, -8.0038, -8.0178, -8.1216, -8.1373, -8.1861, -8.22, -6.6823, -6.5409, -7.2055, -7.8146, -7.8379, -7.9367, -8.1533, -7.3423, -7.7523, -7.3984, -7.7387, -7.7523, -7.78, -7.78, -7.838, -7.838, -7.7661, -7.7387, -7.3794, -7.3423, -6.3975, -8.4315, -8.4315, -8.4315, -7.521, -8.4589, -8.4589, -8.4871, -8.4871, -7.5319, -8.516, -8.4315, -8.4589, -8.4871, -7.9318, -8.4589, -8.4589, -6.9827, -6.4312, -6.9827, -6.5681, -6.5499, -6.5727, -6.089, -8.3146, -6.5102, -7.2704, -8.3146, -7.234, -7.165, -7.8415, -5.7893, -7.662, -7.4527, -6.5233, -6.4272, -8.3412, -8.3412, -6.8168, -7.6758, -8.3686, -6.9827, -8.3686, -8.3686, -7.2612, -6.8346, -7.6484, -5.8607, -6.4203, -6.593, -6.6889, -6.6952, -6.7143, -6.8674, -6.8902, -6.8979, -6.9057, -6.9294, -6.9456, -6.9537, -6.9619, -7.0041, -7.0128, -7.0943, -7.123, -7.1525, -7.183, -7.2144, -7.2579, -7.2803, -7.3388, -7.3388, -7.3388, -7.3509, -7.3509, -7.3509, -7.4138, -6.7566, -6.836, -7.0366, -7.0674, -7.0779, -7.1544, -7.1774, -7.6803, -7.7195, -7.7195, -7.7195, -7.7397, -7.7397, -7.7397, -7.7397, -7.7814, -7.7814, -7.7814, -7.7814, -7.7814, -7.7814, -7.7814, -7.7814, -7.7814, -7.8029, -6.8115, -7.7195, -7.8029, -7.8029, -7.1431, -6.4658, -6.7033, -7.1878, -7.236, -6.9484, -6.5871, -7.4872, -6.7707, -7.0055, -6.5246, -6.8265, -6.6747, -7.4715, -7.1531, -7.536, -7.2866, -7.869, -6.9577, -7.3264, -7.0766, -5.9302, -5.8017, -7.0766, -7.7183, -7.2737, -7.5032, -7.9926, -6.7553, -6.9031, -7.5195, -6.3778, -6.1401, -7.5138, -5.5359, -7.5471, -6.9243, -5.599, -7.7533, -5.8319, -6.4208, -7.6733, -5.7756, -5.0639, -6.5814, -6.6344, -6.0228, -4.9669, -7.6356, -6.3315, -7.4975, -8.4053, -6.9243, -5.9447, -6.5189, -6.6009, -7.5471, -6.6344, -6.3467, -6.0302, -6.5686, -6.9458, -6.9753, -7.3037, -7.3037, -7.3177, -7.3319, -7.3757, -7.406, -7.406, -6.5436, -7.8425, -7.9692, -7.3463, -7.4215, -6.3076, -6.9955, -7.3757, -7.3907, -7.4215, -8.0248, -7.0918, -8.0248, -7.5028, -7.1261, -6.7765, -6.6902, -6.4389, -6.8443, -7.0161, -7.0587, -6.3922, -6.4098, -6.4338, -6.5561, -6.5769, -6.6877, -6.7522, -6.8301, -6.8301, -7.051, -7.051, -7.051, -7.1088, -7.1329, -7.1576, -7.1701, -7.1701, -7.1701, -7.1829, -7.2221, -7.2221, -7.2355, -7.2355, -7.2491, -7.2491, -7.2491, -7.2629, -7.2629, -7.2629, -7.2629, -6.3603, -6.4311, -6.6626, -6.6795, -6.7143, -6.8567, -6.867, -7.0108, -7.0349, -7.0722, -7.1375, -7.1789, -7.4902, -7.5097, -7.5496, -7.6128, -7.6348, -7.6348, -7.6348, -7.6348, -7.6348, -7.6348, -7.6348, -7.6572, -7.6572, -7.6802, -7.7037, -7.7037, -7.7037, -7.7037, -6.153, -6.7545, -6.7057, -6.0127, -7.2243, -7.2445, -7.4474, -7.5527, -7.2046, -6.3744, -6.2691, -7.3077, -7.8039, -7.2445, -6.5414, -7.5527, -6.8324, -6.5314, -6.7927, -5.8586, -7.2046, -7.2243, -7.5527, -5.8586, -6.5516, -6.5516, -5.5091, -6.5414, -7.7021, -6.5314, -7.4039, -7.461, -6.0752, -7.5861, -7.4909, -7.461, -6.8445, -6.8768, -5.8521, -7.4909, -6.7682, -6.105, -7.7291, -7.0756, -5.6408, -7.4909, -7.8091, -7.7683, -7.7683, -6.4234, -6.4991, -6.192, -7.896, -6.8445, -7.896, -7.4909, -7.62, -7.4321, -7.461, -6.3057, -5.6552, -6.5637, -6.5511, -6.5764, -7.2693, -6.5023, -7.2693, -7.4363, -6.171, -7.2693, -7.2693, -7.3219, -7.2953, -7.2693, -6.7284, -8.099, -6.1457, -6.2511, -7.4363, -7.467, -6.2984, -7.6004, -7.2693, -7.2693, -5.4652, -7.2693, -6.7434, -7.3219, -6.8222, -6.7587, -6.1561, -6.1561, -7.2284, -5.4328, -7.203, -7.2284, -7.2284, -6.5614, -6.1301, -7.2543, -6.5614, -7.2284, -5.9796, -4.9952, -6.1737, -7.2284, -7.203, -7.2284, -8.058, -7.2284, -7.2543, -7.2543, -6.8667, -5.1753, -6.8316, -8.0009, -6.5101, -5.9156, -3.5516, -5.3952, -6.1125, -6.8714, -6.9179, -6.9179, -6.942, -6.9667, -6.1899, -6.8714, -6.9179, -5.619, -6.0811, -6.2015, -6.8714, -4.8509, -6.9667, -6.156, -6.8489, -6.8489, -6.9179, -6.8944, -6.8714, -6.942, -6.8714, -6.942, -6.4969, -6.8944, -6.1785, -6.9667, -6.942, -6.5126, -5.495, -5.6396, -5.749, -5.8814, -5.9804, -6.023, -6.0904, -6.1627, -6.188, -6.214, -6.34, -6.34, -6.4015, -6.4175, -6.5193, -6.5556, -6.5556, -6.5743, -6.5743, -6.5934, -6.5934, -6.5934, -6.5934, -6.6128, -6.6128, -6.6528, -6.6734, -6.6734, -6.7159, -6.7379, -5.5997, -5.7395, -5.7648, -5.9522, -6.0051, -6.3221, -6.3221, -6.3372, -6.3372, -6.4325, -6.4325, -6.4493, -6.5014, -6.5378, -6.5755, -6.5755, -6.5755, -6.6147, -6.6349, -6.6766, -6.6766, -6.6766, -6.6766, -6.6981, -6.6981, -6.7425, -6.7425, -6.789, -6.789, -6.8131, -5.396, -5.6698, -5.8988, -5.9706, -5.9921, -6.0141, -6.1571, -6.2511, -6.2797, -6.3242, -6.4029, -5.1249, -6.4362, -6.5625, -6.5625, -6.5625, -6.6017, -6.6425, -6.685, -6.685, -6.685, -6.707, -6.707, -6.707, -6.7295, -6.7295, -6.7295, -6.7524, -6.7524, -6.776, -5.5833, -6.1556, -6.2515, -6.5699, -6.1637, -5.5241, -6.2491, -6.3696, -5.9074, -6.1355, -6.9057, -5.6709, -5.9018, -6.921, -6.0376, -6.4859, -6.1739, -6.5516, -6.2784, -6.3719, -7.3754, -6.8724, -7.0661, -6.9827, -7.4416, -7.0392, -6.7412, -6.2962, -5.769, -6.4372, -7.0767, -6.0231, -6.9619, -6.6579, -7.2622, -6.0302, -6.4158, -5.4329, -6.3997, -6.4325, -6.3549, -6.5672, -4.4836, -6.701, -6.948, -5.7495, -6.3767, -7.0872, -7.364, -5.6647, -7.78, -5.5896, -5.7388, -5.2881, -6.6877, -6.4378, -3.8354, -6.156, -6.4503, -6.5287, -6.3559, -7.7891, -5.1285, -6.4636, -6.4846, -7.0041, -6.5692, -6.0238, -5.3619, -7.2672, -6.5064, -6.2086, -6.6398, -6.7124, -7.1156, -5.9437, -6.0507, -6.1104, -7.2373, -6.1375, -5.2934, -7.0722, -5.5163, -4.9775, -4.7482, -5.6817, -7.1012, -6.8611, -5.7347, -5.8908, -6.7689, -5.299, -6.0904, -6.5784, -6.9558, -6.7918, -6.0148, -6.237, -5.6536, -5.626, -5.9387, -6.6902, -7.1208, -6.3057, -6.2614, -5.7099, -4.4188, -6.2224, -6.4606, -7.7942, -5.8193, -5.3167, -6.0072, -7.275, -4.8754, -6.8483, -5.8819, -5.6552, -6.3793, -6.5949, -6.5949, -5.4446, -4.7863, -6.7835, -4.3009, -6.6199, -4.8019, -4.449, -5.6119, -6.7355, -5.9031, -6.6676, -6.4803, -5.9895, -4.7876, -4.7783, -4.1387, -6.3919, -5.3573, -5.0977, -5.4837, -4.2922, -5.3778, -6.4138, -6.4482, -7.073, -5.5441, -6.0674, -4.6109, -6.3358, -6.3792, -6.6295, -6.2873, -3.9532, -6.1387, -5.0419, -5.6628, -5.5909, -4.7551, -6.3974, -6.1596, -5.0682, -5.7441, -5.3317, -5.0461, -5.6477, -5.636, -6.5511, -5.2259, -5.7067, -5.0019, -5.477, -5.0916, -5.8682, -6.8443, -6.3236, -6.7876, -5.447, -5.4538, -5.3133, -4.9451, -5.6397, -5.9487, -6.0124, -5.6985, -6.5124, -4.8783, -5.435, -4.9848, -6.2284, -6.7643, -4.8139, -4.9304, -6.0103, -4.6844, -6.4217, -5.0319, -6.7392, -6.2418, -6.6564, -4.4921, -5.5693, -6.1721, -5.2326, -6.2104, -6.9843, -6.1259, -5.8398, -6.1624, -4.9829, -4.4981, -5.8941, -5.7755, -6.3248, -4.0767, -6.0852, -4.8663, -5.3107, -4.9067, -4.8037, -6.2364, -5.4826, -4.6351, -6.2265, -5.5442, -4.7791, -5.6754, -5.3338, -5.7931, -5.4742, -5.7917, -6.0079, -7.0884, -5.5692, -5.9816, -5.7685, -5.4263, -6.1292, -5.8424, -4.2491, -5.5434, -5.241, -7.1014, -3.9593, -5.8414, -5.2859, -5.4282, -6.304, -4.8394, -5.7144, -6.3025, -5.7377, -6.1462, -6.025, -5.7741, -4.7205, -5.6639, -6.3817, -5.6323, -6.0661, -4.8789, -4.9904, -5.5278, -6.4545, -5.5775, -6.3743, -5.3256, -5.1639, -4.0637, -6.0633, -6.2268, -5.6698, -6.798, -5.4835, -5.8451, -5.9636, -6.0777, -5.1445, -5.907, -6.0118, -6.1961, -4.5391, -6.3826, -6.1574, -4.8637, -5.9623, -6.3033, -5.2211, -5.8324, -6.1349, -5.2145, -4.2551, -5.9149, -5.1464, -5.5427, -4.8272, -4.359, -6.093, -5.2018, -5.1959, -4.4139, -5.2386, -5.4191, -4.7098, -5.5048, -6.1187, -6.4614, -5.8407, -5.9887, -5.3781, -6.2527, -4.4388, -5.6354, -5.0063, -6.1672, -5.1915, -5.3474, -5.7538, -5.6554, -4.496, -3.6409, -5.9172, -5.0695, -4.2123, -6.0238, -5.2725, -5.2427, -4.645, -6.1394, -4.89, -5.241, -5.6836, -4.5638, -3.9071, -5.323, -6.1339, -4.9391, -4.1069, -5.064, -6.3653, -5.6907, -6.003, -6.1994, -5.4296, -4.7916, -6.0341, -5.0611, -5.4552, -5.072, -5.1583, -4.7487, -4.9835, -6.0009, -4.4496, -5.1433, -5.5143, -4.81, -5.2779, -4.983, -5.0133, -4.9589, -5.6246, -5.7853, -4.9587, -6.0446, -3.8018, -5.1833, -4.8657, -5.6835, -5.8228, -4.7838, -4.4231, -6.0402, -5.8814, -4.8592, -5.1704, -5.1982, -6.1107, -4.006, -5.2995, -4.6454, -6.7392, -4.8811, -5.2926, -4.2516, -5.456, -5.5825, -4.7706, -6.2318, -5.137, -4.9004, -5.4479, -4.6519, -4.2555, -4.5969, -5.1631, -5.1255, -6.0677, -6.134, -5.2695, -5.9417, -6.4298, -5.0633, -4.8808, -6.0623, -4.7102, -5.3212, -3.6679, -6.1049, -4.4032, -5.5742, -5.5201, -5.4855, -5.4577, -4.9833, -4.5512, -4.7753, -4.8353, -4.7448, -4.4967, -5.0999, -6.0559, -5.1506, -4.3836, -4.0459, -4.5776, -5.1446, -4.6863, -4.8524, -5.9598, -5.902, -5.0467, -5.1301, -5.5121, -5.0185, -5.4108, -4.7575, -4.7898, -4.556, -5.6396, -6.3252, -5.5298, -4.9156, -5.4171, -5.0372, -4.9933, -5.3366, -5.1519, -5.081, -5.2001, -5.2599, -4.7133, -5.4842, -4.5969, -6.1139, -4.8885, -5.4706, -5.454, -5.4282, -4.7538, -4.7017, -5.3966, -5.158, -4.8407, -4.8016, -4.2857, -4.8557, -5.8061, -5.66, -5.3709, -6.0325, -5.4867, -5.3185, -4.0286, -4.6687, -5.1599, -5.1302, -5.0839, -5.0383, -4.965, -5.0035, -6.34, -4.0173, -5.0585, -5.4824, -4.9309, -5.5088, -5.566, -4.735, -5.1128, -6.1184, -4.9804, -4.8785, -4.7263, -4.03, -4.9105, -5.0251, -5.2891, -5.435, -5.3688, -6.2015, -6.1702, -5.8889, -6.0252, -4.4356, -5.3206, -5.4232, -5.4163, -4.6371, -5.1412, -4.9849, -5.6509, -4.4581, -6.2171, -6.105, -5.3881, -4.1201, -5.3744, -4.8626, -5.4072, -4.6236, -4.9386, -4.8394, -4.6065, -4.6128, -4.7962, -5.3034, -4.307, -5.2232, -5.1629, -4.3263, -5.1527, -5.1243, -5.7281, -4.8765, -4.6811, -4.4815, -5.5365, -5.6006, -4.5313, -5.9035, -5.4062, -4.6099, -4.8592, -4.9009, -4.8063, -4.9345, -4.9477, -5.7129, -4.4698, -5.6696, -5.6143, -5.1574, -5.2455, -4.9505, -5.2201, -5.4342, -5.0049, -5.3097, -4.9168, -6.074, -5.8462, -5.5412, -5.5261, -5.3911, -5.1696, -5.4333, -5.8486, -5.1261, -4.7209, -5.6454, -4.7425, -4.7452, -4.9703, -4.9343, -5.9921, -5.0262, -5.1475, -5.6709, -5.4877, -4.3021, -5.0399, -6.0127, -4.9931, -5.4142, -5.0248, -4.9746, -5.0685, -5.3734, -5.0744, -4.9141, -5.1881, -4.7102, -4.7645, -4.9496, -4.5743, -5.5718, -5.1681, -4.7397, -3.989, -4.6419, -5.1677, -5.2735, -4.9596, -5.2387, -4.5091, -5.5897, -5.6501, -5.2531, -4.7655, -5.1108, -4.8682, -4.8476, -5.1283, -5.5214, -4.7951, -4.9239, -4.9959, -4.9633, -5.7731, -4.9702, -4.8852, -5.2642, -5.0923, -5.096, -5.055, -5.766, -5.4665, -5.0869, -5.3014, -5.2354, -4.3055, -5.2136, -5.3097, -5.2332, -5.301, -4.7082, -5.059, -5.1563, -5.3215, -5.0304, -5.3058, -5.3634, -5.5103, -5.1776, -5.0794, -5.3048, -5.3362, -4.6796, -4.9346, -5.284, -4.9052, -5.5488, -5.29, -5.8852, -4.9804, -4.9082, -5.0785, -5.3245, -5.5825, -4.8119, -4.4948, -4.5843, -4.3785, -5.183, -5.5557, -5.6367, -4.5228, -5.4645, -4.761, -4.9542, -5.6073, -5.1668, -5.1677, -5.3528, -5.5082, -4.9929, -5.4199, -4.8785, -5.3341, -5.5238, -4.9205, -5.0996, -5.1503, -5.0376, -4.9011, -4.9158, -5.542, -5.0396, -5.1008, -5.2826, -4.9963, -5.3089, -4.9723, -4.8922, -5.542, -4.8524, -5.3165, -5.4089, -5.3354, -4.6749, -5.2324, -5.2421, -5.0376, -5.3408, -4.43, -5.1353, -4.989, -5.432, -4.2467, -4.9625, -5.125, -5.0823, -4.4546, -5.3292, -5.1503, -4.6989, -4.8811, -4.9324, -5.6587, -5.3644, -5.2446, -5.386, -5.2328, -5.1549, -5.2505, -4.9118, -5.4772, -5.7359, -5.4389, -5.4901, -5.3166, -4.9227, -4.7943, -5.1795, -5.3067, -5.1276, -5.2417, -5.1588, -5.2829, -5.4388, -5.394, -5.1599, -5.1411, -5.2531, -4.658, -4.8689, -5.0853, -5.1024, -4.8373, -4.7315, -5.6033, -5.412, -5.6349, -5.1385, -4.8606, -5.5164, -5.0891, -5.2974, -5.4404, -5.245, -5.385, -5.0287, -5.2049, -5.582, -5.3846, -5.3925, -4.8792, -5.3074, -5.7514, -5.3165, -5.5084, -5.2874, -4.9213, -5.4668, -4.9587, -5.2359, -5.0614, -5.3684, -5.6896, -5.645, -4.8241, -5.0935, -5.3474, -4.9544, -5.0668, -5.3286, -5.5498, -5.0723, -5.2761, -5.1427, -5.2157, -5.1058, -5.2482, -5.2205, -5.5369, -5.6758, -5.3299, -5.1334, -5.2132, -5.2933, -5.2098, -5.3386, -4.6841, -5.1622, -5.3223, -5.0583, -5.0823, -5.3129, -5.2947, -5.2807, -5.2317, -5.1431, -5.1342, -5.1149, -5.06, -5.0872, -5.2668, -5.2464, -5.4763, -5.1014, -5.295, -5.2914, -5.2603, -5.4037, -5.1199, -5.3045, -5.6796, -5.3464, -5.2139, -5.0854, -5.0902, -5.2337, -5.4576, -5.5079, -5.456, -5.092, -5.0751, -5.1114, -5.5455, -5.0316, -5.3576, -5.1696, -5.2257, -5.3165, -5.3484, -5.315, -5.4706, -5.6494, -5.3637, -5.2863, -5.4463, -5.4467, -5.3165, -5.2366, -5.4581, -5.3973, -5.2267, -5.278, -5.1753, -5.4269, -5.2347, -5.1477, -5.3252, -5.3937, -5.5114, -5.6084, -5.5083, -5.6161, -5.3197, -5.3624, -5.4261, -5.6408, -5.1558, -5.2668, -5.456, -5.5852, -5.3031, -5.2567, -5.1671, -5.5156, -5.5164, -5.2025, -5.3045, -5.3437, -5.4842, -5.6996, -5.6213, -5.6006, -5.5031, -5.1871, -5.3619, -5.5988, -5.5216, -5.1986, -5.6236, -5.5097, -5.3749, -5.2611, -5.5503, -5.3706, -5.2298, -5.5083, -5.4302, -5.3561, -5.3963, -5.3042, -5.4634, -5.5144, -5.6312, -5.4739, -5.2581, -5.4002, -5.5442, -5.6087, -5.4633, -5.6427, -5.2933, -5.2454, -5.4983, -5.6846, -5.4686, -5.589, -5.5572, -5.6377, -5.5957, -5.4911, -5.5957, -5.5026 ], | |
"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.1469, 2.1457, 2.145, 2.145, 2.1379, 2.13, 2.1267, 2.1235, 2.1182, 2.1127, 2.1087, 2.0914, 2.0866, 2.0738, 2.07, 2.0604, 2.0569, 2.05, 2.0447, 2.0334, 2.0306, 2.0282, 2.0212, 2.0174, 2.0149, 2.0147, 2.0089, 2.0082, 2.0076, 2.0043, 2.2691, 2.2687, 2.2683, 2.2682, 2.2671, 2.2668, 2.2665, 2.2663, 2.2663, 2.2662, 2.2659, 2.2656, 2.2654, 2.2651, 2.2613, 2.2518, 2.2454, 2.2255, 2.2235, 2.2166, 2.2143, 2.1912, 2.1796, 2.1743, 2.1739, 2.1395, 2.134, 2.1273, 2.1261, 2.1188, 2.3119, 2.3109, 2.3106, 2.3106, 2.3106, 2.3103, 2.31, 2.31, 2.3099, 2.3099, 2.3097, 2.3094, 2.3088, 2.3088, 2.3088, 2.3082, 2.3081, 2.3077, 2.3076, 2.3071, 2.307, 2.3067, 2.3065, 2.3042, 2.3022, 2.2982, 2.2972, 2.2969, 2.2953, 2.291, 2.4693, 2.4426, 2.4387, 2.4319, 2.4304, 2.4025, 2.3906, 2.3819, 2.3818, 2.381, 2.3738, 2.3677, 2.3587, 2.3318, 2.3044, 2.3044, 2.3044, 2.2992, 2.2983, 2.2983, 2.292, 2.292, 2.2882, 2.2852, 2.2835, 2.277, 2.2702, 2.263, 2.2562, 2.2562, 2.5719, 2.5668, 2.5464, 2.5274, 2.4936, 2.4746, 2.397, 2.3801, 2.366, 2.3442, 2.3405, 2.3402, 2.333, 2.3292, 2.3272, 2.3236, 2.3183, 2.3105, 2.3079, 2.2758, 2.2758, 2.2704, 2.2608, 2.2485, 2.2389, 2.2299, 2.2299, 2.2186, 2.2171, 2.2062, 2.8352, 2.8345, 2.8341, 2.8339, 2.8339, 2.8338, 2.8334, 2.8334, 2.8333, 2.8333, 2.8333, 2.8332, 2.8332, 2.8332, 2.833, 2.833, 2.8327, 2.8326, 2.8325, 2.8324, 2.8323, 2.8321, 2.832, 2.8317, 2.8317, 2.8317, 2.8317, 2.8317, 2.8317, 2.8314, 2.9595, 2.9592, 2.9586, 2.9584, 2.9584, 2.9581, 2.958, 2.9551, 2.9548, 2.9548, 2.9548, 2.9547, 2.9547, 2.9547, 2.9547, 2.9543, 2.9543, 2.9543, 2.9543, 2.9543, 2.9543, 2.9543, 2.9543, 2.9543, 2.9542, 2.9434, 2.9352, 2.9329, 2.9328, 2.9252, 2.9615, 2.9609, 2.9592, 2.959, 2.9509, 2.9484, 2.942, 2.9378, 2.9311, 2.9142, 2.9051, 2.8998, 2.8976, 2.8938, 2.8934, 2.8842, 2.8669, 2.8628, 2.8446, 2.832, 2.8256, 2.8156, 2.8048, 2.7921, 2.773, 2.7294, 2.7228, 2.7187, 2.7186, 2.7132, 2.9064, 2.8845, 2.7716, 2.768, 2.7655, 2.7549, 2.7349, 2.724, 2.7121, 2.6953, 2.6816, 2.6609, 2.6517, 2.6499, 2.6109, 2.6046, 2.5777, 2.5725, 2.5644, 2.5494, 2.516, 2.5146, 2.498, 2.4948, 2.4904, 2.4693, 2.4691, 2.4654, 2.4631, 2.4556, 3.01, 3.0099, 3.0084, 3.0084, 3.0084, 3.0083, 3.0081, 3.0079, 3.0079, 3.0048, 3.0047, 3.0035, 2.9939, 2.9924, 2.9915, 2.9897, 2.9789, 2.9638, 2.9477, 2.9216, 2.9034, 2.8961, 2.8662, 2.8492, 2.8456, 2.8455, 2.8403, 2.8345, 2.8127, 2.8047, 3.0524, 3.0524, 3.0523, 3.052, 3.0519, 3.0516, 3.0514, 3.0512, 3.0512, 3.0503, 3.0503, 3.0503, 3.0501, 3.05, 3.0499, 3.0498, 3.0498, 3.0498, 3.0497, 3.0495, 3.0495, 3.0495, 3.0495, 3.0494, 3.0494, 3.0494, 3.0493, 3.0493, 3.0493, 3.0493, 3.1503, 3.1502, 3.1495, 3.1495, 3.1493, 3.1488, 3.1488, 3.1482, 3.1481, 3.1479, 3.1476, 3.1474, 3.1454, 3.1453, 3.145, 3.1445, 3.1443, 3.1443, 3.1443, 3.1443, 3.1443, 3.1443, 3.1443, 3.1441, 3.1441, 3.1439, 3.1437, 3.1437, 3.1437, 3.1437, 3.3279, 3.3256, 3.3108, 3.3021, 3.27, 3.2499, 3.228, 3.2055, 3.1952, 3.0945, 3.0774, 3.0773, 3.0685, 3.015, 2.9635, 2.9579, 2.8256, 2.8246, 2.8232, 2.819, 2.7911, 2.7821, 2.7737, 2.7144, 2.704, 2.704, 2.7033, 2.6999, 2.6977, 2.6959, 3.214, 3.195, 3.1569, 3.1298, 3.1269, 3.0846, 3.0837, 3.0705, 3.0546, 3.0375, 3.0037, 2.9994, 2.9867, 2.9512, 2.8942, 2.8934, 2.8863, 2.868, 2.8677, 2.8564, 2.847, 2.8292, 2.8197, 2.8131, 2.7793, 2.7551, 2.7217, 2.7156, 2.6982, 2.6633, 3.6107, 3.4952, 3.4658, 3.4613, 3.4065, 3.3715, 3.3488, 3.3224, 3.2461, 3.2088, 3.1462, 3.1247, 3.1195, 3.1151, 3.0928, 3.0503, 3.0445, 3.0394, 3.0104, 2.9955, 2.9916, 2.9811, 2.964, 2.9639, 2.9597, 2.9388, 2.9213, 2.9113, 2.9025, 2.899, 3.6162, 3.5242, 3.4676, 3.4611, 3.4532, 3.4476, 3.4476, 3.4455, 3.4193, 3.402, 3.3959, 3.3713, 3.3614, 3.3379, 3.3135, 3.2833, 3.2595, 3.2333, 3.2275, 3.2183, 3.1923, 3.1923, 3.1704, 3.1696, 3.1644, 3.1484, 3.1404, 3.1328, 3.0949, 3.0858, 3.9363, 3.7854, 3.7585, 3.7585, 3.6956, 3.6518, 3.6067, 3.5286, 3.5126, 3.4739, 3.4184, 3.4078, 3.4015, 3.4004, 3.39, 3.3871, 3.3848, 3.3848, 3.3548, 3.314, 3.3125, 3.2917, 3.2885, 3.2667, 3.2205, 3.2079, 3.2051, 3.2051, 3.183, 3.1824, 4.0493, 4.0489, 4.0486, 4.0481, 4.0478, 4.0476, 4.0473, 4.047, 4.0469, 4.0467, 4.0461, 4.0461, 4.0457, 4.0456, 4.0449, 4.0447, 4.0447, 4.0446, 4.0446, 4.0444, 4.0444, 4.0444, 4.0444, 4.0443, 4.0443, 4.044, 4.0438, 4.0438, 4.0435, 4.0433, 4.0669, 4.0665, 4.0664, 4.0657, 4.0655, 4.064, 4.064, 4.0639, 4.0639, 4.0633, 4.0633, 4.0632, 4.0629, 4.0626, 4.0623, 4.0623, 4.0623, 4.0621, 4.0619, 4.0616, 4.0616, 4.0616, 4.0616, 4.0614, 4.0614, 4.061, 4.061, 4.0606, 4.0606, 4.0604, 4.0804, 4.0797, 4.0789, 4.0787, 4.0786, 4.0785, 4.0778, 4.0774, 4.0772, 4.077, 4.0765, 4.0764, 4.0763, 4.0754, 4.0754, 4.0754, 4.0751, 4.0748, 4.0745, 4.0745, 4.0745, 4.0743, 4.0743, 4.0743, 4.0741, 4.0741, 4.0741, 4.0739, 4.0739, 4.0737, 2.7022, 2.8025, 3.0427, 3.0451, 3.1407, 2.6583, 3.1791, 1.9753, 2.2512, 2.1813, 2.8256, 2.9087, 2.9044, 2.7077, 2.4401, 3.1292, 3.1203, 2.6852, 4.0501, 1.9732, 2.2811, 2.2189, 2.2228, 2.1982, 2.2014, 2.824, 3.1224, 4.0322, 4.0453, 2.2366, 2.2628, 2.1504, 2.8168, 2.804, 2.9205, 2.4277, 3.0173, 2.6493, 4.0476, 4.0469, 4.0613, 1.9505, 1.8387, 2.2426, 2.246, 2.1495, 2.153, 2.7084, 3.1296, 2.1694, 2.2358, 2.1104, 2.4111, 2.3803, 3.0135, 3.0667, 2.916, 3.1538, 4.0289, 1.9395, 1.922, 2.1007, 2.1085, 2.1943, 2.1475, 2.8076, 2.8753, 2.7411, 2.9183, 3.1168, 4.0579, 1.9093, 1.9417, 2.0141, 2.1783, 2.7171, 2.7252, 2.8128, 2.9098, 2.6296, 2.9566, 3.0989, 2.6088, 2.7163, 2.947, 2.0381, 2.1584, 2.8703, 2.9108, 2.9189, 3.0601, 2.5882, 3.9909, 1.9097, 2.0343, 2.1951, 2.6925, 2.6325, 2.371, 2.3598, 2.6962, 2.7778, 3.0381, 2.5906, 3.139, 3.9637, 1.6456, 1.8669, 2.1407, 2.2108, 2.047, 1.9823, 2.0672, 2.8958, 2.7765, 3.0064, 2.5366, 2.7569, 2.834, 4.0429, 4.0429, 1.7702, 1.9124, 2.1776, 2.4443, 2.6692, 3.7919, 1.6155, 1.7844, 2.1669, 1.9453, 2.0366, 2.1162, 2.6504, 2.2217, 2.4839, 2.6624, 2.9643, 2.6647, 3.8342, 1.7543, 1.5595, 1.766, 1.9105, 1.9926, 2.0899, 1.9696, 2.6879, 2.4564, 2.9387, 2.9454, 2.9855, 2.5411, 2.6873, 3.0252, 1.6573, 1.7662, 1.7598, 1.8194, 2.1088, 1.9044, 1.8724, 2.5936, 2.4455, 2.6886, 2.5262, 2.4314, 2.8373, 2.8746, 3.8966, 1.6428, 1.7276, 1.8496, 1.9962, 2.7844, 2.6819, 2.7671, 2.2697, 2.5567, 2.7111, 2.6773, 2.8032, 2.861, 2.8702, 1.7514, 2.117, 1.6479, 1.7583, 1.8163, 2.6541, 2.7461, 2.2919, 2.1632, 2.8242, 2.5451, 2.8976, 2.3998, 2.6119, 2.7642, 2.8427, 2.6861, 2.9066, 1.8446, 1.6258, 1.8305, 1.9914, 2.036, 1.9684, 1.8916, 1.811, 2.2608, 2.4974, 2.5622, 2.8742, 2.4492, 2.873, 1.543, 1.6127, 1.5079, 1.7109, 2.6362, 2.4978, 2.4731, 2.8407, 1.6952, 1.4646, 1.9142, 1.8271, 1.9369, 1.8761, 2.5121, 2.5356, 2.8018, 2.4206, 2.516, 2.7895, 2.4381, 2.684, 2.9174, 2.6048, 3.7829, 1.5178, 2.0064, 1.4686, 1.9441, 1.7941, 1.6681, 2.5853, 2.223, 2.4335, 2.6774, 2.6947, 2.5981, 2.4246, 3.816, 1.4396, 1.7044, 1.8098, 1.5872, 1.9995, 1.6526, 1.722, 1.8634, 2.6616, 2.379, 2.5877, 2.28, 2.3662, 2.0527, 2.781, 2.8812, 2.2922, 2.6069, 3.7354, 1.7527, 1.9502, 2.0033, 2.2441, 2.47, 2.3149, 2.6381, 2.3903, 2.4873, 3.9129, 1.4513, 1.657, 1.7549, 1.7216, 1.7738, 1.8534, 1.7408, 1.9978, 2.3983, 2.0429, 2.1584, 2.1979, 2.2266, 2.7639, 2.2808, 3.5906, 1.2781, 1.5511, 1.4663, 1.5282, 1.6448, 1.8415, 2.567, 2.425, 2.4649, 2.3499, 2.6398, 2.2919, 2.4062, 2.5564, 3.0417, 1.5322, 1.5856, 1.5511, 1.8184, 1.9815, 1.6789, 2.4678, 2.0974, 1.9416, 2.5536, 2.2852, 2.4596, 2.3205, 2.5627, 1.2264, 1.3562, 1.8531, 1.9106, 1.7159, 2.2966, 2.5873, 2.4071, 2.0862, 2.2804, 3.1038, 3.7046, 3.8191, 1.6934, 1.7343, 1.2729, 1.722, 1.5977, 2.2674, 2.1081, 2.1415, 1.8146, 2.1288, 2.5241, 1.9239, 2.2645, 2.7869, 3.3487, 1.5405, 1.21, 1.2195, 1.5291, 1.5551, 1.6147, 1.554, 2.4003, 1.5761, 2.1392, 1.8529, 2.3968, 2.6461, 2.3196, 1.9679, 2.8501, 3.749, 1.3339, 1.2538, 1.3572, 1.7364, 1.633, 2.164, 1.8002, 2.5753, 2.3702, 3.4875, 1.0682, 1.347, 1.7567, 1.1255, 1.77, 1.5999, 1.9546, 2.1882, 1.7777, 1.7741, 1.9159, 2.3357, 2.0896, 2.4976, 2.9914, 3.4501, 1.5561, 1.8558, 1.9947, 1.855, 2.442, 1.7194, 2.3865, 1.7101, 2.5699, 2.1124, 2.6334, 2.7111, 2.6873, 3.5017, 1.3774, 0.8767, 1.3717, 1.3961, 1.4092, 1.7058, 1.9946, 2.4001, 2.011, 1.5329, 1.5931, 1.8466, 2.2723, 1.8419, 1.6758, 3.7356, 3.7145, 1.1003, 1.5242, 1.3897, 1.863, 2.3858, 1.5942, 2.216, 3.0202, 3.5653, 3.9097, 3.4997, 3.1555, 1.2416, 1.1344, 1.5097, 1.6853, 1.9047, 1.9227, 1.8952, 2.1356, 2.0105, 2.1505, 2.1663, 3.7964, 1.2831, 1.6681, 1.3304, 1.3114, 1.3496, 1.7392, 2.1175, 1.9698, 1.6889, 1.6727, 1.7439, 2.1038, 2.1085, 2.0152, 2.4387, 2.8024, 1.2765, 1.569, 1.327, 1.5496, 1.9354, 2.0128, 1.9727, 2.1846, 1.7864, 2.1988, 3.9077, 2.5459, 1.3446, 1.2534, 1.3298, 1.6743, 1.3584, 1.7074, 1.7758, 2.3883, 1.8198, 1.7051, 1.7601, 1.3256, 2.0323, 2.155, 2.289, 1.8641, 2.0198, 2.9983, 3.7971, 3.6044, 3.6849, 0.92, 1.1378, 1.6083, 1.2449, 1.4793, 1.782, 1.9063, 2.4675, 1.735, 2.3174, 2.2445, 2.4728, 2.5342, 3.2903, 0.8294, 1.1619, 0.6962, 1.6167, 1.6865, 1.5101, 1.4905, 1.7653, 2.239, 1.5891, 1.8995, 2.2914, 2.5657, 3.1194, 1.0224, 1.8428, 1.7081, 1.4355, 1.4349, 2.4006, 2.0878, 1.8341, 1.4869, 1.1258, 1.059, 1.6728, 1.5871, 1.6282, 1.9158, 1.4119, 2.1197, 1.7616, 3.4437, 3.3888, 3.0627, 1.4678, 1.2933, 1.7699, 2.0287, 1.6839, 2.089, 1.9092, 2.3927, 2.0484, 1.8099, 1.9715, 2.3303, 3.038, 3.2207, 1.4748, 1.3829, 1.5347, 2.0763, 1.4759, 1.744, 1.909, 2.8198, 3.6382, 1.1763, 1.3821, 2.093, 1.9385, 1.3209, 1.9637, 2.3103, 1.5145, 2.3536, 2.0315, 0.6944, 1.3063, 1.5454, 1.2852, 1.6167, 1.766, 1.4365, 1.6772, 1.8506, 1.0946, 1.7577, 1.6252, 1.7644, 1.9275, 2.4533, 1.2732, 0.9449, 0.6794, 1.8086, 1.387, 1.7625, 1.9864, 1.6194, 1.7815, 2.0466, 2.6406, 2.6147, 1.3061, 2.0364, 1.4578, 1.7106, 1.7853, 1.8209, 2.614, 2.6659, 2.5783, 0.9289, 1.4767, 1.8581, 1.9003, 2.0983, 1.6324, 1.4393, 2.2369, 2.0819, 2.0749, 1.5867, 2.043, 2.0461, 1.4504, 1.6572, 2.6799, 1.2893, 0.9392, 1.6881, 1.6486, 1.8486, 1.9984, 1.7399, 1.806, 1.6222, 0.9017, 0.7483, 1.5419, 1.9129, 1.6921, 1.856, 2.0622, 2.6831, 2.5325, 2.5086, 1.0682, 1.3367, 1.1666, 1.3812, 1.1741, 2.0003, 1.8664, 1.1729, 1.6375, 2.1124, 1.1002, 2.105, 1.4946, 1.7079, 1.8854, 1.2228, 0.684, 1.3964, 1.9589, 1.4893, 1.7029, 2.2203, 2.7602, 1.0965, 1.4598, 1.3826, 1.4352, 1.3627, 1.5406, 1.3993, 1.7876, 2.4095, 0.5222, 0.747, 0.3592, 1.3188, 1.5141, 1.5081, 1.7803, 0.5255, 1.5342, 2.0153, 2.7456, 1.7596, 1.2755, 1.6036, 1.316, 1.8617, 0.8898, 1.2164, 0.6799, 1.6778, 1.1812, 2.139, 1.0466, 1.2714, 0.9233, 1.8569, 1.2057, 0.6567, 1.4706, 1.2737, 2.3113, 0.8417, 1.2138, 1.412, 1.8472, 1.3216, 1.5755, 1.2484, 1.6337, 2.4171, 2.7601, 2.8423, 1.3565, 0.7163, 1.3223, 1.5719, 2.4898, 1.2634, 0.8749, 1.2067, 2.0453, 2.755, 0.6704, 1.4034, 1.7475, 1.2234, 1.011, 1.3625, 2.0978, 2.1346, 1.6703, 0.9605, 1.7595, 1.0027, 1.8429, 1.4085, 1.529, 2.6728, 2.0748, 1.2102, 0.7198, 1.3386, 2.1246, 1.5685, 1.4397, 2.8874, 0.8603, 1.8639, 0.9725, 1.8024, 1.5398, 1.1251, 1.9842, 2.3077, 1.4395, 1.4738, 1.416, 2.277, 0.6306, 1.2721, 1.3221, 1.6775, 0.5315, 1.945, 1.2729, 1.149, 1.0498, 1.1755, 1.0192, 1.4099, 1.4731, 0.7534, 1.0292, 1.1391, 1.4642, 0.9265, 0.9661, 1.7147, 2.1892, 1.6062, 0.1647, 1.4199, 1.3592, 0.9221, 0.6714, 1.8852, 1.6047, 1.322, 0.5567, 0.8338, 1.4149, 1.3658, 1.9113, 1.4405, 1.0987, 1.0317, 1.2936, 1.3544, 1.9527, 0.9597, 0.7793, 0.2184, 1.1196, 1.0681, 1.2706, 1.5195, 1.4712, 2.0228, 1.2474, 1.9928, 1.0189, 1.373, 1.3522, 1.6212, 1.9346, 2.3916, 0.9336, 0.2859, 0.5478, 1.3779, 0.657, 0.998, 1.158, 1.0833, 1.3058, 1.1048, 1.3611, 1.577, 2.0877, 1.0692, 1.2273, 1.4588, 1.1382, 0.2453, 0.3225, 1.2713, 2.0437, 1.3423, 0.9203, 0.9669, 0.2026, 2.0355, 1.2078, 1.4369, 1.2434, 0.8124, 0.3402, 0.8372, 1.0073, 2.4949, 1.0551, 1.2122, 1.586, 0.8633, 1.2038, 0.9647, 0.8957, 0.5181, 1.0972, 1.1343, 1.3649, -0.1601, 2.2034, 1.1885, 0.3644, 0.0342, 1.1622, 1.1811, 0.9095, 1.4892, 1.9261, 1.3438, 0.9989, 0.0402, 0.6385, 1.0198, 2.4951, 1.2883, 0.8435, 1.0948, 1.5395, 1.1575, 1.6287, -0.1304, 0.2618, 0.3128, 0.9773, 1.1733, -0.0355, 0.8451, 2.3629, 0.8868, 1.2241, 1.024, 0.1247, 1.6503, 0.4531, 0.7604, 1.2223, 1.1891, -0.1428, 0.5084, 0.1704, 2.2877, 1.2885, 0.4789, 1.1167, 0.8999, 0.7846, 1.3085 ], | |
"Freq": [ 10650, 10275, 10048, 9558, 5864, 7739, 4801, 7864, 4447, 5237, 7511, 5985, 2826, 3071, 7340, 6256, 4624, 3188, 4279, 2544, 4188, 2804, 4222, 3687, 4658, 4447, 5057, 3760, 3493, 4800, 208.91, 125.95, 101.97, 101.97, 126.95, 125.95, 106.96, 92.97, 205.91, 555.72, 522.74, 107.96, 520.74, 440.78, 492.76, 241.89, 159.93, 99.966, 139.94, 100.97, 328.84, 119.96, 112.96, 87.973, 134.95, 99.966, 108.96, 134.95, 483.76, 85.974, 136.94, 121.95, 105.96, 103.96, 79.971, 75.974, 70.977, 68.978, 68.978, 66.979, 63.981, 60.983, 58.984, 203.9, 129.94, 67.979, 125.94, 112.95, 67.979, 111.95, 191.9, 63.981, 65.98, 71.976, 119.95, 51.988, 103.96, 181.91, 84.968, 225.88, 361.79, 182.9, 157.92, 157.92, 156.92, 139.93, 127.94, 125.94, 124.94, 121.94, 113.95, 105.95, 90.962, 90.962, 89.963, 78.97, 282.84, 71.974, 70.975, 63.979, 62.98, 59.982, 57.983, 269.85, 310.82, 159.92, 86.965, 84.966, 76.971, 61.981, 109.93, 72.961, 103.94, 73.961, 72.961, 70.963, 70.963, 66.966, 66.966, 71.962, 73.961, 105.93, 109.93, 282.79, 36.99, 36.99, 36.99, 91.946, 35.991, 35.991, 34.992, 34.992, 90.947, 33.993, 36.99, 35.991, 34.992, 60.971, 35.991, 35.991, 143.89, 249.8, 143.89, 217.83, 221.82, 216.83, 351.71, 37.987, 230.82, 107.93, 37.987, 111.92, 119.91, 60.966, 474.6, 72.956, 89.941, 227.82, 250.8, 36.987, 36.987, 169.87, 71.957, 35.988, 143.89, 35.988, 35.988, 108.92, 166.87, 73.955, 363.63, 207.8, 174.83, 158.85, 157.85, 154.85, 132.88, 129.88, 128.88, 127.88, 124.89, 122.89, 121.89, 120.89, 115.9, 114.9, 105.91, 102.91, 99.913, 96.916, 93.92, 89.924, 87.926, 82.931, 82.931, 82.931, 81.932, 81.932, 81.932, 76.938, 130.86, 120.87, 98.9, 95.904, 94.905, 87.913, 85.916, 51.957, 49.959, 49.959, 49.959, 48.961, 48.961, 48.961, 48.961, 46.963, 46.963, 46.963, 46.963, 46.963, 46.963, 46.963, 46.963, 46.963, 45.964, 123.87, 49.959, 45.964, 45.964, 88.912, 174.81, 137.85, 84.917, 80.922, 107.89, 154.83, 62.944, 128.86, 101.9, 164.82, 121.87, 141.85, 63.942, 87.913, 59.947, 76.927, 42.968, 106.89, 73.93, 94.905, 298.66, 339.61, 94.905, 49.959, 77.925, 61.945, 37.974, 130.86, 112.88, 60.946, 189.79, 240.73, 60.946, 440.48, 58.948, 109.89, 413.52, 47.961, 327.62, 181.8, 51.957, 346.6, 706.16, 154.83, 146.84, 270.69, 778.07, 53.954, 198.78, 61.944, 24.99, 109.89, 292.66, 164.82, 151.83, 58.948, 146.84, 195.78, 268.69, 156.83, 102.89, 99.893, 71.928, 71.928, 70.93, 69.931, 66.935, 64.937, 64.937, 153.82, 41.966, 36.973, 68.932, 63.938, 194.77, 97.895, 66.935, 65.936, 63.938, 34.975, 88.907, 34.975, 58.945, 85.91, 121.86, 132.85, 170.8, 113.87, 95.898, 91.903, 171.79, 168.8, 164.8, 145.83, 142.83, 127.85, 119.86, 110.87, 110.87, 88.902, 88.902, 88.902, 83.909, 81.911, 79.914, 78.915, 78.915, 78.915, 77.916, 74.92, 74.92, 73.922, 73.922, 72.923, 72.923, 72.923, 71.924, 71.924, 71.924, 71.924, 160.78, 149.8, 118.85, 116.85, 112.85, 97.877, 96.878, 83.897, 81.9, 78.904, 73.912, 70.916, 51.944, 50.945, 48.948, 45.953, 44.954, 44.954, 44.954, 44.954, 44.954, 44.954, 44.954, 43.956, 43.956, 42.957, 41.959, 41.959, 41.959, 41.959, 145.73, 79.86, 83.852, 167.68, 49.92, 48.922, 39.94, 35.948, 50.918, 116.79, 129.76, 45.928, 27.964, 48.922, 98.822, 35.948, 73.872, 99.82, 76.866, 195.63, 50.918, 49.92, 35.948, 195.63, 97.824, 97.824, 277.47, 98.822, 30.958, 99.82, 35.937, 33.941, 135.71, 29.951, 32.944, 33.941, 62.874, 60.879, 169.63, 32.944, 67.863, 131.72, 25.96, 49.905, 209.54, 32.944, 23.965, 24.962, 24.962, 95.798, 88.814, 120.74, 21.969, 62.874, 21.969, 32.944, 28.953, 34.939, 33.941, 107.77, 195.54, 78.826, 79.824, 77.829, 38.924, 83.814, 38.924, 32.939, 116.73, 38.924, 38.924, 36.929, 37.927, 38.924, 66.856, 16.978, 119.73, 107.76, 32.939, 31.942, 102.77, 27.951, 38.924, 38.924, 236.44, 38.924, 65.858, 36.929, 60.87, 64.861, 113.73, 113.73, 38.92, 234.42, 39.917, 38.92, 38.92, 75.825, 116.72, 37.922, 75.825, 38.92, 135.67, 363.09, 111.73, 38.92, 39.917, 38.92, 16.976, 38.92, 37.922, 37.922, 55.876, 303.24, 57.871, 17.974, 79.815, 144.65, 1538.1, 243.39, 93.715, 43.877, 41.884, 41.884, 40.887, 39.89, 86.738, 43.877, 41.884, 153.52, 96.705, 85.741, 43.877, 330.94, 39.89, 89.728, 44.874, 44.874, 41.884, 42.88, 43.877, 40.887, 43.877, 40.887, 63.812, 42.88, 87.734, 39.89, 40.887, 62.815, 155.46, 134.54, 120.59, 105.64, 95.676, 91.69, 85.711, 79.733, 77.74, 75.747, 66.78, 66.78, 62.794, 61.798, 55.819, 53.826, 53.826, 52.83, 52.83, 51.833, 51.833, 51.833, 51.833, 50.837, 50.837, 48.844, 47.848, 47.848, 45.855, 44.859, 137.52, 119.58, 116.59, 96.666, 91.684, 66.775, 66.775, 65.779, 65.779, 59.801, 59.801, 58.805, 55.815, 53.823, 51.83, 51.83, 51.83, 49.837, 48.841, 46.848, 46.848, 46.848, 46.848, 45.852, 45.852, 43.859, 43.859, 41.867, 41.867, 40.87, 166.4, 126.55, 100.65, 93.672, 91.68, 89.687, 77.731, 70.757, 68.765, 65.776, 60.794, 218.21, 58.802, 51.828, 51.828, 51.828, 49.835, 47.842, 45.85, 45.85, 45.85, 44.853, 44.853, 44.853, 43.857, 43.857, 43.857, 42.861, 42.861, 41.865, 422.51, 226.73, 197.76, 143.83, 195.73, 235.48, 81.754, 434.79, 585.65, 335.72, 127.88, 387.55, 307.65, 110.89, 266.69, 141.81, 193.74, 97.824, 69.764, 433.79, 134.93, 175.88, 144.9, 143.89, 90.94, 111.9, 109.86, 69.769, 114.59, 344.8, 181.9, 375.69, 120.89, 163.84, 78.924, 268.69, 167.8, 299.42, 61.794, 59.801, 63.783, 356.83, 2866.5, 264.85, 206.89, 540.59, 263.79, 93.906, 58.934, 746.55, 70.963, 579.51, 359.58, 564.33, 127.85, 148.8, 1158, 89.728, 59.805, 370.82, 440.78, 92.963, 1276.2, 335.81, 236.81, 115.9, 157.83, 258.69, 481.38, 64.925, 54.816, 510.75, 331.84, 272.85, 137.91, 334.66, 300.7, 249.72, 80.922, 242.73, 467.34, 78.904, 275.47, 385.07, 464.82, 578.56, 139.91, 117.88, 331.58, 283.64, 106.86, 342.34, 85.711, 352.83, 213.89, 241.87, 311.69, 219.75, 391.54, 402.53, 281.66, 132.85, 82.91, 107.77, 80.757, 121.57, 3058.4, 503.75, 336.81, 69.964, 460.61, 761.35, 381.68, 77.926, 782.98, 108.88, 164.64, 195.54, 94.787, 50.834, 50.834, 1096.4, 1796.9, 243.87, 1730.2, 149.84, 310.9, 2967.4, 927.52, 255.86, 463.65, 215.85, 237.81, 319.68, 930.88, 898.87, 1482.8, 155.79, 263.37, 227.19, 1054.5, 3471.2, 1036.4, 367.8, 268.8, 143.9, 606.49, 260.7, 1062.7, 164.78, 157.79, 122.84, 109.77, 1029.4, 115.72, 1640.1, 881.55, 837.51, 1853.8, 358.79, 358.73, 976.16, 408.58, 543.36, 660.14, 241.54, 210.53, 79.824, 288.28, 123.57, 1707.1, 1061.4, 1324.2, 438.63, 119.87, 201.78, 126.87, 481.43, 457.44, 505.35, 662.05, 330.54, 242.66, 227.69, 850.56, 319.82, 1292, 740.42, 1061.1, 251.75, 129.86, 911.91, 807.04, 251.69, 947.76, 166.8, 447.13, 69.858, 108.75, 71.843, 600.48, 204.49, 529.74, 1198.3, 450.75, 207.89, 470.72, 626.62, 357.73, 1063.1, 1420.5, 309.64, 331.6, 183.78, 1577.7, 211.71, 1955, 1108.3, 1660, 1765.9, 249.75, 444.45, 995.7, 202.75, 992.49, 1885.9, 738.55, 1039.4, 656.6, 650.45, 389.6, 276.68, 93.906, 428.5, 283.68, 290.59, 301.42, 121.72, 155.62, 604.05, 145.49, 1188.3, 184.91, 4108.4, 625.62, 1090.3, 745.42, 205.77, 888.94, 370.57, 195.77, 330.58, 146.73, 142.69, 117.6, 2261.8, 880.55, 379.79, 803.53, 499.7, 1638, 1055.1, 616.48, 200.81, 425.5, 191.79, 547.36, 611.24, 1836.7, 238.7, 183.75, 203.55, 65.868, 152.45, 734.63, 553.67, 355.71, 655.23, 305.65, 273.69, 217.74, 993.56, 99.789, 78.731, 1960, 577.67, 410.77, 1163.3, 497.62, 367.72, 843.28, 1811.1, 303.65, 650.23, 437.49, 855.93, 1312.3, 231.71, 377.27, 203.27, 3073.4, 1347.3, 994.42, 1939.8, 690.47, 373.72, 175.81, 326.62, 281.68, 493.39, 205.76, 1098.4, 244.53, 359.1, 88.731, 1412.3, 1208.4, 711.59, 753.54, 1423.5, 3347.4, 343.65, 707.16, 1583, 258.69, 548.32, 542.3, 893.71, 147.72, 1688, 1188.3, 527.56, 1172.6, 2258.3, 521.36, 231.72, 666.04, 1530.8, 353.15, 72.783, 125.56, 90.683, 455.74, 944.42, 1408.9, 406.69, 983.16, 545.44, 800.17, 646.24, 967.84, 732.09, 264.68, 800.42, 326.22, 170.46, 302.91, 1295.3, 1538.1, 1492.1, 1512.1, 612.53, 521.6, 1089.1, 266.7, 2509, 630.26, 860.97, 363.56, 303.62, 777.88, 670.37, 127.69, 105.64, 1969, 1275.2, 938.27, 376.72, 2323.5, 637.34, 1080.7, 69.858, 406.97, 190.33, 3615.1, 958.44, 810.51, 1438.9, 333.75, 911.22, 950.01, 549.43, 1073.7, 1516.1, 1077.6, 587.24, 407.21, 158.7, 91.721, 191.32, 589.66, 273.8, 807.16, 853.99, 261.7, 1005.8, 501.35, 2374.5, 124.71, 656.33, 203.5, 169.47, 175.45, 156.44, 1739.1, 2368.6, 1816.9, 1710.9, 1348.8, 1422.5, 778.19, 263.7, 651.23, 1394.3, 1869.6, 1098.6, 598.23, 631.76, 460.95, 97.668, 101.65, 1443.1, 1274.2, 685.47, 744.12, 458.41, 506.85, 445.87, 397.59, 134.54, 67.776, 147.48, 269.02, 996.41, 1102.1, 1052.1, 746.36, 651.23, 698.17, 616.27, 555.31, 920.8, 284.45, 426.63, 83.719, 1912, 906.45, 726.44, 745.42, 1336.8, 1158.8, 578.4, 734.24, 888.94, 917.9, 1412.1, 723.96, 177.61, 205.54, 249.38, 128.69, 929.45, 1055.4, 2271.6, 1055.7, 645.24, 632.21, 662.18, 603.14, 478.06, 360.09, 66.78, 660.57, 1613.2, 933.45, 1555, 872.47, 649.5, 1120.8, 677.2, 247.72, 772.08, 849.98, 946.81, 1899.6, 756.02, 611.12, 469.33, 257.42, 260.38, 85.741, 77.735, 101.64, 88.691, 3007.4, 1097.4, 950.42, 754.41, 1089.7, 658.22, 731.09, 360.54, 1077.4, 117.75, 131.72, 193.39, 614.81, 175.39, 1735, 1006.4, 1666.7, 806.04, 888.94, 1115.7, 1108.7, 882.89, 510.34, 1253.2, 369.28, 242.23, 500.22, 212.23, 1010.2, 504.58, 972.98, 1042.8, 1271.5, 366.48, 206.51, 455.54, 612.65, 1007.4, 1543.7, 989.96, 837.01, 918.91, 738.04, 419.05, 184.57, 484.44, 130.55, 135.52, 211.24, 1135.3, 1098.1, 608.28, 490.43, 749.11, 528.35, 681.02, 157.7, 170.63, 231.48, 222.47, 244.39, 215.25, 162.42, 489.63, 921.21, 1136.8, 397.54, 973.83, 891.84, 712.07, 264.04, 91.68, 1666.1, 1252.2, 387.55, 465.46, 1389.2, 602.14, 167.68, 379.09, 188.41, 278.11, 1551.1, 1355.2, 719.39, 970.17, 937.02, 627.26, 1005.8, 874.86, 659.05, 706.61, 224.5, 318.24, 468.81, 688.5, 353.71, 1446.2, 1150.3, 1191.1, 596.3, 1176.5, 220.51, 196.54, 292.3, 456.85, 255.19, 290.97, 287.95, 919.21, 449.47, 923.89, 777.03, 694.1, 650.07, 131.59, 258.07, 280.99, 878.31, 691.18, 654.19, 593.15, 214.59, 249.44, 345.17, 267.33, 225.29, 495.18, 612.28, 528.35, 496.29, 294.34, 483.78, 236.15, 1241.2, 829.35, 834.13, 558.34, 526.38, 454.47, 630.25, 665.17, 340.34, 1080.4, 1439.8, 918.04, 647.33, 689.01, 217.49, 213.33, 117.64, 260.08, 271.01, 1581.2, 1236.4, 844.51, 1037.9, 472.48, 379.63, 460.31, 1424.3, 599.49, 400.53, 1160.5, 434.44, 795.85, 656.06, 251.52, 1228.2, 967.24, 734.37, 455.47, 758.1, 247.41, 287.98, 179.36, 677.48, 931.03, 686.19, 652.23, 729.14, 795.01, 752.02, 268.48, 245.14, 1367.2, 862.33, 1148.1, 767.35, 884.08, 698, 268.48, 460.95, 274.35, 189.4, 182.36, 346.75, 1150.3, 594.3, 729.14, 535.37, 1273.4, 403.21, 402.09, 244.42, 532.07, 260.07, 922.21, 698.17, 1242.4, 497.36, 397.23, 508.77, 406.97, 305.03, 147.54, 1050.4, 818.3, 710.4, 681.29, 649.23, 589.31, 755.02, 286.45, 136.58, 164.43, 151.46, 1057.4, 1129, 443.88, 238.24, 184.34, 667.21, 312.3, 321.23, 272.32, 159.43, 771.4, 645.24, 544.22, 292.3, 508.71, 411.96, 234.18, 223.19, 290.94, 1124.8, 252.51, 263.41, 199.53, 248.21, 287.96, 149.47, 226.18, 1270.3, 736.43, 593.3, 426.4, 351.12, 232.26, 142.51, 1029.4, 508.4, 779.98, 508.34, 187.59, 274.35, 171.46, 191.33, 271.03, 289.44, 261.06, 195.29, 434.15, 319.38, 199.56, 197.53, 339.91, 225.18, 1208.4, 900.06, 708.16, 332.36, 229.49, 336.16, 216.32, 1258.2, 842.28, 677.19, 587.3, 370.28, 232.48, 191.55, 183.36, 219.22, 924.28, 565.33, 610.28, 268.36, 349.76, 210.24, 545.35, 591.15, 425.17, 275.34, 212.33, 215.32, 202.29, 745.22, 658.22, 616.2, 590.16, 331.17, 195.32, 1134.3, 710.45, 340.18, 1273.3, 1084.3, 584.31, 190.4, 222.21, 182.34, 201.55, 180.37, 611.28, 661.18, 330.17, 198.29, 437.44, 153.47, 958.44, 953.18, 703.17, 644.2, 230.49, 350.12, 199.37, 215.25, 197.29, 1246.3, 534.37, 549.35, 154.45, 597.54, 726.38, 565.33, 295.43, 254.43, 274.35, 201.3, 158.44, 975.4, 604.29, 573.32, 239.24, 166.42, 595.29, 621.23, 499.36, 311.4, 238.47, 622.52, 226.46, 133.52, 1242.4, 727.38, 494.42, 209.54, 309.22, 195.32, 958.44, 221.51, 188.34, 582.31, 530.24, 237.47, 149.47, 702.27, 558.34, 327.37, 284.45, 197.56, 614.53, 206.51, 151.46, 597.26, 481.38, 218.51, 223.47, 296.26, 132.53, 150.47, 520.39, 278.3, 144.49, 721.39, 572.29, 226.46, 185.42, 1016.4, 976.4, 555.34, 290.44, 152.47, 131.53, 941.45, 664.31, 507.4, 218.48, 134.52, 951.44, 601.54, 565.33, 490.3, 280.46, 200.56, 178.44, 141.51, 143.49, 604.53, 207.51, 174.45, 207.51, 172.46 ], | |
"Total": [ 10650, 10275, 10048, 9558, 5864, 7739, 4801, 7864, 4447, 5237, 7511, 5985, 2826, 3071, 7340, 6256, 4624, 3188, 4279, 2544, 4188, 2804, 4222, 3687, 4658, 4447, 5057, 3760, 3493, 4800, 209.29, 126.33, 102.34, 102.34, 128.33, 128.33, 109.34, 95.342, 212.27, 576.08, 544.04, 114.33, 554.1, 475.04, 533.08, 264.23, 175.3, 110.33, 155.29, 113.3, 370.07, 135.32, 128.32, 100.31, 154.26, 114.3, 125.31, 155.3, 557.06, 99.332, 137.32, 122.33, 106.33, 104.34, 80.351, 76.353, 71.356, 69.357, 69.357, 67.359, 64.36, 61.362, 59.363, 205.27, 131.32, 69.354, 129.32, 118.31, 71.347, 118.31, 203.28, 69.355, 72.352, 79.346, 132.28, 59.344, 119.32, 210.19, 98.3, 263.23, 362.17, 183.28, 158.3, 158.3, 157.3, 140.31, 128.32, 126.32, 125.32, 122.32, 114.33, 106.33, 91.342, 91.342, 90.342, 79.349, 284.22, 72.354, 71.354, 64.359, 63.359, 60.361, 58.363, 272.23, 314.2, 162.3, 88.343, 86.344, 78.347, 63.359, 119.28, 81.312, 116.28, 83.307, 82.307, 82.315, 83.298, 79.301, 79.302, 85.293, 88.289, 127.24, 133.23, 352.08, 47.333, 47.333, 47.333, 118.27, 46.334, 46.334, 45.334, 45.335, 118.27, 44.339, 48.33, 47.331, 46.33, 81.312, 48.326, 48.327, 154.24, 269.12, 158.22, 244.11, 257.14, 256.15, 449.02, 49.325, 303.97, 145.26, 51.318, 151.24, 163.22, 83.296, 649.73, 100.24, 124.23, 317.14, 350.03, 53.308, 53.308, 246.15, 105.27, 53.305, 215.18, 54.301, 54.302, 166.23, 255.05, 114.27, 364.01, 208.18, 175.21, 159.23, 158.23, 155.23, 133.26, 130.26, 129.26, 128.26, 125.27, 123.27, 122.27, 121.27, 116.28, 115.28, 106.29, 103.29, 100.29, 97.296, 94.299, 90.303, 88.305, 83.311, 83.311, 83.311, 82.312, 82.312, 82.312, 77.317, 131.24, 121.25, 99.279, 96.283, 95.284, 88.293, 86.295, 52.336, 50.339, 50.339, 50.339, 49.34, 49.34, 49.34, 49.34, 47.342, 47.342, 47.342, 47.342, 47.342, 47.342, 47.342, 47.342, 47.342, 46.344, 126.25, 51.335, 47.34, 47.342, 92.281, 175.19, 138.23, 85.296, 81.301, 109.27, 157.2, 64.319, 132.23, 105.26, 173.18, 129.23, 151.2, 68.307, 94.271, 64.312, 83.284, 47.333, 118.23, 83.277, 108.25, 342.88, 393.79, 111.24, 59.306, 94.288, 78.299, 48.317, 167.18, 144.22, 78.288, 202.13, 262.05, 74.277, 538.76, 72.279, 136.17, 522.78, 61.302, 423.76, 239.12, 69.283, 471.86, 970.26, 213.12, 210.15, 389.86, 1151.1, 80.24, 298.01, 94.277, 39.323, 173.15, 468.92, 264.91, 245.12, 97.194, 242.16, 324.07, 445.81, 262.14, 103.27, 100.27, 72.308, 72.308, 71.309, 70.31, 67.314, 65.316, 65.316, 155.2, 42.346, 37.352, 70.308, 65.316, 199.15, 100.27, 69.309, 69.312, 68.303, 38.35, 99.274, 39.34, 68.317, 101.27, 144.17, 157.18, 203.15, 136.23, 117.25, 113.27, 172.17, 169.18, 165.18, 146.21, 143.21, 128.23, 120.24, 111.25, 111.25, 89.281, 89.281, 89.281, 84.288, 82.29, 80.293, 79.294, 79.294, 79.294, 78.296, 75.3, 75.3, 74.301, 74.301, 73.302, 73.302, 73.302, 72.304, 72.304, 72.304, 72.304, 161.16, 150.18, 119.23, 117.23, 113.23, 98.256, 97.257, 84.276, 82.279, 79.284, 74.291, 71.295, 52.323, 51.325, 49.328, 46.332, 45.333, 45.333, 45.333, 45.333, 45.333, 45.333, 45.333, 44.335, 44.335, 43.336, 42.338, 42.338, 42.338, 42.338, 166.03, 91.199, 97.184, 196.03, 60.266, 60.261, 50.284, 46.292, 66.244, 168.03, 189.92, 67.23, 41.295, 76.22, 162.09, 59.297, 139.08, 188.14, 145.07, 370.78, 99.231, 98.164, 71.289, 411.66, 207.99, 208.01, 590.34, 210.97, 66.241, 213.98, 53.261, 51.268, 212.95, 48.286, 53.266, 57.251, 106.15, 104.15, 294.84, 58.251, 124.12, 241.95, 48.293, 96.188, 427.58, 67.277, 49.291, 52.289, 52.304, 203.02, 189.99, 262.93, 48.298, 139.14, 50.29, 77.257, 70.206, 85.236, 84.254, 277.02, 205.88, 93.156, 97.147, 95.145, 50.264, 112.09, 53.253, 46.27, 176.98, 61.253, 65.21, 63.214, 65.261, 67.271, 118.15, 31.306, 222.04, 200.87, 63.21, 62.213, 200.95, 55.232, 78.247, 78.252, 477.35, 80.237, 138.15, 78.249, 130.12, 139.14, 124.07, 136.03, 49.263, 298.65, 51.256, 50.259, 50.259, 98.123, 155.04, 51.254, 103.1, 54.244, 190.97, 523.22, 164.99, 59.235, 62.215, 62.269, 27.319, 63.212, 63.212, 63.212, 95.202, 517.08, 99.192, 31.306, 140.13, 255.89, 2826.1, 451.32, 94.094, 51.231, 50.234, 50.234, 52.226, 53.232, 121.08, 66.227, 64.237, 244.75, 162.97, 146.04, 75.204, 567.88, 69.162, 156.02, 78.211, 78.211, 75.216, 80.22, 82.201, 78.212, 84.201, 80.191, 131.08, 89.199, 183.01, 83.212, 87.197, 134.04, 155.84, 134.92, 120.97, 106.02, 96.055, 92.069, 86.091, 80.112, 78.12, 76.127, 67.159, 67.159, 63.173, 62.177, 56.198, 54.206, 54.206, 53.209, 53.209, 52.213, 52.213, 52.213, 52.213, 51.216, 51.216, 49.224, 48.227, 48.227, 46.234, 45.238, 137.9, 119.96, 116.97, 97.045, 92.063, 67.155, 67.155, 66.158, 66.158, 60.18, 60.18, 59.184, 56.195, 54.202, 52.209, 52.209, 52.209, 50.217, 49.22, 47.228, 47.228, 47.228, 47.228, 46.231, 46.231, 44.239, 44.239, 42.246, 42.246, 41.25, 166.78, 126.93, 101.03, 94.052, 92.059, 90.066, 78.111, 71.137, 69.144, 66.155, 61.174, 219.59, 59.181, 52.207, 52.207, 52.207, 50.214, 48.222, 46.229, 46.229, 46.229, 45.233, 45.233, 45.233, 44.237, 44.237, 44.237, 43.24, 43.24, 42.244, 548.74, 280.05, 200.13, 145.21, 198.11, 608.33, 175.03, 517.12, 623, 531.83, 129.26, 408.91, 326, 143.22, 452.79, 145.19, 200.11, 211.94, 71.14, 517.02, 139.31, 245.14, 201.18, 224.12, 141.19, 113.28, 113.23, 71.145, 118.96, 372.16, 191.27, 613.81, 123.27, 169.22, 82.302, 461.87, 174.17, 672.4, 63.169, 61.179, 65.161, 435.04, 3908.1, 284.17, 221.22, 807.63, 429.86, 121.21, 60.312, 861.83, 97.249, 985.44, 628.4, 1017.1, 133.22, 162.17, 2544.6, 197.02, 61.183, 457.11, 552.91, 110.32, 1565.7, 378.13, 388.03, 119.26, 172.2, 339.77, 551.7, 67.297, 56.195, 648.87, 408.14, 353.07, 200.18, 377.01, 336.03, 290.02, 85.287, 338.98, 568.61, 83.269, 644.23, 991.62, 990.18, 966.16, 207.16, 129.25, 382.86, 324.87, 117.23, 817.24, 91.087, 448.08, 271.23, 272.14, 359.89, 306.01, 712.26, 740.49, 386.9, 168.19, 84.289, 297.92, 179.97, 136.93, 5058.2, 667.73, 400.14, 98.308, 834.53, 1471.5, 677.72, 83.293, 1034, 114.25, 480.37, 483.51, 216.99, 52.209, 52.212, 1600.9, 2682.2, 279.22, 2560.6, 201.15, 403.16, 5057.5, 1335.1, 296.09, 849.61, 361.02, 402.04, 384.98, 1966.1, 1526.8, 2421.3, 188.09, 714.17, 287.49, 1564.2, 6256.8, 1718.7, 527.86, 469.78, 228.19, 1187.3, 343.03, 1855.3, 204.11, 194.14, 145.2, 318.85, 2843, 227.98, 2681, 1292.3, 1397.5, 3036.8, 440.04, 684.81, 2106, 520.81, 912.29, 951.91, 613.48, 682.41, 182.14, 660.24, 146.91, 2831.2, 1617.3, 2104.7, 836.14, 143.23, 267.09, 154.23, 969.2, 722.42, 712.48, 1065, 468.83, 324.86, 302.01, 1265.5, 389.04, 3187.5, 1635.8, 2421.2, 302.06, 161.21, 1785.1, 1807.2, 316.91, 1577.5, 195.14, 1288.7, 189.05, 266.95, 163.03, 1660.5, 453.59, 717.99, 2286.3, 700.8, 275.2, 620.96, 884.44, 691.66, 2438.7, 2525.7, 493.56, 520.82, 220.1, 3188.2, 280.05, 3582.4, 2142.5, 3563.4, 3224.4, 305.07, 744.53, 1781.1, 251.1, 1562, 4227.3, 1100.4, 1689.6, 956.36, 1398.1, 538.78, 423.96, 110.27, 737.53, 443.86, 417.83, 836.09, 323.75, 341.49, 2296.7, 193.79, 2525.7, 241.11, 9558.7, 904.7, 1831.9, 1802.3, 300.03, 1864.4, 629.64, 274.05, 473.79, 346.83, 465.67, 148.86, 4596.1, 1373.1, 602.81, 1593.5, 683.7, 3170.3, 2645.7, 1342, 239.13, 762.52, 278.95, 1082.9, 1168, 4801.5, 313.81, 241.08, 758.36, 179.14, 215.76, 1091.6, 795.79, 673.27, 1345.5, 500.72, 526.61, 317.01, 2129.6, 305.89, 92.095, 3936.7, 1068.3, 688.79, 2101.4, 1082.4, 738.66, 2075.2, 4189, 533.76, 1642.2, 984.35, 1935.3, 3003.5, 309.9, 1224.7, 332.49, 7340.5, 2449, 2225.5, 4251.9, 1708.6, 759.67, 261.06, 559.72, 463.83, 958.27, 299.06, 2597.9, 700.25, 1130.6, 217.94, 2616, 2122.1, 1463, 1235.6, 3346.6, 10650, 496.75, 1679.5, 4624.6, 409.82, 1136.1, 983.23, 2054.1, 361.78, 4801.5, 2968.7, 1160.3, 3356.7, 7864.7, 1068, 354.93, 1403.8, 4447.3, 1406.3, 168, 180.87, 118.03, 812.71, 1684.5, 5057.5, 931.66, 2791.5, 963.36, 1657.4, 1470.4, 3071.4, 1773.7, 431.87, 3713, 1319.8, 540.2, 622.88, 2379.6, 4447.5, 4273.8, 3311.4, 1658.1, 1330.2, 3230.3, 467.86, 10049, 1437.4, 2629.6, 673.72, 456.79, 1789.6, 3648.6, 299.71, 142.99, 4447.3, 3529.7, 3095.8, 850.63, 7739.7, 1248.4, 3454.9, 196.1, 1543.5, 334.62, 10650, 2416.6, 1413.6, 5985, 728.74, 2581.6, 2294.2, 1050.4, 3510.6, 5237.2, 3230.3, 1205.1, 1600.4, 414.79, 236.91, 355.49, 1206.2, 548.67, 1872.6, 2584.6, 440.91, 3510.6, 977.89, 10049, 371.78, 3221.3, 593.16, 579.32, 614.24, 279.7, 3760.8, 9558.7, 4656.9, 4279.9, 4624.6, 4405.8, 1805.5, 462.7, 1688.3, 5864.4, 7739.7, 3529.7, 1308.1, 3181, 3181, 133.98, 144.98, 4656.9, 2804.2, 2189.2, 2234.1, 894.8, 3795.1, 1972.9, 1115.3, 218.81, 78.118, 260.77, 679.9, 2791.5, 4543.7, 3262, 1941.4, 1875.3, 1977.2, 1804.2, 1336.2, 2616, 1051.9, 2514.8, 108.07, 4543.7, 1727.5, 2462, 2574.7, 4864.7, 3470.9, 1186.9, 1746.4, 3176.5, 3356.7, 5237.2, 2066.6, 795.12, 1010.1, 883.16, 316.8, 2514.8, 2220.8, 10276, 4336.1, 1804.2, 1720.1, 1875.3, 1588.1, 2544.6, 1621, 77.122, 3071.4, 3604.7, 2584.6, 4156.4, 1652.5, 2140.3, 3465.8, 2218.3, 439.84, 2423.4, 3009.5, 3316.8, 10276, 2101.4, 1657.4, 1113.2, 1471.5, 1345.5, 219.93, 102.09, 163.98, 132.02, 10276, 3410.8, 1922.8, 2784.8, 4801.5, 2142.9, 2212.7, 648.5, 4447.5, 427.78, 514.69, 838.99, 2804.2, 375.55, 7340.5, 3053.6, 10650, 3095.8, 3188.2, 4800.6, 4864.7, 3076.8, 1153.7, 5985, 1755.2, 1260, 2210.7, 556.15, 4658.5, 1121.3, 3006.6, 4800.6, 5864.4, 777.47, 997.01, 3743.3, 1343, 3168.9, 7511.3, 3168.9, 3311.4, 3493.6, 2304.9, 3765.2, 863.12, 4279.9, 239.79, 267.74, 585.83, 2643.5, 4227.3, 2004.4, 1249.1, 2709.1, 1332, 2361.5, 457.77, 811.23, 1397, 1206.6, 964.6, 593.15, 379.62, 1436.2, 3242.6, 4177.9, 964.28, 4336.1, 3307.2, 2239.1, 933.55, 143, 4405.8, 3176.5, 924.46, 1295.8, 7864.7, 1977.2, 528.53, 3247, 920.89, 1876, 7511.3, 3708.5, 2152.3, 3765.2, 3172.4, 2077.7, 4658.5, 3468.5, 2423.4, 7511.3, 1427.3, 2440.2, 3258.5, 5864.4, 1804.2, 3470.9, 4336.1, 7739.7, 1892.7, 5985, 1395.3, 1050.1, 2254.4, 3121.6, 1695.5, 1193.2, 1249.9, 3493.6, 1136.1, 4189, 2860.2, 2469.8, 2462.3, 495.73, 1050.4, 1248.4, 4447.3, 3053.6, 2077.7, 2075.2, 836.14, 1797.7, 3187.5, 1158.5, 1444.9, 3687.6, 2423.4, 1394.7, 1500.8, 2544.6, 3743.3, 947.9, 3454.9, 4156.4, 2629.6, 2077.1, 1605.3, 1193.2, 2155.2, 2225.5, 2134.7, 4251.9, 9558.7, 3349.7, 1629.8, 2968.7, 1323.9, 1395.3, 413.56, 1188.2, 1308.1, 4658.5, 2784.8, 2550.3, 4447.5, 7511.3, 3006.6, 4222.7, 3778.8, 1635.8, 938.26, 7864.7, 1122.9, 4177.9, 2782.5, 1212.5, 3653.7, 6256.8, 2550.3, 1244, 3330.6, 1755.2, 1797.8, 664.36, 2900.9, 3687.6, 3330.6, 3003.5, 3614.9, 3468.5, 3936.7, 1427.3, 1266.5, 7864.7, 5237.2, 10276, 2879.6, 3316.8, 3614.9, 1437.7, 10049, 2304.1, 1298.4, 673.27, 3493.6, 3246.1, 2315.7, 3787.6, 1620.8, 10650, 3795.1, 7511.3, 1778.1, 9558.7, 1792.9, 4543.7, 3787.6, 10049, 1647.6, 3778.8, 10276, 3795.1, 4389.8, 752.29, 4389.8, 3410.8, 2428.6, 1831.9, 3349.7, 2361.5, 4596.1, 1776.1, 626.45, 598.29, 523.6, 2751.8, 7739.7, 4800.6, 2544.6, 894.8, 3648.6, 4800.6, 3743.3, 1429.3, 601.45, 5058.2, 3071.4, 2218.3, 3349.7, 7511.3, 4279.9, 1652.5, 1565.7, 3247, 7340.5, 1380.7, 3563.4, 1230.6, 3121.6, 3653.7, 604.23, 1684.5, 3247, 4596.1, 3009.5, 1192.1, 2968.7, 2831.2, 456.56, 4222.7, 1535.8, 6256.8, 1778.2, 1483, 3468.5, 1212.5, 1094.5, 3760.8, 2106, 3708.5, 1188.2, 7340.5, 2843, 1961.4, 1437.4, 10276, 1909.6, 2900.9, 4864.7, 4800.6, 3258.5, 3053.6, 3330.6, 2550.3, 5985, 4222.7, 4222.7, 2645.7, 4656.9, 3262, 1343, 1180.8, 2574.7, 10049, 2643.5, 3053.6, 4156.4, 10276, 1892.7, 2134.7, 3687.6, 7739.7, 4658.5, 2653.4, 2826.1, 1720.1, 3009.5, 4273.8, 4658.5, 3787.6, 3468.5, 1593.5, 4389.8, 4177.9, 10650, 3563.4, 3765.2, 3172.4, 2142.9, 2987, 1430.6, 2134.7, 1413.6, 4273.8, 3410.8, 3465.8, 2294.2, 1340.7, 807.19, 3653.7, 10049, 7864.7, 3307.2, 4405.8, 5237.2, 3221.3, 4189, 3170.3, 3540, 2653.4, 2210.7, 1135.6, 2629.6, 2987, 2560.6, 3006.6, 7340.5, 7739.7, 3246.1, 1201.5, 2574.7, 4656.9, 4222.7, 10049, 1249.9, 3465.8, 3006.6, 3054.9, 4389.8, 6256.8, 3454.9, 3221.3, 653.36, 3708.5, 3036.8, 1960.6, 3258.5, 3765.2, 4279.9, 3795.1, 4864.7, 3614.9, 3648.6, 3168.9, 10276, 966.16, 3648.6, 7511.3, 10049, 2826.1, 2236, 3172.4, 1814.1, 1291.9, 3172.4, 3760.8, 7739.7, 4596.1, 4336.1, 648.34, 2428.6, 4336.1, 3778.8, 1814.1, 3181, 2286.3, 10049, 7340.5, 7511.3, 3713, 3346.6, 9558.7, 3765.2, 734.44, 3760.8, 3330.6, 3529.7, 7511.3, 1531.6, 5864.4, 3604.7, 3221.3, 3493.6, 10276, 4447.5, 7739.7, 825.87, 2315.7, 4800.6, 2645.7, 3648.6, 3687.6, 2397 ], | |
"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", "Topic8", "Topic10", "Topic11", "Topic11", "Topic12", "Topic14", "Topic17", "Topic1", "Topic3", "Topic5", "Topic6", "Topic7", "Topic7", "Topic8", "Topic9", "Topic12", "Topic12", "Topic13", "Topic19", "Topic1", "Topic3", "Topic4", "Topic4", "Topic5", "Topic5", "Topic6", "Topic12", "Topic18", "Topic20", "Topic3", "Topic3", "Topic5", "Topic6", "Topic6", "Topic7", "Topic9", "Topic11", "Topic13", "Topic19", "Topic19", "Topic20", "Topic1", "Topic1", "Topic3", "Topic3", "Topic4", "Topic5", "Topic8", "Topic12", "Topic3", "Topic4", "Topic5", "Topic9", "Topic9", "Topic11", "Topic12", "Topic16", "Topic17", "Topic18", "Topic1", "Topic1", "Topic2", "Topic3", "Topic3", "Topic5", "Topic6", "Topic7", "Topic10", "Topic11", "Topic12", "Topic20", "Topic1", "Topic1", "Topic2", "Topic4", "Topic6", "Topic6", "Topic7", "Topic7", "Topic8", "Topic12", "Topic12", "Topic13", "Topic15", "Topic16", "Topic4", "Topic4", "Topic7", "Topic11", "Topic11", "Topic12", "Topic13", "Topic18", "Topic1", "Topic2", "Topic3", "Topic6", "Topic8", "Topic9", "Topic9", "Topic10", "Topic10", "Topic11", "Topic14", "Topic17", "Topic20", "Topic1", "Topic1", "Topic3", "Topic4", "Topic5", "Topic5", "Topic5", "Topic7", "Topic11", "Topic11", "Topic14", "Topic15", "Topic15", "Topic19", "Topic19", "Topic1", "Topic3", "Topic3", "Topic6", "Topic8", "Topic18", "Topic1", "Topic1", "Topic3", "Topic4", "Topic4", "Topic5", "Topic6", "Topic9", "Topic10", "Topic12", "Topic12", "Topic15", "Topic19", "Topic1", "Topic1", "Topic2", "Topic2", "Topic4", "Topic4", "Topic5", "Topic7", "Topic10", "Topic12", "Topic12", "Topic12", "Topic14", "Topic16", "Topic16", "Topic1", "Topic1", "Topic2", "Topic3", "Topic3", "Topic4", "Topic5", "Topic6", "Topic8", "Topic11", "Topic13", "Topic14", "Topic15", "Topic16", "Topic19", "Topic1", "Topic1", "Topic3", "Topic5", "Topic7", "Topic7", "Topic7", "Topic9", "Topic10", "Topic11", "Topic12", "Topic12", "Topic12", "Topic12", "Topic1", "Topic3", "Topic4", "Topic4", "Topic5", "Topic6", "Topic7", "Topic8", "Topic9", "Topic11", "Topic11", "Topic11", "Topic13", "Topic14", "Topic15", "Topic15", "Topic16", "Topic16", "Topic1", "Topic2", "Topic2", "Topic2", "Topic3", "Topic3", "Topic4", "Topic5", "Topic6", "Topic8", "Topic10", "Topic11", "Topic12", "Topic12", "Topic1", "Topic2", "Topic2", "Topic3", "Topic6", "Topic10", "Topic11", "Topic11", "Topic1", "Topic2", "Topic3", "Topic3", "Topic3", "Topic5", "Topic6", "Topic7", "Topic7", "Topic8", "Topic8", "Topic12", "Topic13", "Topic15", "Topic16", "Topic17", "Topic19", "Topic2", "Topic2", "Topic3", "Topic3", "Topic3", "Topic4", "Topic7", "Topic8", "Topic8", "Topic10", "Topic11", "Topic13", "Topic14", "Topic18", "Topic1", "Topic1", "Topic2", "Topic2", "Topic3", "Topic3", "Topic5", "Topic5", "Topic6", "Topic7", "Topic7", "Topic7", "Topic10", "Topic10", "Topic11", "Topic12", "Topic14", "Topic14", "Topic20", "Topic1", "Topic3", "Topic5", "Topic8", "Topic8", "Topic9", "Topic10", "Topic12", "Topic14", "Topic19", "Topic1", "Topic2", "Topic2", "Topic3", "Topic4", "Topic4", "Topic5", "Topic6", "Topic7", "Topic9", "Topic9", "Topic10", "Topic11", "Topic11", "Topic13", "Topic20", "Topic1", "Topic1", "Topic2", "Topic3", "Topic4", "Topic4", "Topic7", "Topic8", "Topic8", "Topic10", "Topic10", "Topic12", "Topic13", "Topic16", "Topic17", "Topic1", "Topic1", "Topic2", "Topic3", "Topic6", "Topic6", "Topic6", "Topic7", "Topic10", "Topic10", "Topic10", "Topic11", "Topic12", "Topic13", "Topic2", "Topic2", "Topic5", "Topic7", "Topic8", "Topic10", "Topic10", "Topic12", "Topic12", "Topic15", "Topic17", "Topic19", "Topic20", "Topic2", "Topic3", "Topic4", "Topic4", "Topic5", "Topic6", "Topic6", "Topic8", "Topic9", "Topic10", "Topic10", "Topic13", "Topic15", "Topic17", "Topic19", "Topic1", "Topic2", "Topic2", "Topic3", "Topic4", "Topic4", "Topic5", "Topic7", "Topic8", "Topic8", "Topic9", "Topic10", "Topic11", "Topic12", "Topic15", "Topic16", "Topic18", "Topic1", "Topic2", "Topic4", "Topic4", "Topic6", "Topic6", "Topic7", "Topic14", "Topic16", "Topic18", "Topic1", "Topic2", "Topic3", "Topic4", "Topic4", "Topic5", "Topic6", "Topic6", "Topic7", "Topic10", "Topic10", "Topic11", "Topic13", "Topic13", "Topic17", "Topic19", "Topic2", "Topic4", "Topic6", "Topic7", "Topic8", "Topic9", "Topic11", "Topic12", "Topic15", "Topic16", "Topic16", "Topic17", "Topic17", "Topic20", "Topic1", "Topic2", "Topic3", "Topic3", "Topic5", "Topic6", "Topic6", "Topic7", "Topic8", "Topic9", "Topic10", "Topic10", "Topic11", "Topic13", "Topic14", "Topic18", "Topic19", "Topic2", "Topic3", "Topic4", "Topic7", "Topic11", "Topic14", "Topic16", "Topic18", "Topic18", "Topic18", "Topic19", "Topic20", "Topic2", "Topic4", "Topic5", "Topic5", "Topic7", "Topic8", "Topic9", "Topic10", "Topic11", "Topic13", "Topic17", "Topic18", "Topic1", "Topic3", "Topic4", "Topic4", "Topic5", "Topic6", "Topic6", "Topic6", "Topic7", "Topic9", "Topic11", "Topic12", "Topic14", "Topic14", "Topic16", "Topic16", "Topic2", "Topic3", "Topic6", "Topic7", "Topic8", "Topic10", "Topic10", "Topic12", "Topic13", "Topic16", "Topic18", "Topic20", "Topic1", "Topic2", "Topic3", "Topic3", "Topic4", "Topic6", "Topic7", "Topic7", "Topic8", "Topic9", "Topic10", "Topic10", "Topic11", "Topic12", "Topic12", "Topic14", "Topic15", "Topic17", "Topic19", "Topic20", "Topic20", "Topic1", "Topic2", "Topic3", "Topic4", "Topic7", "Topic7", "Topic10", "Topic11", "Topic12", "Topic14", "Topic14", "Topic17", "Topic18", "Topic18", "Topic2", "Topic2", "Topic4", "Topic7", "Topic8", "Topic9", "Topic9", "Topic10", "Topic11", "Topic12", "Topic13", "Topic17", "Topic18", "Topic20", "Topic4", "Topic5", "Topic6", "Topic7", "Topic8", "Topic12", "Topic15", "Topic17", "Topic2", "Topic2", "Topic5", "Topic6", "Topic7", "Topic8", "Topic11", "Topic14", "Topic15", "Topic17", "Topic18", "Topic19", "Topic20", "Topic3", "Topic5", "Topic7", "Topic8", "Topic9", "Topic10", "Topic12", "Topic13", "Topic14", "Topic14", "Topic15", "Topic16", "Topic18", "Topic19", "Topic4", "Topic5", "Topic6", "Topic7", "Topic9", "Topic11", "Topic11", "Topic20", "Topic20", "Topic1", "Topic3", "Topic7", "Topic7", "Topic11", "Topic12", "Topic13", "Topic15", "Topic17", "Topic17", "Topic2", "Topic3", "Topic5", "Topic5", "Topic6", "Topic8", "Topic9", "Topic11", "Topic12", "Topic13", "Topic14", "Topic15", "Topic16", "Topic19", "Topic20", "Topic1", "Topic2", "Topic4", "Topic8", "Topic10", "Topic14", "Topic15", "Topic15", "Topic16", "Topic17", "Topic18", "Topic20", "Topic5", "Topic8", "Topic9", "Topic10", "Topic11", "Topic12", "Topic17", "Topic19", "Topic19", "Topic4", "Topic7", "Topic10", "Topic12", "Topic13", "Topic14", "Topic15", "Topic16", "Topic17", "Topic20", "Topic7", "Topic10", "Topic12", "Topic14", "Topic16", "Topic19", "Topic3", "Topic4", "Topic6", "Topic7", "Topic8", "Topic8", "Topic9", "Topic10", "Topic13", "Topic2", "Topic5", "Topic6", "Topic6", "Topic12", "Topic15", "Topic17", "Topic17", "Topic18", "Topic20", "Topic1", "Topic1", "Topic2", "Topic6", "Topic17", "Topic19", "Topic20", "Topic1", "Topic5", "Topic8", "Topic10", "Topic11", "Topic12", "Topic12", "Topic13", "Topic3", "Topic4", "Topic5", "Topic8", "Topic9", "Topic15", "Topic18", "Topic19", "Topic4", "Topic6", "Topic7", "Topic7", "Topic8", "Topic10", "Topic11", "Topic13", "Topic18", "Topic2", "Topic4", "Topic4", "Topic5", "Topic6", "Topic12", "Topic13", "Topic14", "Topic15", "Topic17", "Topic18", "Topic19", "Topic3", "Topic8", "Topic8", "Topic9", "Topic10", "Topic13", "Topic14", "Topic15", "Topic19", "Topic19", "Topic5", "Topic7", "Topic10", "Topic11", "Topic13", "Topic15", "Topic16", "Topic17", "Topic17", "Topic2", "Topic5", "Topic5", "Topic6", "Topic7", "Topic8", "Topic11", "Topic13", "Topic17", "Topic18", "Topic20", "Topic3", "Topic5", "Topic16", "Topic17", "Topic19", "Topic7", "Topic14", "Topic15", "Topic16", "Topic20", "Topic4", "Topic8", "Topic12", "Topic15", "Topic16", "Topic16", "Topic18", "Topic20", "Topic20", "Topic6", "Topic13", "Topic14", "Topic15", "Topic17", "Topic19", "Topic19", "Topic20", "Topic1", "Topic4", "Topic7", "Topic12", "Topic16", "Topic17", "Topic18", "Topic2", "Topic9", "Topic11", "Topic11", "Topic14", "Topic15", "Topic17", "Topic18", "Topic19", "Topic13", "Topic19", "Topic20", "Topic13", "Topic13", "Topic14", "Topic15", "Topic17", "Topic20", "Topic1", "Topic6", "Topic8", "Topic13", "Topic14", "Topic16", "Topic17", "Topic3", "Topic5", "Topic9", "Topic9", "Topic13", "Topic14", "Topic15", "Topic18", "Topic19", "Topic4", "Topic7", "Topic9", "Topic15", "Topic18", "Topic20", "Topic9", "Topic12", "Topic13", "Topic15", "Topic17", "Topic17", "Topic18", "Topic6", "Topic9", "Topic11", "Topic12", "Topic16", "Topic18", "Topic3", "Topic4", "Topic15", "Topic1", "Topic3", "Topic7", "Topic17", "Topic19", "Topic20", "Topic14", "Topic18", "Topic8", "Topic10", "Topic16", "Topic19", "Topic11", "Topic18", "Topic2", "Topic5", "Topic7", "Topic10", "Topic14", "Topic16", "Topic17", "Topic18", "Topic20", "Topic1", "Topic8", "Topic9", "Topic20", "Topic4", "Topic5", "Topic9", "Topic13", "Topic14", "Topic15", "Topic18", "Topic19", "Topic3", "Topic7", "Topic8", "Topic17", "Topic18", "Topic9", "Topic10", "Topic11", "Topic13", "Topic14", "Topic4", "Topic15", "Topic20", "Topic1", "Topic5", "Topic8", "Topic14", "Topic16", "Topic18", "Topic2", "Topic14", "Topic18", "Topic9", "Topic12", "Topic14", "Topic19", "Topic6", "Topic8", "Topic13", "Topic13", "Topic14", "Topic4", "Topic15", "Topic19", "Topic10", "Topic11", "Topic14", "Topic15", "Topic16", "Topic20", "Topic19", "Topic8", "Topic16", "Topic19", "Topic5", "Topic10", "Topic15", "Topic17", "Topic3", "Topic3", "Topic9", "Topic13", "Topic18", "Topic20", "Topic2", "Topic6", "Topic8", "Topic15", "Topic20", "Topic2", "Topic4", "Topic7", "Topic12", "Topic13", "Topic14", "Topic17", "Topic18", "Topic19", "Topic4", "Topic15", "Topic17", "Topic15", "Topic17" ] | |
}, | |
"token.table": { | |
"Term": [ "''", "''", "''", "''", "'n", "'w", "'w", "'w", "'w", "'w", "'w", "'w", "abaetetuba", "aberrant", "aberrant", "absorption", "absorption", "absorption", "abundance", "abundance", "abundance", "abundance", "abundance", "abundance", "abundance", "abundance", "abundantly", "abundantly", "academy", "academy", "academy", "academy", "academy", "academy", "academy", "academy", "acid", "acid", "acid", "acid", "acids", "activation", "activation", "adalgisa", "adalgisa", "adalgisa", "adaptations", "adaptations", "adaptations", "adaptations", "adaptations", "additive", "additive", "address", "address", "address", "adenovirus", "adenovirus", "adequate", "adiabatic", "adult", "adult", "adult", "adult", "adult", "adult", "adult", "adult", "adult", "adult", "advances", "aedeagus", "aedeagus", "aegialomys", "agency", "agency", "agency", "aguilera", "airborne", "airborne", "airborne", "alan", "alan", "alan", "albelo", "albelo", "albelo", "alcedo", "alcedo", "alcedo", "alcedo", "alcedo", "alga", "alga", "alga", "alien", "alien", "alien", "alien", "alien", "alkadienes", "alkadienes", "alkalic", "alkanes", "alkanes", "alkanes", "alleles", "alleles", "alleles", "alleles", "alleles", "alleles", "alleles", "alleles", "alleles", "allopatric", "allopatric", "allopatric", "allopatric", "allopatric", "alpha", "alpha", "alpha", "alpha", "alteration", "alteration", "alteration", "alteration", "alteration", "alteration", "alternation", "amalgamated", "amalgamated", "amalgamated", "ampullae", "ampullae", "ams", "ams", "amtmann", "anaesthesia", "analysis", "analysis", "analysis", "analysis", "analysis", "analysis", "analysis", "analysis", "anatomical", "anatomical", "anatomy", "anatomy", "anatomy", "anatomy", "anatomy", "anatomy", "anchialine", "anchialine", "anchialine", "anchialine", "anchialine", "anderson", "anderson", "anderson", "anderson", "anderson", "anderson", "andes", "andes", "andrea", "andrea", "ani", "ani", "ani", "ani", "ani", "ani", "anna", "anna", "anna", "annals", "annals", "annotated", "annotated", "annotated", "annotated", "annotated", "annually", "annulatus", "annulatus", "anopsicus", "anthropogenic", "anthropogenic", "anthropogenic", "antibiotic", "antibody", "antibody", "antigen", "antigen", "antimicrobials", "antimicrobials", "appearing", "appearing", "applicability", "applicability", "approaching", "approaching", "approaching", "approaching", "approximate", "approximate", "approximate", "approximate", "approximately", "approximately", "approximately", "approximately", "approximately", "approximately", "approximates", "approximates", "approximates", "apv", "aquifer", "arachnida", "arachnida", "arachnida", "araneae", "araneae", "araneae", "araneae", "araneae", "arid", "arid", "arid", "arid", "arid", "arid", "arid", "arnaud", "artois", "artois", "artois", "artois", "asci", "assembly", "assessment", "assessment", "assessment", "assessment", "assessment", "assigned", "assigned", "assigned", "assigned", "assigned", "assuming", "assuming", "atkinson", "atrium", "atrium", "attacks", "attacks", "attenuated", "aureola", "aurioles", "authentic", "authentic", "authentic", "authigenic", "averaged", "averaged", "averaged", "averaged", "averaged", "averaged", "avian", "avian", "avian", "avian", "avian", "avian", "avian", "avian", "avipoxvirus", "avipoxvirus", "aware", "axial", "axial", "axial", "axial", "axial", "axial", "axis", "axis", "axis", "axis", "axis", "axis", "ayora", "azores", "azores", "background", "background", "background", "background", "background", "bacterial", "bacterial", "bacterial", "bacterial", "baits", "baits", "baits", "baits", "baits", "balaenoptera", "balaenoptera", "balaenoptera", "balaenoptera", "baltra", "baltra", "banksi", "barrier", "barrier", "basalt", "basalt", "basalt", "basalt", "basalt", "basalt", "basaltic", "basaltic", "basaltic", "basaltic", "basins", "basins", "basins", "bathymetric", "bathymetry", "bathymetry", "bathymetry", "bayesian", "bayesian", "bayesian", "bayesian", "bayesian", "beagle", "beagle", "beak", "beak", "beak", "beak", "beds", "beds", "beds", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behavior", "behaviour", "behaviour", "behaviour", "behaviour", "behaviour", "behn", "berjano", "beta", "beta", "beta", "beta", "beta", "biocon", "biocon", "biodiversity", "biodiversity", "biodiversity", "biodiversity", "biodiversity", "biodiversity", "biodiversity", "biological", "biological", "biological", "biological", "biological", "biological", "biological", "biological", "biological", "biologies", "biomarker", "biomarker", "biotic", "bipartite", "bipartite", "bipartite", "bipartite", "bird", "bird", "bird", "bird", "bird", "bird", "bird", "bird", "bird", "birds", "birds", "birds", "birds", "birds", "birds", "birds", "birds", "birds", "birds", "birth", "blunt", "bodies", "bodies", "bodies", "bodies", "bog", "boobies", "boobies", "boobies", "boobies", "boobies", "boobies", "boosted", "boraginaceae", "borer", "borer", "borer", "borer", "borer", "born", "born", "born", "born", "braunii", "braunii", "braunii", "break", "break", "break", "breed", "breed", "breed", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "breeding", "broken", "broken", "broken", "buffered", "buffered", "bulk", "bulk", "bulk", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "bulletin", "burros", "burros", "bush", "ca", "ca", "ca", "ca", "ca", "ca", "cactospiza", "cactospiza", "cactospiza", "cactospiza", "cactospiza", "cactospiza", "cairns", "cairns", "cairns", "cairns", "caldera", "caldera", "caldera", "caldera", "caldera", "caldera", "caldera", "caldera", "caldera", "calibration", "calibration", "calibration", "calibration", "calibration", "california", "california", "california", "california", "california", "california", "california", "california", "california", "calls", "calls", "calls", "calls", "calls", "calls", "canal", "canal", "canal", "canal", "canarypox", "canarypox", "canarypox", "capra", "capra", "capra", "captures", "captures", "captures", "caranx", "caranx", "caranx", "carcharhiniformes", "cardinalis", "cardinalis", "cardinalis", "caribbean", "caribbean", "caribbean", "caribbean", "caribbean", "caribbean", "carolina", "carotene", "carotene", "carrasco", "carrasco", "carrasco", "categories", "categories", "categories", "categories", "categories", "cats", "cats", "cats", "cats", "cats", "cats", "cavity", "cavity", "cavity", "cd", "cd", "cd", "cd", "cells", "cells", "cells", "cells", "cells", "cells", "cells", "center", "center", "center", "center", "center", "center", "center", "center", "center", "cesar", "chains", "chains", "chains", "chamber", "chamber", "chamber", "chamber", "chamber", "chamber", "chamorro", "chd", "checklist", "checklist", "checklist", "checklist", "checklist", "chelonia", "chelonia", "chelonian", "chelonoidis", "chelonoidis", "chelonoidis", "chiari", "chickens", "chickens", "chilopoda", "chilopoda", "chiriqui", "chiriqui", "chiriqui", "chiriqui", "chiriqui", "chlamydophila", "chlamydophila", "chloroalkanes", "chloroalkenes", "christie", "christie", "christie", "christie", "christie", "christie", "christie", "chronic", "chronic", "chronic", "chronic", "cinchona", "cinchona", "cinchona", "cinchona", "cinchona", "cirrus", "cirrus", "clarified", "clarified", "clarified", "class", "class", "class", "class", "class", "classic", "classic", "clavus", "clavus", "clavus", "clavus", "clavus", "cleithral", "clerc", "climate", "climate", "climate", "climate", "climate", "climate", "climate", "close", "close", "close", "close", "close", "close", "close", "closer", "closer", "closer", "closer", "closer", "closer", "coarse", "coarse", "coarse", "coarse", "coast", "coast", "coast", "coast", "coast", "coast", "coast", "coast", "coast", "coastal", "coastal", "coastal", "coastal", "coastal", "coastal", "coastal", "coastal", "coastal", "coastal", "cockerell", "cockerell", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "coleoptera", "collectively", "collectively", "collectively", "collectively", "colonies", "colonies", "colonies", "colonies", "colonies", "colonies", "colonies", "colonies", "colonization", "colonization", "colonization", "colonization", "colonization", "colonization", "colonization", "colonization", "colonizing", "colonizing", "colonizing", "colonizing", "colonizing", "colony", "colony", "colony", "colony", "colony", "colony", "colony", "columbiformes", "combination", "combination", "combination", "combination", "combination", "combination", "combination", "combination", "combination", "combination", "combination", "combined", "combined", "combined", "common", "common", "common", "common", "common", "common", "common", "common", "common", "common", "common", "communities", "communities", "communities", "communities", "communities", "communities", "communities", "community", "community", "community", "community", "community", "community", "community", "competency", "competitive", "completion", "completion", "complex", "complex", "complex", "complex", "complex", "complex", "compliance", "compliance", "compliance", "components", "components", "components", "components", "components", "components", "components", "compressed", "compressed", "concepts", "conceptual", "conditions", "conditions", "conditions", "conditions", "conditions", "conditions", "conditions", "conditions", "conditions", "conditions", "cones", "cones", "cones", "cones", "conflicts", "conroy", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "conservation", "considered", "considered", "considered", "considered", "considered", "considered", "considered", "considered", "considered", "considered", "consistency", "consistency", "consistency", "consistent", "consistent", "consistent", "consistent", "consistent", "consistent", "constrains", "constraints", "constraints", "constraints", "constraints", "constraints", "construction", "contemporary", "contemporary", "content", "content", "content", "content", "contributions", "contributions", "contributions", "contributions", "contributions", "contributions", "contributions", "contributions", "control", "control", "control", "control", "control", "convection", "cooke", "cooke", "cooke", "cooke", "coomans", "coomans", "coomans", "coomans", "coomans", "coomans", "coomans", "copying", "coral", "coral", "coral", "coral", "coral", "coral", "coral", "coral", "coral", "coral", "coral", "corals", "corals", "corals", "corals", "corals", "corals", "corals", "corals", "cordia", "cordia", "cordia", "cormorants", "cormorants", "cormorants", "cormorants", "correcting", "correction", "correction", "correction", "correctly", "correctly", "correctly", "correctly", "correctly", "correspondence", "correspondence", "cortical", "cost", "cost", "cost", "cost", "cost", "cost", "cost", "cottony", "counted", "creek", "critical", "critical", "critical", "critical", "critically", "critically", "critically", "critically", "critically", "cromwell", "cromwell", "crossed", "crossed", "crossed", "croton", "crust", "crust", "crust", "crust", "crust", "crust", "crust", "crustal", "crustal", "crustal", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cruz", "cryptic", "cryptic", "cryptic", "crystals", "crystals", "cucumber", "cucumber", "cucumber", "cultural", "cultural", "cumulate", "cushman", "cuts", "cuts", "cuts", "cyclic", "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", "darwini", "darwini", "darwini", "darwini", "darwini", "darwini", "darwini", "darwini", "darwini", "darwini", "darwini", "darwini", "darwinii", "darwinii", "darwinii", "darwinii", "darwinii", "darwinii", "dataset", "dataset", "dataset", "dataset", "dates", "dates", "dates", "dates", "dates", "dates", "days", "days", "days", "days", "days", "days", "days", "days", "days", "ddt", "deal", "deal", "dealing", "dealing", "dealing", "decades", "decades", "decades", "decades", "deciduous", "deciduous", "decisions", "decisions", "decisions", "decline", "decline", "decline", "decline", "decline", "decline", "decline", "decoupling", "decoupling", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "defecated", "defecated", "defecated", "deficient", "deficient", "degraded", "degraded", "degraded", "degraded", "deleted", "deleterious", "deleterious", "deleterious", "demand", "demand", "demand", "demand", "demands", "dennis", "dennis", "dennis", "dennis", "dennis", "density", "density", "density", "density", "density", "deployed", "deployed", "deployed", "deployed", "deployed", "deployed", "deployed", "depositional", "depositional", "depositional", "depredation", "depredation", "depth", "depth", "depth", "depth", "depth", "depth", "depth", "derived", "derived", "derived", "derived", "derived", "derived", "derived", "derived", "description", "description", "description", "description", "description", "description", "description", "description", "description", "description", "description", "descriptions", "descriptions", "descriptions", "descriptions", "descriptions", "descriptions", "descriptions", "descriptions", "descriptions", "designate", "destruction", "destruction", "destruction", "destruction", "detached", "determine", "determine", "determine", "determine", "determine", "determine", "determine", "determined", "determined", "determined", "determined", "determined", "determined", "determined", "determined", "development", "development", "development", "development", "development", "development", "devoid", "devoid", "devoid", "diaspores", "dictyonema", "dictyonema", "diet", "diet", "diet", "diet", "diet", "diet", "diet", "diet", "dietz", "dietz", "diffusa", "diffusa", "diffusa", "digestion", "digestion", "digestive", "digestive", "dinoflagellate", "dinoflagellate", "dinucleotide", "diols", "diols", "direct", "direct", "direct", "direct", "direct", "direct", "direct", "disasters", "disasters", "disasters", "disclosed", "disclosed", "disclosed", "discussion", "discussion", "discussion", "discussion", "discussion", "discussion", "discussion", "disease", "disease", "disease", "disease", "diseases", "diseases", "diseases", "disequilibria", "disequilibria", "dispersal", "dispersal", "dispersal", "dispersal", "dispersal", "dispersal", "dispersed", "dispersed", "dispersed", "dispersed", "dispersed", "dispersed", "dissolved", "dissolved", "distance", "distance", "distance", "distance", "distance", "distance", "distance", "distances", "distances", "distances", "distances", "distances", "distinctiveness", "disturbances", "dive", "dive", "dive", "dive", "divergence", "divergence", "divergence", "divergence", "divergence", "divergence", "diversification", "diversification", "diversification", "diversification", "diversification", "diversity", "diversity", "diversity", "diversity", "diversity", "diversity", "diversity", "diversity", "diversity", "diving", "diving", "diving", "diving", "diving", "diving", "dna", "dna", "dna", "dna", "documentation", "domestic", "domestic", "domestic", "donkeys", "donkeys", "donkeys", "donkeys", "donkeys", "donkeys", "dorsal", "dorsal", "dorsal", "dorsal", "dorsal", "dorsal", "dorsal", "dorylaimida", "dorylaimida", "doubtfully", "doubtfully", "doubtfully", "doubtfully", "downsi", "downsi", "downsi", "dozouville", "drastic", "drastic", "drastic", "drier", "driesche", "drive", "dropped", "dropped", "dropped", "dry", "dry", "dry", "dry", "dry", "dry", "dry", "dsdp", "dsdp", "dung", "dynamic", "dynamic", "dynamic", "dynamic", "dynamic", "dynamics", "dynamics", "dynamics", "dynamics", "dynamics", "dynamics", "dynamics", "earth", "earth", "earth", "earth", "earth", "earthquake", "earthquake", "earthquake", "earthquake", "easily", "easily", "easily", "easily", "easily", "east", "east", "east", "east", "east", "east", "east", "east", "easter", "easter", "easter", "easter", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eastern", "eating", "eating", "ecography", "ecological", "ecological", "ecological", "ecological", "ecological", "ecological", "ecological", "ecological", "ecological", "ecological", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecology", "ecosystem", "ecosystem", "ecosystem", "ecosystem", "ecosystem", "ecosystem", "ecosystems", "ecosystems", "ecosystems", "ecosystems", "ecosystems", "ecosystems", "ecosystems", "eden", "eden", "eden", "eden", "eden", "ef", "ef", "ef", "ef", "ef", "ef", "ef", "ef", "ef", "effectiveness", "effectiveness", "effects", "effects", "effects", "effects", "effects", "effects", "effects", "efficiency", "efficiency", "efficiency", "efforts", "efforts", "efforts", "efforts", "effusion", "effusion", "effusion", "effusion", "element", "element", "element", "element", "element", "element", "element", "element", "element", "elevated", "elevated", "elevated", "elevated", "elevated", "elevated", "elevational", "elevational", "elevations", "elevations", "elevations", "elevations", "elongation", "emissions", "employed", "enabled", "enabled", "enabled", "enabled", "encounter", "encounter", "encounter", "encroachment", "encroachment", "endangered", "endangered", "endangered", "endangered", "endangered", "endangered", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "endemic", "energy", "energy", "energy", "energy", "energy", "energy", "enigmatic", "enriched", "enriched", "enriched", "enriched", "enriched", "enriched", "enso", "enso", "enso", "enso", "enso", "enso", "enterica", "enterica", "environment", "environment", "environment", "environment", "environment", "environment", "environment", "environment", "environment", "environmental", "environmental", "environmental", "environmental", "environmental", "environmental", "environmental", "environmental", "environments", "environments", "environments", "environments", "environments", "environments", "environments", "environments", "environments", "enzymes", "enzymes", "enzymes", "equipped", "equivalency", "eradicate", "eradicate", "eradication", "eradication", "eradication", "erosional", "erosional", "erroneously", "erroneously", "erroneously", "error", "error", "error", "eruption", "eruption", "eruption", "eruption", "eruption", "eruption", "eruption", "eruption", "eruption", "establishment", "establishment", "establishment", "establishment", "establishment", "estimated", "estimated", "estimated", "estimated", "estimated", "estimated", "estimated", "estimated", "estimates", "estimates", "estimates", "estimates", "estimates", "estimates", "estimates", "estimating", "estimating", "estimating", "euc", "euc", "event", "event", "event", "event", "event", "event", "event", "evidence", "evidence", "evidence", "evidence", "evidence", "evidence", "evidence", "evidence", "evidence", "evolution", "evolution", "evolution", "evolution", "evolution", "evolution", "evolution", "evolution", "evolution", "evolution", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "evolutionary", "examined", "examined", "examined", "examined", "examined", "expand", "expand", "expedition", "expedition", "expedition", "expedition", "expedition", "expedition", "expedition", "expedition", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "expeditions", "explicit", "exponentially", "exposure", "exposure", "exposure", "exposure", "exposure", "exposure", "expressions", "expressions", "external", "external", "external", "external", "external", "external", "external", "external", "extinct", "extinct", "extinct", "extinct", "extinct", "extinct", "extinct", "extinct", "extinct", "extinction", "extinction", "extinction", "extinction", "extinction", "extinction", "extinction", "extinction", "factors", "factors", "factors", "factors", "factors", "factors", "factors", "factors", "factors", "facts", "facts", "fall", "fall", "fall", "fault", "fault", "fault", "fault", "fault", "fault", "fault", "fault", "faunas", "faunas", "faunas", "faunas", "faunas", "faunas", "favored", "favored", "fe", "fe", "fe", "fe", "fe", "fe", "fe", "fe", "feathers", "feathers", "feathers", "fecundities", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeding", "feeds", "feeds", "feeds", "feeds", "feeds", "fenced", "fenced", "fermentative", "fermentative", "fernandina", "fernandina", "fernandina", "fernandina", "fernandina", "fernandina", "fernandina", "fibrils", "fibrils", "field", "field", "field", "field", "field", "field", "field", "field", "field", "field", "field", "field", "figures", "figures", "figures", "figures", "filamentous", "filamentous", "filamentous", "financial", "financial", "financial", "finches", "finches", "finches", "finches", "finches", "finches", "finches", "finches", "finite", "finite", "fire", "fire", "fire", "fished", "fished", "fished", "fished", "fished", "fisheries", "fisheries", "fisheries", "fisheries", "fisheries", "fishers", "fishers", "fishes", "fishes", "fishes", "fishes", "fishes", "fishes", "fishing", "fishing", "fishing", "fishing", "fishing", "fishing", "fishing", "fitted", "fitted", "fitted", "fitted", "flamingo", "flatworms", "flatworms", "flatworms", "fleshy", "fleshy", "flexure", "flora", "flora", "flora", "flora", "flora", "flora", "flora", "flora", "flora", "floral", "floral", "floral", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "floreana", "flow", "flow", "flow", "flow", "flow", "flow", "flow", "flow", "flows", "flows", "flows", "flows", "flows", "flows", "flows", "fluctuating", "fluid", "fluid", "fluids", "fluids", "flycatcher", "flycatcher", "focusing", "foraged", "foraged", "foraged", "foraged", "foraged", "foraging", "foraging", "foraging", "foraging", "foraging", "foraging", "foraging", "foraging", "forms", "forms", "forms", "forms", "forms", "forms", "forms", "forms", "fossil", "fossil", "fossil", "fossil", "fossil", "fossil", "foundation", "foundation", "foundation", "foundation", "foundation", "foundation", "foundation", "fra", "fra", "fra", "fractionate", "fractionate", "fractured", "fractured", "frigatebirds", "frigatebirds", "frigatebirds", "frigatebirds", "frigatebirds", "frontiers", "frontiers", "fruit", "fruit", "fruit", "fruit", "fruit", "fruit", "fruit", "fruited", "fruited", "fruited", "fruited", "fruited", "fruits", "fruits", "fruits", "fruits", "fruits", "fruits", "fumarole", "functions", "functions", "functions", "functions", "functions", "functions", "fuscus", "fuscus", "fuscus", "gabriele", "galapagense", "galapagense", "galapagense", "galapagense", "galapagense", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagensis", "galapagoan", "galapagoan", "galapagoan", "galapagoan", "galapagoan", "galapagoense", "galapagoense", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galapagoensis", "galium", "galium", "galium", "gamboa", "gamboa", "gamboa", "gamete", "gamete", "gamete", "gametes", "gametes", "gametes", "gametes", "garrett", "garrick", "gas", "gas", "gas", "gas", "gas", "gauge", "gauge", "gemelosi", "gemelosi", "gene", "gene", "gene", "gene", "gene", "gene", "gene", "gene", "gene", "genera", "genera", "genera", "genera", "genera", "genera", "genera", "genera", "genera", "genera", "genera", "genera", "generalized", "genesis", "genesis", "genesis", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genetic", "genovesa", "genovesa", "genovesa", "genovesa", "genovesa", "genovesa", "genovesa", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "genus", "geochelone", "geochelone", "geochelone", "geochelone", "geochelone", "geometric", "geometric", "geophysical", "geophysical", "geophysical", "geophysical", "geophysical", "geophysical", "geophysical", "george", "george", "george", "george", "george", "george", "george", "geosystems", "geosystems", "geosystems", "geosystems", "gertsch", "giant", "giant", "giant", "giant", "giant", "giant", "giant", "giant", "giant", "giddingsi", "gigantolaelaps", "glauconite", "glauconite", "global", "global", "global", "global", "global", "global", "glynn", "glynn", "glynn", "glynn", "gmr", "gmr", "gmr", "gmr", "gmr", "goats", "goats", "goats", "goats", "goats", "goats", "goats", "goats", "goats", "gomez", "gonads", "gonads", "gonads", "gondii", "gondii", "gonzalez", "gonzalez", "gonzalez", "gonzalez", "gonzalez", "governance", "governance", "governance", "gradients", "gradients", "gross", "gross", "gross", "ground", "ground", "ground", "ground", "ground", "ground", "ground", "ground", "ground", "group", "group", "group", "group", "group", "group", "group", "group", "group", "grouped", "grouped", "grouped", "grouper", "grouper", "groups", "groups", "groups", "groups", "groups", "groups", "groups", "groups", "groups", "growth", "growth", "growth", "growth", "growth", "growth", "growth", "growth", "growth", "guajava", "guided", "gulf", "gulf", "gulf", "gulf", "gulf", "gulf", "gulf", "gulf", "gustavo", "gut", "gut", "habitat", "habitat", "habitat", "habitat", "habitat", "habitat", "habitat", "habitat", "habitat", "habitats", "habitats", "habitats", "habitats", "habitats", "habitats", "habitats", "habits", "habits", "habits", "habits", "habits", "hand", "hand", "hand", "hand", "hand", "haplotypes", "harpp", "harpp", "harpp", "harpp", "harpp", "harpp", "harpp", "hartman", "hartman", "hartman", "hartman", "hatched", "hatched", "hatched", "haul", "haul", "hawk", "hawk", "hawk", "hawk", "hawk", "hawk", "hawk", "health", "health", "health", "health", "heavily", "heavily", "heavily", "heavily", "heavily", "heavily", "height", "height", "height", "height", "height", "height", "heleno", "hematology", "hematology", "hepatozoon", "herbivorous", "herbivorous", "herbivorous", "herbivorous", "hess", "hess", "hess", "heterostylous", "heterostylous", "highest", "highest", "highest", "highest", "highlighting", "highly", "highly", "highly", "highly", "highly", "hill", "hippoboscidae", "hippoboscidae", "hircus", "hircus", "historic", "historic", "historic", "historic", "historic", "historic", "historical", "historical", "historical", "historical", "historical", "historical", "historical", "historical", "historical", "historical", "historical", "history", "history", "history", "history", "history", "history", "history", "history", "history", "history", "history", "hitherto", "hitherto", "hl", "hl", "hl", "hl", "hl", "hogfish", "hogna", "holocene", "holocene", "holocene", "holocene", "holocene", "holocene", "holocene", "hook", "hook", "hook", "hook", "hook", "hook", "hook", "hook", "host", "host", "host", "host", "host", "host", "hotspot", "hotspot", "hotspot", "hotspot", "hotspot", "hotspot", "howard", "howard", "howard", "howard", "howard", "howdenae", "howdenae", "human", "human", "human", "human", "human", "human", "human", "human", "human", "human", "hunter", "hunter", "hunter", "hunter", "hunter", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydrothermal", "hydroxy", "iconic", "iconic", "id", "id", "id", "id", "id", "id", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identification", "identified", "identified", "identified", "identified", "identified", "identified", "identified", "identified", "identified", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguana", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "iguanas", "image", "image", "image", "immunosuppression", "immunosuppression", "impact", "impact", "impact", "impact", "impact", "impact", "impact", "impact", "impacts", "impacts", "impacts", "impacts", "impacts", "impacts", "implement", "implication", "improvements", "inbred", "incision", "incorporate", "increase", "increase", "increase", "increase", "increase", "increase", "increase", "increase", "increase", "increased", "increased", "increased", "increased", "increased", "increased", "increased", "increased", "increased", "india", "india", "indices", "indices", "indices", "indirect", "indirect", "indirect", "individual", "individual", "individual", "individual", "individual", "individual", "individual", "individual", "individual", "infecting", "infecting", "inferences", "inferences", "infestations", "influence", "influence", "influence", "influence", "influence", "influence", "influence", "influence", "influenced", "influenced", "influenced", "influenced", "influenced", "influenced", "influenced", "influx", "influx", "information", "information", "information", "information", "information", "information", "information", "information", "information", "information", "information", "initiate", "initiate", "initiate", "insar", "insar", "insar", "insects", "insects", "insects", "insects", "insects", "insects", "insects", "inspired", "inspired", "inspired", "instances", "instances", "instances", "insular", "insular", "insular", "insular", "insular", "insular", "insular", "integrative", "integrative", "interaction", "interaction", "interaction", "interaction", "interaction", "interaction", "interactions", "interactions", "interactions", "interactions", "interactions", "intermediate", "intermediate", "intermediate", "intermediate", "intermediate", "intermediate", "intermediate", "intermediate", "interrelationships", "interrelationships", "intestinal", "intestinal", "intra", "intra", "intra", "intrathecal", "introduced", "introduced", "introduced", "introduced", "introduced", "introduced", "introduced", "introduced", "invaders", "invaders", "invasion", "invasion", "invasion", "invasion", "invasive", "invasive", "invasive", "invasive", "invasive", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isabela", "isolates", "isolates", "isostichopus", "isostichopus", "isotope", "isotope", "isotope", "isotope", "isotope", "isotope", "isotopic", "isotopic", "isotopic", "isotopic", "isotopic", "itcz", "itcz", "jessica", "jessica", "jessica", "jonathan", "jorge", "jorge", "juanibali", "judith", "junction", "junction", "junction", "junction", "june", "june", "june", "june", "june", "june", "june", "juvenile", "juvenile", "juvenile", "juvenile", "juvenile", "juvenile", "juvenile", "juvenile", "kannan", "kannan", "karnauskas", "karnauskas", "keeping", "keeping", "keto", "kimberly", "kimberly", "kimberly", "kinematic", "kleindorfer", "kramer", "kramer", "kramer", "kyr", "kyr", "kyr", "laboratories", "laelapine", "laevis", "laevis", "laevis", "laevis", "lag", "laid", "laid", "laid", "laid", "lamellar", "lamellar", "land", "land", "land", "land", "land", "land", "land", "land", "land", "land", "lantana", "lantana", "lantana", "late", "late", "late", "late", "late", "late", "late", "late", "latioresignata", "latioresignata", "lava", "lava", "lava", "lava", "lava", "lava", "lava", "lava", "lava", "lava", "lavas", "lavas", "lavas", "lavas", "lavas", "lavas", "lavoie", "layer", "layer", "layer", "layer", "layer", "layered", "layered", "layered", "ldd", "ldd", "leached", "leached", "learning", "learning", "lepidoptera", "lepidoptera", "lepidoptera", "lepidoptera", "lepidoptera", "lepidoptera", "lepidoptera", "lepidoptera", "lepidoptera", "lepidoptera", "level", "level", "level", "level", "level", "level", "level", "levels", "levels", "levels", "levels", "levels", "levels", "levels", "levels", "levels", "li", "limitation", "limitation", "linda", "linda", "linda", "lineages", "lineages", "lineages", "lineages", "lineages", "lineages", "lineages", "lineages", "linkage", "lion", "lion", "lion", "lion", "lion", "lion", "lion", "lions", "lions", "lions", "lions", "lions", "lions", "lions", "lipid", "lipid", "lipid", "lipid", "lipid", "list", "list", "list", "list", "list", "list", "list", "list", "lists", "lists", "lists", "lists", "lists", "lists", "lithosphere", "lithosphere", "lithosphere", "lithosphere", "lithosphere", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lizards", "lobsters", "local", "local", "local", "local", "local", "local", "local", "local", "local", "locality", "locality", "locality", "locality", "locality", "locality", "locality", "locality", "logbooks", "logbooks", "logbooks", "longest", "longest", "lower", "lower", "lower", "lower", "lower", "lower", "lower", "lower", "lower", "lower", "lower", "lutea", "lycopadienes", "lycopersicum", "lying", "lying", "macquart", "macquart", "macquart", "macro", "macro", "macro", "macro", "macro", "magma", "magma", "magma", "magma", "magma", "magma", "magma", "magmas", "magmas", "magmas", "magmas", "magnet", "magnirostris", "magnirostris", "magnirostris", "magnirostris", "magnirostris", "magnirostris", "magnirostris", "magnirostris", "mainland", "mainland", "mainland", "mainland", "mainland", "mainland", "mainland", "mainland", "mainland", "mainland", "male", "male", "male", "male", "male", "male", "male", "male", "male", "male", "males", "males", "males", "males", "males", "males", "males", "males", "males", "males", "males", "managers", "managers", "managers", "managers", "managers", "manipulative", "manipulative", "manipulative", "mantle", "mantle", "mantle", "mantle", "mantle", "mantle", "mantle", "marilyn", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "marine", "markers", "markers", "markers", "markers", "marpol", "masked", "masked", "masked", "masked", "masked", "maskell", "match", "match", "match", "mating", "mating", "mating", "mating", "mating", "mating", "mating", "mating", "meaningful", "meaningful", "measured", "measured", "measured", "measured", "measured", "mechanism", "mechanism", "medicine", "medicine", "medicine", "meeting", "meeting", "meise", "melting", "melting", "melting", "melting", "melting", "melting", "meristic", "meristic", "meristic", "meristic", "meristic", "mesic", "mesic", "metal", "metal", "metal", "metapopulation", "metapopulation", "meteorological", "meteorological", "methodology", "methodology", "methods", "methods", "methods", "methods", "methods", "methods", "methods", "microplate", "microplate", "microplate", "microsatellite", "microsatellite", "microsatellite", "microsatellite", "microsatellite", "microscope", "mid", "mid", "mid", "mid", "mid", "mid", "mid", "midges", "migrating", "migrating", "migrating", "migrating", "migration", "migration", "migration", "migration", "migration", "migration", "migration", "migrations", "milinkovitch", "millennial", "millennial", "milne", "milne", "milne", "milne", "min", "min", "min", "min", "mineralizing", "mineralizing", "minor", "minor", "minor", "minor", "minor", "minor", "mirror", "mirror", "mirror", "mitochondrial", "mitochondrial", "mitochondrial", "mitochondrial", "mitochondrial", "mitochondrial", "mockingbirds", "mockingbirds", "model", "model", "model", "model", "model", "model", "model", "model", "modeling", "modeling", "models", "models", "models", "models", "models", "models", "models", "modicus", "modification", "modification", "modisimus", "moister", "moister", "molecular", "molecular", "molecular", "molecular", "molecular", "molecular", "monograph", "monograph", "monograph", "morph", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphological", "morphology", "morphology", "morphology", "morphology", "morphology", "morphology", "morphometric", "morphometric", "morphometric", "morphometric", "morphometric", "morphometric", "morphometric", "morphs", "morton", "morton", "mosquito", "mosquito", "mosquito", "mosquito", "mosquito", "mound", "mound", "mounds", "mounds", "mounds", "mounds", "mulsant", "mulsant", "mulsant", "mulsant", "multilocus", "multilocus", "multiple", "multiple", "multiple", "multiple", "multiple", "multiple", "multiple", "multiplied", "multiplied", "murtugudde", "murtugudde", "mus", "mus", "mus", "mus", "mus", "mycteroperca", "mycteroperca", "myiarchus", "myiarchus", "myiarchus", "myiarchus", "myiarchus", "naso", "naso", "native", "native", "native", "native", "native", "native", "native", "native", "native", "natives", "natural", "natural", "natural", "natural", "natural", "natural", "natural", "natural", "nectar", "nectar", "nectar", "negative", "negative", "negative", "negative", "nematodes", "nematodes", "nematodes", "nematodes", "nematodes", "neotropical", "neotropical", "neotropical", "neotropical", "nest", "nest", "nest", "nest", "nest", "nest", "nest", "nest", "nest", "nest", "nesting", "nesting", "nesting", "nesting", "nesting", "nesting", "nesting", "nesting", "nesting", "nesting", "nesting", "nestling", "nestling", "nestling", "nestling", "network", "network", "ngvp", "nicole", "nile", "nile", "nile", "nino", "nino", "nino", "nino", "nino", "nino", "nino", "nitrogen", "nitrogen", "nitrogen", "noah", "noah", "noble", "noble", "noble", "nocturnal", "nocturnal", "nocturnal", "nocturnal", "nocturnal", "nocturnal", "nocturnal", "node", "nomenclatural", "nomenclatural", "nomenclatural", "north", "north", "north", "north", "north", "north", "north", "north", "north", "north", "northern", "northern", "northern", "northern", "northern", "northern", "northern", "northern", "notably", "notably", "notably", "note", "note", "note", "nuclear", "nuclear", "nuclear", "nuclear", "nuclear", "nuclear", "nutrition", "nutrition", "nutrition", "nutritional", "object", "object", "obtaining", "obtaining", "occur", "occur", "occur", "occur", "occur", "occur", "occur", "occur", "occur", "occur", "occur", "occurs", "occurs", "occurs", "occurs", "occurs", "occurs", "occurs", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "oceanic", "ocecoaman", "odontaspis", "odontasteridae", "odontostyle", "offs", "offs", "offs", "offspring", "offspring", "offspring", "offspring", "oib", "older", "older", "older", "older", "older", "older", "older", "older", "older", "olesen", "olesen", "omega", "omega", "onset", "onset", "onset", "operating", "operating", "operational", "options", "options", "options", "orca", "orca", "orca", "orcinus", "orcinus", "orcinus", "orcinus", "orders", "orders", "orders", "orders", "organ", "organ", "organization", "organization", "organization", "organization", "organization", "origin", "origin", "origin", "origin", "origin", "origin", "origin", "origin", "original", "original", "original", "original", "original", "original", "outbreaks", "outbreaks", "ova", "overlap", "overlap", "overlap", "overlap", "overlap", "overlap", "overlying", "overlying", "overview", "ovule", "pachymerium", "pachymerium", "pads", "pads", "panulirus", "papillae", "papillae", "papillae", "paralichthyid", "paralichthyid", "parameters", "parameters", "parameters", "parameters", "parameters", "parameters", "parasite", "parasite", "parasite", "parasite", "parasite", "parasite", "parasite", "parasite", "parasites", "parasites", "parasites", "parasites", "parasites", "parasites", "parasites", "parasites", "parmeliaceae", "participants", "participate", "participate", "past", "past", "past", "past", "past", "past", "past", "patch", "pathogen", "pathogen", "patterns", "patterns", "patterns", "patterns", "patterns", "patterns", "patterns", "patterns", "patterns", "pav", "pb", "pb", "pb", "pb", "pcr", "pcr", "pcr", "peck", "peck", "peck", "peck", "peck", "peck", "pectinatum", "pectinatum", "pectinatum", "pectiniunguis", "peduncularis", "peduncularis", "pei", "penguin", "penguin", "penguin", "penguin", "penguin", "penguins", "penguins", "penguins", "penguins", "penguins", "penguins", "penguins", "penicillatus", "pentodontini", "people", "people", "people", "people", "performance", "performance", "performance", "performance", "performance", "period", "period", "period", "period", "period", "period", "period", "period", "period", "period", "periods", "periods", "periods", "periods", "periods", "periods", "periods", "periods", "periods", "persisted", "persisted", "persisted", "perspectives", "pfge", "ph", "ph", "phalacrocorax", "phalacrocorax", "phalacrocorax", "phases", "phases", "phases", "phenotypes", "phenotypes", "phenotypes", "phenotypic", "phenotypic", "phenotypically", "philopatry", "phylogenetic", "phylogenetic", "phylogenetic", "phylogenetic", "phylogenetic", "phylogeography", "phylogeography", "phylogeography", "pigeons", "pinniped", "pinniped", "pinniped", "pinniped", "pinta", "pinta", "pinta", "pinta", "pinta", "pinta", "pinta", "pinta", "pinta", "pits", "pits", "planetary", "planetary", "planetary", "planetary", "plant", "plant", "plant", "plant", "plant", "plant", "plant", "plant", "plant", "plants", "plants", "plants", "plants", "plants", "plants", "plants", "plants", "plants", "plasmodium", "plasmodium", "plasmodium", "plasmodium", "plate", "plate", "plate", "plate", "plate", "plate", "plate", "plate", "platform", "platform", "platform", "platform", "platform", "platform", "platform", "platform", "platyhelminthes", "platyhelminthes", "platyhelminthes", "plumage", "plumage", "plumage", "plumage", "plumage", "plumage", "plumage", "plumage", "plume", "plume", "plume", "plume", "plume", "plume", "plume", "plume", "plumes", "plumes", "plumes", "plumes", "poaching", "political", "political", "pollen", "pollen", "pollen", "pollen", "pollination", "pollination", "pollination", "pollination", "pollination", "pollination", "pomona", "pone", "pone", "pone", "pooled", "pooled", "poona", "population", "population", "population", "population", "population", "population", "population", "population", "population", "potential", "potential", "potential", "potential", "potential", "potential", "potential", "precarious", "precarious", "precautionary", "precautionary", "precautionary", "predation", "predation", "predation", "predation", "predation", "predation", "predation", "predation", "predation", "predation", "predict", "predict", "predict", "predict", "predict", "predicting", "predicting", "predominance", "presence", "presence", "presence", "presence", "presence", "presence", "presence", "presence", "presence", "presence", "prevalence", "prevalence", "prevalence", "prevalence", "prevalence", "preventing", "preventing", "preventing", "previous", "previous", "previous", "previous", "previous", "previous", "previous", "previous", "previously", "previously", "previously", "previously", "previously", "previously", "previously", "previously", "previously", "previously", "prickly", "prickly", "procedure", "procedure", "procedure", "process", "process", "process", "process", "process", "processes", "processes", "processes", "processes", "processes", "processes", "processes", "profoundly", "profoundly", "profoundly", "profoundly", "profundacella", "progressively", "progressively", "project", "project", "projects", "projects", "pronounced", "pronounced", "pronounced", "pronounced", "pronounced", "pronounced", "pronounced", "propagating", "propagating", "propagating", "propagating", "protect", "protect", "protect", "protected", "protected", "protected", "protected", "protected", "protected", "protected", "provide", "provide", "provide", "provide", "provide", "provide", "provide", "province", "province", "province", "province", "provisioning", "provisioning", "proxy", "proxy", "proxy", "pseudocyclops", "pseudoscorpiones", "pseudoscorpiones", "psittaci", "psittaci", "pteridium", "publication", "publication", "purchasi", "purchasi", "putative", "putative", "qualitative", "qualitative", "qualitative", "qualitative", "qualitative", "rachel", "radial", "radial", "radial", "radial", "radial", "rakers", "rakers", "rakers", "range", "range", "range", "range", "range", "range", "range", "range", "ranged", "ranged", "ranged", "ranged", "ranged", "ranged", "ranged", "ranged", "raspberry", "ratios", "ratios", "ratios", "ratios", "ratios", "ratios", "rats", "rats", "rats", "rats", "rats", "rats", "rats", "rats", "ray", "ray", "ray", "ray", "ray", "ray", "recent", "recent", "recent", "recent", "recent", "recent", "recent", "recent", "recent", "recent", "record", "record", "record", "record", "record", "record", "record", "record", "record", "record", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "recorded", "records", "records", "records", "records", "records", "records", "records", "records", "records", "records", "recovered", "recovered", "recovered", "recovered", "recovered", "recovered", "recovered", "recoveries", "recruitment", "recruitment", "recruitment", "recruitment", "recruitment", "recruitment", "recruitment", "recruitment", "recruitment", "recycled", "reddish", "reddish", "rediscovery", "rediscovery", "references", "references", "references", "references", "references", "references", "refractile", "refractile", "refractile", "refraction", "regenerate", "regenerate", "regime", "regime", "regina", "region", "region", "region", "region", "region", "region", "region", "region", "region", "region", "region", "regional", "regional", "regional", "regional", "regional", "regional", "regular", "regular", "regurgitated", "regurgitated", "regurgitated", "regurgitated", "reintroduced", "reintroduced", "reintroduction", "reintroduction", "related", "related", "related", "related", "related", "related", "related", "related", "related", "related", "related", "renowned", "report", "report", "report", "report", "report", "report", "report", "report", "report", "reported", "reported", "reported", "reported", "reported", "reported", "reported", "reported", "reported", "represent", "represent", "represent", "represent", "represent", "represent", "represent", "represent", "representation", "representation", "reproduced", "reproduced", "reproduced", "reproduced", "reproduced", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reproductive", "reptile", "reptile", "reptile", "reptiles", "reptiles", "reptiles", "reptiles", "reptiles", "reptiles", "reptiles", "reptiles", "research", "research", "research", "research", "research", "research", "research", "research", "research", "research", "research", "reserve", "reserve", "reserve", "reserve", "reserve", "reserve", "reserve", "residence", "residence", "residents", "residual", "residual", "residual", "resistance", "resistance", "resistance", "resistivity", "resistivity", "resources", "resources", "resources", "resources", "resources", "resources", "resources", "resources", "resources", "respond", "respond", "responded", "responded", "restoration", "restoration", "restoration", "restoration", "result", "result", "result", "result", "result", "result", "result", "result", "result", "retention", "retention", "retention", "retention", "retention", "retention", "reveals", "reveals", "reveals", "revenue", "revenue", "revenue", "reviewed", "reviewed", "reviewed", "reviewed", "reviewed", "revista", "revista", "revista", "revista", "revista", "revista", "revista", "rice", "rice", "ridge", "ridge", "ridge", "ridge", "ridge", "ridge", "ridgewayia", "rift", "rift", "rift", "rift", "rift", "rift", "rift", "rifting", "ring", "ring", "ring", "risk", "risk", "risk", "risk", "risk", "risk", "rocky", "rocky", "rocky", "rocky", "roderick", "rodolia", "rodolia", "role", "role", "role", "role", "role", "role", "role", "role", "roots", "roots", "rrna", "ruben", "saboga", "saboga", "saboga", "saboga", "saddlebacked", "saddlebacked", "saenzi", "salazar", "salazar", "salmonella", "salmonella", "saltwater", "saltwater", "samples", "samples", "samples", "samples", "samples", "samples", "samples", "samples", "san", "san", "san", "san", "san", "san", "san", "san", "san", "san", "san", "san", "sanchez", "sanchez", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santa", "santiago", "santiago", "santiago", "santiago", "santiago", "santiago", "santiago", "santiago", "santiago", "santiago", "santiago", "scale", "scale", "scale", "scale", "scale", "scale", "scale", "scale", "scales", "scales", "scales", "scales", "scales", "scalesia", "scalesia", "scalesia", "scalesia", "scalesia", "scalesia", "scalesia", "scalesia", "scalesia", "scenarios", "scientific", "scientific", "scientific", "scientific", "scientific", "scientific", "scientific", "scientific", "scientific", "scleractinian", "scleractinian", "scope", "scorpiones", "scott", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "sea", "seals", "seals", "seals", "seals", "seals", "seals'", "seals'", "season", "season", "season", "season", "season", "season", "season", "seawater", "seawater", "seawater", "seawater", "seawater", "seawater", "sector", "sector", "sector", "sector", "seddon", "sediment", "sediment", "sediment", "sediment", "sediment", "sediment", "sediment", "sediment", "seed", "seed", "seed", "seed", "seed", "seed", "seed", "seed", "seeds", "seeds", "seeds", "seeds", "seeds", "seeds", "seeds", "seeds", "seeds", "seeds", "segregation", "segregation", "segregation", "segregation", "select", "select", "selfing", "selfing", "selfing", "sensitivity", "separate", "separate", "separate", "separate", "separate", "separate", "separately", "series", "series", "series", "series", "series", "series", "series", "series", "series", "series", "series", "series", "serotyping", "serovars", "setae", "setae", "setae", "setae", "setae", "setae", "setae", "setiform", "shallow", "shallow", "shallow", "shallow", "shallow", "shallow", "shallow", "shallow", "shape", "shape", "shape", "shape", "shape", "shape", "shape", "shape", "shape", "shark", "shark", "shark", "shark", "shark", "shark", "shark", "sharks", "sharks", "sharks", "sharks", "sharks", "sharks", "sharks", "sharon", "shell", "shell", "shell", "shell", "shell", "shell", "shell", "shell", "shelter", "shelter", "shelves", "shelves", "shelves", "shows", "shows", "shows", "shows", "shows", "shows", "shows", "shows", "shriver", "signatures", "signatures", "significant", "significant", "significant", "significant", "significant", "significant", "significant", "significant", "significant", "significantly", "significantly", "significantly", "significantly", "significantly", "significantly", "significantly", "simulate", "simulate", "single", "single", "single", "single", "single", "single", "single", "single", "single", "single", "site", "site", "site", "site", "site", "site", "sites", "sites", "sites", "sites", "sites", "sites", "sites", "sites", "sites", "sixteen", "sixteen", "sixteen", "skin", "skin", "skin", "skin", "skin", "skin", "slender", "slender", "slender", "smectite", "smectite", "smectite", "smooth", "smooth", "smooth", "smooth", "snails", "snails", "snails", "snails", "snails", "snake", "snake", "snake", "snake", "social", "social", "social", "social", "social", "social", "social", "society", "society", "society", "society", "society", "society", "society", "society", "society's", "soil", "soil", "soil", "soil", "soil", "soil", "soil", "soils", "soils", "soils", "soils", "soils", "soils", "soils", "soils", "soils", "solanum", "solanum", "sonia", "sorting", "southern", "southern", "southern", "southern", "southern", "southern", "southern", "southern", "southern", "southern", "southern", "spaced", "spaced", "spaced", "spaced", "spacing", "spacing", "spanning", "spatial", "spatial", "spatial", "spatial", "spatial", "spatial", "spatial", "spatial", "spatially", "spatially", "spatially", "spatially", "spatially", "spawners", "spawners", "spawners", "spawners", "speciation", "speciation", "speciation", "speciation", "speciation", "speciation", "speciation", "specific", "specific", "specific", "specific", "specific", "specific", "specific", "specific", "specific", "specificity", "specificity", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "specimens", "spectrometer", "sphagnum", "spiders", "spiders", "spiders", "spiders", "spiders", "spiders", "spiny", "spiny", "sporozoites", "sporozoites", "sporozoites", "spot", "spot", "spot", "spot", "spot", "spread", "spread", "spread", "spread", "spread", "spread", "spreading", "spreading", "spreading", "spreading", "spreading", "spreading", "spreading", "spreading", "squamates", "squamates", "squid", "squid", "stable", "stable", "stable", "stable", "stable", "stable", "stable", "star", "star", "steep", "steep", "steep", "steep", "steep", "steeply", "steeply", "steeply", "steinfartz", "steinfartz", "steinfartz", "steinitz", "stems", "stems", "stems", "stems", "stems", "stems", "step", "step", "stolidus", "stolidus", "stolidus", "strain", "strain", "strain", "strains", "strains", "strains", "strontium", "strontium", "structure", "structure", "structure", "structure", "structure", "structure", "structure", "structure", "structure", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "studies", "subjective", "submitted", "subpopulations", "subpopulations", "subpopulations", "subsurface", "subsurface", "subsurface", "success", "success", "success", "success", "success", "success", "success", "success", "success", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggest", "suggestions", "suggestions", "sula", "sula", "sula", "sula", "sula", "sula", "sula", "sunrise", "sunrise", "suppl", "suppl", "suppl", "surface", "surface", "surface", "surface", "surface", "surface", "surface", "surface", "surface", "surgery", "surgery", "surgical", "survey", "survey", "survey", "survey", "survey", "survey", "surveys", "surveys", "surveys", "surveys", "swath", "swath", "swell", "swell", "symphyla", "symphylan", "syndrome", "syndromes", "syndromes", "system", "system", "system", "system", "system", "system", "tabaci", "tagus", "tagus", "tail", "tail", "tail", "tail", "tail", "tail", "tail", "tail", "taking", "taking", "task", "task", "task", "taxa", "taxa", "taxa", "taxa", "taxa", "taxa", "taxa", "taxa", "taxa", "taxa", "tectonics", "tectonics", "tectonics", "tectonics", "temperature", "temperature", "temperature", "temperature", "temperature", "temperature", "temperature", "tenella", "territorial", "territorial", "territorial", "territorial", "territorial", "territorial", "territorial", "tiger", "tiger", "tim", "time", "time", "time", "time", "time", "time", "time", "time", "time", "tomatoes", "tomatoes", "tomatoes", "tomatoes", "tools", "tools", "tools", "topology", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoise", "tortoises", "tortoises", "tortoises", "tortoises", "tortoises", "tortoises", "tortoises", "tourism", "tourism", "tourism", "tourism", "tourism", "tourism", "tourism", "tourism", "trace", "trace", "trace", "trace", "trace", "trace", "trace", "trace", "trace", "traditionally", "traditionally", "traditionally", "traits", "traits", "traits", "traits", "traits", "traits", "traits", "trampling", "trampling", "transform", "transform", "transform", "transform", "transform", "translocated", "transmitted", "transmitted", "transmitted", "transmitted", "traveset", "treatments", "treatments", "treatments", "treatments", "treatments", "trends", "trends", "trends", "trends", "trends", "trends", "triaenodon", "triaenodon", "trichomes", "trifasciata", "trifasciata", "trifasciata", "trifasciatus", "trifasciatus", "trifasciatus", "trillmich", "trillmich", "trillmich", "trillmich", "trillmich", "trillmich", "trillmich", "triple", "triple", "triple", "tropical", "tropical", "tropical", "tropical", "tropical", "tropical", "tropical", "tropical", "tropical", "trueman", "truong", "tsunami", "turtles", "turtles", "turtles", "turtles", "tyrannulus", "ubiquitous", "ubiquitous", "ubiquitous", "ubiquitous", "ultra", "unable", "unable", "unaffected", "unaffected", "unambiguously", "unchanged", "unchanged", "underlying", "underlying", "underlying", "understanding", "understanding", "understanding", "understanding", "understanding", "understanding", "understanding", "undeveloped", "undeveloped", "unequivocal", "unequivocal", "unequivocal", "unesco", "unesco", "uplands", "uplands", "upper", "upper", "upper", "upper", "upper", "upper", "upwelling", "upwelling", "upwelling", "upwelling", "upwelling", "upwelling", "upwelling", "upwelling", "usnea", "utilized", "utilized", "validation", "validation", "values", "values", "values", "values", "values", "values", "values", "values", "values", "values", "variability", "variability", "variability", "variability", "variability", "variability", "variability", "variability", "variability", "variable", "variable", "variable", "variable", "variable", "variants", "variants", "variants", "variations", "variations", "variations", "variations", "variations", "variations", "variations", "variations", "vector", "vector", "vector", "vector", "vector", "vector", "vectorial", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "vegetation", "vertebrate", "vertebrate", "vertebrate", "vertebrate", "vertebrate", "vertebrates", "vertebrates", "vertebrates", "vertebrates", "vertebrates", "vertebrates", "vertically", "vertically", "vessels", "victor", "victor", "vigorously", "villegas", "virgin", "virna", "volatile", "volcanic", "volcanic", "volcanic", "volcanic", "volcanic", "volcanic", "volcanic", "volcanic", "volcano", "volcano", "volcano", "volcano", "volcano", "volcano", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "volcanoes", "vulnerable", "vulnerable", "vulnerable", "walking", "walking", "walter", "walter", "wave", "wave", "wave", "weak", "weak", "weak", "weed", "weevils", "weevils", "wetlands", "whales", "whales", "whales", "whales", "whales", "whales", "whilst", "whilst", "wiedemann", "wiedemann", "wild", "wild", "wild", "wild", "wild", "wild", "wild", "wild", "winged", "winged", "wr", "xbai", "yanez", "yields", "yields", "yields", "yields", "ying", "ympev", "zalophus", "zalophus", "zalophus", "zalophus", "zalophus", "zalophus", "zoo", "zoo", "zoo", "zootaxa", "zootaxa" ], | |
"Topic": [ 5, 6, 11, 13, 20, 1, 2, 4, 5, 8, 9, 16, 20, 13, 20, 4, 18, 20, 2, 3, 7, 12, 13, 14, 15, 17, 13, 20, 4, 5, 8, 12, 13, 14, 15, 16, 4, 6, 10, 11, 20, 10, 18, 8, 9, 18, 2, 11, 13, 15, 17, 4, 20, 2, 8, 12, 3, 18, 2, 12, 1, 2, 4, 7, 10, 12, 13, 14, 15, 16, 18, 12, 17, 18, 5, 14, 19, 19, 4, 7, 19, 6, 10, 12, 8, 9, 10, 1, 4, 5, 8, 13, 13, 15, 20, 4, 9, 11, 13, 20, 8, 20, 12, 4, 9, 18, 1, 3, 4, 5, 7, 8, 13, 14, 15, 4, 7, 10, 13, 14, 6, 7, 14, 20, 3, 5, 6, 12, 13, 19, 7, 13, 14, 20, 13, 18, 5, 20, 11, 18, 2, 5, 6, 12, 13, 14, 15, 17, 4, 19, 4, 10, 16, 17, 18, 19, 6, 7, 13, 14, 15, 3, 4, 5, 13, 14, 20, 9, 20, 3, 11, 6, 11, 13, 14, 19, 20, 6, 10, 19, 3, 7, 5, 7, 13, 16, 19, 12, 16, 18, 7, 1, 2, 20, 6, 9, 11, 6, 18, 18, 20, 4, 18, 3, 9, 1, 8, 9, 18, 4, 5, 11, 14, 2, 5, 9, 12, 13, 14, 13, 14, 18, 18, 6, 8, 16, 20, 2, 5, 6, 13, 14, 1, 2, 5, 12, 13, 14, 15, 6, 4, 12, 19, 20, 20, 10, 1, 6, 9, 14, 18, 5, 6, 9, 11, 13, 8, 12, 6, 4, 19, 2, 12, 7, 11, 6, 2, 4, 18, 7, 4, 5, 8, 10, 13, 19, 2, 4, 8, 9, 11, 16, 17, 20, 8, 12, 7, 2, 4, 5, 7, 8, 9, 2, 3, 4, 5, 9, 12, 3, 15, 18, 5, 8, 10, 14, 20, 2, 8, 10, 19, 5, 7, 10, 14, 18, 2, 4, 11, 20, 8, 10, 7, 10, 11, 2, 3, 5, 9, 14, 15, 2, 5, 14, 15, 4, 18, 20, 3, 3, 4, 7, 3, 6, 8, 9, 12, 6, 17, 3, 4, 12, 18, 15, 18, 20, 1, 2, 6, 7, 10, 13, 14, 15, 16, 17, 18, 1, 2, 5, 9, 18, 10, 11, 1, 6, 7, 14, 15, 3, 6, 3, 4, 5, 9, 10, 11, 20, 3, 4, 5, 9, 11, 13, 14, 15, 16, 12, 8, 19, 18, 11, 13, 14, 19, 4, 7, 8, 12, 13, 14, 15, 16, 17, 3, 4, 6, 7, 13, 14, 15, 16, 17, 18, 11, 3, 2, 3, 5, 18, 20, 2, 5, 10, 13, 14, 17, 12, 6, 13, 14, 16, 18, 19, 1, 3, 4, 20, 6, 8, 11, 2, 7, 17, 6, 9, 15, 2, 6, 7, 9, 10, 13, 14, 15, 16, 17, 6, 11, 13, 5, 20, 1, 17, 18, 2, 4, 5, 6, 9, 13, 14, 15, 16, 18, 13, 19, 19, 2, 4, 5, 7, 9, 14, 4, 5, 9, 15, 16, 17, 5, 13, 14, 18, 2, 5, 9, 11, 12, 13, 14, 15, 18, 4, 5, 7, 14, 18, 2, 5, 8, 9, 13, 14, 15, 16, 17, 4, 7, 10, 12, 14, 17, 6, 10, 15, 16, 9, 11, 18, 3, 6, 15, 2, 5, 6, 16, 19, 20, 18, 9, 12, 19, 4, 5, 8, 10, 15, 16, 18, 15, 18, 7, 14, 20, 4, 10, 16, 17, 19, 4, 5, 8, 9, 13, 16, 13, 14, 18, 5, 14, 18, 19, 4, 5, 12, 13, 16, 18, 20, 1, 2, 3, 5, 7, 9, 11, 13, 14, 11, 7, 14, 19, 2, 3, 5, 9, 14, 15, 11, 18, 2, 7, 13, 14, 16, 8, 11, 2, 8, 19, 20, 11, 3, 4, 5, 20, 4, 5, 14, 18, 20, 3, 9, 19, 18, 3, 4, 5, 10, 11, 12, 14, 4, 12, 18, 19, 6, 8, 9, 19, 20, 15, 19, 5, 8, 20, 1, 2, 7, 8, 9, 8, 18, 4, 5, 9, 10, 20, 12, 20, 2, 3, 5, 11, 13, 16, 17, 3, 4, 5, 13, 14, 17, 20, 3, 4, 6, 13, 14, 20, 5, 8, 11, 14, 2, 6, 7, 9, 13, 14, 15, 16, 17, 1, 2, 3, 4, 6, 14, 15, 16, 17, 20, 11, 17, 4, 7, 9, 13, 14, 15, 16, 17, 6, 11, 13, 14, 2, 4, 5, 7, 10, 14, 15, 17, 3, 4, 7, 8, 9, 12, 13, 14, 5, 6, 13, 14, 20, 2, 5, 7, 9, 11, 13, 14, 3, 1, 2, 3, 7, 10, 13, 14, 15, 16, 17, 20, 1, 3, 4, 2, 4, 7, 8, 10, 13, 14, 15, 16, 17, 19, 4, 5, 8, 9, 12, 13, 14, 1, 2, 5, 11, 12, 13, 14, 18, 6, 16, 20, 1, 4, 8, 13, 14, 18, 6, 8, 20, 2, 3, 4, 6, 7, 10, 14, 15, 18, 12, 3, 1, 2, 4, 5, 13, 14, 15, 16, 17, 18, 8, 10, 13, 14, 11, 2, 1, 2, 8, 9, 13, 14, 15, 16, 17, 18, 19, 3, 4, 7, 10, 13, 14, 15, 16, 17, 19, 4, 7, 18, 1, 3, 4, 12, 13, 14, 10, 1, 2, 8, 10, 14, 6, 8, 18, 2, 7, 9, 15, 1, 2, 4, 8, 9, 13, 14, 17, 2, 3, 7, 11, 15, 10, 10, 12, 13, 17, 4, 5, 9, 10, 13, 14, 19, 20, 1, 2, 4, 5, 7, 8, 11, 13, 14, 15, 16, 4, 5, 6, 9, 14, 16, 17, 20, 1, 9, 18, 4, 7, 8, 9, 12, 6, 10, 12, 5, 6, 14, 16, 20, 1, 2, 18, 2, 4, 5, 8, 9, 10, 12, 12, 10, 20, 2, 3, 17, 19, 4, 8, 10, 11, 19, 15, 20, 6, 8, 13, 18, 4, 6, 7, 9, 10, 11, 19, 1, 4, 10, 1, 2, 6, 9, 12, 13, 14, 15, 16, 17, 19, 7, 8, 9, 5, 19, 2, 6, 9, 4, 19, 1, 10, 9, 12, 19, 7, 20, 1, 3, 4, 7, 8, 13, 14, 15, 16, 17, 2, 5, 7, 8, 10, 15, 17, 3, 4, 5, 7, 8, 9, 10, 14, 15, 16, 17, 19, 4, 8, 9, 13, 14, 15, 4, 5, 11, 18, 1, 6, 13, 14, 15, 17, 3, 4, 7, 8, 10, 12, 13, 14, 15, 20, 10, 13, 12, 16, 20, 3, 5, 14, 19, 10, 12, 3, 8, 12, 2, 3, 4, 7, 12, 14, 16, 12, 20, 1, 4, 5, 8, 13, 14, 15, 17, 3, 9, 20, 4, 19, 6, 9, 19, 20, 7, 6, 17, 20, 5, 6, 14, 19, 2, 2, 6, 9, 12, 19, 2, 4, 5, 8, 10, 4, 7, 8, 11, 13, 14, 20, 7, 14, 19, 7, 20, 1, 4, 6, 10, 13, 14, 16, 1, 4, 10, 13, 14, 15, 16, 17, 2, 6, 7, 9, 10, 13, 14, 15, 16, 17, 19, 3, 4, 5, 8, 10, 13, 15, 16, 17, 10, 10, 11, 13, 17, 20, 1, 4, 6, 9, 14, 16, 20, 1, 4, 5, 8, 13, 14, 15, 17, 3, 4, 5, 15, 17, 19, 8, 17, 19, 19, 3, 19, 1, 3, 4, 8, 9, 12, 17, 20, 19, 20, 15, 18, 20, 10, 18, 12, 18, 9, 10, 8, 19, 20, 1, 4, 6, 13, 14, 17, 19, 9, 10, 18, 4, 5, 20, 1, 4, 7, 10, 14, 16, 17, 4, 6, 10, 12, 2, 3, 8, 9, 18, 4, 7, 11, 12, 13, 14, 2, 5, 9, 10, 18, 20, 4, 19, 2, 4, 5, 6, 10, 15, 20, 2, 7, 9, 15, 20, 1, 1, 4, 8, 9, 15, 1, 2, 8, 10, 12, 14, 2, 5, 8, 9, 10, 2, 5, 6, 7, 9, 13, 14, 15, 16, 1, 3, 4, 11, 13, 14, 2, 5, 8, 12, 2, 3, 4, 17, 5, 8, 13, 14, 15, 17, 2, 5, 9, 10, 11, 18, 19, 5, 12, 5, 13, 14, 18, 2, 8, 9, 18, 10, 12, 20, 11, 18, 11, 2, 9, 12, 2, 4, 5, 9, 12, 13, 15, 6, 7, 20, 3, 4, 10, 13, 20, 1, 4, 7, 9, 11, 15, 18, 1, 3, 4, 7, 20, 5, 6, 11, 14, 2, 4, 13, 15, 18, 3, 4, 7, 10, 13, 14, 15, 18, 7, 10, 17, 18, 2, 4, 5, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 10, 17, 3, 1, 2, 6, 7, 9, 12, 14, 15, 17, 20, 2, 4, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 3, 5, 6, 14, 18, 19, 4, 7, 8, 9, 13, 18, 20, 12, 13, 14, 15, 19, 2, 5, 9, 11, 13, 14, 15, 16, 17, 8, 20, 4, 5, 8, 12, 13, 15, 16, 2, 6, 12, 3, 4, 6, 18, 2, 7, 9, 12, 2, 3, 5, 6, 8, 12, 14, 16, 20, 2, 8, 9, 13, 14, 18, 4, 20, 4, 7, 10, 11, 8, 11, 11, 2, 4, 12, 20, 8, 10, 19, 16, 20, 1, 2, 4, 6, 9, 12, 2, 4, 5, 8, 10, 12, 13, 14, 15, 16, 17, 18, 19, 4, 8, 9, 10, 15, 20, 11, 2, 3, 4, 5, 7, 12, 1, 4, 5, 8, 10, 12, 19, 20, 2, 3, 5, 13, 14, 15, 16, 17, 19, 1, 2, 6, 8, 12, 14, 17, 18, 1, 2, 5, 6, 8, 13, 14, 15, 17, 13, 14, 18, 3, 20, 3, 18, 3, 4, 20, 5, 18, 13, 14, 20, 1, 10, 20, 3, 4, 6, 7, 11, 12, 13, 14, 15, 1, 8, 14, 17, 20, 4, 5, 8, 9, 10, 14, 15, 18, 2, 4, 5, 8, 10, 11, 14, 2, 7, 10, 8, 10, 3, 4, 5, 10, 11, 13, 14, 1, 4, 6, 9, 13, 14, 15, 16, 17, 1, 3, 4, 5, 7, 13, 14, 15, 16, 18, 1, 4, 10, 11, 13, 14, 15, 17, 2, 3, 5, 13, 14, 2, 6, 1, 4, 8, 13, 14, 15, 16, 17, 1, 2, 4, 10, 13, 14, 15, 16, 17, 6, 10, 2, 3, 5, 8, 15, 20, 17, 20, 2, 7, 9, 11, 13, 14, 16, 17, 1, 4, 5, 8, 9, 11, 13, 14, 16, 1, 2, 8, 10, 13, 14, 16, 17, 1, 4, 8, 11, 12, 13, 15, 16, 17, 11, 17, 8, 9, 18, 1, 2, 3, 4, 8, 9, 14, 18, 5, 8, 13, 14, 17, 19, 5, 6, 2, 5, 7, 8, 9, 15, 17, 19, 15, 18, 19, 7, 2, 5, 9, 10, 12, 13, 14, 15, 17, 18, 20, 6, 8, 15, 16, 17, 15, 18, 9, 20, 1, 2, 9, 13, 14, 15, 20, 19, 20, 4, 6, 7, 8, 9, 13, 14, 15, 16, 17, 19, 20, 4, 12, 16, 17, 5, 12, 14, 12, 15, 18, 2, 5, 9, 10, 11, 15, 16, 17, 1, 7, 1, 3, 14, 4, 8, 9, 10, 19, 1, 6, 11, 12, 14, 10, 19, 4, 6, 7, 9, 16, 17, 2, 3, 6, 9, 12, 13, 14, 6, 11, 13, 14, 6, 11, 15, 20, 2, 10, 7, 1, 7, 9, 11, 13, 14, 15, 16, 17, 4, 15, 20, 2, 3, 5, 11, 12, 13, 14, 16, 17, 20, 1, 2, 3, 4, 6, 12, 13, 14, 1, 4, 5, 11, 13, 14, 15, 10, 7, 8, 6, 7, 6, 19, 11, 5, 6, 13, 14, 15, 4, 5, 6, 8, 12, 13, 14, 19, 1, 3, 4, 7, 12, 13, 15, 16, 1, 4, 5, 12, 13, 14, 2, 9, 11, 12, 15, 16, 17, 16, 18, 19, 4, 18, 7, 19, 4, 8, 10, 15, 19, 6, 8, 1, 3, 9, 13, 15, 19, 20, 3, 12, 15, 19, 20, 4, 12, 13, 15, 19, 20, 2, 4, 7, 10, 13, 14, 20, 2, 8, 9, 6, 9, 13, 14, 16, 18, 2, 7, 8, 9, 11, 13, 14, 16, 17, 5, 11, 14, 18, 19, 16, 20, 2, 5, 6, 8, 9, 13, 14, 15, 16, 17, 13, 14, 20, 6, 11, 19, 7, 14, 19, 4, 7, 14, 20, 11, 19, 2, 6, 7, 14, 19, 12, 19, 13, 18, 1, 4, 6, 7, 10, 12, 13, 14, 15, 2, 3, 4, 6, 7, 11, 13, 14, 15, 16, 17, 19, 19, 6, 15, 18, 1, 2, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 1, 4, 9, 10, 11, 14, 15, 2, 3, 5, 8, 9, 11, 13, 14, 15, 16, 17, 18, 4, 5, 8, 10, 13, 4, 19, 1, 3, 4, 5, 6, 9, 18, 2, 4, 10, 15, 16, 18, 19, 2, 6, 9, 10, 7, 2, 7, 8, 9, 12, 13, 14, 15, 16, 19, 18, 5, 20, 4, 5, 9, 10, 11, 14, 3, 4, 7, 14, 6, 9, 11, 18, 20, 2, 3, 7, 8, 10, 13, 14, 15, 17, 3, 2, 5, 8, 8, 18, 1, 3, 8, 10, 15, 3, 8, 20, 1, 12, 6, 15, 19, 1, 2, 4, 13, 14, 15, 16, 17, 18, 2, 3, 4, 7, 9, 13, 14, 15, 16, 4, 5, 18, 16, 20, 3, 4, 5, 13, 14, 15, 16, 17, 19, 4, 6, 7, 10, 11, 13, 14, 15, 16, 3, 12, 2, 4, 6, 7, 10, 14, 15, 16, 11, 11, 12, 2, 3, 5, 8, 11, 13, 15, 16, 17, 1, 3, 4, 7, 13, 14, 15, 1, 14, 15, 16, 17, 1, 4, 5, 9, 14, 3, 1, 2, 3, 7, 9, 14, 19, 13, 14, 16, 20, 4, 10, 15, 11, 15, 4, 6, 7, 10, 13, 15, 17, 2, 6, 9, 19, 3, 4, 6, 9, 17, 19, 2, 4, 5, 8, 9, 19, 20, 3, 6, 20, 4, 9, 10, 12, 5, 8, 11, 18, 19, 1, 4, 15, 20, 3, 4, 6, 7, 9, 11, 19, 6, 16, 3, 15, 4, 5, 6, 8, 12, 13, 2, 4, 5, 9, 11, 13, 14, 15, 16, 17, 19, 2, 3, 7, 10, 11, 12, 13, 14, 15, 16, 17, 12, 16, 1, 4, 9, 10, 20, 11, 6, 1, 4, 8, 11, 13, 14, 15, 1, 11, 13, 14, 15, 16, 17, 18, 1, 4, 11, 14, 15, 16, 2, 3, 4, 5, 10, 14, 7, 8, 9, 14, 15, 7, 19, 4, 6, 7, 10, 13, 14, 15, 16, 17, 19, 12, 13, 15, 18, 20, 2, 5, 6, 10, 11, 12, 13, 14, 18, 8, 19, 2, 3, 6, 12, 16, 17, 1, 2, 4, 6, 7, 8, 12, 13, 14, 16, 17, 20, 2, 7, 8, 10, 13, 14, 15, 16, 17, 2, 5, 6, 8, 9, 11, 13, 14, 15, 16, 17, 1, 4, 9, 11, 13, 14, 15, 17, 11, 16, 17, 9, 12, 2, 3, 4, 5, 6, 9, 11, 13, 2, 3, 5, 7, 8, 18, 1, 3, 6, 3, 12, 3, 1, 3, 4, 8, 14, 15, 16, 17, 19, 3, 4, 5, 6, 10, 13, 14, 15, 16, 10, 12, 2, 3, 9, 10, 11, 19, 2, 3, 5, 7, 13, 14, 15, 16, 17, 3, 8, 5, 19, 11, 2, 5, 10, 11, 13, 14, 15, 18, 1, 3, 6, 11, 13, 14, 18, 1, 15, 2, 3, 5, 10, 11, 12, 13, 14, 15, 16, 17, 1, 10, 18, 6, 10, 18, 4, 5, 8, 9, 15, 16, 18, 6, 11, 17, 11, 16, 18, 1, 3, 6, 13, 14, 17, 20, 4, 12, 1, 2, 10, 11, 13, 18, 3, 5, 6, 18, 20, 3, 4, 5, 9, 13, 14, 16, 17, 12, 15, 6, 16, 1, 2, 4, 18, 1, 4, 6, 12, 13, 14, 16, 17, 6, 8, 2, 6, 12, 18, 3, 4, 9, 11, 15, 2, 3, 5, 6, 9, 13, 14, 15, 16, 18, 8, 19, 6, 9, 1, 3, 4, 7, 8, 10, 2, 7, 8, 10, 18, 2, 20, 2, 6, 9, 11, 9, 11, 18, 20, 4, 5, 11, 18, 3, 4, 7, 9, 13, 15, 17, 1, 2, 5, 7, 9, 13, 14, 18, 3, 4, 8, 19, 11, 16, 18, 8, 18, 20, 7, 6, 6, 12, 17, 5, 11, 12, 12, 19, 15, 16, 17, 18, 2, 4, 7, 11, 14, 13, 20, 4, 6, 7, 9, 11, 13, 15, 16, 17, 20, 4, 8, 12, 2, 5, 6, 7, 9, 11, 13, 14, 4, 20, 1, 3, 4, 5, 6, 7, 8, 13, 14, 15, 1, 2, 5, 8, 10, 14, 6, 2, 12, 13, 17, 19, 5, 14, 19, 7, 20, 4, 20, 18, 19, 1, 3, 4, 5, 8, 9, 13, 14, 16, 17, 4, 5, 6, 10, 13, 14, 19, 2, 5, 8, 9, 10, 12, 13, 14, 15, 19, 2, 18, 11, 17, 18, 1, 2, 8, 9, 11, 13, 14, 20, 6, 1, 2, 6, 8, 10, 15, 18, 2, 4, 5, 6, 7, 8, 19, 6, 8, 11, 19, 20, 1, 4, 11, 13, 14, 15, 16, 17, 4, 7, 9, 12, 16, 18, 1, 2, 7, 8, 19, 2, 4, 5, 8, 9, 14, 15, 16, 17, 11, 1, 2, 7, 8, 12, 13, 14, 17, 20, 2, 3, 5, 13, 14, 15, 16, 17, 5, 14, 18, 2, 20, 1, 3, 4, 6, 12, 13, 14, 15, 16, 17, 18, 12, 6, 12, 16, 19, 5, 19, 20, 3, 9, 10, 18, 20, 2, 6, 7, 8, 9, 12, 14, 3, 4, 5, 8, 19, 1, 5, 10, 13, 16, 17, 19, 20, 4, 5, 6, 9, 10, 11, 13, 14, 15, 18, 1, 2, 3, 6, 7, 13, 14, 15, 16, 17, 1, 2, 4, 5, 6, 8, 9, 13, 14, 15, 17, 2, 5, 7, 8, 12, 15, 18, 20, 2, 3, 4, 5, 7, 10, 13, 11, 1, 4, 5, 6, 10, 13, 14, 15, 16, 17, 18, 2, 7, 8, 10, 19, 4, 5, 13, 14, 17, 12, 1, 8, 19, 4, 5, 8, 9, 15, 16, 17, 20, 10, 19, 2, 7, 9, 13, 14, 1, 8, 8, 12, 17, 9, 20, 19, 2, 5, 8, 11, 12, 14, 2, 4, 10, 13, 14, 4, 18, 5, 7, 8, 4, 18, 16, 20, 6, 8, 2, 5, 6, 9, 12, 15, 18, 3, 7, 8, 2, 3, 4, 6, 10, 12, 2, 5, 9, 14, 16, 18, 20, 12, 3, 4, 8, 19, 2, 3, 5, 9, 13, 14, 20, 2, 3, 3, 4, 4, 7, 14, 20, 4, 9, 10, 12, 7, 20, 1, 3, 4, 15, 16, 17, 16, 18, 20, 2, 7, 8, 9, 10, 12, 9, 11, 2, 4, 5, 7, 8, 9, 14, 20, 1, 18, 4, 5, 7, 8, 10, 11, 20, 7, 4, 7, 7, 4, 19, 4, 6, 7, 9, 14, 15, 11, 19, 20, 19, 1, 2, 5, 6, 12, 13, 14, 15, 17, 4, 5, 6, 8, 9, 14, 3, 4, 5, 13, 14, 18, 20, 11, 17, 18, 4, 6, 11, 12, 19, 5, 18, 5, 6, 8, 18, 3, 9, 10, 19, 1, 6, 3, 4, 5, 10, 13, 14, 18, 4, 20, 8, 19, 3, 4, 11, 16, 17, 16, 20, 1, 2, 8, 11, 18, 16, 20, 2, 3, 5, 10, 13, 14, 16, 17, 18, 19, 1, 3, 4, 13, 14, 15, 16, 19, 8, 11, 18, 3, 4, 7, 14, 3, 4, 5, 13, 14, 1, 10, 13, 15, 1, 4, 5, 8, 10, 13, 15, 16, 17, 19, 1, 3, 4, 5, 8, 9, 13, 15, 16, 17, 19, 4, 6, 10, 20, 6, 18, 19, 6, 1, 3, 11, 1, 2, 5, 8, 9, 14, 15, 2, 7, 20, 8, 10, 8, 18, 20, 1, 4, 8, 9, 11, 17, 19, 3, 11, 15, 18, 1, 2, 3, 5, 11, 13, 14, 15, 16, 17, 2, 5, 6, 9, 12, 13, 14, 16, 1, 2, 10, 11, 16, 17, 1, 3, 4, 6, 9, 17, 4, 9, 20, 7, 11, 17, 12, 15, 2, 3, 5, 8, 10, 11, 13, 14, 15, 16, 17, 1, 4, 5, 6, 9, 13, 14, 1, 2, 5, 8, 11, 13, 14, 15, 16, 17, 18, 6, 20, 18, 7, 2, 9, 11, 2, 8, 12, 18, 6, 4, 5, 8, 9, 10, 12, 13, 16, 18, 11, 19, 18, 20, 2, 7, 14, 1, 5, 2, 1, 18, 20, 8, 12, 18, 8, 10, 12, 18, 4, 5, 6, 10, 4, 19, 4, 6, 8, 15, 17, 1, 2, 4, 13, 14, 15, 16, 17, 1, 2, 6, 13, 16, 17, 2, 19, 19, 1, 4, 11, 14, 19, 20, 1, 19, 12, 6, 7, 19, 13, 20, 8, 7, 13, 14, 4, 20, 3, 4, 5, 7, 10, 14, 1, 2, 3, 6, 8, 14, 15, 19, 1, 2, 3, 9, 11, 14, 15, 16, 18, 18, 5, 19, 1, 2, 4, 13, 14, 16, 18, 2, 11, 20, 2, 5, 8, 9, 12, 13, 14, 15, 20, 19, 2, 5, 8, 10, 2, 9, 20, 1, 4, 5, 12, 13, 14, 15, 16, 19, 7, 3, 20, 20, 4, 8, 10, 15, 16, 4, 8, 10, 12, 15, 18, 20, 8, 7, 11, 13, 15, 20, 1, 3, 4, 5, 9, 2, 6, 7, 9, 13, 14, 15, 16, 17, 20, 2, 3, 5, 11, 12, 13, 14, 15, 18, 5, 14, 20, 20, 18, 2, 5, 8, 9, 12, 4, 7, 14, 4, 5, 12, 3, 4, 12, 11, 1, 2, 8, 14, 19, 3, 12, 20, 20, 6, 8, 9, 19, 1, 4, 7, 8, 10, 12, 13, 15, 17, 16, 19, 1, 3, 8, 9, 4, 6, 7, 9, 13, 14, 15, 16, 18, 2, 5, 10, 11, 13, 14, 15, 16, 17, 3, 4, 11, 12, 1, 3, 4, 6, 8, 12, 14, 20, 2, 3, 5, 8, 10, 12, 13, 14, 4, 12, 18, 6, 7, 8, 9, 14, 15, 16, 17, 2, 3, 4, 5, 10, 12, 14, 20, 4, 6, 10, 20, 6, 3, 18, 6, 12, 15, 19, 3, 7, 8, 11, 15, 19, 18, 11, 18, 19, 9, 10, 19, 1, 2, 4, 6, 10, 13, 14, 15, 17, 2, 5, 8, 9, 13, 14, 18, 12, 17, 3, 9, 10, 1, 3, 4, 5, 7, 13, 14, 15, 17, 19, 2, 4, 6, 8, 10, 8, 19, 12, 2, 6, 7, 9, 13, 14, 15, 16, 17, 19, 2, 4, 7, 10, 11, 2, 3, 13, 2, 3, 5, 13, 14, 15, 16, 17, 1, 4, 6, 10, 11, 13, 14, 15, 16, 17, 8, 18, 13, 14, 19, 1, 4, 10, 12, 15, 3, 4, 5, 11, 13, 14, 20, 1, 4, 12, 14, 20, 8, 10, 11, 15, 3, 4, 2, 4, 5, 6, 12, 13, 14, 1, 5, 9, 11, 3, 9, 20, 1, 3, 7, 11, 15, 18, 20, 3, 4, 5, 9, 11, 13, 14, 8, 10, 13, 14, 7, 12, 11, 12, 18, 19, 5, 7, 6, 9, 11, 11, 15, 10, 19, 1, 8, 1, 4, 13, 14, 15, 6, 1, 4, 7, 10, 14, 4, 7, 18, 1, 4, 9, 11, 13, 15, 16, 17, 1, 4, 5, 8, 9, 13, 14, 20, 19, 1, 4, 5, 6, 11, 14, 1, 2, 5, 8, 13, 15, 16, 17, 4, 9, 13, 16, 19, 20, 1, 2, 4, 5, 6, 13, 14, 15, 16, 17, 2, 5, 8, 9, 12, 13, 14, 15, 16, 17, 2, 3, 4, 7, 8, 9, 13, 14, 15, 16, 17, 2, 3, 4, 5, 13, 14, 15, 16, 17, 18, 1, 4, 8, 9, 15, 19, 20, 12, 2, 4, 5, 7, 8, 9, 11, 13, 14, 12, 5, 19, 2, 6, 13, 14, 15, 16, 17, 18, 7, 14, 19, 12, 10, 19, 1, 6, 11, 1, 2, 4, 7, 8, 9, 14, 15, 16, 17, 18, 2, 7, 8, 9, 10, 16, 1, 19, 5, 6, 13, 18, 8, 18, 8, 20, 2, 3, 6, 7, 9, 13, 14, 15, 16, 17, 20, 6, 1, 2, 3, 5, 6, 10, 12, 13, 16, 1, 2, 5, 13, 14, 15, 16, 17, 18, 1, 2, 6, 11, 12, 13, 15, 16, 6, 11, 2, 9, 10, 12, 16, 2, 3, 5, 8, 10, 13, 14, 15, 16, 2, 3, 18, 1, 4, 9, 11, 13, 15, 16, 18, 1, 2, 3, 7, 12, 13, 14, 15, 16, 17, 20, 3, 7, 8, 10, 13, 14, 19, 2, 20, 11, 2, 6, 9, 10, 11, 18, 6, 11, 1, 2, 3, 6, 13, 14, 15, 18, 20, 1, 19, 2, 11, 3, 10, 11, 12, 4, 5, 8, 9, 10, 12, 14, 15, 17, 1, 4, 10, 12, 19, 20, 2, 3, 11, 5, 14, 19, 1, 2, 4, 10, 17, 2, 8, 12, 13, 14, 15, 18, 2, 3, 1, 4, 5, 12, 14, 18, 11, 2, 3, 5, 7, 13, 14, 19, 7, 4, 7, 9, 2, 3, 5, 8, 10, 20, 1, 7, 8, 17, 18, 9, 19, 4, 5, 8, 11, 12, 13, 15, 19, 10, 12, 20, 18, 4, 5, 7, 19, 13, 20, 20, 3, 8, 10, 18, 18, 19, 2, 3, 4, 7, 13, 14, 15, 16, 4, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 1, 9, 2, 3, 4, 5, 6, 10, 13, 14, 15, 16, 17, 19, 1, 2, 6, 7, 8, 9, 12, 13, 14, 15, 17, 1, 3, 4, 9, 12, 13, 14, 16, 1, 3, 4, 10, 15, 2, 4, 5, 8, 9, 11, 15, 16, 17, 6, 1, 3, 6, 11, 13, 14, 15, 16, 17, 4, 7, 20, 7, 6, 2, 3, 5, 6, 13, 14, 15, 16, 17, 19, 20, 3, 4, 5, 16, 19, 4, 18, 1, 3, 4, 8, 13, 15, 17, 4, 5, 6, 8, 14, 18, 3, 4, 6, 12, 19, 1, 4, 5, 9, 11, 13, 14, 15, 1, 2, 9, 11, 13, 18, 19, 20, 3, 4, 5, 9, 13, 15, 16, 17, 18, 19, 4, 8, 10, 19, 1, 5, 1, 6, 18, 3, 2, 5, 8, 9, 13, 15, 2, 1, 4, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 19, 18, 1, 2, 7, 9, 14, 16, 18, 7, 2, 5, 6, 10, 13, 14, 15, 17, 1, 2, 4, 13, 14, 15, 17, 19, 20, 4, 7, 8, 11, 12, 16, 20, 4, 6, 7, 10, 12, 16, 20, 11, 2, 5, 6, 9, 10, 12, 13, 14, 2, 18, 5, 8, 20, 1, 4, 9, 13, 14, 15, 16, 19, 12, 1, 2, 2, 5, 8, 9, 12, 13, 14, 15, 18, 2, 3, 4, 5, 14, 15, 20, 9, 18, 4, 5, 6, 10, 12, 13, 14, 15, 16, 17, 3, 4, 5, 13, 14, 19, 1, 4, 6, 10, 12, 13, 14, 16, 17, 11, 13, 14, 1, 6, 9, 10, 17, 20, 5, 12, 15, 5, 7, 20, 5, 11, 13, 14, 5, 11, 13, 16, 17, 2, 13, 19, 20, 1, 4, 9, 11, 15, 17, 20, 2, 5, 8, 9, 13, 14, 15, 16, 17, 1, 4, 6, 13, 14, 15, 20, 4, 6, 7, 10, 12, 13, 14, 15, 17, 6, 10, 6, 3, 2, 5, 6, 8, 10, 11, 13, 14, 15, 16, 17, 7, 15, 17, 19, 10, 17, 6, 1, 4, 8, 10, 11, 13, 14, 20, 1, 4, 6, 8, 10, 4, 7, 14, 18, 4, 5, 6, 9, 14, 15, 17, 2, 3, 4, 5, 13, 14, 15, 16, 19, 3, 4, 1, 2, 3, 4, 6, 13, 14, 15, 16, 17, 2, 19, 6, 7, 11, 13, 14, 16, 8, 18, 7, 14, 20, 4, 5, 7, 8, 9, 4, 5, 7, 9, 11, 15, 2, 3, 5, 6, 10, 11, 13, 14, 8, 18, 17, 19, 3, 4, 6, 7, 14, 15, 20, 16, 19, 4, 5, 11, 12, 17, 2, 11, 20, 3, 8, 19, 3, 5, 6, 7, 9, 13, 14, 1, 14, 4, 18, 19, 8, 9, 18, 8, 9, 20, 5, 18, 1, 2, 4, 11, 12, 13, 14, 15, 16, 2, 3, 7, 13, 14, 15, 16, 17, 19, 19, 6, 7, 8, 13, 2, 5, 12, 1, 2, 3, 7, 8, 13, 14, 15, 17, 1, 3, 4, 5, 8, 11, 12, 13, 14, 15, 7, 14, 2, 7, 10, 13, 14, 17, 20, 2, 11, 17, 19, 20, 2, 3, 5, 9, 10, 13, 14, 15, 17, 9, 12, 10, 2, 7, 9, 11, 16, 18, 2, 3, 13, 15, 4, 20, 4, 10, 7, 7, 20, 11, 18, 1, 2, 9, 11, 14, 19, 18, 17, 20, 3, 4, 5, 6, 8, 13, 14, 15, 12, 15, 6, 12, 17, 1, 2, 3, 4, 9, 13, 14, 15, 17, 18, 11, 17, 19, 20, 3, 4, 5, 7, 9, 15, 17, 12, 1, 8, 9, 15, 16, 17, 20, 2, 3, 3, 1, 2, 4, 11, 13, 14, 15, 16, 17, 4, 9, 10, 15, 11, 15, 16, 12, 2, 7, 11, 12, 13, 14, 15, 16, 17, 18, 1, 4, 10, 11, 13, 16, 17, 1, 4, 6, 7, 10, 11, 13, 14, 1, 4, 5, 7, 8, 12, 14, 15, 17, 8, 17, 18, 1, 3, 4, 8, 9, 15, 19, 11, 13, 5, 7, 9, 18, 20, 10, 6, 8, 12, 17, 19, 1, 8, 10, 14, 15, 1, 2, 5, 9, 13, 14, 16, 18, 20, 4, 18, 20, 2, 11, 13, 1, 2, 5, 6, 12, 14, 18, 7, 8, 20, 2, 5, 6, 10, 13, 14, 15, 16, 17, 11, 19, 20, 2, 5, 11, 16, 20, 6, 7, 10, 11, 18, 3, 20, 7, 8, 12, 4, 10, 1, 3, 20, 4, 7, 8, 9, 14, 16, 18, 13, 18, 5, 14, 19, 11, 17, 15, 20, 1, 2, 4, 5, 14, 15, 1, 3, 4, 5, 7, 11, 12, 14, 19, 2, 7, 8, 18, 2, 3, 4, 5, 6, 9, 10, 12, 14, 15, 2, 5, 9, 10, 11, 12, 13, 14, 15, 2, 5, 12, 14, 18, 4, 10, 17, 1, 2, 7, 9, 11, 13, 14, 16, 4, 6, 8, 9, 12, 18, 19, 1, 2, 9, 13, 14, 15, 16, 17, 20, 4, 7, 9, 11, 13, 2, 4, 10, 11, 12, 13, 13, 20, 2, 8, 11, 12, 11, 7, 6, 3, 3, 4, 7, 8, 11, 13, 14, 15, 1, 4, 5, 11, 14, 15, 3, 4, 6, 7, 9, 13, 14, 17, 2, 5, 6, 6, 10, 2, 19, 1, 2, 9, 1, 6, 16, 12, 2, 8, 20, 4, 5, 8, 12, 14, 18, 8, 20, 15, 19, 1, 2, 3, 7, 13, 15, 16, 20, 11, 17, 7, 18, 12, 3, 5, 12, 14, 19, 3, 2, 5, 6, 8, 10, 15, 4, 9, 19, 6, 9 ], | |
"Freq": [ 0.84716, 0.003904, 0.10931, 0.03904, 0.99604, 0.067875, 0.067875, 0.011804, 0.56366, 0.17411, 0.059022, 0.056071, 0.99604, 0.68422, 0.31236, 0.76557, 0.20691, 0.020691, 0.24079, 0.34394, 0.099911, 0.23576, 0.021204, 0.012219, 0.006469, 0.039892, 0.81313, 0.18254, 0.049239, 0.0064788, 0.20862, 0.18076, 0.15743, 0.077745, 0.057013, 0.26369, 0.11671, 0.063089, 0.68766, 0.13249, 1.0006, 0.9814, 0.014223, 0.87202, 0.0029165, 0.12541, 0.22857, 0.14826, 0.037066, 0.37684, 0.21004, 0.77204, 0.22058, 0.23568, 0.0071417, 0.75702, 0.93573, 0.063286, 0.99485, 0.99264, 0.00033684, 0.40017, 0.045811, 0.12901, 0.012126, 0.23209, 0.016842, 0.034358, 0.011116, 0.11823, 0.99763, 0.46228, 0.53527, 0.99607, 0.16568, 0.62129, 0.2071, 0.99395, 0.8038, 0.18462, 0.011361, 0.89575, 0.080349, 0.023807, 0.60798, 0.077615, 0.31477, 0.39548, 0.34117, 0.1309, 0.08007, 0.052916, 0.041175, 0.82349, 0.13382, 0.073536, 0.075638, 0.69334, 0.052526, 0.10505, 0.96899, 0.0285, 0.99264, 0.030528, 0.91966, 0.049608, 0.034515, 0.3168, 0.0012327, 0.046842, 0.027119, 0.16641, 0.053006, 0.21079, 0.14423, 0.30138, 0.57069, 0.061985, 0.0064122, 0.059848, 0.24519, 0.37269, 0.32692, 0.055576, 0.036939, 0.73108, 0.10466, 0.036939, 0.076955, 0.013852, 0.99277, 0.30724, 0.58567, 0.10561, 0.76988, 0.22644, 0.74048, 0.25332, 0.99685, 0.99621, 0.34581, 0.085666, 0.23339, 0.24216, 0.031928, 0.045194, 0.011242, 0.0047217, 0.78169, 0.21127, 0.20833, 0.17857, 0.065476, 0.43453, 0.10119, 0.011905, 0.10374, 0.57057, 0.15777, 0.090772, 0.077805, 0.32272, 0.52424, 0.067172, 0.071553, 0.011682, 0.0029205, 0.22876, 0.77099, 0.011864, 0.98471, 0.056397, 0.11279, 0.16113, 0.54785, 0.016113, 0.10474, 0.28969, 0.0068975, 0.70354, 0.17506, 0.82345, 0.031418, 0.19898, 0.041891, 0.71215, 0.015709, 0.99586, 0.83806, 0.16173, 0.99277, 0.7548, 0.098843, 0.14677, 0.99856, 0.034449, 0.96458, 0.97263, 0.025154, 0.87047, 0.12801, 0.7606, 0.23241, 0.98443, 0.011582, 0.90636, 0.072509, 0.0090636, 0.0090636, 0.23949, 0.61257, 0.11241, 0.035842, 0.51716, 0.21331, 0.17643, 0.027538, 0.022871, 0.042941, 0.16896, 0.61954, 0.20651, 0.99647, 0.99777, 0.01582, 0.60115, 0.37968, 0.23146, 0.12062, 0.10432, 0.39447, 0.14996, 0.22486, 0.45643, 0.075948, 0.0067013, 0.072225, 0.021593, 0.14296, 0.99696, 0.77788, 0.15219, 0.050731, 0.01691, 0.99485, 0.99183, 0.0468, 0.28748, 0.34264, 0.048471, 0.27411, 0.15805, 0.236, 0.58241, 0.015156, 0.0086604, 0.085302, 0.91273, 0.99795, 0.85236, 0.14406, 0.01658, 0.97824, 0.99277, 0.99587, 0.99783, 0.022553, 0.76682, 0.20298, 0.99327, 0.4982, 0.18818, 0.2139, 0.047383, 0.048737, 0.0040614, 0.0027713, 0.057088, 0.35749, 0.34142, 0.00055426, 0.014411, 0.02993, 0.19621, 0.020663, 0.97804, 0.99259, 0.058602, 0.25264, 0.077485, 0.12567, 0.15497, 0.33078, 0.20792, 0.00061698, 0.093164, 0.26777, 0.33008, 0.10057, 0.99811, 0.51436, 0.48221, 0.018235, 0.62809, 0.12359, 0.058757, 0.17222, 0.29912, 0.019174, 0.11505, 0.56372, 0.13524, 0.12678, 0.65364, 0.07607, 0.0084523, 0.061033, 0.71205, 0.21361, 0.010172, 0.18925, 0.81058, 0.99277, 0.71521, 0.28462, 0.20253, 0.15255, 0.45505, 0.11118, 0.014651, 0.064638, 0.4245, 0.45036, 0.01962, 0.10612, 0.78169, 0.12676, 0.084507, 0.99809, 0.26181, 0.084913, 0.65336, 0.049168, 0.81947, 0.0032779, 0.12456, 0.0032779, 0.51909, 0.48084, 0.10606, 0.71797, 0.093825, 0.081587, 0.59806, 0.38337, 0.015335, 0.031414, 0.36942, 0.0015906, 0.14474, 0.1857, 0.020678, 0.0015906, 0.039367, 0.034993, 0.1698, 0.0007953, 0.19106, 0.59965, 0.20823, 0.00071557, 0.00071557, 0.9974, 0.9958, 0.0020682, 0.059978, 0.40744, 0.12616, 0.40537, 0.99182, 0.0073468, 0.24728, 0.13692, 0.031532, 0.087958, 0.0082979, 0.48709, 0.00082979, 0.26253, 0.15189, 0.1054, 0.1676, 0.16334, 0.044191, 0.038954, 0.048774, 0.017677, 0.99264, 0.8886, 0.10807, 0.99493, 0.018841, 0.28262, 0.59349, 0.10363, 0.016205, 0.11735, 0.22519, 0.43474, 0.056997, 0.005588, 0.073202, 0.025705, 0.045821, 0.39978, 0.037618, 0.099769, 0.11472, 0.022898, 0.04416, 0.026169, 0.096264, 0.11309, 0.045562, 0.998, 0.99626, 0.17027, 0.10406, 0.71893, 0.0063064, 0.99792, 0.14515, 0.20866, 0.27051, 0.20783, 0.027216, 0.14103, 0.99245, 0.99763, 0.50935, 0.040748, 0.3158, 0.12224, 0.010187, 0.20244, 0.38579, 0.12223, 0.28839, 0.020946, 0.77501, 0.20248, 0.34007, 0.20303, 0.45681, 0.14984, 0.44204, 0.40832, 0.11566, 0.1924, 0.18281, 0.15951, 0.00054815, 0.02083, 0.040563, 0.18363, 0.055911, 0.047689, 0.42082, 0.070137, 0.50499, 0.66297, 0.33149, 0.056357, 0.75143, 0.18786, 0.20371, 0.033323, 0.22666, 0.0015718, 0.14712, 0.19868, 0.14492, 0.030808, 0.0094309, 0.0037724, 0.87933, 0.12046, 0.99552, 0.16658, 0.16565, 0.24685, 0.06728, 0.29232, 0.061712, 0.039883, 0.042099, 0.12408, 0.042099, 0.53843, 0.21271, 0.13685, 0.28949, 0.46845, 0.10527, 0.3568, 0.35214, 0.10138, 0.036539, 0.018986, 0.028658, 0.061974, 0.042987, 0.00071646, 0.10416, 0.73521, 0.067394, 0.024507, 0.067394, 0.025123, 0.020523, 0.13588, 0.051307, 0.10049, 0.015569, 0.030784, 0.54421, 0.076076, 0.16839, 0.14968, 0.011694, 0.079517, 0.49113, 0.10057, 0.19255, 0.27778, 0.12311, 0.4072, 0.94, 0.0049474, 0.054421, 0.54355, 0.016471, 0.43923, 0.87159, 0.11733, 0.0083806, 0.77453, 0.10191, 0.12229, 0.99578, 0.39654, 0.1172, 0.48645, 0.2294, 0.0093634, 0.13951, 0.48783, 0.059926, 0.073971, 0.99474, 0.952, 0.048571, 0.35793, 0.43747, 0.19885, 0.067145, 0.17159, 0.15667, 0.47001, 0.13429, 0.07767, 0.028512, 0.25857, 0.55451, 0.049158, 0.031461, 0.46799, 0.34722, 0.18116, 0.75995, 0.095405, 0.0032898, 0.14146, 0.57261, 0.076632, 0.11708, 0.085147, 0.083018, 0.010643, 0.055345, 0.0143, 0.0712, 0.21032, 0.00029791, 0.34945, 0.27348, 0.024726, 0.044984, 0.011618, 0.99647, 0.51344, 0.4602, 0.026623, 0.091431, 0.18083, 0.21537, 0.44395, 0.028445, 0.03962, 0.99587, 0.9986, 0.15061, 0.10688, 0.47612, 0.21863, 0.048584, 0.043764, 0.95406, 0.9977, 0.21157, 0.74823, 0.036121, 0.9958, 0.92702, 0.07255, 0.7704, 0.22301, 0.16436, 0.075136, 0.63865, 0.061048, 0.061048, 0.3923, 0.60704, 0.99599, 0.99715, 0.0040625, 0.056875, 0.69063, 0.056875, 0.097501, 0.081251, 0.012188, 0.72073, 0.23859, 0.034794, 0.0049706, 0.21341, 0.068795, 0.55036, 0.001404, 0.16707, 0.58532, 0.4113, 0.6476, 0.28879, 0.061259, 0.018144, 0.13835, 0.19959, 0.59423, 0.049897, 0.90501, 0.093039, 0.10586, 0.65477, 0.070574, 0.0039208, 0.16467, 0.99367, 0.99504, 0.10865, 0.2075, 0.12913, 0.38649, 0.017811, 0.041855, 0.10865, 0.26479, 0.14185, 0.20527, 0.087891, 0.13851, 0.09401, 0.067865, 0.311, 0.17358, 0.0024109, 0.38333, 0.077148, 0.053039, 0.21418, 0.28557, 0.14279, 0.35697, 0.28747, 0.051819, 0.13387, 0.19494, 0.052436, 0.015422, 0.012955, 0.22208, 0.029611, 0.29588, 0.0083789, 0.089026, 0.1105, 0.18224, 0.012568, 0.063365, 0.045037, 0.075934, 0.11783, 0.33219, 0.66438, 0.20432, 0.15981, 0.23399, 0.090357, 0.12677, 0.045853, 0.0971, 0.043156, 0.31214, 0.059455, 0.13377, 0.49051, 0.11605, 0.079552, 0.43589, 0.17017, 0.090213, 0.06889, 0.0077911, 0.031985, 0.029298, 0.071389, 0.25254, 0.31857, 0.036313, 0.27194, 0.0016506, 0.018157, 0.16824, 0.10749, 0.46734, 0.12151, 0.13553, 0.24594, 0.51041, 0.032006, 0.032006, 0.12887, 0.045482, 0.0050536, 0.99621, 0.10127, 0.22191, 0.15763, 0.034344, 0.0079255, 0.18669, 0.085419, 0.02906, 0.015851, 0.024657, 0.13561, 0.24118, 0.61022, 0.14891, 0.0030229, 0.089823, 0.13646, 0.25651, 0.22413, 0.069958, 0.039298, 0.051389, 0.041889, 0.02591, 0.061753, 0.061973, 0.19169, 0.13549, 0.060818, 0.42265, 0.074291, 0.053505, 0.042029, 0.29349, 0.035618, 0.13535, 0.47443, 0.0085483, 0.010685, 0.99529, 0.9976, 0.77599, 0.21887, 0.67383, 0.12275, 0.14832, 0.02813, 0.011508, 0.015343, 0.062925, 0.85398, 0.080904, 0.022261, 0.032536, 0.11473, 0.12929, 0.095894, 0.52314, 0.082195, 0.73235, 0.26289, 0.99224, 0.99752, 0.60292, 0.083003, 0.069934, 0.0003532, 0.016601, 0.037793, 0.038146, 0.039912, 0.081943, 0.029669, 0.34522, 0.089002, 0.52862, 0.037758, 0.99901, 0.99501, 0.19269, 0.16216, 0.21673, 0.2377, 0.020974, 0.025407, 0.010402, 0.0056272, 0.010231, 0.00051156, 0.11732, 0.47506, 0.19183, 0.10222, 0.0054035, 0.022064, 0.051334, 0.016661, 0.081503, 0.026567, 0.027918, 0.7502, 0.17218, 0.07379, 0.54421, 0.17566, 0.14288, 0.094553, 0.021432, 0.021432, 0.99534, 0.10687, 0.30428, 0.028202, 0.54029, 0.02078, 0.998, 0.22208, 0.77728, 0.39424, 0.21426, 0.20474, 0.1876, 0.0085683, 0.039986, 0.15709, 0.057122, 0.21849, 0.34987, 0.10853, 0.061406, 0.078666, 0.66996, 0.11856, 0.11856, 0.01454, 0.99559, 0.06881, 0.38992, 0.06881, 0.4702, 0.074442, 0.61415, 0.013958, 0.058158, 0.072116, 0.14888, 0.018611, 0.99485, 0.36422, 0.0033924, 0.17085, 0.28403, 0.0021588, 0.080492, 0.029298, 0.015728, 0.039783, 0.0024672, 0.0077099, 0.063199, 0.51714, 0.18076, 0.020387, 0.17465, 0.016309, 0.025823, 0.0013591, 0.010289, 0.60703, 0.38068, 0.098978, 0.11525, 0.58167, 0.20474, 0.99382, 0.14463, 0.0068873, 0.84713, 0.031738, 0.38614, 0.37027, 0.20629, 0.0052896, 0.9127, 0.085566, 0.99726, 0.026799, 0.0035732, 0.048239, 0.58422, 0.18938, 0.0017866, 0.1465, 0.9988, 0.99515, 0.99808, 0.13164, 0.73131, 0.06143, 0.076057, 0.16903, 0.18293, 0.61361, 0.016209, 0.018524, 0.7132, 0.28096, 0.12753, 0.015303, 0.857, 0.99847, 0.16978, 0.0061737, 0.35885, 0.00077172, 0.12116, 0.32798, 0.014663, 0.47372, 0.11076, 0.41535, 0.41864, 0.23636, 0.15326, 0.046182, 0.00013623, 0.059124, 0.034603, 0.021524, 0.0013623, 0.025203, 0.003542, 0.10364, 0.63984, 0.25684, 0.69408, 0.30014, 0.018552, 0.25354, 0.72764, 0.77697, 0.21582, 0.99663, 0.99575, 0.75055, 0.057735, 0.18764, 0.99719, 0.99858, 0.27625, 0.18316, 0.1304, 0.029019, 0.20125, 0.056154, 0.01809, 0.022989, 0.003015, 0.079897, 0.14281, 0.0068007, 0.074127, 0.43932, 0.23122, 0.030603, 0.075487, 0.0017694, 0.086702, 0.097909, 0.00058981, 0.25539, 0.1445, 0.035389, 0.10617, 0.010617, 0.1097, 0.1504, 0.0011796, 0.11836, 0.20219, 0.090412, 0.17589, 0.3863, 0.026302, 0.68937, 0.05495, 0.18983, 0.064941, 0.0055565, 0.20559, 0.26671, 0.011113, 0.061122, 0.45008, 0.25224, 0.18017, 0.16272, 0.00056304, 0.00056304, 0.10641, 0.16103, 0.10022, 0.036597, 0.99975, 0.84615, 0.15269, 0.19395, 0.67884, 0.12728, 0.81583, 0.10454, 0.065903, 0.013635, 0.84923, 0.14812, 0.88859, 0.013223, 0.097851, 0.2894, 0.045018, 0.011576, 0.12219, 0.47076, 0.037301, 0.023152, 0.96587, 0.029719, 0.44383, 0.27075, 0.031959, 0.12963, 0.077563, 0.016877, 0.0071818, 0.022264, 0.048938, 0.78301, 0.16313, 0.78169, 0.21127, 0.26566, 0.63527, 0.051977, 0.046202, 0.99277, 0.32692, 0.65383, 0.015567, 0.28569, 0.13299, 0.47287, 0.10837, 0.9941, 0.029795, 0.83426, 0.019863, 0.11256, 0.0033106, 0.13228, 0.0015501, 0.24182, 0.1824, 0.44231, 0.043268, 0.17307, 0.0048076, 0.10577, 0.47114, 0.13461, 0.067306, 0.13734, 0.56651, 0.29184, 0.017795, 0.97874, 0.41643, 0.23338, 0.12927, 0.18167, 0.012065, 0.0072392, 0.019649, 0.56925, 0.10697, 0.087649, 0.069271, 0.075868, 0.014608, 0.024033, 0.052778, 0.16402, 0.12388, 0.14118, 0.13842, 0.0048446, 0.12319, 0.01315, 0.050522, 0.075437, 0.15572, 0.010381, 0.025895, 0.050927, 0.13034, 0.20889, 0.25377, 0.010358, 0.043158, 0.23047, 0.046611, 0.99057, 0.15168, 0.17538, 0.46926, 0.20382, 0.99604, 0.42373, 0.10316, 0.16126, 0.17106, 0.028074, 0.025463, 0.088141, 0.68248, 0.19035, 0.0015476, 0.015476, 0.0077379, 0.015476, 0.068094, 0.019345, 0.37869, 0.28936, 0.21867, 0.011652, 0.016313, 0.085059, 0.33243, 0.58507, 0.079783, 0.99518, 0.019153, 0.97678, 0.21304, 0.085449, 0.40383, 0.062038, 0.14456, 0.0081937, 0.050918, 0.03219, 0.98149, 0.01583, 0.54302, 0.12777, 0.31942, 0.99227, 0.0064433, 0.98937, 0.010096, 0.10073, 0.89651, 0.99653, 0.033625, 0.96672, 0.64163, 0.15877, 0.0007283, 0.10852, 0.024034, 0.028404, 0.0386, 0.63576, 0.050861, 0.30516, 0.13206, 0.73233, 0.13206, 0.19842, 0.081571, 0.13007, 0.048502, 0.066139, 0.44974, 0.024251, 0.10076, 0.48268, 0.047665, 0.36865, 0.075421, 0.86676, 0.058016, 0.8078, 0.19094, 0.14317, 0.21708, 0.43682, 0.14916, 0.011986, 0.041618, 0.07228, 0.28693, 0.0021903, 0.32416, 0.31321, 0.0021903, 0.82566, 0.17264, 0.52399, 0.00043739, 0.19551, 0.0013122, 0.25018, 0.0034991, 0.024931, 0.63038, 0.023224, 0.25713, 0.066356, 0.023224, 0.99738, 0.99863, 0.5176, 0.27036, 0.15615, 0.056386, 0.23309, 0.25605, 0.25197, 0.23258, 0.020912, 0.0051005, 0.026307, 0.021923, 0.5952, 0.01425, 0.34199, 0.18705, 0.00029881, 0.4252, 0.13954, 0.16584, 0.021813, 0.03765, 0.010757, 0.011654, 0.22542, 0.048041, 0.46008, 0.21526, 0.045269, 0.006467, 0.28828, 0.054116, 0.35302, 0.30447, 0.99564, 0.82254, 0.069402, 0.10796, 0.17309, 0.12501, 0.47118, 0.004808, 0.004808, 0.22117, 0.56109, 0.1292, 0.20056, 0.084901, 0.020918, 0.0012305, 0.0024609, 0.74053, 0.25786, 0.018775, 0.037551, 0.67592, 0.26286, 0.0072895, 0.77086, 0.22233, 1.0006, 0.96669, 0.014428, 0.014428, 0.99595, 0.99578, 0.99685, 0.84302, 0.0090647, 0.14504, 0.48667, 0.076555, 0.066302, 0.28093, 0.014354, 0.027341, 0.04853, 0.1451, 0.85247, 0.99465, 0.25027, 0.021452, 0.096534, 0.071506, 0.55775, 0.0040904, 0.082831, 0.079763, 0.17384, 0.51233, 0.040904, 0.10635, 0.0095264, 0.37927, 0.12265, 0.42095, 0.067876, 0.47448, 0.15072, 0.0055822, 0.36842, 0.0099529, 0.1692, 0.15925, 0.51257, 0.14929, 0.42935, 0.15774, 0.21373, 0.048799, 0.073387, 0.029128, 0.015888, 0.032154, 0.6883, 0.12189, 0.16132, 0.028679, 0.00020831, 0.12603, 0.034788, 0.21727, 0.14748, 0.23247, 0.0072908, 0.015623, 0.038745, 0.064992, 0.008749, 0.092489, 0.014165, 0.42193, 0.57537, 0.99503, 0.015728, 0.12718, 0.25247, 0.092743, 0.14345, 0.16027, 0.0027118, 0.056405, 0.014915, 0.13423, 0.24739, 0.0013201, 0.18429, 0.19247, 0.080526, 0.00079206, 0.15577, 0.02825, 0.032475, 0.047524, 0.011089, 0.018217, 0.26898, 0.048417, 0.30664, 0.017932, 0.35685, 0.0017932, 0.0027409, 0.035632, 0.37733, 0.33257, 0.063955, 0.17451, 0.013705, 0.17458, 0.4624, 0.13211, 0.1274, 0.1038, 0.1618, 0.096283, 0.087168, 0.058682, 0.21023, 0.070076, 0.14072, 0.092295, 0.08318, 0.10955, 0.89097, 0.10319, 0.073083, 0.27884, 0.49495, 0.023211, 0.0047049, 0.02227, 0.26662, 0.027729, 0.70602, 0.68698, 0.14325, 0.030323, 0.14011, 0.14623, 0.089009, 0.73538, 0.02967, 0.2048, 0.003855, 0.40623, 0.0067463, 0.061681, 0.28576, 0.020721, 0.0096376, 0.00048188, 0.34771, 0.0020636, 0.49629, 0.031985, 0.06397, 0.05778, 0.88829, 0.10803, 0.66986, 0.1523, 0.038384, 0.13992, 0.9963, 0.99635, 0.99587, 0.15348, 0.062221, 0.76324, 0.02074, 0.87757, 0.064663, 0.055426, 0.71898, 0.27653, 0.17356, 0.00053403, 0.13297, 0.43096, 0.26061, 0.0010681, 0.055032, 0.091953, 0.094839, 0.24969, 0.1236, 0.23635, 0.032542, 0.045877, 0.022491, 0.019505, 0.023784, 0.0017913, 0.0024879, 0.3068, 0.11688, 0.018784, 0.51447, 0.040698, 0.0020871, 0.99629, 0.10151, 0.18954, 0.13385, 0.070966, 0.082644, 0.4213, 0.029805, 0.093887, 0.459, 0.24738, 0.16393, 0.0059611, 0.004554, 0.99278, 0.20175, 0.39689, 0.12293, 0.01323, 0.036933, 0.11411, 0.01323, 0.02205, 0.079378, 0.19134, 0.30148, 0.15408, 0.0011125, 0.11069, 0.01335, 0.068417, 0.1602, 0.47716, 0.098005, 0.0059397, 0.011879, 0.064347, 0.062367, 0.20393, 0.024749, 0.052468, 0.13974, 0.59388, 0.262, 0.99511, 0.99423, 0.88925, 0.11024, 0.81497, 0.042153, 0.14243, 0.93363, 0.064835, 0.69629, 0.244, 0.059512, 0.87724, 0.029906, 0.089717, 0.30545, 0.29489, 0.11454, 0.19334, 0.0056865, 0.0020309, 0.0056865, 0.062146, 0.016247, 0.6061, 0.042855, 0.021428, 0.12551, 0.20509, 0.16405, 0.24495, 0.18168, 0.0040675, 0.33037, 0.014462, 0.014914, 0.046098, 0.083261, 0.16892, 0.18494, 0.39229, 0.15852, 0.00080059, 0.011208, 0.18057, 0.13041, 0.68883, 0.71685, 0.2832, 0.49406, 0.14822, 0.25119, 0.068649, 0.0010401, 0.025483, 0.011441, 0.37814, 0.106, 0.32298, 0.027464, 0.061056, 0.052204, 0.035181, 0.0070362, 0.0099869, 0.31514, 0.35427, 0.16081, 0.00030806, 0.005545, 0.0080095, 0.017251, 0.040356, 0.036351, 0.06192, 0.36197, 0.12025, 0.16924, 0.28099, 0.0052636, 0.043323, 0.0024293, 0.016601, 0.26154, 0.31457, 0.2075, 0.11522, 0.10197, 0.92279, 0.072093, 0.041657, 0.013755, 0.079384, 0.18785, 0.11554, 0.012969, 0.45508, 0.093531, 0.11816, 0.0040397, 0.033327, 0.014139, 0.1424, 0.071704, 0.0040397, 0.46961, 0.14341, 0.99627, 0.99729, 0.19952, 0.39738, 0.059856, 0.013301, 0.064844, 0.26436, 0.78506, 0.21063, 0.20374, 0.22512, 0.033957, 0.060368, 0.16979, 0.22387, 0.05911, 0.025153, 0.32969, 0.17458, 0.00626, 0.0013911, 0.0027822, 0.22953, 0.18641, 0.024344, 0.045211, 0.33616, 0.12372, 0.16933, 0.040614, 0.25431, 0.023744, 0.023744, 0.028742, 0.20717, 0.072414, 0.014483, 0.12405, 0.3797, 0.013223, 0.092564, 0.0403, 0.056672, 0.51675, 0.4807, 0.77551, 0.074251, 0.1485, 0.20009, 0.001177, 0.004708, 0.54613, 0.018832, 0.18361, 0.025894, 0.020009, 0.52503, 0.033487, 0.25713, 0.12677, 0.052622, 0.0059798, 0.74347, 0.25471, 0.29066, 0.39876, 0.0011339, 0.00037797, 0.22187, 0.078618, 0.0083154, 0.00037797, 0.52207, 0.30058, 0.17402, 0.99311, 0.33134, 0.28781, 0.18822, 0.010195, 0.00039212, 0.031761, 0.0078423, 0.028625, 0.084697, 0.024703, 0.0043133, 0.20429, 0.0081718, 0.06946, 0.089889, 0.62922, 0.74938, 0.24979, 0.81628, 0.17986, 0.35725, 0.46585, 0.038166, 0.019925, 0.073806, 0.040692, 0.0042095, 0.97684, 0.019154, 0.15493, 0.19936, 0.20597, 0.00060049, 0.22758, 0.029424, 0.021918, 0.0051041, 0.10088, 0.030925, 0.021918, 0.0015012, 0.17181, 0.049088, 0.18408, 0.59519, 0.090929, 0.36372, 0.54558, 0.47359, 0.48606, 0.037389, 0.1602, 0.15686, 0.080935, 0.20609, 0.18356, 0.06383, 0.076763, 0.071757, 0.036451, 0.95988, 0.91589, 0.015139, 0.068124, 0.022958, 0.32006, 0.54423, 0.10939, 0.0040514, 0.067604, 0.29952, 0.0037558, 0.62158, 0.0075116, 0.76227, 0.23839, 0.16275, 0.10614, 0.038034, 0.34231, 0.31754, 0.033612, 0.083425, 0.16809, 0.060711, 0.006608, 0.61247, 0.053277, 0.015694, 0.10077, 0.33256, 0.51395, 0.050387, 0.99708, 0.010735, 0.84804, 0.13955, 0.1854, 0.81222, 0.99357, 0.088098, 0.13016, 0.0079367, 0.2881, 0.039684, 0.046827, 0.10476, 0.10318, 0.19207, 0.3047, 0.56707, 0.12696, 0.24131, 0.26286, 0.17075, 0.00026932, 0.00026932, 0.21546, 0.0237, 0.066523, 0.01185, 0.0064638, 0.35197, 0.24774, 0.22994, 0.10367, 0.029661, 0.018361, 0.0093219, 0.0093219, 0.15302, 0.3129, 0.29874, 0.14754, 0.021926, 0.011876, 0.0539, 0.99575, 0.94477, 0.055214, 0.051356, 0.94887, 0.23509, 0.76404, 0.9958, 0.20759, 0.21336, 0.42383, 0.060548, 0.095146, 0.16888, 0.26306, 0.0014312, 0.26306, 0.14026, 0.056103, 0.0080148, 0.099326, 0.041978, 0.16022, 0.17281, 0.25746, 0.020289, 0.064366, 0.093051, 0.1903, 0.33521, 0.055869, 0.14666, 0.027934, 0.34685, 0.087683, 0.1741, 0.055614, 0.22246, 0.029016, 0.17168, 0.062868, 0.28532, 0.62227, 0.18302, 0.18302, 0.92221, 0.075454, 0.94974, 0.046901, 0.13446, 0.026145, 0.29506, 0.03735, 0.50796, 0.16969, 0.82726, 0.17377, 0.26645, 0.00331, 0.08275, 0.19363, 0.24659, 0.0331, 0.022602, 0.19211, 0.6611, 0.0056504, 0.11866, 0.22206, 0.075417, 0.033519, 0.4944, 0.15293, 0.020949, 0.99685, 0.049962, 0.11866, 0.066616, 0.28103, 0.34349, 0.14156, 0.18069, 0.14334, 0.67586, 0.99879, 0.090778, 0.14056, 0.020498, 0.45682, 0.29283, 0.078086, 0.11607, 0.086527, 0.11643, 0.032712, 0.1122, 0.061202, 0.36194, 0.035174, 0.72446, 0.0080496, 0.18514, 0.072446, 0.0080496, 0.74141, 0.25364, 0.19021, 0.15495, 0.093234, 0.012556, 0.12876, 0.048087, 0.035798, 0.085754, 0.1293, 0.12182, 0.64288, 0.17056, 0.18368, 0.98162, 0.0081126, 0.0081126, 0.078021, 0.66318, 0.25357, 0.040701, 0.34935, 0.57659, 0.033917, 0.99629, 0.99568, 0.69715, 0.14019, 0.041677, 0.037889, 0.083355, 0.94873, 0.048037, 0.79549, 0.19887, 0.072456, 0.12551, 0.56262, 0.064933, 0.13383, 0.005939, 0.0067309, 0.013066, 0.015441, 0.060846, 0.15025, 0.18409, 0.0037252, 0.1754, 0.0018626, 0.036321, 0.047807, 0.070159, 0.20365, 0.061777, 0.0040357, 0.99518, 0.17958, 0.63671, 0.17958, 0.0002543, 0.17382, 0.089387, 0.28711, 0.054039, 0.14762, 0.17661, 0.011316, 0.013478, 0.022633, 0.006739, 0.0058489, 0.011316, 0.21171, 0.24624, 0.0037537, 0.39639, 0.11561, 0.018769, 0.0075074, 0.20649, 0.13526, 0.20556, 0.074288, 0.0659, 0.0022632, 0.094124, 0.053519, 0.029023, 0.067764, 0.062838, 0.0027958, 0.30471, 0.071698, 0.12332, 0.37856, 0.12189, 0.83816, 0.15857, 0.022019, 0.0016938, 0.27185, 0.19817, 0.16938, 0.18208, 0.15498, 0.37865, 0.0060584, 0.048467, 0.12117, 0.4362, 0.0015146, 0.007573, 0.049696, 0.34518, 0.0080588, 0.59635, 0.99702, 0.15, 0.07984, 0.17758, 0.13113, 0.35033, 0.033388, 0.011613, 0.018871, 0.047904, 0.99599, 0.99925, 0.89303, 0.10651, 0.14239, 0.14137, 0.021358, 0.1312, 0.55125, 0.012205, 0.11428, 0.19859, 0.56954, 0.11803, 0.22597, 0.57288, 0.042966, 0.012731, 0.1464, 0.19698, 0.097422, 0.16213, 0.0028444, 0.16782, 0.068977, 0.0014222, 0.25102, 0.051911, 0.99443, 0.17594, 0.78393, 0.040087, 0.97556, 0.022687, 0.029907, 0.071777, 0.78356, 0.0059814, 0.10767, 0.0069931, 0.34966, 0.64337, 0.92482, 0.075036, 0.40136, 0.57974, 0.014865, 0.48135, 0.0031983, 0.19617, 0.074095, 0.021322, 0.047442, 0.020789, 0.14819, 0.0079959, 0.36099, 0.00038691, 0.029019, 0.33042, 0.1803, 0.011994, 0.0065775, 0.065002, 0.01509, 0.12041, 0.64453, 0.23373, 0.73712, 0.26187, 0.37758, 0.15812, 0.29235, 0.0094704, 0.036235, 0.014412, 0.001647, 0.048176, 0.061764, 0.19386, 0.29536, 0.18409, 0.18819, 0.0047283, 0.031837, 0.0063044, 0.043185, 0.052641, 0.9956, 0.99608, 0.41009, 0.0079118, 0.0026373, 0.1345, 0.10022, 0.269, 0.013186, 0.063294, 0.99773, 0.19108, 0.8084, 0.13367, 0.5477, 0.11568, 0.0077534, 0.076914, 0.060787, 0.0074432, 0.021399, 0.029153, 0.13009, 0.38411, 0.21004, 0.16534, 0.039973, 0.041427, 0.029071, 0.13735, 0.026414, 0.0052828, 0.24829, 0.58287, 0.7878, 0.073647, 0.05133, 0.017854, 0.069184, 0.99953, 0.32211, 0.16106, 0.0045156, 0.0015052, 0.23632, 0.0045156, 0.26943, 0.17412, 0.0066968, 0.78352, 0.033484, 0.11581, 0.40535, 0.47773, 0.49839, 0.49839, 0.037379, 0.37379, 0.20396, 0.16008, 0.040629, 0.16252, 0.022752, 0.067203, 0.78532, 0.11713, 0.030721, 0.0022085, 0.028711, 0.28711, 0.58968, 0.09055, 0.0022085, 0.0052654, 0.49232, 0.16849, 0.11057, 0.22246, 0.0013164, 0.99926, 0.98585, 0.012323, 0.99465, 0.0099946, 0.0049973, 0.014992, 0.96947, 0.65572, 0.13836, 0.20454, 0.014057, 0.98397, 0.50233, 0.43686, 0.041861, 0.01932, 0.99747, 0.10078, 0.42028, 0.21415, 0.19754, 0.067566, 0.99761, 0.42817, 0.5709, 0.45938, 0.54044, 0.078643, 0.078643, 0.31675, 0.17695, 0.004369, 0.34515, 0.012135, 0.0069343, 0.18723, 0.11615, 0.44206, 0.041606, 0.058941, 0.052874, 0.064142, 0.015602, 0.0026003, 0.12488, 0.17749, 0.098875, 0.19473, 0.26971, 0.00030237, 0.015421, 0.013909, 0.014514, 0.061381, 0.029027, 0.24509, 0.75463, 0.20983, 0.17589, 0.6048, 0.0061715, 0.0030857, 0.99595, 0.99798, 0.14353, 0.046646, 0.068174, 0.25236, 0.36001, 0.034685, 0.094487, 0.16016, 0.11801, 0.16185, 0.035404, 0.033718, 0.34224, 0.14667, 0.0016859, 0.53977, 0.0539, 0.35207, 0.01185, 0.012615, 0.029817, 0.44665, 0.0040441, 0.077737, 0.16851, 0.29882, 0.0040441, 0.2117, 0.61112, 0.05592, 0.04194, 0.079885, 0.96445, 0.03251, 0.062198, 0.32363, 0.12739, 0.20655, 0.098119, 0.017296, 0.022285, 0.010643, 0.0056543, 0.12639, 0.26375, 0.18401, 0.44163, 0.012267, 0.098139, 0.1529, 0.46345, 0.066003, 0.00047484, 0.049858, 0.065528, 0.13723, 0.064579, 0.99943, 0.14116, 0.85781, 0.13929, 0.037989, 0.23215, 0.071757, 0.13085, 0.38833, 0.27183, 0.14082, 0.013311, 0.1198, 0.0021018, 0.007006, 0.0084073, 0.18776, 0.15764, 0.025222, 0.0021018, 0.064456, 0.12033, 0.1237, 0.30178, 0.31477, 0.047168, 0.060163, 0.015883, 0.0072196, 0.0091448, 0.32047, 0.035653, 0.11966, 0.14179, 0.11925, 0.017621, 0.02172, 0.0004098, 0.13032, 0.078682, 0.015163, 0.33938, 0.21681, 0.21595, 0.13223, 0.0045079, 0.00064399, 0.059032, 0.031341, 0.34033, 0.42708, 0.23356, 0.65764, 0.33943, 0.014036, 0.0089833, 0.069621, 0.041548, 0.00056146, 0.20269, 0.55921, 0.10387, 0.1168, 0.5277, 0.00060516, 0.13556, 0.07746, 0.14161, 0.99663, 0.99379, 0.99731, 0.99779, 0.99202, 0.99737, 0.6117, 0.042894, 0.19545, 0.049981, 0.0085788, 0.014174, 0.015666, 0.028347, 0.033569, 0.12814, 0.13447, 0.13025, 0.26652, 0.28552, 0.0075374, 0.0033165, 0.033165, 0.011457, 0.97985, 0.01531, 0.12207, 0.27847, 0.59891, 0.15447, 0.83597, 0.0090866, 0.092866, 0.4158, 0.00046666, 0.30706, 0.070466, 0.013067, 0.0065333, 0.0046666, 0.088666, 0.96907, 0.028713, 0.72828, 0.26936, 0.99854, 0.34765, 0.097667, 0.36741, 0.03895, 0.0029067, 0.0029067, 0.024998, 0.11743, 0.15486, 0.35431, 0.11893, 0.0012389, 0.13256, 0.048316, 0.18955, 0.90155, 0.096595, 0.15703, 0.21337, 0.036818, 0.1832, 0.13574, 0.0022179, 0.022623, 0.066982, 0.12953, 0.026615, 0.026172, 0.86984, 0.095762, 0.031921, 0.84054, 0.15054, 0.0083636, 0.043926, 0.3829, 0.077078, 0.18068, 0.18399, 0.08951, 0.042269, 0.44877, 0.012466, 0.53603, 0.39915, 0.58823, 0.010504, 0.0862, 0.36396, 0.15324, 0.15484, 0.022348, 0.21869, 0.0015963, 0.080162, 0.91878, 0.23397, 0.23961, 0.4127, 0.1043, 0.0090207, 0.00056379, 0.51673, 0.092574, 0.0075742, 0.21881, 0.16411, 0.28882, 0.10535, 0.20712, 0.020067, 0.06665, 0.15838, 0.0014333, 0.15265, 0.52397, 0.47285, 0.49127, 0.50881, 0.73817, 0.20195, 0.059889, 0.99621, 0.27885, 0.16994, 0.27215, 0.19053, 0.0371, 0.013165, 0.010053, 0.028244, 0.98871, 0.0088278, 0.11676, 0.69251, 0.08455, 0.10669, 0.55343, 0.017131, 0.067097, 0.35975, 0.0023793, 0.254, 0.45626, 0.1517, 0.00047037, 0.074084, 0.015758, 0.022578, 0.015522, 0.0094075, 0.00023519, 0.2087, 0.78958, 0.2085, 0.79192, 0.13864, 0.0053324, 0.090117, 0.34714, 0.065588, 0.353, 0.3672, 0.30334, 0.061865, 0.26592, 0.0014967, 0.8647, 0.13225, 0.0018561, 0.18004, 0.81669, 0.99821, 0.14348, 0.85578, 0.99982, 0.99716, 0.093196, 0.19438, 0.24497, 0.46598, 0.2658, 0.334, 0.054162, 0.03009, 0.004012, 0.20762, 0.10532, 0.031584, 0.25425, 0.090013, 0.025267, 0.35532, 0.03869, 0.011054, 0.19345, 0.97855, 0.015783, 0.93295, 0.062197, 0.36937, 0.62632, 1.0003, 0.84308, 0.11803, 0.033723, 0.99311, 0.9972, 0.2386, 0.3533, 0.40837, 0.66921, 0.30672, 0.023237, 0.99202, 0.99627, 0.53767, 0.28377, 0.13442, 0.044805, 0.99388, 0.67579, 0.019308, 0.13516, 0.16895, 0.8772, 0.12062, 0.16677, 0.32345, 0.083676, 0.17168, 0.053668, 0.064055, 0.036644, 0.095217, 0.0046166, 0.00057708, 0.059795, 0.11783, 0.82131, 0.18347, 0.0019012, 0.16351, 0.19583, 0.095062, 0.011407, 0.26998, 0.078901, 0.84488, 0.15132, 0.071216, 0.37412, 0.19945, 0.16505, 0.00048119, 0.001203, 0.046194, 0.035127, 0.042585, 0.064479, 0.015788, 0.23961, 0.33712, 0.069654, 0.33372, 0.004334, 0.9959, 0.27435, 0.28191, 0.31786, 0.081358, 0.045409, 0.2703, 0.51982, 0.20793, 0.015347, 0.98218, 0.84415, 0.15242, 0.86875, 0.12966, 0.0088848, 0.013031, 0.12024, 0.14749, 0.3856, 0.20909, 0.028431, 0.015993, 0.045609, 0.026062, 0.15168, 0.097636, 0.41408, 0.13643, 0.088918, 0.025281, 0.086303, 0.36122, 0.046463, 0.14364, 0.075078, 0.31136, 0.019549, 0.0022665, 0.018415, 0.022098, 0.99954, 0.86589, 0.13321, 0.46318, 0.52256, 0.011876, 0.067657, 0.042653, 0.27504, 0.14561, 0.007354, 0.01765, 0.048536, 0.39564, 0.99664, 0.14004, 0.038652, 0.13108, 0.51088, 0.076745, 0.053777, 0.049296, 0.00080103, 0.11214, 0.11855, 0.51025, 0.0016021, 0.03124, 0.22509, 0.26511, 0.045447, 0.0075746, 0.0075746, 0.67414, 0.2698, 0.033725, 0.16742, 0.064439, 0.025294, 0.019874, 0.36134, 0.058416, 0.089881, 0.17585, 0.14459, 0.011724, 0.56664, 0.011724, 0.37427, 0.14387, 0.41971, 0.0021634, 0.060576, 0.12767, 0.02812, 0.19234, 0.23227, 0.23958, 0.0044992, 0.13723, 0.020247, 0.017997, 0.99773, 0.0037565, 0.22633, 0.10002, 0.1296, 0.46675, 0.018313, 0.029582, 0.019252, 0.0070434, 0.068377, 0.11233, 0.27188, 0.08303, 0.030933, 0.079774, 0.068377, 0.28491, 0.24848, 0.53838, 0.20707, 0.9551, 0.042261, 0.58666, 0.048048, 0.2786, 0.00059318, 0.0059318, 0.0094909, 0.026298, 0.0067227, 0.03045, 0.0015818, 0.0057341, 0.99735, 0.99621, 0.9974, 0.77598, 0.21887, 0.67535, 0.26264, 0.056279, 0.23154, 0.66776, 0.0067112, 0.090601, 0.0033556, 0.22788, 0.11309, 0.30593, 0.00028486, 0.28656, 0.046431, 0.020225, 0.34316, 0.36969, 0.28526, 0.0024124, 0.99418, 0.035847, 0.11949, 0.030726, 0.1707, 0.11437, 0.16558, 0.003414, 0.36018, 0.15887, 0.099202, 0.12009, 0.15589, 0.021631, 0.32595, 0.021631, 0.032819, 0.061908, 0.0022376, 0.1747, 0.25243, 0.002635, 0.089063, 0.064031, 0.10619, 0.13359, 0.049011, 0.10724, 0.021344, 0.036796, 0.013773, 0.10031, 0.27484, 0.18501, 0.028162, 0.22797, 0.038235, 0.045635, 0.042551, 0.0071947, 0.02154, 0.067012, 0.0023933, 0.213, 0.69645, 0.77591, 0.13927, 0.07958, 0.35155, 0.023951, 0.0066645, 0.00020827, 0.22701, 0.38259, 0.0081224, 0.99891, 0.29263, 0.11172, 0.00029195, 0.2211, 0.1849, 0.027249, 0.023064, 0.049534, 0.022286, 0.033088, 0.034061, 0.11619, 0.0052814, 0.39522, 0.48237, 0.99418, 0.19902, 0.20178, 0.40909, 0.058047, 0.13268, 0.99811, 0.87486, 0.034994, 0.087486, 0.41337, 0.090997, 0.13705, 0.26245, 0.016091, 0.031072, 0.027188, 0.021639, 0.937, 0.058562, 0.60277, 0.12626, 0.13615, 0.082619, 0.052364, 0.96515, 0.034718, 0.12621, 0.74801, 0.12621, 0.82125, 0.17502, 0.99701, 0.21323, 0.30037, 0.043814, 0.00048682, 0.43522, 0.0068155, 0.12859, 0.040772, 0.19759, 0.28854, 0.34499, 0.89778, 0.098386, 0.16848, 0.7563, 0.074881, 0.73008, 0.26735, 0.7804, 0.21461, 0.96916, 0.029548, 0.33515, 0.19856, 0.071294, 0.041977, 0.33048, 0.021322, 0.0013326, 0.23613, 0.76086, 0.0029152, 0.0092798, 0.595, 0.016376, 0.37174, 0.0070963, 0.99264, 0.50456, 0.15877, 0.17007, 0.013806, 0.017572, 0.12238, 0.013179, 0.99672, 0.25417, 0.63105, 0.070117, 0.043823, 0.24781, 0.47111, 0.0054463, 0.010893, 0.065356, 0.020424, 0.17973, 0.99678, 0.99845, 0.98479, 0.011319, 0.37543, 0.046928, 0.41062, 0.16425, 0.59831, 0.00277, 0.047089, 0.35178, 0.97399, 0.01948, 0.36217, 0.26897, 0.066675, 0.247, 0.031822, 0.023488, 0.57496, 0.35137, 0.063885, 0.27784, 0.015019, 0.47684, 0.030574, 0.004291, 0.19524, 0.29054, 0.7088, 0.15172, 0.0042326, 0.091816, 0.0042326, 0.21, 0.31517, 0.0078141, 0.21521, 0.96132, 0.0386, 0.14529, 0.12839, 0.027473, 0.31489, 0.27209, 0.00052833, 0.11095, 0.99277, 0.081302, 0.91755, 0.99277, 0.77697, 0.21582, 0.07264, 0.67563, 0.019917, 0.22065, 0.0015621, 0.0093729, 0.14975, 0.84403, 0.0068067, 0.99518, 0.032504, 0.31778, 0.065007, 0.31241, 0.16725, 0.023352, 0.043233, 0.012938, 0.025561, 0.22741, 0.09203, 0.31716, 0.0095072, 0.32743, 0.02662, 0.36077, 0.075161, 0.015032, 0.19327, 0.30709, 0.040802, 0.0085898, 0.99622, 0.83608, 0.15925, 0.055681, 0.72385, 0.19674, 0.011136, 0.012992, 0.25877, 0.74133, 0.86334, 0.046667, 0.050556, 0.038889, 0.0069363, 0.0069363, 0.84623, 0.13873, 0.88059, 0.11689, 0.5737, 0.092669, 0.06791, 0.0014148, 0.08418, 0.053055, 0.12733, 0.75544, 0.23742, 0.97949, 0.015547, 0.1357, 0.066894, 0.0019112, 0.69378, 0.1013, 0.91884, 0.0806, 0.010979, 0.021957, 0.010979, 0.010979, 0.94416, 0.64293, 0.35361, 0.12267, 0.45432, 0.092005, 0.022466, 0.013908, 0.01783, 0.02318, 0.034591, 0.21931, 0.9977, 0.3349, 0.36537, 0.10408, 0.044492, 0.0072805, 0.021033, 0.052582, 0.070378, 0.17515, 0.27941, 0.54631, 0.69616, 0.18724, 0.086706, 0.030159, 0.12974, 0.06017, 0.63179, 0.06017, 0.11846, 0.82061, 0.0022986, 0.11263, 0.064362, 0.022336, 0.023106, 0.23414, 0.15866, 0.26495, 0.084723, 0.054685, 0.011553, 0.14557, 0.00077021, 0.12714, 0.0060958, 0.17678, 0.089695, 0.084905, 0.18897, 0.047025, 0.0082728, 0.0052249, 0.26299, 0.0030479, 0.023782, 0.17837, 0.79077, 0.0059456, 0.86692, 0.13337, 1.0002, 0.99854, 0.0039825, 0.18718, 0.80844, 0.22977, 0.34911, 0.095934, 0.14296, 0.15396, 0.017315, 0.010763, 0.23366, 0.67417, 0.091933, 0.78351, 0.21495, 0.20898, 0.73143, 0.059708, 0.0074046, 0.06479, 0.0018512, 0.12958, 0.33876, 0.3147, 0.14254, 0.99626, 0.35243, 0.58227, 0.061292, 0.22138, 0.15474, 0.23838, 0.106, 0.036673, 0.028623, 0.088553, 0.05501, 0.058588, 0.01297, 0.08586, 0.096821, 0.23444, 0.39581, 0.0060894, 0.0036536, 0.036536, 0.14066, 0.86927, 0.0064391, 0.12234, 0.35857, 0.15258, 0.48826, 0.067472, 0.0072662, 0.24498, 0.56573, 0.065396, 0.048788, 0.8944, 0.0258, 0.0774, 0.99791, 0.41084, 0.58888, 0.49842, 0.49842, 0.39642, 0.087726, 0.16925, 0.017794, 0.11338, 0.0012414, 0.049243, 0.0078623, 0.070347, 0.040553, 0.04676, 0.67333, 0.19146, 0.0045805, 0.050385, 0.0018322, 0.049469, 0.029315, 0.23881, 0.25597, 0.3225, 0.01778, 0.00030656, 0.019007, 0.071121, 0.0076639, 0.01962, 0.0064377, 0.041079, 0.99849, 0.99444, 0.99592, 0.99277, 0.061862, 0.69951, 0.23793, 0.13976, 0.58923, 0.26523, 0.0063529, 0.99683, 0.21529, 0.065014, 0.42739, 0.0021316, 0.18758, 0.0063948, 0.055422, 0.040501, 0.0010658, 0.016346, 0.98073, 0.79268, 0.20825, 0.77323, 0.045317, 0.18127, 0.98184, 0.015585, 0.99468, 0.87516, 0.064827, 0.058344, 0.79184, 0.19157, 0.012772, 0.77917, 0.025547, 0.11496, 0.07664, 0.041234, 0.61078, 0.26287, 0.085046, 0.83309, 0.16505, 0.33642, 0.073735, 0.023042, 0.4378, 0.12904, 0.55002, 0.15435, 0.076766, 0.042466, 0.061658, 0.080849, 0.01225, 0.02205, 0.31903, 0.19673, 0.069123, 0.14888, 0.070452, 0.19673, 0.98047, 0.014419, 0.99689, 0.7976, 0.066919, 0.0018086, 0.06511, 0.0018086, 0.066919, 0.89143, 0.10591, 0.99661, 0.99788, 0.9717, 0.021124, 0.86434, 0.13377, 0.99832, 0.33061, 0.21561, 0.45279, 0.88692, 0.10935, 0.7585, 0.15943, 0.066026, 0.0016104, 0.0016104, 0.012883, 0.050926, 0.0042949, 0.46201, 0.39698, 0.020248, 0.030678, 0.0018407, 0.033132, 0.12235, 0.054517, 0.12108, 0.010143, 0.60096, 0.016482, 0.0012678, 0.073535, 0.99546, 0.99763, 0.66296, 0.33148, 0.68463, 0.1443, 0.0024986, 0.036855, 0.021863, 0.023737, 0.086203, 0.99734, 0.87419, 0.1262, 0.24369, 0.1994, 0.1357, 0.16033, 0.090228, 0.013972, 0.028892, 0.018472, 0.10894, 0.99701, 0.10726, 0.21829, 0.10187, 0.57294, 0.3537, 0.024393, 0.62202, 0.072049, 0.19687, 0.58857, 0.072049, 0.018266, 0.052769, 0.11817, 0.6584, 0.21947, 0.99817, 0.8646, 0.13509, 0.99465, 0.080702, 0.4383, 0.32142, 0.13775, 0.021567, 0.22593, 0.4868, 0.023782, 0.066145, 0.19323, 0.0007432, 0.0029728, 0.99893, 0.99327, 0.20132, 0.53206, 0.02876, 0.23727, 0.0063977, 0.2751, 0.01706, 0.076772, 0.62484, 0.32945, 0.037661, 0.22629, 0.19977, 0.027509, 0.074994, 0.065497, 0.030456, 0.0062222, 0.0019649, 0.1298, 0.29051, 0.38425, 0.00051509, 0.03245, 0.052024, 0.040177, 0.070052, 0.00051509, 0.12819, 0.41307, 0.4558, 0.99936, 0.99592, 0.85857, 0.14056, 0.71893, 0.019607, 0.26143, 0.037928, 0.86201, 0.099993, 0.18028, 0.0051509, 0.81385, 0.94061, 0.05939, 0.99264, 0.99602, 0.37386, 0.27865, 0.18035, 0.050312, 0.11688, 0.93254, 0.014076, 0.052785, 0.99573, 0.019841, 0.93913, 0.0066136, 0.033068, 0.40864, 0.17977, 0.11406, 0.002266, 0.083842, 0.00075534, 0.037011, 0.16391, 0.0098194, 0.79167, 0.20299, 0.86885, 0.014361, 0.044879, 0.071806, 0.1387, 0.43233, 0.082836, 0.22058, 0.035331, 0.0050132, 0.024827, 0.0093101, 0.051325, 0.18567, 0.092836, 0.22921, 0.25227, 0.030561, 0.01701, 0.078997, 0.095431, 0.018164, 0.010875, 0.1015, 0.87185, 0.014501, 0.43903, 0.0082694, 0.39242, 0.0075176, 0.015787, 0.087204, 0.0022553, 0.048113, 0.31828, 0.00071524, 0.46491, 0.016451, 0.15592, 0.00071524, 0.029325, 0.01359, 0.76943, 0.16065, 0.067642, 0.01244, 0.010367, 0.26954, 0.23948, 0.10885, 0.034211, 0.25295, 0.072569, 0.013534, 0.21019, 0.24043, 0.1066, 0.19666, 0.20936, 0.0036758, 0.019549, 0.49939, 0.16403, 0.20049, 0.1367, 0.99627, 0.43033, 0.5678, 0.52264, 0.15708, 0.074255, 0.24561, 0.072642, 0.14752, 0.017881, 0.51185, 0.043585, 0.20563, 0.99592, 0.76161, 0.015933, 0.22307, 0.043283, 0.95222, 0.99599, 0.33943, 0.00046948, 0.15652, 0.31427, 0.11953, 0.014366, 0.018591, 0.031924, 0.0048826, 0.20581, 0.080064, 0.18772, 0.24833, 0.022164, 0.029854, 0.22617, 0.47307, 0.52422, 0.0099728, 0.0099728, 0.97734, 0.011431, 0.47031, 0.049807, 0.010615, 0.041642, 0.30782, 0.0097981, 0.011431, 0.054706, 0.03266, 0.18049, 0.0019201, 0.17857, 0.0019201, 0.63746, 0.94408, 0.054169, 0.99642, 0.13923, 0.24755, 0.19704, 0.28244, 0.023592, 0.043197, 0.0096363, 0.00066457, 0.014288, 0.042532, 0.0029012, 0.0096707, 0.027078, 0.20309, 0.75722, 0.0052283, 0.95155, 0.041826, 0.10652, 0.52447, 0.092622, 0.11346, 0.091464, 0.023734, 0.0034733, 0.044574, 0.44747, 0.16701, 0.11319, 0.074625, 0.016922, 0.07407, 0.01609, 0.029129, 0.054929, 0.0069354, 0.98598, 0.012722, 0.53077, 0.37912, 0.089611, 0.67247, 0.1778, 0.12564, 0.00079021, 0.023706, 0.56042, 0.10389, 0.17394, 0.00059366, 0.0071239, 0.019591, 0.13417, 0.86578, 0.050336, 0.020134, 0.060403, 0.99485, 0.1791, 0.81875, 0.79519, 0.20511, 0.87387, 0.12535, 0.14727, 0.060779, 0.11454, 0.19636, 0.10052, 0.10519, 0.27584, 0.18157, 0.59198, 0.21888, 0.0074619, 0.183, 0.72731, 0.089154, 0.0067839, 0.70892, 0.14133, 0.003392, 0.044096, 0.091583, 0.0045226, 0.20348, 0.19133, 0.059871, 0.1948, 0.32018, 0.014317, 0.016052, 0.2464, 0.6326, 0.076133, 0.044296, 0.97165, 0.021123, 0.96083, 0.022519, 0.015013, 1.0003, 0.015842, 0.9822, 0.23838, 0.76113, 0.99602, 0.53183, 0.46715, 0.46134, 0.53729, 0.0091518, 0.9884, 0.94464, 0.0087467, 0.017493, 0.017493, 0.0087467, 0.99915, 0.16262, 0.10623, 0.55867, 0.09049, 0.082621, 0.86254, 0.060742, 0.072891, 0.73335, 0.084952, 0.002047, 0.070878, 0.026867, 0.016888, 0.032752, 0.032497, 0.25393, 0.4432, 0.091697, 0.016458, 0.11756, 0.057604, 0.016458, 0.0035268, 0.99761, 0.24905, 0.096233, 0.43821, 0.0020651, 0.18834, 0.02602, 0.20159, 0.14251, 0.025489, 0.26184, 0.059088, 0.21434, 0.011586, 0.084577, 0.2602, 0.6034, 0.026917, 0.067294, 0.0044862, 0.038133, 0.4166, 0.028811, 0.080382, 0.00028811, 0.33392, 0.031692, 0.054452, 0.0063384, 0.034861, 0.012965, 0.27129, 0.22052, 0.064167, 0.018682, 0.26398, 0.0398, 0.017869, 0.031271, 0.045079, 0.028022, 0.053818, 0.22584, 0.0099307, 0.13166, 0.13583, 0.097064, 0.071757, 0.016017, 0.032995, 0.1464, 0.079445, 0.091629, 0.2879, 0.0045151, 0.25762, 0.059493, 0.11128, 0.030012, 0.082068, 0.035058, 0.04037, 0.17738, 0.098714, 0.19743, 0.27455, 0.037018, 0.010797, 0.20514, 0.99245, 0.17848, 0.10493, 0.15458, 0.0028106, 0.049186, 0.2553, 0.00093688, 0.15927, 0.094625, 0.99898, 0.69408, 0.30014, 0.97433, 0.023198, 0.1141, 0.090895, 0.10056, 0.58598, 0.079292, 0.029009, 0.36336, 0.47811, 0.15299, 0.99336, 0.88968, 0.10168, 0.81345, 0.18621, 0.99659, 0.0020756, 0.26522, 0.022832, 0.24354, 0.11992, 0.22463, 0.012684, 0.017989, 0.068264, 0.01476, 0.0080718, 0.27793, 0.41274, 0.020741, 0.0082964, 0.20222, 0.078815, 0.88901, 0.11079, 0.22827, 0.030847, 0.61078, 0.12956, 0.78647, 0.20696, 0.292, 0.7045, 0.23919, 0.25833, 0.0013668, 0.12666, 0.12461, 0.070846, 0.033031, 0.027564, 0.032803, 0.069479, 0.015946, 0.99621, 0.0010137, 0.18906, 0.27371, 0.09073, 0.018754, 0.0025344, 0.17335, 0.025344, 0.22607, 0.37684, 0.24187, 0.055308, 0.10506, 0.043664, 0.043135, 0.073568, 0.0434, 0.016936, 0.26147, 0.16152, 0.093434, 0.1282, 0.044182, 0.18325, 0.046355, 0.08257, 0.0068867, 0.99169, 0.010081, 0.010081, 0.010081, 0.3831, 0.58473, 0.32163, 0.0023455, 0.23983, 0.14278, 0.1938, 0.026973, 0.030198, 0.030785, 0.011434, 0.76729, 0.03318, 0.19908, 0.42575, 0.067938, 0.0033969, 0.15965, 0.021514, 0.0022646, 0.28194, 0.037366, 0.0088042, 0.30986, 0.39018, 0.1297, 0.00021474, 0.079452, 0.034143, 0.012884, 0.012669, 0.01997, 0.0021474, 0.42835, 0.15115, 0.1188, 0.094817, 0.038485, 0.023983, 0.14501, 0.90715, 0.090715, 0.99897, 0.028558, 0.35085, 0.62011, 0.094029, 0.86716, 0.039179, 0.99024, 0.0077363, 0.198, 0.053924, 0.0016851, 0.487, 0.09521, 0.0396, 0.081729, 0.0016851, 0.041286, 0.97544, 0.020977, 0.98996, 0.007615, 0.34582, 0.58882, 0.056328, 0.0091696, 0.15033, 0.20241, 0.24942, 0.05505, 0.018632, 0.28837, 0.00084692, 0.0093161, 0.025831, 0.32401, 0.094832, 0.068489, 0.073758, 0.42674, 0.010537, 0.13495, 0.8422, 0.022492, 0.28403, 0.4869, 0.22316, 0.30258, 0.28443, 0.076655, 0.070603, 0.26627, 0.26629, 0.034967, 0.18829, 0.1318, 0.034967, 0.33622, 0.0080694, 0.78899, 0.21015, 0.44274, 0.19742, 0.013266, 0.34425, 0.00067457, 0.001574, 0.99859, 0.1607, 0.29126, 0.24305, 0.12923, 0.089052, 0.012052, 0.074322, 0.99668, 0.11786, 0.80639, 0.074436, 0.13268, 0.67158, 0.022719, 0.089968, 0.013631, 0.069975, 0.78752, 0.0015411, 0.14795, 0.063186, 0.99894, 0.30408, 0.69662, 0.073507, 0.059179, 0.32767, 0.26101, 0.22488, 0.014951, 0.036753, 0.0012459, 0.91264, 0.078226, 0.99444, 0.99834, 0.1257, 0.71709, 0.099992, 0.057138, 0.68451, 0.31593, 0.99765, 0.99571, 0.0035184, 0.2282, 0.7714, 0.98391, 0.014056, 0.1955, 0.39415, 0.059815, 0.27987, 0.024555, 0.0091296, 0.02487, 0.012278, 0.10837, 0.27406, 0.19375, 0.018808, 0.11344, 0.082098, 0.037019, 0.031347, 0.087173, 0.025674, 0.023883, 0.0047766, 0.88681, 0.11085, 0.00051681, 0.0083982, 0.15388, 0.14587, 0.30027, 0.24161, 0.054911, 0.028296, 0.035402, 0.0031009, 0.022998, 0.0047805, 0.17889, 0.2088, 0.4309, 0.0027693, 0.0022154, 0.0648, 0.0066462, 0.026585, 0.037662, 0.0288, 0.012185, 0.19385, 0.62907, 0.01663, 0.00047513, 0.085524, 0.01758, 0.020431, 0.036585, 0.03705, 0.29091, 0.45833, 0.16055, 0.053517, 0.00055333, 0.19588, 0.10181, 0.18869, 0.44654, 0.0071933, 0.015493, 0.01494, 0.029327, 0.99807, 0.1764, 0.22765, 0.040525, 0.12038, 0.039333, 0.026222, 0.070323, 0.069131, 0.23004, 0.085108, 0.91298, 0.9954, 0.99706, 0.99997, 0.24784, 0.42977, 0.15065, 0.016948, 0.030339, 0.017994, 0.020923, 0.012973, 0.01653, 0.055656, 0.00052309, 0.1801, 0.59928, 0.026911, 0.039331, 0.15422, 0.77203, 0.22058, 0.2171, 0.24816, 0.40534, 0.00031373, 0.011294, 0.10824, 0.0097256, 0.1307, 0.52876, 0.011882, 0.014853, 0.043073, 0.27032, 0.12913, 0.10264, 0.013245, 0.75494, 0.995, 0.54045, 0.052972, 0.16106, 0.0057267, 0.012169, 0.03436, 0.16536, 0.027917, 0.15842, 0.018402, 0.22563, 0.22563, 0.0032004, 0.13281, 0.0056006, 0.23043, 0.33661, 0.0036325, 0.039958, 0.19858, 0.033904, 0.033904, 0.047223, 0.066596, 0.17194, 0.069018, 0.0051693, 0.25071, 0.72887, 0.015508, 0.98963, 0.0077924, 0.97862, 0.009146, 0.009146, 0.99688, 0.54105, 0.054293, 0.056165, 0.19002, 0.050548, 0.10859, 0.99538, 0.0040571, 0.1127, 0.30518, 0.16679, 0.0036063, 0.045079, 0.24523, 0.01713, 0.0081142, 0.050037, 0.033358, 0.0090157, 0.9977, 0.99461, 0.020462, 0.2319, 0.56384, 0.022735, 0.070479, 0.088668, 0.0022735, 0.99311, 0.47037, 0.12393, 0.054639, 0.22251, 0.033654, 0.029299, 0.013066, 0.052659, 0.30379, 0.21307, 0.0016646, 0.14149, 0.11486, 0.029963, 0.063256, 0.13151, 0.00083231, 0.048548, 0.24094, 0.15104, 0.088106, 0.021577, 0.068327, 0.3812, 0.039634, 0.28708, 0.22709, 0.079267, 0.0010712, 0.083552, 0.28279, 0.9958, 0.056287, 0.13215, 0.32304, 0.035485, 0.030591, 0.0012236, 0.41848, 0.0024473, 0.95309, 0.042048, 0.68396, 0.20899, 0.10449, 0.69507, 0.13032, 0.001498, 0.01498, 0.032956, 0.035203, 0.045689, 0.04494, 0.99264, 0.8412, 0.15857, 0.24012, 0.1444, 0.20167, 0.12061, 0.19309, 0.0022131, 0.027663, 0.017981, 0.052007, 0.030596, 0.51666, 0.15203, 0.20156, 0.026496, 0.010409, 0.062138, 0.67298, 0.32403, 0.15538, 0.11632, 0.26822, 0.13368, 0.024305, 0.079425, 0.051648, 0.11892, 0.014757, 0.037759, 0.61051, 0.088909, 0.2394, 0.021733, 0.0042808, 0.035234, 0.60456, 0.15243, 0.11466, 0.051006, 0.0086987, 0.024515, 0.010676, 0.0033609, 0.03005, 0.4142, 0.15533, 0.42715, 0.0057135, 0.36566, 0.14284, 0.0057135, 0.4685, 0.011427, 0.64252, 0.18294, 0.17402, 0.92896, 0.014863, 0.055737, 0.32895, 0.17455, 0.13427, 0.36252, 0.057433, 0.38961, 0.42686, 0.031045, 0.094686, 0.016593, 0.82966, 0.099559, 0.049779, 0.077978, 0.081036, 0.12232, 0.45716, 0.028286, 0.025993, 0.20718, 0.27537, 0.16168, 0.074933, 0.27648, 0.068658, 0.040235, 0.041343, 0.062014, 0.999, 0.21379, 0.098828, 0.086727, 0.057482, 0.098828, 0.38825, 0.056473, 0.086814, 0.28144, 0.075612, 0.0056009, 0.10222, 0.016803, 0.046207, 0.36826, 0.016803, 0.15752, 0.84175, 0.99627, 0.99714, 0.24579, 0.24929, 0.099994, 0.00069926, 0.27166, 0.0017481, 0.052444, 0.022376, 0.0031467, 0.04685, 0.0062933, 0.37657, 0.46879, 0.092221, 0.061481, 0.42193, 0.57537, 0.99654, 0.31163, 0.30322, 0.080828, 0.049992, 0.20604, 0.0037377, 0.043451, 0.00093443, 0.81162, 0.072193, 0.0021877, 0.11157, 0.0021877, 0.42728, 0.059345, 0.40354, 0.10682, 0.20685, 0.35288, 0.24829, 0.12666, 0.018593, 0.024791, 0.022079, 0.0088776, 0.61492, 0.1237, 0.07398, 0.0094695, 0.052674, 0.027225, 0.046164, 0.043205, 0.98982, 0.0095481, 0.22434, 0.2673, 0.11294, 0.0052171, 0.060151, 0.10189, 0.064447, 0.01381, 0.14393, 0.0061378, 0.9944, 0.99653, 0.19311, 0.11519, 0.022021, 0.46922, 0.14737, 0.052512, 0.8634, 0.13713, 0.47798, 0.47798, 0.038238, 0.063069, 0.055948, 0.16276, 0.24465, 0.47353, 0.057055, 0.001542, 0.066307, 0.2128, 0.55667, 0.1064, 0.11871, 0.11309, 0.2917, 0.00021624, 0.3423, 0.092982, 0.032868, 0.008217, 0.93348, 0.063646, 0.83609, 0.15926, 0.19761, 0.080336, 0.051711, 0.5051, 0.031396, 0.067409, 0.066485, 0.61698, 0.37968, 0.27321, 0.55241, 0.028759, 0.097061, 0.04913, 0.87624, 0.016851, 0.10111, 0.017323, 0.95277, 0.028872, 0.99433, 0.01026, 0.10004, 0.012825, 0.69513, 0.02052, 0.1616, 0.97044, 0.028265, 0.74492, 0.22761, 0.020692, 0.10511, 0.27878, 0.61697, 0.1208, 0.62286, 0.25669, 0.91011, 0.088483, 0.49788, 0.069856, 0.089923, 0.19102, 0.054868, 0.020322, 0.035817, 0.030736, 0.0099068, 0.2622, 0.3361, 0.14205, 0.02737, 0.013958, 0.04817, 0.072255, 0.018885, 0.078824, 0.99518, 0.99621, 0.19389, 0.74573, 0.059658, 0.75583, 0.13082, 0.11265, 0.1064, 0.12999, 0.29609, 0.26865, 0.0057774, 0.096771, 0.0014443, 0.051515, 0.043812, 0.49216, 0.00087031, 0.16014, 0.0019582, 0.059399, 0.16427, 0.033072, 0.010879, 0.02872, 0.04852, 0.93645, 0.060029, 0.23303, 0.16916, 0.10012, 0.16571, 0.029345, 0.29172, 0.010357, 0.90742, 0.088221, 0.85886, 0.097598, 0.039039, 0.44615, 0.066236, 0.25974, 0.018451, 0.096279, 0.025785, 0.030043, 0.03501, 0.022709, 0.026494, 0.97143, 0.99567, 0.48913, 0.17078, 0.25452, 0.048084, 0.032333, 0.0058033, 0.21554, 0.69194, 0.057477, 0.035371, 0.74494, 0.24831, 0.020086, 0.97917, 0.99311, 0.99658, 0.99504, 0.016344, 0.98067, 0.4624, 0.25021, 0.084555, 0.1279, 0.002659, 0.072058, 0.99607, 0.57835, 0.4193, 0.21834, 0.0058616, 0.27843, 0.0087924, 0.029308, 0.13775, 0.3092, 0.013189, 0.82938, 0.17013, 0.05318, 0.38555, 0.55839, 0.54573, 0.10161, 0.089326, 0.13511, 0.00027915, 0.035731, 0.041034, 0.014795, 0.023727, 0.01312, 0.36164, 0.51128, 0.049881, 0.074821, 0.3592, 0.18032, 0.015341, 0.31289, 0.073808, 0.037049, 0.021708, 0.99283, 0.12705, 0.41047, 0.18786, 0.048866, 0.015203, 0.20415, 0.0065155, 0.94453, 0.054114, 0.99401, 0.55476, 0.044432, 0.15455, 0.12466, 0.033084, 0.038039, 0.017741, 0.030047, 0.0027171, 0.16349, 0.012201, 0.63199, 0.19277, 0.74864, 0.12585, 0.12585, 0.99202, 0.20142, 0.038409, 0.31799, 0.18132, 0.10406, 0.0089322, 0.028583, 0.091109, 0.02769, 0.00044661, 0.17758, 0.16459, 0.28947, 0.26961, 0.030551, 0.06683, 0.0013366, 0.14385, 0.24946, 0.0036418, 0.11593, 0.10986, 0.30166, 0.053413, 0.022458, 0.63507, 0.12228, 0.00064019, 0.09987, 0.0012804, 0.046094, 0.018566, 0.057617, 0.018566, 0.90845, 0.021127, 0.06338, 0.36502, 0.001055, 0.11183, 0.030594, 0.2015, 0.041144, 0.24897, 0.38788, 0.60711, 0.0023598, 0.10619, 0.77402, 0.014159, 0.10383, 0.99515, 0.0090939, 0.050016, 0.55018, 0.39104, 0.99931, 0.3031, 0.0038858, 0.3847, 0.25647, 0.052459, 0.0087109, 0.5967, 0.076947, 0.24536, 0.04791, 0.024681, 0.60115, 0.39549, 0.99694, 0.84487, 0.13871, 0.01261, 0.39333, 0.074414, 0.53153, 0.11416, 0.64355, 0.11844, 0.01855, 0.021404, 0.042808, 0.041381, 0.14737, 0.24061, 0.61055, 0.25546, 0.20508, 0.11343, 0.28699, 0.010725, 0.023401, 0.010075, 0.085154, 0.0097504, 0.99629, 0.995, 0.99531, 0.14352, 0.078094, 0.69862, 0.080205, 0.99945, 0.006666, 0.6866, 0.26997, 0.036663, 0.99529, 0.98281, 0.012764, 0.83784, 0.16059, 0.99264, 0.13174, 0.86362, 0.92834, 0.0021051, 0.069468, 0.0058666, 0.11063, 0.38049, 0.22293, 0.0033523, 0.032685, 0.24388, 0.77768, 0.21602, 0.33128, 0.45551, 0.20705, 0.42302, 0.57685, 0.8198, 0.17867, 0.65604, 0.074817, 0.12305, 0.10388, 0.017931, 0.024114, 0.043673, 0.30339, 0.08363, 0.33405, 0.00046461, 0.0060399, 0.18584, 0.042744, 1.0008, 0.91221, 0.082928, 0.92454, 0.072042, 0.23197, 0.018058, 0.070842, 0.26635, 0.17537, 0.014238, 0.19377, 0.010765, 0.0048617, 0.013543, 0.20076, 0.21707, 0.049487, 0.070856, 0.28568, 0.037115, 0.039365, 0.056798, 0.043301, 0.3238, 0.24998, 0.35736, 0.067948, 0.00083886, 0.16518, 0.11562, 0.71852, 0.14995, 0.2623, 0.33302, 0.18173, 0.00089522, 0.021933, 0.033123, 0.017457, 0.047205, 0.0084295, 0.39787, 0.0016859, 0.18208, 0.36247, 0.99461, 0.39113, 0.21466, 0.080382, 0.017555, 0.015707, 0.11672, 0.030798, 0.043732, 0.089621, 0.25877, 0.01041, 0.078822, 0.20672, 0.44467, 0.0043784, 0.098514, 0.11822, 0.66552, 0.0065676, 0.10727, 0.67804, 0.31481, 0.99485, 0.0099933, 0.98934, 0.99202, 0.99685, 0.99277, 0.9978, 0.99745, 0.45661, 0.16308, 0.25277, 0.088182, 0.00090597, 0.016006, 0.010872, 0.011778, 0.4208, 0.24253, 0.20292, 0.097278, 0.018927, 0.017387, 0.0029072, 0.303, 0.16248, 0.26036, 0.16991, 0.03844, 0.048453, 0.014213, 0.023872, 0.087531, 0.88858, 0.16149, 0.83682, 0.94667, 0.050715, 0.94027, 0.052337, 0.007219, 0.83942, 0.087037, 0.073498, 0.99805, 0.99379, 0.0048715, 0.99504, 0.45239, 0.36619, 0.097814, 0.014672, 0.051352, 0.017117, 0.93695, 0.058559, 0.50695, 0.48885, 0.063612, 0.23208, 0.42431, 0.00069903, 0.019573, 0.078291, 0.054524, 0.12722, 0.5157, 0.48207, 0.99327, 0.99592, 0.99793, 0.30684, 0.2924, 0.01083, 0.38986, 0.99461, 0.99811, 0.069133, 0.059487, 0.32396, 0.36576, 0.15595, 0.025724, 0.30953, 0.52031, 0.17091, 0.83121, 0.16884 ] | |
}, | |
"R": 30, | |
"lambda.step": 0.01, | |
"plot.opts": { | |
"xlab": "PC1", | |
"ylab": "PC2" | |
}, | |
"topic.order": [ 9, 18, 14, 13, 17, 8, 3, 16, 11, 6, 19, 1, 5, 12, 4, 20, 2, 15, 10, 7 ] | |
} |
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