-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlib.js
More file actions
executable file
·9 lines (9 loc) · 270 KB
/
lib.js
File metadata and controls
executable file
·9 lines (9 loc) · 270 KB
1
2
3
4
5
6
7
8
9
!function(){function t(t){return t&&(t.ownerDocument||t.document||t).documentElement}function n(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function e(t,n){return n>t?-1:t>n?1:t>=n?0:NaN}function r(t){return null===t?NaN:+t}function i(t){return!isNaN(t)}function o(t){return{left:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}function u(t){return t.length}function a(t){for(var n=1;t*n%1;)n*=10;return n}function s(t,n){for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}function l(){this._=Object.create(null)}function c(t){return(t+="")===gu||t[0]===vu?vu+t:t}function f(t){return(t+="")[0]===vu?t.slice(1):t}function h(t){return c(t)in this._}function p(t){return(t=c(t))in this._&&delete this._[t]}function d(){var t=[];for(var n in this._)t.push(f(n));return t}function g(){var t=0;for(var n in this._)++t;return t}function v(){for(var t in this._)return!1;return!0}function y(){this._=Object.create(null)}function m(t){return t}function x(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function b(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var e=0,r=yu.length;r>e;++e){var i=yu[e]+n;if(i in t)return i}}function w(){}function M(){}function _(t){function n(){for(var n,r=e,i=-1,o=r.length;++i<o;)(n=r[i].on)&&n.apply(this,arguments);return t}var e=[],r=new l;return n.on=function(n,i){var o,u=r.get(n);return arguments.length<2?u&&u.on:(u&&(u.on=null,e=e.slice(0,o=e.indexOf(u)).concat(e.slice(o+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function k(){eu.event.preventDefault()}function S(){for(var t,n=eu.event;t=n.sourceEvent;)n=t;return n}function E(t){for(var n=new M,e=0,r=arguments.length;++e<r;)n[arguments[e]]=_(n);return n.of=function(e,r){return function(i){try{var o=i.sourceEvent=eu.event;i.target=t,eu.event=i,n[i.type].apply(e,r)}finally{eu.event=o}}},n}function N(t){return xu(t,_u),t}function C(t){return"function"==typeof t?t:function(){return bu(t,this)}}function T(t){return"function"==typeof t?t:function(){return wu(t,this)}}function A(t,n){function e(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,n)}function o(){this.setAttributeNS(t.space,t.local,n)}function u(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}function a(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}return t=eu.ns.qualify(t),null==n?t.local?r:e:"function"==typeof n?t.local?a:u:t.local?o:i}function j(t){return t.trim().replace(/\s+/g," ")}function L(t){return new RegExp("(?:^|\\s+)"+eu.requote(t)+"(?:\\s+|$)","g")}function q(t){return(t+"").trim().split(/^|\s+/)}function D(t,n){function e(){for(var e=-1;++e<i;)t[e](this,n)}function r(){for(var e=-1,r=n.apply(this,arguments);++e<i;)t[e](this,r)}t=q(t).map(R);var i=t.length;return"function"==typeof n?r:e}function R(t){var n=L(t);return function(e,r){if(i=e.classList)return r?i.add(t):i.remove(t);var i=e.getAttribute("class")||"";r?(n.lastIndex=0,n.test(i)||e.setAttribute("class",j(i+" "+t))):e.setAttribute("class",j(i.replace(n," ")))}}function H(t,n,e){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,n,e)}function o(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}return null==n?r:"function"==typeof n?o:i}function P(t,n){function e(){delete this[t]}function r(){this[t]=n}function i(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}return null==n?e:"function"==typeof n?i:r}function O(t){function n(){var n=this.ownerDocument,e=this.namespaceURI;return e?n.createElementNS(e,t):n.createElement(t)}function e(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=eu.ns.qualify(t)).local?e:n}function z(){var t=this.parentNode;t&&t.removeChild(this)}function F(t){return{__data__:t}}function I(t){return function(){return Mu(this,t)}}function W(t){return arguments.length||(t=e),function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}}function $(t,n){for(var e=0,r=t.length;r>e;e++)for(var i,o=t[e],u=0,a=o.length;a>u;u++)(i=o[u])&&n(i,u,e);return t}function U(t){return xu(t,Su),t}function B(t){var n,e;return function(r,i,o){var u,a=t[o].update,s=a.length;for(o!=e&&(e=o,n=0),i>=n&&(n=i+1);!(u=a[n])&&++n<s;);return u}}function Y(t,n,e){function r(){var n=this[u];n&&(this.removeEventListener(t,n,n.$),delete this[u])}function i(){var i=s(n,iu(arguments));r.call(this),this.addEventListener(t,this[u]=i,i.$=e),i._=n}function o(){var n,e=new RegExp("^__on([^.]+)"+eu.requote(t)+"$");for(var r in this)if(n=r.match(e)){var i=this[r];this.removeEventListener(n[1],i,i.$),delete this[r]}}var u="__on"+t,a=t.indexOf("."),s=X;a>0&&(t=t.slice(0,a));var l=Eu.get(t);return l&&(t=l,s=V),a?n?i:r:n?w:o}function X(t,n){return function(e){var r=eu.event;eu.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{eu.event=r}}}function V(t,n){var e=X(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}function G(e){var r=".dragsuppress-"+ ++Cu,i="click"+r,o=eu.select(n(e)).on("touchmove"+r,k).on("dragstart"+r,k).on("selectstart"+r,k);if(null==Nu&&(Nu="onselectstart"in e?!1:b(e.style,"userSelect")),Nu){var u=t(e).style,a=u[Nu];u[Nu]="none"}return function(t){if(o.on(r,null),Nu&&(u[Nu]=a),t){var n=function(){o.on(i,null)};o.on(i,function(){k(),n()},!0),setTimeout(n,0)}}}function Z(t,e){e.changedTouches&&(e=e.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>Tu){var o=n(t);if(o.scrollX||o.scrollY){r=eu.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var u=r[0][0].getScreenCTM();Tu=!(u.f||u.e),r.remove()}}return Tu?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}function J(){return eu.event.changedTouches[0].identifier}function K(t){return t>0?1:0>t?-1:0}function Q(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function tt(t){return t>1?0:-1>t?Lu:Math.acos(t)}function nt(t){return t>1?Ru:-1>t?-Ru:Math.asin(t)}function et(t){return((t=Math.exp(t))-1/t)/2}function rt(t){return((t=Math.exp(t))+1/t)/2}function it(t){return((t=Math.exp(2*t))-1)/(t+1)}function ot(t){return(t=Math.sin(t/2))*t}function ut(){}function at(t,n,e){return this instanceof at?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof at?new at(t.h,t.s,t.l):wt(""+t,Mt,at):new at(t,n,e)}function st(t,n,e){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?o+(u-o)*t/60:180>t?u:240>t?o+(u-o)*(240-t)/60:o}function i(t){return Math.round(255*r(t))}var o,u;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:0>n?0:n>1?1:n,e=0>e?0:e>1?1:e,u=.5>=e?e*(1+n):e+n-e*n,o=2*e-u,new yt(i(t+120),i(t),i(t-120))}function lt(t,n,e){return this instanceof lt?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof lt?new lt(t.h,t.c,t.l):t instanceof ft?pt(t.l,t.a,t.b):pt((t=_t((t=eu.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new lt(t,n,e)}function ct(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new ft(e,Math.cos(t*=Hu)*n,Math.sin(t)*n)}function ft(t,n,e){return this instanceof ft?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof ft?new ft(t.l,t.a,t.b):t instanceof lt?ct(t.h,t.c,t.l):_t((t=yt(t)).r,t.g,t.b):new ft(t,n,e)}function ht(t,n,e){var r=(t+16)/116,i=r+n/500,o=r-e/200;return i=dt(i)*Xu,r=dt(r)*Vu,o=dt(o)*Gu,new yt(vt(3.2404542*i-1.5371385*r-.4985314*o),vt(-.969266*i+1.8760108*r+.041556*o),vt(.0556434*i-.2040259*r+1.0572252*o))}function pt(t,n,e){return t>0?new lt(Math.atan2(e,n)*Pu,Math.sqrt(n*n+e*e),t):new lt(NaN,NaN,t)}function dt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function gt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function vt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function yt(t,n,e){return this instanceof yt?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof yt?new yt(t.r,t.g,t.b):wt(""+t,yt,st):new yt(t,n,e)}function mt(t){return new yt(t>>16,t>>8&255,255&t)}function xt(t){return mt(t)+""}function bt(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function wt(t,n,e){var r,i,o,u=0,a=0,s=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return n(St(i[0]),St(i[1]),St(i[2]))}return(o=Ku.get(t.toLowerCase()))?n(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(u=(3840&o)>>4,u=u>>4|u,a=240&o,a=a>>4|a,s=15&o,s=s<<4|s):7===t.length&&(u=(16711680&o)>>16,a=(65280&o)>>8,s=255&o)),n(u,a,s))}function Mt(t,n,e){var r,i,o=Math.min(t/=255,n/=255,e/=255),u=Math.max(t,n,e),a=u-o,s=(u+o)/2;return a?(i=.5>s?a/(u+o):a/(2-u-o),r=t==u?(n-e)/a+(e>n?6:0):n==u?(e-t)/a+2:(t-n)/a+4,r*=60):(r=NaN,i=s>0&&1>s?0:r),new at(r,i,s)}function _t(t,n,e){t=kt(t),n=kt(n),e=kt(e);var r=gt((.4124564*t+.3575761*n+.1804375*e)/Xu),i=gt((.2126729*t+.7151522*n+.072175*e)/Vu),o=gt((.0193339*t+.119192*n+.9503041*e)/Gu);return ft(116*i-16,500*(r-i),200*(i-o))}function kt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function St(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}function Et(t){return"function"==typeof t?t:function(){return t}}function Nt(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Ct(n,e,t,r)}}function Ct(t,n,e,r){function i(){var t,n=s.status;if(!n&&At(s)||n>=200&&300>n||304===n){try{t=e.call(o,s)}catch(r){return void u.error.call(o,r)}u.load.call(o,t)}else u.error.call(o,s)}var o={},u=eu.dispatch("beforesend","progress","load","error"),a={},s=new XMLHttpRequest,l=null;return!this.XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=i:s.onreadystatechange=function(){s.readyState>3&&i()},s.onprogress=function(t){var n=eu.event;eu.event=t;try{u.progress.call(o,s)}finally{eu.event=n}},o.header=function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?a[t]:(null==n?delete a[t]:a[t]=n+"",o)},o.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",o):n},o.responseType=function(t){return arguments.length?(l=t,o):l},o.response=function(t){return e=t,o},["get","post"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(iu(arguments)))}}),o.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),s.open(e,t,!0),null==n||"accept"in a||(a.accept=n+",*/*"),s.setRequestHeader)for(var c in a)s.setRequestHeader(c,a[c]);return null!=n&&s.overrideMimeType&&s.overrideMimeType(n),null!=l&&(s.responseType=l),null!=i&&o.on("error",i).on("load",function(t){i(null,t)}),u.beforesend.call(o,s),s.send(null==r?null:r),o},o.abort=function(){return s.abort(),o},eu.rebind(o,u,"on"),null==r?o:o.get(Tt(r))}function Tt(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}function At(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function jt(){var t=Lt(),n=qt()-t;n>24?(isFinite(n)&&(clearTimeout(ea),ea=setTimeout(jt,n)),na=0):(na=1,ia(jt))}function Lt(){var t=Date.now();for(ra=Qu;ra;)t>=ra.t&&(ra.f=ra.c(t-ra.t)),ra=ra.n;return t}function qt(){for(var t,n=Qu,e=1/0;n;)n.f?n=t?t.n=n.n:Qu=n.n:(n.t<e&&(e=n.t),n=(t=n).n);return ta=t,e}function Dt(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Rt(t,n){var e=Math.pow(10,3*du(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}}function Ht(t){var n=t.decimal,e=t.thousands,r=t.grouping,i=t.currency,o=r&&e?function(t,n){for(var i=t.length,o=[],u=0,a=r[0],s=0;i>0&&a>0&&(s+a+1>n&&(a=Math.max(1,n-s)),o.push(t.substring(i-=a,i+a)),!((s+=a+1)>n));)a=r[u=(u+1)%r.length];return o.reverse().join(e)}:m;return function(t){var e=ua.exec(t),r=e[1]||" ",u=e[2]||">",a=e[3]||"-",s=e[4]||"",l=e[5],c=+e[6],f=e[7],h=e[8],p=e[9],d=1,g="",v="",y=!1,m=!0;switch(h&&(h=+h.substring(1)),(l||"0"===r&&"="===u)&&(l=r="0",u="="),p){case"n":f=!0,p="g";break;case"%":d=100,v="%",p="f";break;case"p":d=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===s&&(g="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,h=0;break;case"s":d=-1,p="r"}"$"===s&&(g=i[0],v=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=aa.get(p)||Pt;var x=l&&f;return function(t){var e=v;if(y&&t%1)return"";var i=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===a?"":a;if(0>d){var s=eu.formatPrefix(t,h);t=s.scale(t),e=s.symbol+v}else t*=d;t=p(t,h);var b,w,M=t.lastIndexOf(".");if(0>M){var _=m?t.lastIndexOf("e"):-1;0>_?(b=t,w=""):(b=t.substring(0,_),w=t.substring(_))}else b=t.substring(0,M),w=n+t.substring(M+1);!l&&f&&(b=o(b,1/0));var k=g.length+b.length+w.length+(x?0:i.length),S=c>k?new Array(k=c-k+1).join(r):"";return x&&(b=o(S+b,S.length?c-w.length:1/0)),i+=g,t=b+w,("<"===u?i+t+S:">"===u?S+i+t:"^"===u?S.substring(0,k>>=1)+i+t+S.substring(k):i+(x?t:S+t))+e}}}function Pt(t){return t+""}function Ot(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function zt(t,n,e){function r(n){var e=t(n),r=o(e,1);return r-n>n-e?e:r}function i(e){return n(e=t(new la(e-1)),1),e}function o(t,e){return n(t=new la(+t),e),t}function u(t,r,o){var u=i(t),a=[];if(o>1)for(;r>u;)e(u)%o||a.push(new Date(+u)),n(u,1);else for(;r>u;)a.push(new Date(+u)),n(u,1);return a}function a(t,n,e){try{la=Ot;var r=new Ot;return r._=t,u(r,n,e)}finally{la=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=u;var s=t.utc=Ft(t);return s.floor=s,s.round=Ft(r),s.ceil=Ft(i),s.offset=Ft(o),s.range=a,t}function Ft(t){return function(n,e){try{la=Ot;var r=new Ot;return r._=n,t(r,e)._}finally{la=Date}}}function It(t){function n(t){function n(n){for(var e,i,o,u=[],a=-1,s=0;++a<r;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(i=fa[e=t.charAt(++a)])&&(e=t.charAt(++a)),(o=C[e])&&(e=o(n,null==i?"e"===e?" ":"0":i)),u.push(e),s=a+1);return u.push(t.slice(s,a)),u.join("")}var r=t.length;return n.parse=function(n){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=e(r,t,n,0);if(i!=n.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var o=null!=r.Z&&la!==Ot,u=new(o?Ot:la);return"j"in r?u.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(u.setFullYear(r.y,0,1),u.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(u.getDay()+5)%7:r.w+7*r.U-(u.getDay()+6)%7)):u.setFullYear(r.y,r.m,r.d),u.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),o?u._:u},n.toString=function(){return t},n}function e(t,n,e,r){for(var i,o,u,a=0,s=n.length,l=e.length;s>a;){if(r>=l)return-1;if(i=n.charCodeAt(a++),37===i){if(u=n.charAt(a++),o=T[u in fa?n.charAt(a++):u],!o||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function r(t,n,e){M.lastIndex=0;var r=M.exec(n.slice(e));return r?(t.w=_.get(r[0].toLowerCase()),e+r[0].length):-1}function i(t,n,e){b.lastIndex=0;var r=b.exec(n.slice(e));return r?(t.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function o(t,n,e){E.lastIndex=0;var r=E.exec(n.slice(e));return r?(t.m=N.get(r[0].toLowerCase()),e+r[0].length):-1}function u(t,n,e){k.lastIndex=0;var r=k.exec(n.slice(e));return r?(t.m=S.get(r[0].toLowerCase()),e+r[0].length):-1}function a(t,n,r){return e(t,C.c.toString(),n,r)}function s(t,n,r){return e(t,C.x.toString(),n,r)}function l(t,n,r){return e(t,C.X.toString(),n,r)}function c(t,n,e){var r=x.get(n.slice(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)}var f=t.dateTime,h=t.date,p=t.time,d=t.periods,g=t.days,v=t.shortDays,y=t.months,m=t.shortMonths;n.utc=function(t){function e(t){try{la=Ot;var n=new la;return n._=t,r(n)}finally{la=Date}}var r=n(t);return e.parse=function(t){try{la=Ot;var n=r.parse(t);return n&&n._}finally{la=Date}},e.toString=r.toString,e},n.multi=n.utc.multi=sn;var x=eu.map(),b=$t(g),w=Ut(g),M=$t(v),_=Ut(v),k=$t(y),S=Ut(y),E=$t(m),N=Ut(m);d.forEach(function(t,n){x.set(t.toLowerCase(),n)});var C={a:function(t){return v[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return m[t.getMonth()]},B:function(t){return y[t.getMonth()]},c:n(f),d:function(t,n){return Wt(t.getDate(),n,2)},e:function(t,n){return Wt(t.getDate(),n,2)},H:function(t,n){return Wt(t.getHours(),n,2)},I:function(t,n){return Wt(t.getHours()%12||12,n,2)},j:function(t,n){return Wt(1+sa.dayOfYear(t),n,3)},L:function(t,n){return Wt(t.getMilliseconds(),n,3)},m:function(t,n){return Wt(t.getMonth()+1,n,2)},M:function(t,n){return Wt(t.getMinutes(),n,2)},p:function(t){return d[+(t.getHours()>=12)]},S:function(t,n){return Wt(t.getSeconds(),n,2)},U:function(t,n){return Wt(sa.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return Wt(sa.mondayOfYear(t),n,2)},x:n(h),X:n(p),y:function(t,n){return Wt(t.getFullYear()%100,n,2)},Y:function(t,n){return Wt(t.getFullYear()%1e4,n,4)},Z:un,"%":function(){return"%"}},T={a:r,A:i,b:o,B:u,c:a,d:Qt,e:Qt,H:nn,I:nn,j:tn,L:on,m:Kt,M:en,p:c,S:rn,U:Yt,w:Bt,W:Xt,x:s,X:l,y:Gt,Y:Vt,Z:Zt,"%":an};return n}function Wt(t,n,e){var r=0>t?"-":"",i=(r?-t:t)+"",o=i.length;return r+(e>o?new Array(e-o+1).join(n)+i:i)}function $t(t){return new RegExp("^(?:"+t.map(eu.requote).join("|")+")","i")}function Ut(t){for(var n=new l,e=-1,r=t.length;++e<r;)n.set(t[e].toLowerCase(),e);return n}function Bt(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Yt(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function Xt(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function Vt(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Gt(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+2));return r?(t.y=Jt(+r[0]),e+r[0].length):-1}function Zt(t,n,e){return/^[+-]\d{4}$/.test(n=n.slice(e,e+5))?(t.Z=-n,e+5):-1}function Jt(t){return t+(t>68?1900:2e3)}function Kt(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Qt(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function tn(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+3));return r?(t.j=+r[0],e+r[0].length):-1}function nn(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function en(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function rn(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function on(t,n,e){ha.lastIndex=0;var r=ha.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function un(t){var n=t.getTimezoneOffset(),e=n>0?"-":"+",r=du(n)/60|0,i=du(n)%60;return e+Wt(r,"0",2)+Wt(i,"0",2)}function an(t,n,e){pa.lastIndex=0;var r=pa.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function sn(t){for(var n=t.length,e=-1;++e<n;)t[e][0]=this(t[e][0]);return function(n){for(var e=0,r=t[e];!r[1](n);)r=t[++e];return r[0](n)}}function ln(){}function cn(t,n,e){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}function fn(t,n){t&&ya.hasOwnProperty(t.type)&&ya[t.type](t,n)}function hn(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function pn(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)hn(t[e],n,1);n.polygonEnd()}function dn(){function t(t,n){t*=Hu,n=n*Hu/2+Lu/4;var e=t-r,u=e>=0?1:-1,a=u*e,s=Math.cos(n),l=Math.sin(n),c=o*l,f=i*s+c*Math.cos(a),h=c*u*Math.sin(a);xa.add(Math.atan2(h,f)),r=t,i=s,o=l}var n,e,r,i,o;ba.point=function(u,a){ba.point=t,r=(n=u)*Hu,i=Math.cos(a=(e=a)*Hu/2+Lu/4),o=Math.sin(a)},ba.lineEnd=function(){t(n,e)}}function gn(t){var n=t[0],e=t[1],r=Math.cos(e);return[r*Math.cos(n),r*Math.sin(n),Math.sin(e)]}function vn(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function yn(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function mn(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function xn(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function bn(t){var n=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function wn(t){return[Math.atan2(t[1],t[0]),nt(t[2])]}function Mn(t,n){return du(t[0]-n[0])<Au&&du(t[1]-n[1])<Au}function _n(t,n){t*=Hu;var e=Math.cos(n*=Hu);kn(e*Math.cos(t),e*Math.sin(t),Math.sin(n))}function kn(t,n,e){++wa,_a+=(t-_a)/wa,ka+=(n-ka)/wa,Sa+=(e-Sa)/wa}function Sn(){function t(t,i){t*=Hu;var o=Math.cos(i*=Hu),u=o*Math.cos(t),a=o*Math.sin(t),s=Math.sin(i),l=Math.atan2(Math.sqrt((l=e*s-r*a)*l+(l=r*u-n*s)*l+(l=n*a-e*u)*l),n*u+e*a+r*s);Ma+=l,Ea+=l*(n+(n=u)),Na+=l*(e+(e=a)),Ca+=l*(r+(r=s)),kn(n,e,r)}var n,e,r;La.point=function(i,o){i*=Hu;var u=Math.cos(o*=Hu);n=u*Math.cos(i),e=u*Math.sin(i),r=Math.sin(o),La.point=t,kn(n,e,r)}}function En(){La.point=_n}function Nn(){function t(t,n){t*=Hu;var e=Math.cos(n*=Hu),u=e*Math.cos(t),a=e*Math.sin(t),s=Math.sin(n),l=i*s-o*a,c=o*u-r*s,f=r*a-i*u,h=Math.sqrt(l*l+c*c+f*f),p=r*u+i*a+o*s,d=h&&-tt(p)/h,g=Math.atan2(h,p);Ta+=d*l,Aa+=d*c,ja+=d*f,Ma+=g,Ea+=g*(r+(r=u)),Na+=g*(i+(i=a)),Ca+=g*(o+(o=s)),kn(r,i,o)}var n,e,r,i,o;La.point=function(u,a){n=u,e=a,La.point=t,u*=Hu;var s=Math.cos(a*=Hu);r=s*Math.cos(u),i=s*Math.sin(u),o=Math.sin(a),kn(r,i,o)},La.lineEnd=function(){t(n,e),La.lineEnd=En,La.point=_n}}function Cn(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return e=n.invert(e,r),e&&t.invert(e[0],e[1])}),e}function Tn(){return!0}function An(t,n,e,r,i){var o=[],u=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e=t[0],r=t[n];if(Mn(e,r)){i.lineStart();for(var a=0;n>a;++a)i.point((e=t[a])[0],e[1]);return void i.lineEnd()}var s=new Ln(e,t,null,!0),l=new Ln(e,null,s,!1);s.o=l,o.push(s),u.push(l),s=new Ln(r,t,null,!1),l=new Ln(r,null,s,!0),s.o=l,o.push(s),u.push(l)}}),u.sort(n),jn(o),jn(u),o.length){for(var a=0,s=e,l=u.length;l>a;++a)u[a].e=s=!s;for(var c,f,h=o[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;c=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(var a=0,l=c.length;l>a;++a)i.point((f=c[a])[0],f[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(d){c=p.p.z;for(var a=c.length-1;a>=0;--a)i.point((f=c[a])[0],f[1])}else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,c=p.z,d=!d}while(!p.v);i.lineEnd()}}}function jn(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function Ln(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function qn(t,n,e,r){return function(i,o){function u(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&o.point(n,e)}function a(t,n){var e=i(t,n);v.point(e[0],e[1])}function s(){m.point=a,v.lineStart()}function l(){m.point=u,v.lineEnd()}function c(t,n){g.push([t,n]);var e=i(t,n);b.point(e[0],e[1])}function f(){b.lineStart(),g=[]}function h(){c(g[0][0],g[0][1]),b.lineEnd();var t,n=b.clean(),e=x.buffer(),r=e.length;if(g.pop(),d.push(g),g=null,r)if(1&n){t=e[0];var i,r=t.length-1,u=-1;if(r>0){for(w||(o.polygonStart(),w=!0),o.lineStart();++u<r;)o.point((i=t[u])[0],i[1]);o.lineEnd()}}else r>1&&2&n&&e.push(e.pop().concat(e.shift())),p.push(e.filter(Dn))}var p,d,g,v=n(o),y=i.invert(r[0],r[1]),m={point:u,lineStart:s,lineEnd:l,polygonStart:function(){m.point=c,m.lineStart=f,m.lineEnd=h,p=[],d=[]},polygonEnd:function(){m.point=u,m.lineStart=s,m.lineEnd=l,p=eu.merge(p);var t=Fn(y,d);p.length?(w||(o.polygonStart(),w=!0),An(p,Hn,t,e,o)):t&&(w||(o.polygonStart(),w=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),w&&(o.polygonEnd(),w=!1),p=d=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}},x=Rn(),b=n(x),w=!1;return m}}function Dn(t){return t.length>1}function Rn(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,e){t.push([n,e])},lineEnd:w,buffer:function(){var e=n;return n=[],t=null,e},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function Hn(t,n){return((t=t.x)[0]<0?t[1]-Ru-Au:Ru-t[1])-((n=n.x)[0]<0?n[1]-Ru-Au:Ru-n[1])}function Pn(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?Lu:-Lu,s=du(o-e);du(s-Lu)<Au?(t.point(e,r=(r+u)/2>0?Ru:-Ru),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&s>=Lu&&(du(e-i)<Au&&(e-=i*Au),du(o-a)<Au&&(o-=a*Au),r=On(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}function On(t,n,e,r){var i,o,u=Math.sin(t-e);return du(u)>Au?Math.atan((Math.sin(n)*(o=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(n))*Math.sin(t))/(i*o*u)):(n+r)/2}function zn(t,n,e,r){var i;if(null==t)i=e*Ru,r.point(-Lu,i),r.point(0,i),r.point(Lu,i),r.point(Lu,0),r.point(Lu,-i),r.point(0,-i),r.point(-Lu,-i),r.point(-Lu,0),r.point(-Lu,i);else if(du(t[0]-n[0])>Au){var o=t[0]<n[0]?Lu:-Lu;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}function Fn(t,n){var e=t[0],r=t[1],i=[Math.sin(e),-Math.cos(e),0],o=0,u=0;xa.reset();for(var a=0,s=n.length;s>a;++a){var l=n[a],c=l.length;if(c)for(var f=l[0],h=f[0],p=f[1]/2+Lu/4,d=Math.sin(p),g=Math.cos(p),v=1;;){v===c&&(v=0),t=l[v];var y=t[0],m=t[1]/2+Lu/4,x=Math.sin(m),b=Math.cos(m),w=y-h,M=w>=0?1:-1,_=M*w,k=_>Lu,S=d*x;if(xa.add(Math.atan2(S*M*Math.sin(_),g*b+S*Math.cos(_))),o+=k?w+M*qu:w,k^h>=e^y>=e){var E=yn(gn(f),gn(t));bn(E);var N=yn(i,E);bn(N);var C=(k^w>=0?-1:1)*nt(N[2]);(r>C||r===C&&(E[0]||E[1]))&&(u+=k^w>=0?1:-1)}if(!v++)break;h=y,d=x,g=b,f=t}}return(-Au>o||Au>o&&0>xa)^1&u}function In(t){function n(t,n){return Math.cos(t)*Math.cos(n)>o}function e(t){var e,o,s,l,c;return{lineStart:function(){l=s=!1,c=1},point:function(f,h){var p,d=[f,h],g=n(f,h),v=u?g?0:i(f,h):g?i(f+(0>f?Lu:-Lu),h):0;if(!e&&(l=s=g)&&t.lineStart(),g!==s&&(p=r(e,d),(Mn(e,p)||Mn(d,p))&&(d[0]+=Au,d[1]+=Au,g=n(d[0],d[1]))),g!==s)c=0,g?(t.lineStart(),p=r(d,e),t.point(p[0],p[1])):(p=r(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(a&&e&&u^g){var y;v&o||!(y=r(d,e,!0))||(c=0,u?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||e&&Mn(e,d)||t.point(d[0],d[1]),e=d,s=g,o=v},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return c|(l&&s)<<1}}}function r(t,n,e){var r=gn(t),i=gn(n),u=[1,0,0],a=yn(r,i),s=vn(a,a),l=a[0],c=s-l*l;if(!c)return!e&&t;var f=o*s/c,h=-o*l/c,p=yn(u,a),d=xn(u,f),g=xn(a,h);mn(d,g);var v=p,y=vn(d,v),m=vn(v,v),x=y*y-m*(vn(d,d)-1);if(!(0>x)){var b=Math.sqrt(x),w=xn(v,(-y-b)/m);if(mn(w,d),w=wn(w),!e)return w;var M,_=t[0],k=n[0],S=t[1],E=n[1];_>k&&(M=_,_=k,k=M);var N=k-_,C=du(N-Lu)<Au,T=C||Au>N;if(!C&&S>E&&(M=S,S=E,E=M),T?C?S+E>0^w[1]<(du(w[0]-_)<Au?S:E):S<=w[1]&&w[1]<=E:N>Lu^(_<=w[0]&&w[0]<=k)){var A=xn(v,(-y+b)/m);return mn(A,d),[w,wn(A)]}}}function i(n,e){var r=u?t:Lu-t,i=0;return-r>n?i|=1:n>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var o=Math.cos(t),u=o>0,a=du(o)>Au,s=de(t,6*Hu);return qn(n,e,s,u?[0,-t]:[-Lu,t-Lu])}function Wn(t,n,e,r){return function(i){var o,u=i.a,a=i.b,s=u.x,l=u.y,c=a.x,f=a.y,h=0,p=1,d=c-s,g=f-l;if(o=t-s,d||!(o>0)){if(o/=d,0>d){if(h>o)return;p>o&&(p=o)}else if(d>0){if(o>p)return;o>h&&(h=o)}if(o=e-s,d||!(0>o)){if(o/=d,0>d){if(o>p)return;o>h&&(h=o)}else if(d>0){if(h>o)return;p>o&&(p=o)}if(o=n-l,g||!(o>0)){if(o/=g,0>g){if(h>o)return;p>o&&(p=o)}else if(g>0){if(o>p)return;o>h&&(h=o)}if(o=r-l,g||!(0>o)){if(o/=g,0>g){if(o>p)return;o>h&&(h=o)}else if(g>0){if(h>o)return;p>o&&(p=o)}return h>0&&(i.a={x:s+h*d,y:l+h*g}),1>p&&(i.b={x:s+p*d,y:l+p*g}),i}}}}}}function $n(t,n,e,r){function i(r,i){return du(r[0]-t)<Au?i>0?0:3:du(r[0]-e)<Au?i>0?2:1:du(r[1]-n)<Au?i>0?1:0:i>0?3:2}function o(t,n){return u(t.x,n.x)}function u(t,n){var e=i(t,1),r=i(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){function s(t){for(var n=0,e=v.length,r=t[1],i=0;e>i;++i)for(var o,u=1,a=v[i],s=a.length,l=a[0];s>u;++u)o=a[u],l[1]<=r?o[1]>r&&Q(l,o,t)>0&&++n:o[1]<=r&&Q(l,o,t)<0&&--n,l=o;return 0!==n}function l(o,a,s,l){var c=0,f=0;if(null==o||(c=i(o,s))!==(f=i(a,s))||u(o,a)<0^s>0){do l.point(0===c||3===c?t:e,c>1?r:n);while((c=(c+s+4)%4)!==f)}else l.point(a[0],a[1])}function c(i,o){return i>=t&&e>=i&&o>=n&&r>=o}function f(t,n){c(t,n)&&a.point(t,n)}function h(){T.point=d,v&&v.push(y=[]),k=!0,_=!1,w=M=NaN}function p(){g&&(d(m,x),b&&_&&N.rejoin(),g.push(N.buffer())),T.point=f,_&&a.lineEnd()}function d(t,n){t=Math.max(-Da,Math.min(Da,t)),n=Math.max(-Da,Math.min(Da,n));var e=c(t,n);if(v&&y.push([t,n]),k)m=t,x=n,b=e,k=!1,e&&(a.lineStart(),a.point(t,n));else if(e&&_)a.point(t,n);else{var r={a:{x:w,y:M},b:{x:t,y:n}};C(r)?(_||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),S=!1):e&&(a.lineStart(),a.point(t,n),S=!1)}w=t,M=n,_=e}var g,v,y,m,x,b,w,M,_,k,S,E=a,N=Rn(),C=Wn(t,n,e,r),T={point:f,lineStart:h,lineEnd:p,polygonStart:function(){a=N,g=[],v=[],S=!0},polygonEnd:function(){a=E,g=eu.merge(g);var n=s([t,r]),e=S&&n,i=g.length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),l(null,null,1,a),a.lineEnd()),i&&An(g,o,n,l,a),a.polygonEnd()),g=v=y=null}};return T}}function Un(t){var n=0,e=Lu/3,r=ue(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Lu/180,e=t[1]*Lu/180):[n/Lu*180,e/Lu*180]},i}function Bn(t,n){function e(t,n){var e=Math.sqrt(o-2*i*Math.sin(n))/i;return[e*Math.sin(t*=i),u-e*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(n))/2,o=1+r*(2*i-r),u=Math.sqrt(o)/i;return e.invert=function(t,n){var e=u-n;return[Math.atan2(t,e)/i,nt((o-(t*t+e*e)*i*i)/(2*i))]},e}function Yn(){function t(t,n){Ha+=i*t-r*n,r=t,i=n}var n,e,r,i;Ia.point=function(o,u){Ia.point=t,n=r=o,e=i=u},Ia.lineEnd=function(){t(n,e)}}function Xn(t,n){Pa>t&&(Pa=t),t>za&&(za=t),Oa>n&&(Oa=n),n>Fa&&(Fa=n)}function Vn(){function t(t,n){u.push("M",t,",",n,o)}function n(t,n){u.push("M",t,",",n),a.point=e}function e(t,n){u.push("L",t,",",n)}function r(){a.point=t}function i(){u.push("Z")}var o=Gn(4.5),u=[],a={point:t,lineStart:function(){a.point=n},lineEnd:r,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=r,a.point=t},pointRadius:function(t){return o=Gn(t),a},result:function(){if(u.length){var t=u.join("");return u=[],t}}};return a}function Gn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Zn(t,n){_a+=t,ka+=n,++Sa}function Jn(){function t(t,r){var i=t-n,o=r-e,u=Math.sqrt(i*i+o*o);Ea+=u*(n+t)/2,Na+=u*(e+r)/2,Ca+=u,Zn(n=t,e=r)}var n,e;$a.point=function(r,i){$a.point=t,Zn(n=r,e=i)}}function Kn(){$a.point=Zn}function Qn(){function t(t,n){var e=t-r,o=n-i,u=Math.sqrt(e*e+o*o);Ea+=u*(r+t)/2,Na+=u*(i+n)/2,Ca+=u,u=i*t-r*n,Ta+=u*(r+t),Aa+=u*(i+n),ja+=3*u,Zn(r=t,i=n)}var n,e,r,i;$a.point=function(o,u){$a.point=t,Zn(n=r=o,e=i=u)},$a.lineEnd=function(){t(n,e)}}function te(t){function n(n,e){t.moveTo(n+u,e),t.arc(n,e,u,0,qu)}function e(n,e){t.moveTo(n,e),a.point=r}function r(n,e){t.lineTo(n,e)}function i(){a.point=n}function o(){t.closePath()}var u=4.5,a={point:n,lineStart:function(){a.point=e},lineEnd:i,polygonStart:function(){a.lineEnd=o},polygonEnd:function(){a.lineEnd=i,a.point=n},pointRadius:function(t){return u=t,a},result:w};return a}function ne(t){function n(t){return(a?r:e)(t)}function e(n){return ie(n,function(e,r){e=t(e,r),n.point(e[0],e[1])})}function r(n){function e(e,r){e=t(e,r),n.point(e[0],e[1])}function r(){x=NaN,k.point=o,n.lineStart()}function o(e,r){var o=gn([e,r]),u=t(e,r);i(x,b,m,w,M,_,x=u[0],b=u[1],m=e,w=o[0],M=o[1],_=o[2],a,n),n.point(x,b)}function u(){k.point=e,n.lineEnd()}function s(){r(),k.point=l,k.lineEnd=c}function l(t,n){o(f=t,h=n),p=x,d=b,g=w,v=M,y=_,k.point=o}function c(){i(x,b,m,w,M,_,p,d,f,g,v,y,a,n),k.lineEnd=u,u()}var f,h,p,d,g,v,y,m,x,b,w,M,_,k={point:e,lineStart:r,lineEnd:u,polygonStart:function(){
n.polygonStart(),k.lineStart=s},polygonEnd:function(){n.polygonEnd(),k.lineStart=r}};return k}function i(n,e,r,a,s,l,c,f,h,p,d,g,v,y){var m=c-n,x=f-e,b=m*m+x*x;if(b>4*o&&v--){var w=a+p,M=s+d,_=l+g,k=Math.sqrt(w*w+M*M+_*_),S=Math.asin(_/=k),E=du(du(_)-1)<Au||du(r-h)<Au?(r+h)/2:Math.atan2(M,w),N=t(E,S),C=N[0],T=N[1],A=C-n,j=T-e,L=x*A-m*j;(L*L/b>o||du((m*A+x*j)/b-.5)>.3||u>a*p+s*d+l*g)&&(i(n,e,r,a,s,l,C,T,E,w/=k,M/=k,_,v,y),y.point(C,T),i(C,T,E,w,M,_,c,f,h,p,d,g,v,y))}}var o=.5,u=Math.cos(30*Hu),a=16;return n.precision=function(t){return arguments.length?(a=(o=t*t)>0&&16,n):Math.sqrt(o)},n}function ee(t){var n=ne(function(n,e){return t([n*Pu,e*Pu])});return function(t){return ae(n(t))}}function re(t){this.stream=t}function ie(t,n){return{point:n,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function oe(t){return ue(function(){return t})()}function ue(t){function n(t){return t=a(t[0]*Hu,t[1]*Hu),[t[0]*h+s,l-t[1]*h]}function e(t){return t=a.invert((t[0]-s)/h,(l-t[1])/h),t&&[t[0]*Pu,t[1]*Pu]}function r(){a=Cn(u=ce(y,x,b),o);var t=o(g,v);return s=p-t[0]*h,l=d+t[1]*h,i()}function i(){return c&&(c.valid=!1,c=null),n}var o,u,a,s,l,c,f=ne(function(t,n){return t=o(t,n),[t[0]*h+s,l-t[1]*h]}),h=150,p=480,d=250,g=0,v=0,y=0,x=0,b=0,w=qa,M=m,_=null,k=null;return n.stream=function(t){return c&&(c.valid=!1),c=ae(w(u,f(M(t)))),c.valid=!0,c},n.clipAngle=function(t){return arguments.length?(w=null==t?(_=t,qa):In((_=+t)*Hu),i()):_},n.clipExtent=function(t){return arguments.length?(k=t,M=t?$n(t[0][0],t[0][1],t[1][0],t[1][1]):m,i()):k},n.scale=function(t){return arguments.length?(h=+t,r()):h},n.translate=function(t){return arguments.length?(p=+t[0],d=+t[1],r()):[p,d]},n.center=function(t){return arguments.length?(g=t[0]%360*Hu,v=t[1]%360*Hu,r()):[g*Pu,v*Pu]},n.rotate=function(t){return arguments.length?(y=t[0]%360*Hu,x=t[1]%360*Hu,b=t.length>2?t[2]%360*Hu:0,r()):[y*Pu,x*Pu,b*Pu]},eu.rebind(n,f,"precision"),function(){return o=t.apply(this,arguments),n.invert=o.invert&&e,r()}}function ae(t){return ie(t,function(n,e){t.point(n*Hu,e*Hu)})}function se(t,n){return[t,n]}function le(t,n){return[t>Lu?t-qu:-Lu>t?t+qu:t,n]}function ce(t,n,e){return t?n||e?Cn(he(t),pe(n,e)):he(t):n||e?pe(n,e):le}function fe(t){return function(n,e){return n+=t,[n>Lu?n-qu:-Lu>n?n+qu:n,e]}}function he(t){var n=fe(t);return n.invert=fe(-t),n}function pe(t,n){function e(t,n){var e=Math.cos(n),a=Math.cos(t)*e,s=Math.sin(t)*e,l=Math.sin(n),c=l*r+a*i;return[Math.atan2(s*o-c*u,a*r-l*i),nt(c*o+s*u)]}var r=Math.cos(t),i=Math.sin(t),o=Math.cos(n),u=Math.sin(n);return e.invert=function(t,n){var e=Math.cos(n),a=Math.cos(t)*e,s=Math.sin(t)*e,l=Math.sin(n),c=l*o-s*u;return[Math.atan2(s*o+l*u,a*r+c*i),nt(c*r-a*i)]},e}function de(t,n){var e=Math.cos(t),r=Math.sin(t);return function(i,o,u,a){var s=u*n;null!=i?(i=ge(e,i),o=ge(e,o),(u>0?o>i:i>o)&&(i+=u*qu)):(i=t+u*qu,o=t-.5*s);for(var l,c=i;u>0?c>o:o>c;c-=s)a.point((l=wn([e,-r*Math.cos(c),-r*Math.sin(c)]))[0],l[1])}}function ge(t,n){var e=gn(n);e[0]-=t,bn(e);var r=tt(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Au)%(2*Math.PI)}function ve(t,n,e){var r=eu.range(t,n-Au,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function ye(t,n,e){var r=eu.range(t,n-Au,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function me(t){return t.source}function xe(t){return t.target}function be(t,n,e,r){var i=Math.cos(n),o=Math.sin(n),u=Math.cos(r),a=Math.sin(r),s=i*Math.cos(t),l=i*Math.sin(t),c=u*Math.cos(e),f=u*Math.sin(e),h=2*Math.asin(Math.sqrt(ot(r-n)+i*u*ot(e-t))),p=1/Math.sin(h),d=h?function(t){var n=Math.sin(t*=h)*p,e=Math.sin(h-t)*p,r=e*s+n*c,i=e*l+n*f,u=e*o+n*a;return[Math.atan2(i,r)*Pu,Math.atan2(u,Math.sqrt(r*r+i*i))*Pu]}:function(){return[t*Pu,n*Pu]};return d.distance=h,d}function we(){function t(t,i){var o=Math.sin(i*=Hu),u=Math.cos(i),a=du((t*=Hu)-n),s=Math.cos(a);Ua+=Math.atan2(Math.sqrt((a=u*Math.sin(a))*a+(a=r*o-e*u*s)*a),e*o+r*u*s),n=t,e=o,r=u}var n,e,r;Ba.point=function(i,o){n=i*Hu,e=Math.sin(o*=Hu),r=Math.cos(o),Ba.point=t},Ba.lineEnd=function(){Ba.point=Ba.lineEnd=w}}function Me(t,n){function e(n,e){var r=Math.cos(n),i=Math.cos(e),o=t(r*i);return[o*i*Math.sin(n),o*Math.sin(e)]}return e.invert=function(t,e){var r=Math.sqrt(t*t+e*e),i=n(r),o=Math.sin(i),u=Math.cos(i);return[Math.atan2(t*o,r*u),Math.asin(r&&e*o/r)]},e}function _e(t,n){function e(t,n){u>0?-Ru+Au>n&&(n=-Ru+Au):n>Ru-Au&&(n=Ru-Au);var e=u/Math.pow(i(n),o);return[e*Math.sin(o*t),u-e*Math.cos(o*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Lu/4+t/2)},o=t===n?Math.sin(t):Math.log(r/Math.cos(n))/Math.log(i(n)/i(t)),u=r*Math.pow(i(t),o)/o;return o?(e.invert=function(t,n){var e=u-n,r=K(o)*Math.sqrt(t*t+e*e);return[Math.atan2(t,e)/o,2*Math.atan(Math.pow(u/r,1/o))-Ru]},e):Se}function ke(t,n){function e(t,n){var e=o-n;return[e*Math.sin(i*t),o-e*Math.cos(i*t)]}var r=Math.cos(t),i=t===n?Math.sin(t):(r-Math.cos(n))/(n-t),o=r/i+t;return du(i)<Au?se:(e.invert=function(t,n){var e=o-n;return[Math.atan2(t,e)/i,o-K(i)*Math.sqrt(t*t+e*e)]},e)}function Se(t,n){return[t,Math.log(Math.tan(Lu/4+n/2))]}function Ee(t){var n,e=oe(t),r=e.scale,i=e.translate,o=e.clipExtent;return e.scale=function(){var t=r.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.translate=function(){var t=i.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.clipExtent=function(t){var u=o.apply(e,arguments);if(u===e){if(n=null==t){var a=Lu*r(),s=i();o([[s[0]-a,s[1]-a],[s[0]+a,s[1]+a]])}}else n&&(u=null);return u},e.clipExtent(null)}function Ne(t,n){return[Math.log(Math.tan(Lu/4+n/2)),-t]}function Ce(t){return t[0]}function Te(t){return t[1]}function Ae(t){for(var n=t.length,e=[0,1],r=2,i=2;n>i;i++){for(;r>1&&Q(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function je(t,n){return t[0]-n[0]||t[1]-n[1]}function Le(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function qe(t,n,e,r){var i=t[0],o=e[0],u=n[0]-i,a=r[0]-o,s=t[1],l=e[1],c=n[1]-s,f=r[1]-l,h=(a*(s-l)-f*(i-o))/(f*u-a*c);return[i+h*u,s+h*c]}function De(t){var n=t[0],e=t[t.length-1];return!(n[0]-e[0]||n[1]-e[1])}function Re(){er(this),this.edge=this.site=this.circle=null}function He(t){var n=rs.pop()||new Re;return n.site=t,n}function Pe(t){Xe(t),ts.remove(t),rs.push(t),er(t)}function Oe(t){var n=t.circle,e=n.x,r=n.cy,i={x:e,y:r},o=t.P,u=t.N,a=[t];Pe(t);for(var s=o;s.circle&&du(e-s.circle.x)<Au&&du(r-s.circle.cy)<Au;)o=s.P,a.unshift(s),Pe(s),s=o;a.unshift(s),Xe(s);for(var l=u;l.circle&&du(e-l.circle.x)<Au&&du(r-l.circle.cy)<Au;)u=l.N,a.push(l),Pe(l),l=u;a.push(l),Xe(l);var c,f=a.length;for(c=1;f>c;++c)l=a[c],s=a[c-1],Qe(l.edge,s.site,l.site,i);s=a[0],l=a[f-1],l.edge=Je(s.site,l.site,null,i),Ye(s),Ye(l)}function ze(t){for(var n,e,r,i,o=t.x,u=t.y,a=ts._;a;)if(r=Fe(a,u)-o,r>Au)a=a.L;else{if(i=o-Ie(a,u),!(i>Au)){r>-Au?(n=a.P,e=a):i>-Au?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}var s=He(t);if(ts.insert(n,s),n||e){if(n===e)return Xe(n),e=He(n.site),ts.insert(s,e),s.edge=e.edge=Je(n.site,s.site),Ye(n),void Ye(e);if(!e)return void(s.edge=Je(n.site,s.site));Xe(n),Xe(e);var l=n.site,c=l.x,f=l.y,h=t.x-c,p=t.y-f,d=e.site,g=d.x-c,v=d.y-f,y=2*(h*v-p*g),m=h*h+p*p,x=g*g+v*v,b={x:(v*m-p*x)/y+c,y:(h*x-g*m)/y+f};Qe(e.edge,l,d,b),s.edge=Je(l,t,null,b),e.edge=Je(t,d,null,b),Ye(n),Ye(e)}}function Fe(t,n){var e=t.site,r=e.x,i=e.y,o=i-n;if(!o)return r;var u=t.P;if(!u)return-(1/0);e=u.site;var a=e.x,s=e.y,l=s-n;if(!l)return a;var c=a-r,f=1/o-1/l,h=c/l;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*l)-s+l/2+i-o/2)))/f+r:(r+a)/2}function Ie(t,n){var e=t.N;if(e)return Fe(e,n);var r=t.site;return r.y===n?r.x:1/0}function We(t){this.site=t,this.edges=[]}function $e(t){for(var n,e,r,i,o,u,a,s,l,c,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=Qa,v=g.length;v--;)if(o=g[v],o&&o.prepare())for(a=o.edges,s=a.length,u=0;s>u;)c=a[u].end(),r=c.x,i=c.y,l=a[++u%s].start(),n=l.x,e=l.y,(du(r-n)>Au||du(i-e)>Au)&&(a.splice(u,0,new tr(Ke(o.site,c,du(r-f)<Au&&d-i>Au?{x:f,y:du(n-f)<Au?e:d}:du(i-d)<Au&&h-r>Au?{x:du(e-d)<Au?n:h,y:d}:du(r-h)<Au&&i-p>Au?{x:h,y:du(n-h)<Au?e:p}:du(i-p)<Au&&r-f>Au?{x:du(e-p)<Au?n:f,y:p}:null),o.site,null)),++s)}function Ue(t,n){return n.angle-t.angle}function Be(){er(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ye(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var u=i.x,a=i.y,s=r.x-u,l=r.y-a,c=o.x-u,f=o.y-a,h=2*(s*f-l*c);if(!(h>=-ju)){var p=s*s+l*l,d=c*c+f*f,g=(f*p-l*d)/h,v=(s*d-c*p)/h,f=v+a,y=is.pop()||new Be;y.arc=t,y.site=i,y.x=g+u,y.y=f+Math.sqrt(g*g+v*v),y.cy=f,t.circle=y;for(var m=null,x=es._;x;)if(y.y<x.y||y.y===x.y&&y.x<=x.x){if(!x.L){m=x.P;break}x=x.L}else{if(!x.R){m=x;break}x=x.R}es.insert(m,y),m||(ns=y)}}}}function Xe(t){var n=t.circle;n&&(n.P||(ns=n.N),es.remove(n),is.push(n),er(n),t.circle=null)}function Ve(t){for(var n,e=Ka,r=Wn(t[0][0],t[0][1],t[1][0],t[1][1]),i=e.length;i--;)n=e[i],(!Ge(n,t)||!r(n)||du(n.a.x-n.b.x)<Au&&du(n.a.y-n.b.y)<Au)&&(n.a=n.b=null,e.splice(i,1))}function Ge(t,n){var e=t.b;if(e)return!0;var r,i,o=t.a,u=n[0][0],a=n[1][0],s=n[0][1],l=n[1][1],c=t.l,f=t.r,h=c.x,p=c.y,d=f.x,g=f.y,v=(h+d)/2,y=(p+g)/2;if(g===p){if(u>v||v>=a)return;if(h>d){if(o){if(o.y>=l)return}else o={x:v,y:s};e={x:v,y:l}}else{if(o){if(o.y<s)return}else o={x:v,y:l};e={x:v,y:s}}}else if(r=(h-d)/(g-p),i=y-r*v,-1>r||r>1)if(h>d){if(o){if(o.y>=l)return}else o={x:(s-i)/r,y:s};e={x:(l-i)/r,y:l}}else{if(o){if(o.y<s)return}else o={x:(l-i)/r,y:l};e={x:(s-i)/r,y:s}}else if(g>p){if(o){if(o.x>=a)return}else o={x:u,y:r*u+i};e={x:a,y:r*a+i}}else{if(o){if(o.x<u)return}else o={x:a,y:r*a+i};e={x:u,y:r*u+i}}return t.a=o,t.b=e,!0}function Ze(t,n){this.l=t,this.r=n,this.a=this.b=null}function Je(t,n,e,r){var i=new Ze(t,n);return Ka.push(i),e&&Qe(i,t,n,e),r&&Qe(i,n,t,r),Qa[t.i].edges.push(new tr(i,t,n)),Qa[n.i].edges.push(new tr(i,n,t)),i}function Ke(t,n,e){var r=new Ze(t,null);return r.a=n,r.b=e,Ka.push(r),r}function Qe(t,n,e,r){t.a||t.b?t.l===e?t.b=r:t.a=r:(t.a=r,t.l=n,t.r=e)}function tr(t,n,e){var r=t.a,i=t.b;this.edge=t,this.site=n,this.angle=e?Math.atan2(e.y-n.y,e.x-n.x):t.l===n?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function nr(){this._=null}function er(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function rr(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ir(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function or(t){for(;t.L;)t=t.L;return t}function ur(t,n){var e,r,i,o=t.sort(ar).pop();for(Ka=[],Qa=new Array(t.length),ts=new nr,es=new nr;;)if(i=ns,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))o.x===e&&o.y===r||(Qa[o.i]=new We(o),ze(o),e=o.x,r=o.y),o=t.pop();else{if(!i)break;Oe(i.arc)}n&&(Ve(n),$e(n));var u={cells:Qa,edges:Ka};return ts=es=Ka=Qa=null,u}function ar(t,n){return n.y-t.y||n.x-t.x}function sr(t,n,e){return(t.x-e.x)*(n.y-t.y)-(t.x-n.x)*(e.y-t.y)}function lr(t){return t.x}function cr(t){return t.y}function fr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function hr(t,n,e,r,i,o){if(!t(n,e,r,i,o)){var u=.5*(e+i),a=.5*(r+o),s=n.nodes;s[0]&&hr(t,s[0],e,r,u,a),s[1]&&hr(t,s[1],u,r,i,a),s[2]&&hr(t,s[2],e,a,u,o),s[3]&&hr(t,s[3],u,a,i,o)}}function pr(t,n,e,r,i,o,u){var a,s=1/0;return function l(t,c,f,h,p){if(!(c>o||f>u||r>h||i>p)){if(d=t.point){var d,g=n-t.x,v=e-t.y,y=g*g+v*v;if(s>y){var m=Math.sqrt(s=y);r=n-m,i=e-m,o=n+m,u=e+m,a=d}}for(var x=t.nodes,b=.5*(c+h),w=.5*(f+p),M=n>=b,_=e>=w,k=_<<1|M,S=k+4;S>k;++k)if(t=x[3&k])switch(3&k){case 0:l(t,c,f,b,w);break;case 1:l(t,b,f,h,w);break;case 2:l(t,c,w,b,p);break;case 3:l(t,b,w,h,p)}}}(t,r,i,o,u),a}function dr(t,n){t=eu.rgb(t),n=eu.rgb(n);var e=t.r,r=t.g,i=t.b,o=n.r-e,u=n.g-r,a=n.b-i;return function(t){return"#"+bt(Math.round(e+o*t))+bt(Math.round(r+u*t))+bt(Math.round(i+a*t))}}function gr(t,n){var e,r={},i={};for(e in t)e in n?r[e]=mr(t[e],n[e]):i[e]=t[e];for(e in n)e in t||(i[e]=n[e]);return function(t){for(e in r)i[e]=r[e](t);return i}}function vr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function yr(t,n){var e,r,i,o=us.lastIndex=as.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(e=us.exec(t))&&(r=as.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,s.push({i:u,x:vr(e,r)})),o=as.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?s[0]?(n=s[0].x,function(t){return n(t)+""}):function(){return n}:(n=s.length,function(t){for(var e,r=0;n>r;++r)a[(e=s[r]).i]=e.x(t);return a.join("")})}function mr(t,n){for(var e,r=eu.interpolators.length;--r>=0&&!(e=eu.interpolators[r](t,n)););return e}function xr(t,n){var e,r=[],i=[],o=t.length,u=n.length,a=Math.min(t.length,n.length);for(e=0;a>e;++e)r.push(mr(t[e],n[e]));for(;o>e;++e)i[e]=t[e];for(;u>e;++e)i[e]=n[e];return function(t){for(e=0;a>e;++e)i[e]=r[e](t);return i}}function br(t){return function(n){return 0>=n?0:n>=1?1:t(n)}}function wr(t){return function(n){return 1-t(1-n)}}function Mr(t){return function(n){return.5*(.5>n?t(2*n):2-t(2-2*n))}}function _r(t){return t*t}function kr(t){return t*t*t}function Sr(t){if(0>=t)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(.5>t?e:3*(t-n)+e-.75)}function Er(t){return function(n){return Math.pow(n,t)}}function Nr(t){return 1-Math.cos(t*Ru)}function Cr(t){return Math.pow(2,10*(t-1))}function Tr(t){return 1-Math.sqrt(1-t*t)}function Ar(t,n){var e;return arguments.length<2&&(n=.45),arguments.length?e=n/qu*Math.asin(1/t):(t=1,e=n/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-e)*qu/n)}}function jr(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}}function Lr(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function qr(t,n){t=eu.hcl(t),n=eu.hcl(n);var e=t.h,r=t.c,i=t.l,o=n.h-e,u=n.c-r,a=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.c:r),isNaN(o)?(o=0,e=isNaN(e)?n.h:e):o>180?o-=360:-180>o&&(o+=360),function(t){return ct(e+o*t,r+u*t,i+a*t)+""}}function Dr(t,n){t=eu.hsl(t),n=eu.hsl(n);var e=t.h,r=t.s,i=t.l,o=n.h-e,u=n.s-r,a=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.s:r),isNaN(o)?(o=0,e=isNaN(e)?n.h:e):o>180?o-=360:-180>o&&(o+=360),function(t){return st(e+o*t,r+u*t,i+a*t)+""}}function Rr(t,n){t=eu.lab(t),n=eu.lab(n);var e=t.l,r=t.a,i=t.b,o=n.l-e,u=n.a-r,a=n.b-i;return function(t){return ht(e+o*t,r+u*t,i+a*t)+""}}function Hr(t,n){return n-=t,function(e){return Math.round(t+n*e)}}function Pr(t){var n=[t.a,t.b],e=[t.c,t.d],r=zr(n),i=Or(n,e),o=zr(Fr(e,n,-i))||0;n[0]*e[1]<e[0]*n[1]&&(n[0]*=-1,n[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(n[1],n[0]):Math.atan2(-e[0],e[1]))*Pu,this.translate=[t.e,t.f],this.scale=[r,o],this.skew=o?Math.atan2(i,o)*Pu:0}function Or(t,n){return t[0]*n[0]+t[1]*n[1]}function zr(t){var n=Math.sqrt(Or(t,t));return n&&(t[0]/=n,t[1]/=n),n}function Fr(t,n,e){return t[0]+=e*n[0],t[1]+=e*n[1],t}function Ir(t,n){var e,r=[],i=[],o=eu.transform(t),u=eu.transform(n),a=o.translate,s=u.translate,l=o.rotate,c=u.rotate,f=o.skew,h=u.skew,p=o.scale,d=u.scale;return a[0]!=s[0]||a[1]!=s[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:vr(a[0],s[0])},{i:3,x:vr(a[1],s[1])})):s[0]||s[1]?r.push("translate("+s+")"):r.push(""),l!=c?(l-c>180?c+=360:c-l>180&&(l+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:vr(l,c)})):c&&r.push(r.pop()+"rotate("+c+")"),f!=h?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:vr(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),p[0]!=d[0]||p[1]!=d[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:e-4,x:vr(p[0],d[0])},{i:e-2,x:vr(p[1],d[1])})):1==d[0]&&1==d[1]||r.push(r.pop()+"scale("+d+")"),e=i.length,function(t){for(var n,o=-1;++o<e;)r[(n=i[o]).i]=n.x(t);return r.join("")}}function Wr(t,n){return n=(n-=t=+t)||1/n,function(e){return(e-t)/n}}function $r(t,n){return n=(n-=t=+t)||1/n,function(e){return Math.max(0,Math.min(1,(e-t)/n))}}function Ur(t){for(var n=t.source,e=t.target,r=Yr(n,e),i=[n];n!==r;)n=n.parent,i.push(n);for(var o=i.length;e!==r;)i.splice(o,0,e),e=e.parent;return i}function Br(t){for(var n=[],e=t.parent;null!=e;)n.push(t),t=e,e=e.parent;return n.push(t),n}function Yr(t,n){if(t===n)return t;for(var e=Br(t),r=Br(n),i=e.pop(),o=r.pop(),u=null;i===o;)u=i,i=e.pop(),o=r.pop();return u}function Xr(t){t.fixed|=2}function Vr(t){t.fixed&=-7}function Gr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Zr(t){t.fixed&=-5}function Jr(t,n,e){var r=0,i=0;if(t.charge=0,!t.leaf)for(var o,u=t.nodes,a=u.length,s=-1;++s<a;)o=u[s],null!=o&&(Jr(o,n,e),t.charge+=o.charge,r+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var l=n*e[t.point.index];t.charge+=t.pointCharge=l,r+=l*t.point.x,i+=l*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function Kr(t,n){return eu.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=ii,t}function Qr(t,n){for(var e=[t];null!=(t=e.pop());)if(n(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)e.push(i[r])}function ti(t,n){for(var e=[t],r=[];null!=(t=e.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,u=-1;++u<i;)e.push(o[u]);for(;null!=(t=r.pop());)n(t)}function ni(t){return t.children}function ei(t){return t.value}function ri(t,n){return n.value-t.value}function ii(t){return eu.merge(t.map(function(t){return(t.children||[]).map(function(n){return{source:t,target:n}})}))}function oi(t){return t.x}function ui(t){return t.y}function ai(t,n,e){t.y0=n,t.y=e}function si(t){return eu.range(t.length)}function li(t){for(var n=-1,e=t[0].length,r=[];++n<e;)r[n]=0;return r}function ci(t){for(var n,e=1,r=0,i=t[0][1],o=t.length;o>e;++e)(n=t[e][1])>i&&(r=e,i=n);return r}function fi(t){return t.reduce(hi,0)}function hi(t,n){return t+n[1]}function pi(t,n){return di(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function di(t,n){for(var e=-1,r=+t[0],i=(t[1]-r)/n,o=[];++e<=n;)o[e]=i*e+r;return o}function gi(t){return[eu.min(t),eu.max(t)]}function vi(t,n){return t.value-n.value}function yi(t,n){var e=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=e,e._pack_prev=n}function mi(t,n){t._pack_next=n,n._pack_prev=t}function xi(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return.999*i*i>e*e+r*r}function bi(t){function n(t){c=Math.min(t.x-t.r,c),f=Math.max(t.x+t.r,f),h=Math.min(t.y-t.r,h),p=Math.max(t.y+t.r,p)}if((e=t.children)&&(l=e.length)){var e,r,i,o,u,a,s,l,c=1/0,f=-(1/0),h=1/0,p=-(1/0);if(e.forEach(wi),r=e[0],r.x=-r.r,r.y=0,n(r),l>1&&(i=e[1],i.x=i.r,i.y=0,n(i),l>2))for(o=e[2],ki(r,i,o),n(o),yi(r,o),r._pack_prev=o,yi(o,i),i=r._pack_next,u=3;l>u;u++){ki(r,i,o=e[u]);var d=0,g=1,v=1;for(a=i._pack_next;a!==i;a=a._pack_next,g++)if(xi(a,o)){d=1;break}if(1==d)for(s=r._pack_prev;s!==a._pack_prev&&!xi(s,o);s=s._pack_prev,v++);d?(v>g||g==v&&i.r<r.r?mi(r,i=a):mi(r=s,i),u--):(yi(r,o),i=o,n(o))}var y=(c+f)/2,m=(h+p)/2,x=0;for(u=0;l>u;u++)o=e[u],o.x-=y,o.y-=m,x=Math.max(x,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=x,e.forEach(Mi)}}function wi(t){t._pack_next=t._pack_prev=t}function Mi(t){delete t._pack_next,delete t._pack_prev}function _i(t,n,e,r){var i=t.children;if(t.x=n+=r*t.x,t.y=e+=r*t.y,t.r*=r,i)for(var o=-1,u=i.length;++o<u;)_i(i[o],n,e,r)}function ki(t,n,e){var r=t.r+e.r,i=n.x-t.x,o=n.y-t.y;if(r&&(i||o)){var u=n.r+e.r,a=i*i+o*o;u*=u,r*=r;var s=.5+(r-u)/(2*a),l=Math.sqrt(Math.max(0,2*u*(r+a)-(r-=a)*r-u*u))/(2*a);e.x=t.x+s*i+l*o,e.y=t.y+s*o-l*i}else e.x=t.x+r,e.y=t.y}function Si(t,n){return t.parent==n.parent?1:2}function Ei(t){var n=t.children;return n.length?n[0]:t.t}function Ni(t){var n,e=t.children;return(n=e.length)?e[n-1]:t.t}function Ci(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Ti(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)n=i[o],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Ai(t,n,e){return t.a.parent===n.parent?t.a:e}function ji(t){return 1+eu.max(t,function(t){return t.y})}function Li(t){return t.reduce(function(t,n){return t+n.x},0)/t.length}function qi(t){var n=t.children;return n&&n.length?qi(n[0]):t}function Di(t){var n,e=t.children;return e&&(n=e.length)?Di(e[n-1]):t}function Ri(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Hi(t,n){var e=t.x+n[3],r=t.y+n[0],i=t.dx-n[1]-n[3],o=t.dy-n[0]-n[2];return 0>i&&(e+=i/2,i=0),0>o&&(r+=o/2,o=0),{x:e,y:r,dx:i,dy:o}}function Pi(t){var n=t[0],e=t[t.length-1];return e>n?[n,e]:[e,n]}function Oi(t){return t.rangeExtent?t.rangeExtent():Pi(t.range())}function zi(t,n,e,r){var i=e(t[0],t[1]),o=r(n[0],n[1]);return function(t){return o(i(t))}}function Fi(t,n){var e,r=0,i=t.length-1,o=t[r],u=t[i];return o>u&&(e=r,r=i,i=e,e=o,o=u,u=e),t[r]=n.floor(o),t[i]=n.ceil(u),t}function Ii(t){return t?{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}:ms}function Wi(t,n,e,r){var i=[],o=[],u=0,a=Math.min(t.length,n.length)-1;for(t[a]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<=a;)i.push(e(t[u-1],t[u])),o.push(r(n[u-1],n[u]));return function(n){var e=eu.bisect(t,n,1,a)-1;return o[e](i[e](n))}}function $i(t,n,e,r){function i(){var i=Math.min(t.length,n.length)>2?Wi:zi,s=r?$r:Wr;return u=i(t,n,s,e),a=i(n,t,s,mr),o}function o(t){return u(t)}var u,a;return o.invert=function(t){return a(t)},o.domain=function(n){return arguments.length?(t=n.map(Number),i()):t},o.range=function(t){return arguments.length?(n=t,i()):n},o.rangeRound=function(t){return o.range(t).interpolate(Hr)},o.clamp=function(t){return arguments.length?(r=t,i()):r},o.interpolate=function(t){return arguments.length?(e=t,i()):e},o.ticks=function(n){return Xi(t,n)},o.tickFormat=function(n,e){return Vi(t,n,e)},o.nice=function(n){return Bi(t,n),i()},o.copy=function(){return $i(t,n,e,r)},i()}function Ui(t,n){return eu.rebind(t,n,"range","rangeRound","interpolate","clamp")}function Bi(t,n){return Fi(t,Ii(Yi(t,n)[2]))}function Yi(t,n){null==n&&(n=10);var e=Pi(t),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/n)/Math.LN10)),o=n/r*i;return.15>=o?i*=10:.35>=o?i*=5:.75>=o&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Xi(t,n){return eu.range.apply(eu,Yi(t,n))}function Vi(t,n,e){var r=Yi(t,n);if(e){var i=ua.exec(e);if(i.shift(),"s"===i[8]){var o=eu.formatPrefix(Math.max(du(r[0]),du(r[1])));return i[7]||(i[7]="."+Gi(o.scale(r[2]))),i[8]="f",e=eu.format(i.join("")),function(t){return e(o.scale(t))+o.symbol}}i[7]||(i[7]="."+Zi(i[8],r)),e=i.join("")}else e=",."+Gi(r[2])+"f";return eu.format(e)}function Gi(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Zi(t,n){var e=Gi(n[2]);return t in xs?Math.abs(e-Gi(Math.max(du(n[0]),du(n[1]))))+ +("e"!==t):e-2*("%"===t)}function Ji(t,n,e,r){function i(t){return(e?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function o(t){return e?Math.pow(n,t):-Math.pow(n,-t)}function u(n){return t(i(n))}return u.invert=function(n){return o(t.invert(n))},u.domain=function(n){return arguments.length?(e=n[0]>=0,t.domain((r=n.map(Number)).map(i)),u):r},u.base=function(e){return arguments.length?(n=+e,t.domain(r.map(i)),u):n},u.nice=function(){var n=Fi(r.map(i),e?Math:ws);return t.domain(n),r=n.map(o),u},u.ticks=function(){var t=Pi(r),u=[],a=t[0],s=t[1],l=Math.floor(i(a)),c=Math.ceil(i(s)),f=n%1?2:n;if(isFinite(c-l)){if(e){for(;c>l;l++)for(var h=1;f>h;h++)u.push(o(l)*h);u.push(o(l))}else for(u.push(o(l));l++<c;)for(var h=f-1;h>0;h--)u.push(o(l)*h);for(l=0;u[l]<a;l++);for(c=u.length;u[c-1]>s;c--);u=u.slice(l,c)}return u},u.tickFormat=function(t,n){if(!arguments.length)return bs;arguments.length<2?n=bs:"function"!=typeof n&&(n=eu.format(n));var r,a=Math.max(.1,t/u.ticks().length),s=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/o(s(i(t)+r))<=a?n(t):""}},u.copy=function(){return Ji(t.copy(),n,e,r)},Ui(u,t)}function Ki(t,n,e){function r(n){return t(i(n))}var i=Qi(n),o=Qi(1/n);return r.invert=function(n){return o(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain((e=n.map(Number)).map(i)),r):e},r.ticks=function(t){return Xi(e,t)},r.tickFormat=function(t,n){return Vi(e,t,n)},r.nice=function(t){return r.domain(Bi(e,t))},r.exponent=function(u){return arguments.length?(i=Qi(n=u),o=Qi(1/n),t.domain(e.map(i)),r):n},r.copy=function(){return Ki(t.copy(),n,e)},Ui(r,t)}function Qi(t){return function(n){return 0>n?-Math.pow(-n,t):Math.pow(n,t)}}function to(t,n){function e(e){return o[((i.get(e)||("range"===n.t?i.set(e,t.push(e)):NaN))-1)%o.length]}function r(n,e){return eu.range(t.length).map(function(t){return n+e*t})}var i,o,u;return e.domain=function(r){if(!arguments.length)return t;t=[],i=new l;for(var o,u=-1,a=r.length;++u<a;)i.has(o=r[u])||i.set(o,t.push(o));return e[n.t].apply(e,n.a)},e.range=function(t){return arguments.length?(o=t,u=0,n={t:"range",a:arguments},e):o},e.rangePoints=function(i,a){arguments.length<2&&(a=0);var s=i[0],l=i[1],c=t.length<2?(s=(s+l)/2,0):(l-s)/(t.length-1+a);return o=r(s+c*a/2,c),u=0,n={t:"rangePoints",a:arguments},e},e.rangeRoundPoints=function(i,a){arguments.length<2&&(a=0);var s=i[0],l=i[1],c=t.length<2?(s=l=Math.round((s+l)/2),0):(l-s)/(t.length-1+a)|0;return o=r(s+Math.round(c*a/2+(l-s-(t.length-1+a)*c)/2),c),u=0,n={t:"rangeRoundPoints",a:arguments},e},e.rangeBands=function(i,a,s){arguments.length<2&&(a=0),arguments.length<3&&(s=a);var l=i[1]<i[0],c=i[l-0],f=i[1-l],h=(f-c)/(t.length-a+2*s);return o=r(c+h*s,h),l&&o.reverse(),u=h*(1-a),n={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(i,a,s){arguments.length<2&&(a=0),arguments.length<3&&(s=a);var l=i[1]<i[0],c=i[l-0],f=i[1-l],h=Math.floor((f-c)/(t.length-a+2*s));return o=r(c+Math.round((f-c-(t.length-a)*h)/2),h),l&&o.reverse(),u=Math.round(h*(1-a)),n={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return u},e.rangeExtent=function(){return Pi(n.a[0])},e.copy=function(){return to(t,n)},e.domain(t)}function no(t,n){function o(){var e=0,r=n.length;for(a=[];++e<r;)a[e-1]=eu.quantile(t,e/r);return u}function u(t){return isNaN(t=+t)?void 0:n[eu.bisect(a,t)]}var a;return u.domain=function(n){return arguments.length?(t=n.map(r).filter(i).sort(e),o()):t},u.range=function(t){return arguments.length?(n=t,o()):n},u.quantiles=function(){return a},u.invertExtent=function(e){return e=n.indexOf(e),0>e?[NaN,NaN]:[e>0?a[e-1]:t[0],e<a.length?a[e]:t[t.length-1]]},u.copy=function(){return no(t,n)},o()}function eo(t,n,e){function r(n){return e[Math.max(0,Math.min(u,Math.floor(o*(n-t))))]}function i(){return o=e.length/(n-t),u=e.length-1,r}var o,u;return r.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],i()):[t,n]},r.range=function(t){return arguments.length?(e=t,i()):e},r.invertExtent=function(n){return n=e.indexOf(n),n=0>n?NaN:n/o+t,[n,n+1/o]},r.copy=function(){return eo(t,n,e)},i()}function ro(t,n){function e(e){return e>=e?n[eu.bisect(t,e)]:void 0}return e.domain=function(n){return arguments.length?(t=n,e):t},e.range=function(t){return arguments.length?(n=t,e):n},e.invertExtent=function(e){return e=n.indexOf(e),[t[e-1],t[e]]},e.copy=function(){return ro(t,n)},e}function io(t){function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=e.map(n),n):t},n.ticks=function(n){return Xi(t,n)},n.tickFormat=function(n,e){return Vi(t,n,e)},n.copy=function(){return io(t)},n}function oo(){return 0}function uo(t){return t.innerRadius}function ao(t){return t.outerRadius}function so(t){return t.startAngle}function lo(t){return t.endAngle}function co(t){return t&&t.padAngle}function fo(t,n,e,r){return(t-e)*n-(n-r)*t>0?0:1}function ho(t,n,e,r,i){var o=t[0]-n[0],u=t[1]-n[1],a=(i?r:-r)/Math.sqrt(o*o+u*u),s=a*u,l=-a*o,c=t[0]+s,f=t[1]+l,h=n[0]+s,p=n[1]+l,d=(c+h)/2,g=(f+p)/2,v=h-c,y=p-f,m=v*v+y*y,x=e-r,b=c*p-h*f,w=(0>y?-1:1)*Math.sqrt(x*x*m-b*b),M=(b*y-v*w)/m,_=(-b*v-y*w)/m,k=(b*y+v*w)/m,S=(-b*v+y*w)/m,E=M-d,N=_-g,C=k-d,T=S-g;return E*E+N*N>C*C+T*T&&(M=k,_=S),[[M-s,_-l],[M*e/x,_*e/x]]}function po(t){function n(n){function u(){l.push("M",o(t(c),a))}for(var s,l=[],c=[],f=-1,h=n.length,p=Et(e),d=Et(r);++f<h;)i.call(this,s=n[f],f)?c.push([+p.call(this,s,f),+d.call(this,s,f)]):c.length&&(u(),c=[]);return c.length&&u(),l.length?l.join(""):null}var e=Ce,r=Te,i=Tn,o=go,u=o.key,a=.7;return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n.defined=function(t){return arguments.length?(i=t,n):i},n.interpolate=function(t){return arguments.length?(u="function"==typeof t?o=t:(o=Ns.get(t)||go).key,n):u},n.tension=function(t){return arguments.length?(a=t,n):a},n}function go(t){return t.join("L")}function vo(t){return go(t)+"Z"}function yo(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("H",(r[0]+(r=t[n])[0])/2,"V",r[1]);return e>1&&i.push("H",r[0]),i.join("")}function mo(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("V",(r=t[n])[1],"H",r[0]);return i.join("")}function xo(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("H",(r=t[n])[0],"V",r[1]);return i.join("")}function bo(t,n){return t.length<4?go(t):t[1]+_o(t.slice(1,-1),ko(t,n))}function wo(t,n){return t.length<3?go(t):t[0]+_o((t.push(t[0]),t),ko([t[t.length-2]].concat(t,[t[1]]),n))}function Mo(t,n){return t.length<3?go(t):t[0]+_o(t,ko(t,n))}function _o(t,n){if(n.length<1||t.length!=n.length&&t.length!=n.length+2)return go(t);var e=t.length!=n.length,r="",i=t[0],o=t[1],u=n[0],a=u,s=1;if(e&&(r+="Q"+(o[0]-2*u[0]/3)+","+(o[1]-2*u[1]/3)+","+o[0]+","+o[1],i=t[1],s=2),n.length>1){a=n[1],o=t[s],s++,r+="C"+(i[0]+u[0])+","+(i[1]+u[1])+","+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1];for(var l=2;l<n.length;l++,s++)o=t[s],a=n[l],r+="S"+(o[0]-a[0])+","+(o[1]-a[1])+","+o[0]+","+o[1]}if(e){var c=t[s];r+="Q"+(o[0]+2*a[0]/3)+","+(o[1]+2*a[1]/3)+","+c[0]+","+c[1]}return r}function ko(t,n){for(var e,r=[],i=(1-n)/2,o=t[0],u=t[1],a=1,s=t.length;++a<s;)e=o,o=u,u=t[a],r.push([i*(u[0]-e[0]),i*(u[1]-e[1])]);return r}function So(t){if(t.length<3)return go(t);var n=1,e=t.length,r=t[0],i=r[0],o=r[1],u=[i,i,i,(r=t[1])[0]],a=[o,o,o,r[1]],s=[i,",",o,"L",To(As,u),",",To(As,a)];for(t.push(t[e-1]);++n<=e;)r=t[n],u.shift(),u.push(r[0]),a.shift(),a.push(r[1]),Ao(s,u,a);return t.pop(),s.push("L",r),s.join("")}function Eo(t){if(t.length<4)return go(t);for(var n,e=[],r=-1,i=t.length,o=[0],u=[0];++r<3;)n=t[r],o.push(n[0]),u.push(n[1]);for(e.push(To(As,o)+","+To(As,u)),--r;++r<i;)n=t[r],o.shift(),o.push(n[0]),u.shift(),u.push(n[1]),Ao(e,o,u);return e.join("")}function No(t){for(var n,e,r=-1,i=t.length,o=i+4,u=[],a=[];++r<4;)e=t[r%i],u.push(e[0]),a.push(e[1]);for(n=[To(As,u),",",To(As,a)],--r;++r<o;)e=t[r%i],u.shift(),u.push(e[0]),a.shift(),a.push(e[1]),Ao(n,u,a);return n.join("")}function Co(t,n){var e=t.length-1;if(e)for(var r,i,o=t[0][0],u=t[0][1],a=t[e][0]-o,s=t[e][1]-u,l=-1;++l<=e;)r=t[l],i=l/e,r[0]=n*r[0]+(1-n)*(o+i*a),r[1]=n*r[1]+(1-n)*(u+i*s);return So(t)}function To(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function Ao(t,n,e){t.push("C",To(Cs,n),",",To(Cs,e),",",To(Ts,n),",",To(Ts,e),",",To(As,n),",",To(As,e))}function jo(t,n){return(n[1]-t[1])/(n[0]-t[0])}function Lo(t){for(var n=0,e=t.length-1,r=[],i=t[0],o=t[1],u=r[0]=jo(i,o);++n<e;)r[n]=(u+(u=jo(i=o,o=t[n+1])))/2;return r[n]=u,r}function qo(t){for(var n,e,r,i,o=[],u=Lo(t),a=-1,s=t.length-1;++a<s;)n=jo(t[a],t[a+1]),du(n)<Au?u[a]=u[a+1]=0:(e=u[a]/n,r=u[a+1]/n,i=e*e+r*r,i>9&&(i=3*n/Math.sqrt(i),u[a]=i*e,u[a+1]=i*r));for(a=-1;++a<=s;)i=(t[Math.min(s,a+1)][0]-t[Math.max(0,a-1)][0])/(6*(1+u[a]*u[a])),o.push([i||0,u[a]*i||0]);return o}function Do(t){return t.length<3?go(t):t[0]+_o(t,qo(t))}function Ro(t){for(var n,e,r,i=-1,o=t.length;++i<o;)n=t[i],e=n[0],r=n[1]-Ru,n[0]=e*Math.cos(r),n[1]=e*Math.sin(r);return t}function Ho(t){function n(n){function s(){g.push("M",a(t(y),f),c,l(t(v.reverse()),f),"Z")}for(var h,p,d,g=[],v=[],y=[],m=-1,x=n.length,b=Et(e),w=Et(i),M=e===r?function(){return p}:Et(r),_=i===o?function(){return d}:Et(o);++m<x;)u.call(this,h=n[m],m)?(v.push([p=+b.call(this,h,m),d=+w.call(this,h,m)]),y.push([+M.call(this,h,m),+_.call(this,h,m)])):v.length&&(s(),v=[],y=[]);return v.length&&s(),g.length?g.join(""):null}var e=Ce,r=Ce,i=0,o=Te,u=Tn,a=go,s=a.key,l=a,c="L",f=.7;return n.x=function(t){return arguments.length?(e=r=t,n):r},n.x0=function(t){return arguments.length?(e=t,
n):e},n.x1=function(t){return arguments.length?(r=t,n):r},n.y=function(t){return arguments.length?(i=o=t,n):o},n.y0=function(t){return arguments.length?(i=t,n):i},n.y1=function(t){return arguments.length?(o=t,n):o},n.defined=function(t){return arguments.length?(u=t,n):u},n.interpolate=function(t){return arguments.length?(s="function"==typeof t?a=t:(a=Ns.get(t)||go).key,l=a.reverse||a,c=a.closed?"M":"L",n):s},n.tension=function(t){return arguments.length?(f=t,n):f},n}function Po(t){return t.radius}function Oo(t){return[t.x,t.y]}function zo(t){return function(){var n=t.apply(this,arguments),e=n[0],r=n[1]-Ru;return[e*Math.cos(r),e*Math.sin(r)]}}function Fo(){return 64}function Io(){return"circle"}function Wo(t){var n=Math.sqrt(t/Lu);return"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z"}function $o(t){return function(){var n,e;(n=this[t])&&(e=n[n.active])&&(--n.count?delete n[n.active]:delete this[t],n.active+=.5,e.event&&e.event.interrupt.call(this,this.__data__,e.index))}}function Uo(t,n,e){return xu(t,Ps),t.namespace=n,t.id=e,t}function Bo(t,n,e,r){var i=t.id,o=t.namespace;return $(t,"function"==typeof e?function(t,u,a){t[o][i].tween.set(n,r(e.call(t,t.__data__,u,a)))}:(e=r(e),function(t){t[o][i].tween.set(n,e)}))}function Yo(t){return null==t&&(t=""),function(){this.textContent=t}}function Xo(t){return null==t?"__transition__":"__transition_"+t+"__"}function Vo(t,n,e,r,i){var o=t[e]||(t[e]={active:0,count:0}),u=o[r];if(!u){var a=i.time;u=o[r]={tween:new l,time:a,delay:i.delay,duration:i.duration,ease:i.ease,index:n},i=null,++o.count,eu.timer(function(i){function s(e){if(o.active>r)return c();var i=o[o.active];i&&(--o.count,delete o[o.active],i.event&&i.event.interrupt.call(t,t.__data__,i.index)),o.active=r,u.event&&u.event.start.call(t,t.__data__,n),u.tween.forEach(function(e,r){(r=r.call(t,t.__data__,n))&&g.push(r)}),h=u.ease,f=u.duration,eu.timer(function(){return d.c=l(e||1)?Tn:l,1},0,a)}function l(e){if(o.active!==r)return 1;for(var i=e/f,a=h(i),s=g.length;s>0;)g[--s].call(t,a);return i>=1?(u.event&&u.event.end.call(t,t.__data__,n),c()):void 0}function c(){return--o.count?delete o[r]:delete t[e],1}var f,h,p=u.delay,d=ra,g=[];return d.t=p+a,i>=p?s(i-p):void(d.c=s)},0,a)}}function Go(t,n,e){t.attr("transform",function(t){var r=n(t);return"translate("+(isFinite(r)?r:e(t))+",0)"})}function Zo(t,n,e){t.attr("transform",function(t){var r=n(t);return"translate(0,"+(isFinite(r)?r:e(t))+")"})}function Jo(t){return t.toISOString()}function Ko(t,n,e){function r(n){return t(n)}function i(t,e){var r=t[1]-t[0],i=r/e,o=eu.bisect(Ys,i);return o==Ys.length?[n.year,Yi(t.map(function(t){return t/31536e6}),e)[2]]:o?n[i/Ys[o-1]<Ys[o]/i?o-1:o]:[Gs,Yi(t,e)[2]]}return r.invert=function(n){return Qo(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain(n),r):t.domain().map(Qo)},r.nice=function(t,n){function e(e){return!isNaN(e)&&!t.range(e,Qo(+e+1),n).length}var o=r.domain(),u=Pi(o),a=null==t?i(u,10):"number"==typeof t&&i(u,t);return a&&(t=a[0],n=a[1]),r.domain(Fi(o,n>1?{floor:function(n){for(;e(n=t.floor(n));)n=Qo(n-1);return n},ceil:function(n){for(;e(n=t.ceil(n));)n=Qo(+n+1);return n}}:t))},r.ticks=function(t,n){var e=Pi(r.domain()),o=null==t?i(e,10):"number"==typeof t?i(e,t):!t.range&&[{range:t},n];return o&&(t=o[0],n=o[1]),t.range(e[0],Qo(+e[1]+1),1>n?1:n)},r.tickFormat=function(){return e},r.copy=function(){return Ko(t.copy(),n,e)},Ui(r,t)}function Qo(t){return new Date(t)}function tu(t){return JSON.parse(t.responseText)}function nu(t){var n=ou.createRange();return n.selectNode(ou.body),n.createContextualFragment(t.responseText)}var eu={version:"3.5.5"},ru=[].slice,iu=function(t){return ru.call(t)},ou=this.document;if(ou)try{iu(ou.documentElement.childNodes)[0].nodeType}catch(uu){iu=function(t){for(var n=t.length,e=new Array(n);n--;)e[n]=t[n];return e}}if(Date.now||(Date.now=function(){return+new Date}),ou)try{ou.createElement("DIV").style.setProperty("opacity",0,"")}catch(au){var su=this.Element.prototype,lu=su.setAttribute,cu=su.setAttributeNS,fu=this.CSSStyleDeclaration.prototype,hu=fu.setProperty;su.setAttribute=function(t,n){lu.call(this,t,n+"")},su.setAttributeNS=function(t,n,e){cu.call(this,t,n,e+"")},fu.setProperty=function(t,n,e){hu.call(this,t,n+"",e)}}eu.ascending=e,eu.descending=function(t,n){return t>n?-1:n>t?1:n>=t?0:NaN},eu.min=function(t,n){var e,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<o;)if(null!=(r=n.call(t,t[i],i))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n.call(t,t[i],i))&&e>r&&(e=r)}return e},eu.max=function(t,n){var e,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<o;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<o;)if(null!=(r=n.call(t,t[i],i))&&r>=r){e=r;break}for(;++i<o;)null!=(r=n.call(t,t[i],i))&&r>e&&(e=r)}return e},eu.extent=function(t,n){var e,r,i,o=-1,u=t.length;if(1===arguments.length){for(;++o<u;)if(null!=(r=t[o])&&r>=r){e=i=r;break}for(;++o<u;)null!=(r=t[o])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++o<u;)if(null!=(r=n.call(t,t[o],o))&&r>=r){e=i=r;break}for(;++o<u;)null!=(r=n.call(t,t[o],o))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},eu.sum=function(t,n){var e,r=0,o=t.length,u=-1;if(1===arguments.length)for(;++u<o;)i(e=+t[u])&&(r+=e);else for(;++u<o;)i(e=+n.call(t,t[u],u))&&(r+=e);return r},eu.mean=function(t,n){var e,o=0,u=t.length,a=-1,s=u;if(1===arguments.length)for(;++a<u;)i(e=r(t[a]))?o+=e:--s;else for(;++a<u;)i(e=r(n.call(t,t[a],a)))?o+=e:--s;return s?o/s:void 0},eu.quantile=function(t,n){var e=(t.length-1)*n+1,r=Math.floor(e),i=+t[r-1],o=e-r;return o?i+o*(t[r]-i):i},eu.median=function(t,n){var o,u=[],a=t.length,s=-1;if(1===arguments.length)for(;++s<a;)i(o=r(t[s]))&&u.push(o);else for(;++s<a;)i(o=r(n.call(t,t[s],s)))&&u.push(o);return u.length?eu.quantile(u.sort(e),.5):void 0},eu.variance=function(t,n){var e,o,u=t.length,a=0,s=0,l=-1,c=0;if(1===arguments.length)for(;++l<u;)i(e=r(t[l]))&&(o=e-a,a+=o/++c,s+=o*(e-a));else for(;++l<u;)i(e=r(n.call(t,t[l],l)))&&(o=e-a,a+=o/++c,s+=o*(e-a));return c>1?s/(c-1):void 0},eu.deviation=function(){var t=eu.variance.apply(this,arguments);return t?Math.sqrt(t):t};var pu=o(e);eu.bisectLeft=pu.left,eu.bisect=eu.bisectRight=pu.right,eu.bisector=function(t){return o(1===t.length?function(n,r){return e(t(n),r)}:t)},eu.shuffle=function(t,n,e){(o=arguments.length)<3&&(e=t.length,2>o&&(n=0));for(var r,i,o=e-n;o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},eu.permute=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},eu.pairs=function(t){for(var n,e=0,r=t.length-1,i=t[0],o=new Array(0>r?0:r);r>e;)o[e]=[n=i,i=t[++e]];return o},eu.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,n=eu.min(arguments,u),e=new Array(n);++t<n;)for(var r,i=-1,o=e[t]=new Array(r);++i<r;)o[i]=arguments[i][t];return e},eu.transpose=function(t){return eu.zip.apply(eu,t)},eu.keys=function(t){var n=[];for(var e in t)n.push(e);return n},eu.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},eu.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},eu.merge=function(t){for(var n,e,r,i=t.length,o=-1,u=0;++o<i;)u+=t[o].length;for(e=new Array(u);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--u]=r[n];return e};var du=Math.abs;eu.range=function(t,n,e){if(arguments.length<3&&(e=1,arguments.length<2&&(n=t,t=0)),(n-t)/e===1/0)throw new Error("infinite range");var r,i=[],o=a(du(e)),u=-1;if(t*=o,n*=o,e*=o,0>e)for(;(r=t+e*++u)>n;)i.push(r/o);else for(;(r=t+e*++u)<n;)i.push(r/o);return i},eu.map=function(t,n){var e=new l;if(t instanceof l)t.forEach(function(t,n){e.set(t,n)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(1===arguments.length)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n.call(t,r=t[i],i),r)}else for(var u in t)e.set(u,t[u]);return e};var gu="__proto__",vu="\x00";s(l,{has:h,get:function(t){return this._[c(t)]},set:function(t,n){return this._[c(t)]=n},remove:p,keys:d,values:function(){var t=[];for(var n in this._)t.push(this._[n]);return t},entries:function(){var t=[];for(var n in this._)t.push({key:f(n),value:this._[n]});return t},size:g,empty:v,forEach:function(t){for(var n in this._)t.call(this,f(n),this._[n])}}),eu.nest=function(){function t(n,u,a){if(a>=o.length)return r?r.call(i,u):e?u.sort(e):u;for(var s,c,f,h,p=-1,d=u.length,g=o[a++],v=new l;++p<d;)(h=v.get(s=g(c=u[p])))?h.push(c):v.set(s,[c]);return n?(c=n(),f=function(e,r){c.set(e,t(n,r,a))}):(c={},f=function(e,r){c[e]=t(n,r,a)}),v.forEach(f),c}function n(t,e){if(e>=o.length)return t;var r=[],i=u[e++];return t.forEach(function(t,i){r.push({key:t,values:n(i,e)})}),i?r.sort(function(t,n){return i(t.key,n.key)}):r}var e,r,i={},o=[],u=[];return i.map=function(n,e){return t(e,n,0)},i.entries=function(e){return n(t(eu.map,e,0),0)},i.key=function(t){return o.push(t),i},i.sortKeys=function(t){return u[o.length-1]=t,i},i.sortValues=function(t){return e=t,i},i.rollup=function(t){return r=t,i},i},eu.set=function(t){var n=new y;if(t)for(var e=0,r=t.length;r>e;++e)n.add(t[e]);return n},s(y,{has:h,add:function(t){return this._[c(t+="")]=!0,t},remove:p,values:d,size:g,empty:v,forEach:function(t){for(var n in this._)t.call(this,f(n))}}),eu.behavior={},eu.rebind=function(t,n){for(var e,r=1,i=arguments.length;++r<i;)t[e=arguments[r]]=x(t,n,n[e]);return t};var yu=["webkit","ms","moz","Moz","o","O"];eu.dispatch=function(){for(var t=new M,n=-1,e=arguments.length;++n<e;)t[arguments[n]]=_(t);return t},M.prototype.on=function(t,n){var e=t.indexOf("."),r="";if(e>=0&&(r=t.slice(e+1),t=t.slice(0,e)),t)return arguments.length<2?this[t].on(r):this[t].on(r,n);if(2===arguments.length){if(null==n)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},eu.event=null,eu.requote=function(t){return t.replace(mu,"\\$&")};var mu=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,xu={}.__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)t[e]=n[e]},bu=function(t,n){return n.querySelector(t)},wu=function(t,n){return n.querySelectorAll(t)},Mu=function(t,n){var e=t.matches||t[b(t,"matchesSelector")];return(Mu=function(t,n){return e.call(t,n)})(t,n)};"function"==typeof Sizzle&&(bu=function(t,n){return Sizzle(t,n)[0]||null},wu=Sizzle,Mu=Sizzle.matchesSelector),eu.selection=function(){return eu.select(ou.documentElement)};var _u=eu.selection.prototype=[];_u.select=function(t){var n,e,r,i,o=[];t=C(t);for(var u=-1,a=this.length;++u<a;){o.push(n=[]),n.parentNode=(r=this[u]).parentNode;for(var s=-1,l=r.length;++s<l;)(i=r[s])?(n.push(e=t.call(i,i.__data__,s,u)),e&&"__data__"in i&&(e.__data__=i.__data__)):n.push(null)}return N(o)},_u.selectAll=function(t){var n,e,r=[];t=T(t);for(var i=-1,o=this.length;++i<o;)for(var u=this[i],a=-1,s=u.length;++a<s;)(e=u[a])&&(r.push(n=iu(t.call(e,e.__data__,a,i))),n.parentNode=e);return N(r)};var ku={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/"};eu.ns={prefix:ku,qualify:function(t){var n=t.indexOf(":"),e=t;return n>=0&&(e=t.slice(0,n),t=t.slice(n+1)),ku.hasOwnProperty(e)?{space:ku[e],local:t}:t}},_u.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node();return t=eu.ns.qualify(t),t.local?e.getAttributeNS(t.space,t.local):e.getAttribute(t)}for(n in t)this.each(A(n,t[n]));return this}return this.each(A(t,n))},_u.classed=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node(),r=(t=q(t)).length,i=-1;if(n=e.classList){for(;++i<r;)if(!n.contains(t[i]))return!1}else for(n=e.getAttribute("class");++i<r;)if(!L(t[i]).test(n))return!1;return!0}for(n in t)this.each(D(n,t[n]));return this}return this.each(D(t,n))},_u.style=function(t,e,r){var i=arguments.length;if(3>i){if("string"!=typeof t){2>i&&(e="");for(r in t)this.each(H(r,t[r],e));return this}if(2>i){var o=this.node();return n(o).getComputedStyle(o,null).getPropertyValue(t)}r=""}return this.each(H(t,e,r))},_u.property=function(t,n){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(n in t)this.each(P(n,t[n]));return this}return this.each(P(t,n))},_u.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},_u.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},_u.append=function(t){return t=O(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},_u.insert=function(t,n){return t=O(t),n=C(n),this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})},_u.remove=function(){return this.each(z)},_u.data=function(t,n){function e(t,e){var r,i,o,u=t.length,f=e.length,h=Math.min(u,f),p=new Array(f),d=new Array(f),g=new Array(u);if(n){var v,y=new l,m=new Array(u);for(r=-1;++r<u;)y.has(v=n.call(i=t[r],i.__data__,r))?g[r]=i:y.set(v,i),m[r]=v;for(r=-1;++r<f;)(i=y.get(v=n.call(e,o=e[r],r)))?i!==!0&&(p[r]=i,i.__data__=o):d[r]=F(o),y.set(v,!0);for(r=-1;++r<u;)y.get(m[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<h;)i=t[r],o=e[r],i?(i.__data__=o,p[r]=i):d[r]=F(o);for(;f>r;++r)d[r]=F(e[r]);for(;u>r;++r)g[r]=t[r]}d.update=p,d.parentNode=p.parentNode=g.parentNode=t.parentNode,a.push(d),s.push(p),c.push(g)}var r,i,o=-1,u=this.length;if(!arguments.length){for(t=new Array(u=(r=this[0]).length);++o<u;)(i=r[o])&&(t[o]=i.__data__);return t}var a=U([]),s=N([]),c=N([]);if("function"==typeof t)for(;++o<u;)e(r=this[o],t.call(r,r.parentNode.__data__,o));else for(;++o<u;)e(r=this[o],t);return s.enter=function(){return a},s.exit=function(){return c},s},_u.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},_u.filter=function(t){var n,e,r,i=[];"function"!=typeof t&&(t=I(t));for(var o=0,u=this.length;u>o;o++){i.push(n=[]),n.parentNode=(e=this[o]).parentNode;for(var a=0,s=e.length;s>a;a++)(r=e[a])&&t.call(r,r.__data__,a,o)&&n.push(r)}return N(i)},_u.order=function(){for(var t=-1,n=this.length;++t<n;)for(var e,r=this[t],i=r.length-1,o=r[i];--i>=0;)(e=r[i])&&(o&&o!==e.nextSibling&&o.parentNode.insertBefore(e,o),o=e);return this},_u.sort=function(t){t=W.apply(this,arguments);for(var n=-1,e=this.length;++n<e;)this[n].sort(t);return this.order()},_u.each=function(t){return $(this,function(n,e,r){t.call(n,n.__data__,e,r)})},_u.call=function(t){var n=iu(arguments);return t.apply(n[0]=this,n),this},_u.empty=function(){return!this.node()},_u.node=function(){for(var t=0,n=this.length;n>t;t++)for(var e=this[t],r=0,i=e.length;i>r;r++){var o=e[r];if(o)return o}return null},_u.size=function(){var t=0;return $(this,function(){++t}),t};var Su=[];eu.selection.enter=U,eu.selection.enter.prototype=Su,Su.append=_u.append,Su.empty=_u.empty,Su.node=_u.node,Su.call=_u.call,Su.size=_u.size,Su.select=function(t){for(var n,e,r,i,o,u=[],a=-1,s=this.length;++a<s;){r=(i=this[a]).update,u.push(n=[]),n.parentNode=i.parentNode;for(var l=-1,c=i.length;++l<c;)(o=i[l])?(n.push(r[l]=e=t.call(i.parentNode,o.__data__,l,a)),e.__data__=o.__data__):n.push(null)}return N(u)},Su.insert=function(t,n){return arguments.length<2&&(n=B(this)),_u.insert.call(this,t,n)},eu.select=function(n){var e;return"string"==typeof n?(e=[bu(n,ou)],e.parentNode=ou.documentElement):(e=[n],e.parentNode=t(n)),N([e])},eu.selectAll=function(t){var n;return"string"==typeof t?(n=iu(wu(t,ou)),n.parentNode=ou.documentElement):(n=t,n.parentNode=null),N([n])},_u.on=function(t,n,e){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(n=!1);for(e in t)this.each(Y(e,t[e],n));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;e=!1}return this.each(Y(t,n,e))};var Eu=eu.map({mouseenter:"mouseover",mouseleave:"mouseout"});ou&&Eu.forEach(function(t){"on"+t in ou&&Eu.remove(t)});var Nu,Cu=0;eu.mouse=function(t){return Z(t,S())};var Tu=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;eu.touch=function(t,n,e){if(arguments.length<3&&(e=n,n=S().changedTouches),n)for(var r,i=0,o=n.length;o>i;++i)if((r=n[i]).identifier===e)return Z(t,r)},eu.behavior.drag=function(){function t(){this.on("mousedown.drag",o).on("touchstart.drag",u)}function e(t,n,e,o,u){return function(){function a(){var t,e,r=n(h,g);r&&(t=r[0]-x[0],e=r[1]-x[1],d|=t|e,x=r,p({type:"drag",x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function s(){n(h,g)&&(y.on(o+v,null).on(u+v,null),m(d&&eu.event.target===f),p({type:"dragend"}))}var l,c=this,f=eu.event.target,h=c.parentNode,p=r.of(c,arguments),d=0,g=t(),v=".drag"+(null==g?"":"-"+g),y=eu.select(e(f)).on(o+v,a).on(u+v,s),m=G(f),x=n(h,g);i?(l=i.apply(c,arguments),l=[l.x-x[0],l.y-x[1]]):l=[0,0],p({type:"dragstart"})}}var r=E(t,"drag","dragstart","dragend"),i=null,o=e(w,eu.mouse,n,"mousemove","mouseup"),u=e(J,eu.touch,m,"touchmove","touchend");return t.origin=function(n){return arguments.length?(i=n,t):i},eu.rebind(t,r,"on")},eu.touches=function(t,n){return arguments.length<2&&(n=S().touches),n?iu(n).map(function(n){var e=Z(t,n);return e.identifier=n.identifier,e}):[]};var Au=1e-6,ju=Au*Au,Lu=Math.PI,qu=2*Lu,Du=qu-Au,Ru=Lu/2,Hu=Lu/180,Pu=180/Lu,Ou=Math.SQRT2,zu=2,Fu=4;eu.interpolateZoom=function(t,n){function e(t){var n=t*m;if(y){var e=rt(g),u=o/(zu*h)*(e*it(Ou*n+g)-et(g));return[r+u*l,i+u*c,o*e/rt(Ou*n+g)]}return[r+t*l,i+t*c,o*Math.exp(Ou*n)]}var r=t[0],i=t[1],o=t[2],u=n[0],a=n[1],s=n[2],l=u-r,c=a-i,f=l*l+c*c,h=Math.sqrt(f),p=(s*s-o*o+Fu*f)/(2*o*zu*h),d=(s*s-o*o-Fu*f)/(2*s*zu*h),g=Math.log(Math.sqrt(p*p+1)-p),v=Math.log(Math.sqrt(d*d+1)-d),y=v-g,m=(y||Math.log(s/o))/Ou;return e.duration=1e3*m,e},eu.behavior.zoom=function(){function t(t){t.on(j,f).on(Wu+".zoom",p).on("dblclick.zoom",d).on(D,h)}function e(t){return[(t[0]-S.x)/S.k,(t[1]-S.y)/S.k]}function r(t){return[t[0]*S.k+S.x,t[1]*S.k+S.y]}function i(t){S.k=Math.max(C[0],Math.min(C[1],t))}function o(t,n){n=r(n),S.x+=t[0]-n[0],S.y+=t[1]-n[1]}function u(n,e,r,u){n.__chart__={x:S.x,y:S.y,k:S.k},i(Math.pow(2,u)),o(v=e,r),n=eu.select(n),T>0&&(n=n.transition().duration(T)),n.call(t.event)}function a(){w&&w.domain(b.range().map(function(t){return(t-S.x)/S.k}).map(b.invert)),_&&_.domain(M.range().map(function(t){return(t-S.y)/S.k}).map(M.invert))}function s(t){A++||t({type:"zoomstart"})}function l(t){a(),t({type:"zoom",scale:S.k,translate:[S.x,S.y]})}function c(t){--A||t({type:"zoomend"}),v=null}function f(){function t(){f=1,o(eu.mouse(i),p),l(a)}function r(){h.on(L,null).on(q,null),d(f&&eu.event.target===u),c(a)}var i=this,u=eu.event.target,a=R.of(i,arguments),f=0,h=eu.select(n(i)).on(L,t).on(q,r),p=e(eu.mouse(i)),d=G(i);Hs.call(i),s(a)}function h(){function t(){var t=eu.touches(d);return p=S.k,t.forEach(function(t){t.identifier in v&&(v[t.identifier]=e(t))}),t}function n(){var n=eu.event.target;eu.select(n).on(b,r).on(w,a),M.push(n);for(var e=eu.event.changedTouches,i=0,o=e.length;o>i;++i)v[e[i].identifier]=null;var s=t(),l=Date.now();if(1===s.length){if(500>l-x){var c=s[0];u(d,c,v[c.identifier],Math.floor(Math.log(S.k)/Math.LN2)+1),k()}x=l}else if(s.length>1){var c=s[0],f=s[1],h=c[0]-f[0],p=c[1]-f[1];y=h*h+p*p}}function r(){var t,n,e,r,u=eu.touches(d);Hs.call(d);for(var a=0,s=u.length;s>a;++a,r=null)if(e=u[a],r=v[e.identifier]){if(n)break;t=e,n=r}if(r){var c=(c=e[0]-t[0])*c+(c=e[1]-t[1])*c,f=y&&Math.sqrt(c/y);t=[(t[0]+e[0])/2,(t[1]+e[1])/2],n=[(n[0]+r[0])/2,(n[1]+r[1])/2],i(f*p)}x=null,o(t,n),l(g)}function a(){if(eu.event.touches.length){for(var n=eu.event.changedTouches,e=0,r=n.length;r>e;++e)delete v[n[e].identifier];for(var i in v)return void t()}eu.selectAll(M).on(m,null),_.on(j,f).on(D,h),E(),c(g)}var p,d=this,g=R.of(d,arguments),v={},y=0,m=".zoom-"+eu.event.changedTouches[0].identifier,b="touchmove"+m,w="touchend"+m,M=[],_=eu.select(d),E=G(d);n(),s(g),_.on(j,null).on(D,n)}function p(){var t=R.of(this,arguments);m?clearTimeout(m):(g=e(v=y||eu.mouse(this)),Hs.call(this),s(t)),m=setTimeout(function(){m=null,c(t)},50),k(),i(Math.pow(2,.002*Iu())*S.k),o(v,g),l(t)}function d(){var t=eu.mouse(this),n=Math.log(S.k)/Math.LN2;u(this,t,e(t),eu.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var g,v,y,m,x,b,w,M,_,S={x:0,y:0,k:1},N=[960,500],C=$u,T=250,A=0,j="mousedown.zoom",L="mousemove.zoom",q="mouseup.zoom",D="touchstart.zoom",R=E(t,"zoomstart","zoom","zoomend");return Wu||(Wu="onwheel"in ou?(Iu=function(){return-eu.event.deltaY*(eu.event.deltaMode?120:1)},"wheel"):"onmousewheel"in ou?(Iu=function(){return eu.event.wheelDelta},"mousewheel"):(Iu=function(){return-eu.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=R.of(this,arguments),n=S;Ds?eu.select(this).transition().each("start.zoom",function(){S=this.__chart__||{x:0,y:0,k:1},s(t)}).tween("zoom:zoom",function(){var e=N[0],r=N[1],i=v?v[0]:e/2,o=v?v[1]:r/2,u=eu.interpolateZoom([(i-S.x)/S.k,(o-S.y)/S.k,e/S.k],[(i-n.x)/n.k,(o-n.y)/n.k,e/n.k]);return function(n){var r=u(n),a=e/r[2];this.__chart__=S={x:i-r[0]*a,y:o-r[1]*a,k:a},l(t)}}).each("interrupt.zoom",function(){c(t)}).each("end.zoom",function(){c(t)}):(this.__chart__=S,s(t),l(t),c(t))})},t.translate=function(n){return arguments.length?(S={x:+n[0],y:+n[1],k:S.k},a(),t):[S.x,S.y]},t.scale=function(n){return arguments.length?(S={x:S.x,y:S.y,k:+n},a(),t):S.k},t.scaleExtent=function(n){return arguments.length?(C=null==n?$u:[+n[0],+n[1]],t):C},t.center=function(n){return arguments.length?(y=n&&[+n[0],+n[1]],t):y},t.size=function(n){return arguments.length?(N=n&&[+n[0],+n[1]],t):N},t.duration=function(n){return arguments.length?(T=+n,t):T},t.x=function(n){return arguments.length?(w=n,b=n.copy(),S={x:0,y:0,k:1},t):w},t.y=function(n){return arguments.length?(_=n,M=n.copy(),S={x:0,y:0,k:1},t):_},eu.rebind(t,R,"on")};var Iu,Wu,$u=[0,1/0];eu.color=ut,ut.prototype.toString=function(){return this.rgb()+""},eu.hsl=at;var Uu=at.prototype=new ut;Uu.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new at(this.h,this.s,this.l/t)},Uu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new at(this.h,this.s,t*this.l)},Uu.rgb=function(){return st(this.h,this.s,this.l)},eu.hcl=lt;var Bu=lt.prototype=new ut;Bu.brighter=function(t){return new lt(this.h,this.c,Math.min(100,this.l+Yu*(arguments.length?t:1)))},Bu.darker=function(t){return new lt(this.h,this.c,Math.max(0,this.l-Yu*(arguments.length?t:1)))},Bu.rgb=function(){return ct(this.h,this.c,this.l).rgb()},eu.lab=ft;var Yu=18,Xu=.95047,Vu=1,Gu=1.08883,Zu=ft.prototype=new ut;Zu.brighter=function(t){return new ft(Math.min(100,this.l+Yu*(arguments.length?t:1)),this.a,this.b)},Zu.darker=function(t){return new ft(Math.max(0,this.l-Yu*(arguments.length?t:1)),this.a,this.b)},Zu.rgb=function(){return ht(this.l,this.a,this.b)},eu.rgb=yt;var Ju=yt.prototype=new ut;Ju.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,e=this.g,r=this.b,i=30;return n||e||r?(n&&i>n&&(n=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new yt(Math.min(255,n/t),Math.min(255,e/t),Math.min(255,r/t))):new yt(i,i,i)},Ju.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new yt(t*this.r,t*this.g,t*this.b)},Ju.hsl=function(){return Mt(this.r,this.g,this.b)},Ju.toString=function(){return"#"+bt(this.r)+bt(this.g)+bt(this.b)};var Ku=eu.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,rebeccapurple:6697881,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});Ku.forEach(function(t,n){Ku.set(t,mt(n))}),eu.functor=Et,eu.xhr=Nt(m),eu.dsv=function(t,n){function e(t,e,o){arguments.length<3&&(o=e,e=null);var u=Ct(t,n,null==e?r:i(e),o);return u.row=function(t){return arguments.length?u.response(null==(e=t)?r:i(t)):e},u}function r(t){return e.parse(t.responseText)}function i(t){return function(n){return e.parse(n.responseText,t)}}function o(n){return n.map(u).join(t)}function u(t){return a.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var a=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return e.parse=function(t,n){var r;return e.parseRows(t,function(t,e){if(r)return r(t,e-1);var i=new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}");r=n?function(t,e){return n(i(t),e)}:i})},e.parseRows=function(t,n){function e(){if(c>=l)return u;if(i)return i=!1,o;var n=c;if(34===t.charCodeAt(n)){for(var e=n;e++<l;)if(34===t.charCodeAt(e)){if(34!==t.charCodeAt(e+1))break;++e}c=e+2;var r=t.charCodeAt(e+1);return 13===r?(i=!0,10===t.charCodeAt(e+2)&&++c):10===r&&(i=!0),t.slice(n+1,e).replace(/""/g,'"')}for(;l>c;){var r=t.charCodeAt(c++),a=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(c)&&(++c,++a);else if(r!==s)continue;return t.slice(n,c-a)}return t.slice(n)}for(var r,i,o={},u={},a=[],l=t.length,c=0,f=0;(r=e())!==u;){for(var h=[];r!==o&&r!==u;)h.push(r),r=e();n&&null==(h=n(h,f++))||a.push(h)}return a},e.format=function(n){if(Array.isArray(n[0]))return e.formatRows(n);var r=new y,i=[];return n.forEach(function(t){for(var n in t)r.has(n)||i.push(r.add(n))}),[i.map(u).join(t)].concat(n.map(function(n){return i.map(function(t){return u(n[t])}).join(t)})).join("\n")},e.formatRows=function(t){return t.map(o).join("\n")},e},eu.csv=eu.dsv(",","text/csv"),eu.tsv=eu.dsv(" ","text/tab-separated-values");var Qu,ta,na,ea,ra,ia=this[b(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};eu.timer=function(t,n,e){var r=arguments.length;2>r&&(n=0),3>r&&(e=Date.now());var i=e+n,o={c:t,t:i,f:!1,n:null};ta?ta.n=o:Qu=o,ta=o,na||(ea=clearTimeout(ea),na=1,ia(jt))},eu.timer.flush=function(){Lt(),qt()},eu.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)};var oa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Rt);eu.formatPrefix=function(t,n){var e=0;return t&&(0>t&&(t*=-1),n&&(t=eu.round(t,Dt(t,n))),e=1+Math.floor(1e-12+Math.log(t)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),oa[8+e/3]};var ua=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,aa=eu.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,n){return t.toPrecision(n)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},r:function(t,n){return(t=eu.round(t,Dt(t,n))).toFixed(Math.max(0,Math.min(20,Dt(t*(1+1e-15),n))))}}),sa=eu.time={},la=Date;Ot.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(){ca.setUTCDate.apply(this._,arguments)},setDay:function(){ca.setUTCDay.apply(this._,arguments)},setFullYear:function(){ca.setUTCFullYear.apply(this._,arguments)},setHours:function(){ca.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ca.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ca.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ca.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ca.setUTCSeconds.apply(this._,arguments)},setTime:function(){ca.setTime.apply(this._,arguments)}};var ca=Date.prototype;sa.year=zt(function(t){return t=sa.day(t),t.setMonth(0,1),t},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t){return t.getFullYear()}),sa.years=sa.year.range,sa.years.utc=sa.year.utc.range,sa.day=zt(function(t){var n=new la(2e3,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n},function(t,n){t.setDate(t.getDate()+n)},function(t){return t.getDate()-1}),sa.days=sa.day.range,sa.days.utc=sa.day.utc.range,sa.dayOfYear=function(t){var n=sa.year(t);return Math.floor((t-n-6e4*(t.getTimezoneOffset()-n.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,n){n=7-n;var e=sa[t]=zt(function(t){return(t=sa.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t},function(t,n){t.setDate(t.getDate()+7*Math.floor(n))},function(t){var e=sa.year(t).getDay();return Math.floor((sa.dayOfYear(t)+(e+n)%7)/7)-(e!==n)});sa[t+"s"]=e.range,sa[t+"s"].utc=e.utc.range,sa[t+"OfYear"]=function(t){var e=sa.year(t).getDay();return Math.floor((sa.dayOfYear(t)+(e+n)%7)/7)}}),sa.week=sa.sunday,sa.weeks=sa.sunday.range,sa.weeks.utc=sa.sunday.utc.range,sa.weekOfYear=sa.sundayOfYear;var fa={"-":"",_:" ",0:"0"},ha=/^\s*\d+/,pa=/^%/;eu.locale=function(t){return{numberFormat:Ht(t),timeFormat:It(t)}};var da=eu.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});eu.format=da.numberFormat,eu.geo={},ln.prototype={s:0,t:0,add:function(t){cn(t,this.t,ga),
cn(ga.s,this.s,this),this.s?this.t+=ga.t:this.s=ga.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ga=new ln;eu.geo.stream=function(t,n){t&&va.hasOwnProperty(t.type)?va[t.type](t,n):fn(t,n)};var va={Feature:function(t,n){fn(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)fn(e[r].geometry,n)}},ya={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){hn(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)hn(e[r],n,0)},Polygon:function(t,n){pn(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)pn(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)fn(e[r],n)}};eu.geo.area=function(t){return ma=0,eu.geo.stream(t,ba),ma};var ma,xa=new ln,ba={sphere:function(){ma+=4*Lu},point:w,lineStart:w,lineEnd:w,polygonStart:function(){xa.reset(),ba.lineStart=dn},polygonEnd:function(){var t=2*xa;ma+=0>t?4*Lu+t:t,ba.lineStart=ba.lineEnd=ba.point=w}};eu.geo.bounds=function(){function t(t,n){x.push(b=[c=t,h=t]),f>n&&(f=n),n>p&&(p=n)}function n(n,e){var r=gn([n*Hu,e*Hu]);if(y){var i=yn(y,r),o=[i[1],-i[0],0],u=yn(o,i);bn(u),u=wn(u);var s=n-d,l=s>0?1:-1,g=u[0]*Pu*l,v=du(s)>180;if(v^(g>l*d&&l*n>g)){var m=u[1]*Pu;m>p&&(p=m)}else if(g=(g+360)%360-180,v^(g>l*d&&l*n>g)){var m=-u[1]*Pu;f>m&&(f=m)}else f>e&&(f=e),e>p&&(p=e);v?d>n?a(c,n)>a(c,h)&&(h=n):a(n,h)>a(c,h)&&(c=n):h>=c?(c>n&&(c=n),n>h&&(h=n)):n>d?a(c,n)>a(c,h)&&(h=n):a(n,h)>a(c,h)&&(c=n)}else t(n,e);y=r,d=n}function e(){w.point=n}function r(){b[0]=c,b[1]=h,w.point=t,y=null}function i(t,e){if(y){var r=t-d;m+=du(r)>180?r+(r>0?360:-360):r}else g=t,v=e;ba.point(t,e),n(t,e)}function o(){ba.lineStart()}function u(){i(g,v),ba.lineEnd(),du(m)>Au&&(c=-(h=180)),b[0]=c,b[1]=h,y=null}function a(t,n){return(n-=t)<0?n+360:n}function s(t,n){return t[0]-n[0]}function l(t,n){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}var c,f,h,p,d,g,v,y,m,x,b,w={point:t,lineStart:e,lineEnd:r,polygonStart:function(){w.point=i,w.lineStart=o,w.lineEnd=u,m=0,ba.polygonStart()},polygonEnd:function(){ba.polygonEnd(),w.point=t,w.lineStart=e,w.lineEnd=r,0>xa?(c=-(h=180),f=-(p=90)):m>Au?p=90:-Au>m&&(f=-90),b[0]=c,b[1]=h}};return function(t){p=h=-(c=f=1/0),x=[],eu.geo.stream(t,w);var n=x.length;if(n){x.sort(s);for(var e,r=1,i=x[0],o=[i];n>r;++r)e=x[r],l(e[0],i)||l(e[1],i)?(a(i[0],e[1])>a(i[0],i[1])&&(i[1]=e[1]),a(e[0],i[1])>a(i[0],i[1])&&(i[0]=e[0])):o.push(i=e);for(var u,e,d=-(1/0),n=o.length-1,r=0,i=o[n];n>=r;i=e,++r)e=o[r],(u=a(i[1],e[0]))>d&&(d=u,c=e[0],h=i[1])}return x=b=null,c===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,f],[h,p]]}}(),eu.geo.centroid=function(t){wa=Ma=_a=ka=Sa=Ea=Na=Ca=Ta=Aa=ja=0,eu.geo.stream(t,La);var n=Ta,e=Aa,r=ja,i=n*n+e*e+r*r;return ju>i&&(n=Ea,e=Na,r=Ca,Au>Ma&&(n=_a,e=ka,r=Sa),i=n*n+e*e+r*r,ju>i)?[NaN,NaN]:[Math.atan2(e,n)*Pu,nt(r/Math.sqrt(i))*Pu]};var wa,Ma,_a,ka,Sa,Ea,Na,Ca,Ta,Aa,ja,La={sphere:w,point:_n,lineStart:Sn,lineEnd:En,polygonStart:function(){La.lineStart=Nn},polygonEnd:function(){La.lineStart=Sn}},qa=qn(Tn,Pn,zn,[-Lu,-Lu/2]),Da=1e9;eu.geo.clipExtent=function(){var t,n,e,r,i,o,u={stream:function(t){return i&&(i.valid=!1),i=o(t),i.valid=!0,i},extent:function(a){return arguments.length?(o=$n(t=+a[0][0],n=+a[0][1],e=+a[1][0],r=+a[1][1]),i&&(i.valid=!1,i=null),u):[[t,n],[e,r]]}};return u.extent([[0,0],[960,500]])},(eu.geo.conicEqualArea=function(){return Un(Bn)}).raw=Bn,eu.geo.albers=function(){return eu.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},eu.geo.albersUsa=function(){function t(t){var o=t[0],u=t[1];return n=null,e(o,u),n||(r(o,u),n)||i(o,u),n}var n,e,r,i,o=eu.geo.albers(),u=eu.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=eu.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,e){n=[t,e]}};return t.invert=function(t){var n=o.scale(),e=o.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?u:i>=.166&&.234>i&&r>=-.214&&-.115>r?a:o).invert(t)},t.stream=function(t){var n=o.stream(t),e=u.stream(t),r=a.stream(t);return{point:function(t,i){n.point(t,i),e.point(t,i),r.point(t,i)},sphere:function(){n.sphere(),e.sphere(),r.sphere()},lineStart:function(){n.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){n.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){n.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){n.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},t.precision=function(n){return arguments.length?(o.precision(n),u.precision(n),a.precision(n),t):o.precision()},t.scale=function(n){return arguments.length?(o.scale(n),u.scale(.35*n),a.scale(n),t.translate(o.translate())):o.scale()},t.translate=function(n){if(!arguments.length)return o.translate();var l=o.scale(),c=+n[0],f=+n[1];return e=o.translate(n).clipExtent([[c-.455*l,f-.238*l],[c+.455*l,f+.238*l]]).stream(s).point,r=u.translate([c-.307*l,f+.201*l]).clipExtent([[c-.425*l+Au,f+.12*l+Au],[c-.214*l-Au,f+.234*l-Au]]).stream(s).point,i=a.translate([c-.205*l,f+.212*l]).clipExtent([[c-.214*l+Au,f+.166*l+Au],[c-.115*l-Au,f+.234*l-Au]]).stream(s).point,t},t.scale(1070)};var Ra,Ha,Pa,Oa,za,Fa,Ia={point:w,lineStart:w,lineEnd:w,polygonStart:function(){Ha=0,Ia.lineStart=Yn},polygonEnd:function(){Ia.lineStart=Ia.lineEnd=Ia.point=w,Ra+=du(Ha/2)}},Wa={point:Xn,lineStart:w,lineEnd:w,polygonStart:w,polygonEnd:w},$a={point:Zn,lineStart:Jn,lineEnd:Kn,polygonStart:function(){$a.lineStart=Qn},polygonEnd:function(){$a.point=Zn,$a.lineStart=Jn,$a.lineEnd=Kn}};eu.geo.path=function(){function t(t){return t&&("function"==typeof a&&o.pointRadius(+a.apply(this,arguments)),u&&u.valid||(u=i(o)),eu.geo.stream(t,u)),o.result()}function n(){return u=null,t}var e,r,i,o,u,a=4.5;return t.area=function(t){return Ra=0,eu.geo.stream(t,i(Ia)),Ra},t.centroid=function(t){return _a=ka=Sa=Ea=Na=Ca=Ta=Aa=ja=0,eu.geo.stream(t,i($a)),ja?[Ta/ja,Aa/ja]:Ca?[Ea/Ca,Na/Ca]:Sa?[_a/Sa,ka/Sa]:[NaN,NaN]},t.bounds=function(t){return za=Fa=-(Pa=Oa=1/0),eu.geo.stream(t,i(Wa)),[[Pa,Oa],[za,Fa]]},t.projection=function(t){return arguments.length?(i=(e=t)?t.stream||ee(t):m,n()):e},t.context=function(t){return arguments.length?(o=null==(r=t)?new Vn:new te(t),"function"!=typeof a&&o.pointRadius(a),n()):r},t.pointRadius=function(n){return arguments.length?(a="function"==typeof n?n:(o.pointRadius(+n),+n),t):a},t.projection(eu.geo.albersUsa()).context(null)},eu.geo.transform=function(t){return{stream:function(n){var e=new re(n);for(var r in t)e[r]=t[r];return e}}},re.prototype={point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},eu.geo.projection=oe,eu.geo.projectionMutator=ue,(eu.geo.equirectangular=function(){return oe(se)}).raw=se.invert=se,eu.geo.rotation=function(t){function n(n){return n=t(n[0]*Hu,n[1]*Hu),n[0]*=Pu,n[1]*=Pu,n}return t=ce(t[0]%360*Hu,t[1]*Hu,t.length>2?t[2]*Hu:0),n.invert=function(n){return n=t.invert(n[0]*Hu,n[1]*Hu),n[0]*=Pu,n[1]*=Pu,n},n},le.invert=se,eu.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,n=ce(-t[0]*Hu,-t[1]*Hu,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=Pu,t[1]*=Pu}}),{type:"Polygon",coordinates:[i]}}var n,e,r=[0,0],i=6;return t.origin=function(n){return arguments.length?(r=n,t):r},t.angle=function(r){return arguments.length?(e=de((n=+r)*Hu,i*Hu),t):n},t.precision=function(r){return arguments.length?(e=de(n*Hu,(i=+r)*Hu),t):i},t.angle(90)},eu.geo.distance=function(t,n){var e,r=(n[0]-t[0])*Hu,i=t[1]*Hu,o=n[1]*Hu,u=Math.sin(r),a=Math.cos(r),s=Math.sin(i),l=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((e=f*u)*e+(e=l*c-s*f*a)*e),s*c+l*f*a)},eu.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return eu.range(Math.ceil(o/v)*v,i,v).map(h).concat(eu.range(Math.ceil(l/y)*y,s,y).map(p)).concat(eu.range(Math.ceil(r/d)*d,e,d).filter(function(t){return du(t%v)>Au}).map(c)).concat(eu.range(Math.ceil(a/g)*g,u,g).filter(function(t){return du(t%y)>Au}).map(f))}var e,r,i,o,u,a,s,l,c,f,h,p,d=10,g=d,v=90,y=360,m=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(s).slice(1),h(i).reverse().slice(1),p(l).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.majorExtent(n).minorExtent(n):t.minorExtent()},t.majorExtent=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],l=+n[0][1],s=+n[1][1],o>i&&(n=o,o=i,i=n),l>s&&(n=l,l=s,s=n),t.precision(m)):[[o,l],[i,s]]},t.minorExtent=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],a=+n[0][1],u=+n[1][1],r>e&&(n=r,r=e,e=n),a>u&&(n=a,a=u,u=n),t.precision(m)):[[r,a],[e,u]]},t.step=function(n){return arguments.length?t.majorStep(n).minorStep(n):t.minorStep()},t.majorStep=function(n){return arguments.length?(v=+n[0],y=+n[1],t):[v,y]},t.minorStep=function(n){return arguments.length?(d=+n[0],g=+n[1],t):[d,g]},t.precision=function(n){return arguments.length?(m=+n,c=ve(a,u,90),f=ye(r,e,m),h=ve(l,s,90),p=ye(o,i,m),t):m},t.majorExtent([[-180,-90+Au],[180,90-Au]]).minorExtent([[-180,-80-Au],[180,80+Au]])},eu.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[n||r.apply(this,arguments),e||i.apply(this,arguments)]}}var n,e,r=me,i=xe;return t.distance=function(){return eu.geo.distance(n||r.apply(this,arguments),e||i.apply(this,arguments))},t.source=function(e){return arguments.length?(r=e,n="function"==typeof e?null:e,t):r},t.target=function(n){return arguments.length?(i=n,e="function"==typeof n?null:n,t):i},t.precision=function(){return arguments.length?t:0},t},eu.geo.interpolate=function(t,n){return be(t[0]*Hu,t[1]*Hu,n[0]*Hu,n[1]*Hu)},eu.geo.length=function(t){return Ua=0,eu.geo.stream(t,Ba),Ua};var Ua,Ba={sphere:w,point:w,lineStart:we,lineEnd:w,polygonStart:w,polygonEnd:w},Ya=Me(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(eu.geo.azimuthalEqualArea=function(){return oe(Ya)}).raw=Ya;var Xa=Me(function(t){var n=Math.acos(t);return n&&n/Math.sin(n)},m);(eu.geo.azimuthalEquidistant=function(){return oe(Xa)}).raw=Xa,(eu.geo.conicConformal=function(){return Un(_e)}).raw=_e,(eu.geo.conicEquidistant=function(){return Un(ke)}).raw=ke;var Va=Me(function(t){return 1/t},Math.atan);(eu.geo.gnomonic=function(){return oe(Va)}).raw=Va,Se.invert=function(t,n){return[t,2*Math.atan(Math.exp(n))-Ru]},(eu.geo.mercator=function(){return Ee(Se)}).raw=Se;var Ga=Me(function(){return 1},Math.asin);(eu.geo.orthographic=function(){return oe(Ga)}).raw=Ga;var Za=Me(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(eu.geo.stereographic=function(){return oe(Za)}).raw=Za,Ne.invert=function(t,n){return[-n,2*Math.atan(Math.exp(t))-Ru]},(eu.geo.transverseMercator=function(){var t=Ee(Ne),n=t.center,e=t.rotate;return t.center=function(t){return t?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return t?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90])}).raw=Ne,eu.geom={},eu.geom.hull=function(t){function n(t){if(t.length<3)return[];var n,i=Et(e),o=Et(r),u=t.length,a=[],s=[];for(n=0;u>n;n++)a.push([+i.call(this,t[n],n),+o.call(this,t[n],n),n]);for(a.sort(je),n=0;u>n;n++)s.push([a[n][0],-a[n][1]]);var l=Ae(a),c=Ae(s),f=c[0]===l[0],h=c[c.length-1]===l[l.length-1],p=[];for(n=l.length-1;n>=0;--n)p.push(t[a[l[n]][2]]);for(n=+f;n<c.length-h;++n)p.push(t[a[c[n]][2]]);return p}var e=Ce,r=Te;return arguments.length?n(t):(n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n)},eu.geom.polygon=function(t){return xu(t,Ja),t};var Ja=eu.geom.polygon.prototype=[];Ja.area=function(){for(var t,n=-1,e=this.length,r=this[e-1],i=0;++n<e;)t=r,r=this[n],i+=t[1]*r[0]-t[0]*r[1];return.5*i},Ja.centroid=function(t){var n,e,r=-1,i=this.length,o=0,u=0,a=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)n=a,a=this[r],e=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*e,u+=(n[1]+a[1])*e;return[o*t,u*t]},Ja.clip=function(t){for(var n,e,r,i,o,u,a=De(t),s=-1,l=this.length-De(this),c=this[l-1];++s<l;){for(n=t.slice(),t.length=0,i=this[s],o=n[(r=n.length-a)-1],e=-1;++e<r;)u=n[e],Le(u,c,i)?(Le(o,c,i)||t.push(qe(o,u,c,i)),t.push(u)):Le(o,c,i)&&t.push(qe(o,u,c,i)),o=u;a&&t.push(t[0]),c=i}return t};var Ka,Qa,ts,ns,es,rs=[],is=[];We.prototype.prepare=function(){for(var t,n=this.edges,e=n.length;e--;)t=n[e].edge,t.b&&t.a||n.splice(e,1);return n.sort(Ue),n.length},tr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},nr.prototype={insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=or(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(rr(this,e),t=e,e=t.U),e.C=!1,r.C=!0,ir(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(ir(this,e),t=e,e=t.U),e.C=!1,r.C=!0,rr(this,r))),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,u=t.R;if(e=o?u?or(u):o:u,i?i.L===t?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,rr(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,ir(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,rr(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,ir(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,rr(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,ir(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},eu.geom.voronoi=function(t){function n(t){var n=new Array(t.length),r=a[0][0],i=a[0][1],o=a[1][0],u=a[1][1];return ur(e(t),a).cells.forEach(function(e,a){var s=e.edges,l=e.site,c=n[a]=s.length?s.map(function(t){var n=t.start();return[n.x,n.y]}):l.x>=r&&l.x<=o&&l.y>=i&&l.y<=u?[[r,u],[o,u],[o,i],[r,i]]:[];c.point=t[a]}),n}function e(t){return t.map(function(t,n){return{x:Math.round(o(t,n)/Au)*Au,y:Math.round(u(t,n)/Au)*Au,i:n}})}var r=Ce,i=Te,o=r,u=i,a=os;return t?n(t):(n.links=function(t){return ur(e(t)).edges.filter(function(t){return t.l&&t.r}).map(function(n){return{source:t[n.l.i],target:t[n.r.i]}})},n.triangles=function(t){var n=[];return ur(e(t)).cells.forEach(function(e,r){for(var i,o,u=e.site,a=e.edges.sort(Ue),s=-1,l=a.length,c=a[l-1].edge,f=c.l===u?c.r:c.l;++s<l;)i=c,o=f,c=a[s].edge,f=c.l===u?c.r:c.l,r<o.i&&r<f.i&&sr(u,o,f)<0&&n.push([t[r],t[o.i],t[f.i]])}),n},n.x=function(t){return arguments.length?(o=Et(r=t),n):r},n.y=function(t){return arguments.length?(u=Et(i=t),n):i},n.clipExtent=function(t){return arguments.length?(a=null==t?os:t,n):a===os?null:a},n.size=function(t){return arguments.length?n.clipExtent(t&&[[0,0],t]):a===os?null:a&&a[1]},n)};var os=[[-1e6,-1e6],[1e6,1e6]];eu.geom.delaunay=function(t){return eu.geom.voronoi().triangles(t)},eu.geom.quadtree=function(t,n,e,r,i){function o(t){function o(t,n,e,r,i,o,u,a){if(!isNaN(e)&&!isNaN(r))if(t.leaf){var s=t.x,c=t.y;if(null!=s)if(du(s-e)+du(c-r)<.01)l(t,n,e,r,i,o,u,a);else{var f=t.point;t.x=t.y=t.point=null,l(t,f,s,c,i,o,u,a),l(t,n,e,r,i,o,u,a)}else t.x=e,t.y=r,t.point=n}else l(t,n,e,r,i,o,u,a)}function l(t,n,e,r,i,u,a,s){var l=.5*(i+a),c=.5*(u+s),f=e>=l,h=r>=c,p=h<<1|f;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=fr()),f?i=l:a=l,h?u=c:s=c,o(t,n,e,r,i,u,a,s)}var c,f,h,p,d,g,v,y,m,x=Et(a),b=Et(s);if(null!=n)g=n,v=e,y=r,m=i;else if(y=m=-(g=v=1/0),f=[],h=[],d=t.length,u)for(p=0;d>p;++p)c=t[p],c.x<g&&(g=c.x),c.y<v&&(v=c.y),c.x>y&&(y=c.x),c.y>m&&(m=c.y),f.push(c.x),h.push(c.y);else for(p=0;d>p;++p){var w=+x(c=t[p],p),M=+b(c,p);g>w&&(g=w),v>M&&(v=M),w>y&&(y=w),M>m&&(m=M),f.push(w),h.push(M)}var _=y-g,k=m-v;_>k?m=v+_:y=g+k;var S=fr();if(S.add=function(t){o(S,t,+x(t,++p),+b(t,p),g,v,y,m)},S.visit=function(t){hr(t,S,g,v,y,m)},S.find=function(t){return pr(S,t[0],t[1],g,v,y,m)},p=-1,null==n){for(;++p<d;)o(S,t[p],f[p],h[p],g,v,y,m);--p}else t.forEach(S.add);return f=h=t=c=null,S}var u,a=Ce,s=Te;return(u=arguments.length)?(a=lr,s=cr,3===u&&(i=e,r=n,e=n=0),o(t)):(o.x=function(t){return arguments.length?(a=t,o):a},o.y=function(t){return arguments.length?(s=t,o):s},o.extent=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),o):null==n?null:[[n,e],[r,i]]},o.size=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=e=0,r=+t[0],i=+t[1]),o):null==n?null:[r-n,i-e]},o)},eu.interpolateRgb=dr,eu.interpolateObject=gr,eu.interpolateNumber=vr,eu.interpolateString=yr;var us=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,as=new RegExp(us.source,"g");eu.interpolate=mr,eu.interpolators=[function(t,n){var e=typeof n;return("string"===e?Ku.has(n)||/^(#|rgb\(|hsl\()/.test(n)?dr:yr:n instanceof ut?dr:Array.isArray(n)?xr:"object"===e&&isNaN(n)?gr:vr)(t,n)}],eu.interpolateArray=xr;var ss=function(){return m},ls=eu.map({linear:ss,poly:Er,quad:function(){return _r},cubic:function(){return kr},sin:function(){return Nr},exp:function(){return Cr},circle:function(){return Tr},elastic:Ar,back:jr,bounce:function(){return Lr}}),cs=eu.map({"in":m,out:wr,"in-out":Mr,"out-in":function(t){return Mr(wr(t))}});eu.ease=function(t){var n=t.indexOf("-"),e=n>=0?t.slice(0,n):t,r=n>=0?t.slice(n+1):"in";return e=ls.get(e)||ss,r=cs.get(r)||m,br(r(e.apply(null,ru.call(arguments,1))))},eu.interpolateHcl=qr,eu.interpolateHsl=Dr,eu.interpolateLab=Rr,eu.interpolateRound=Hr,eu.transform=function(t){var n=ou.createElementNS(eu.ns.prefix.svg,"g");return(eu.transform=function(t){if(null!=t){n.setAttribute("transform",t);var e=n.transform.baseVal.consolidate()}return new Pr(e?e.matrix:fs)})(t)},Pr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var fs={a:1,b:0,c:0,d:1,e:0,f:0};eu.interpolateTransform=Ir,eu.layout={},eu.layout.bundle=function(){return function(t){for(var n=[],e=-1,r=t.length;++e<r;)n.push(Ur(t[e]));return n}},eu.layout.chord=function(){function t(){var t,l,f,h,p,d={},g=[],v=eu.range(o),y=[];for(e=[],r=[],t=0,h=-1;++h<o;){for(l=0,p=-1;++p<o;)l+=i[h][p];g.push(l),y.push(eu.range(o)),t+=l}for(u&&v.sort(function(t,n){return u(g[t],g[n])}),a&&y.forEach(function(t,n){t.sort(function(t,e){return a(i[n][t],i[n][e])})}),t=(qu-c*o)/t,l=0,h=-1;++h<o;){for(f=l,p=-1;++p<o;){var m=v[h],x=y[m][p],b=i[m][x],w=l,M=l+=b*t;d[m+"-"+x]={index:m,subindex:x,startAngle:w,endAngle:M,value:b}}r[m]={index:m,startAngle:f,endAngle:l,value:(l-f)/t},l+=c}for(h=-1;++h<o;)for(p=h-1;++p<o;){var _=d[h+"-"+p],k=d[p+"-"+h];(_.value||k.value)&&e.push(_.value<k.value?{source:k,target:_}:{source:_,target:k})}s&&n()}function n(){e.sort(function(t,n){return s((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)})}var e,r,i,o,u,a,s,l={},c=0;return l.matrix=function(t){return arguments.length?(o=(i=t)&&i.length,e=r=null,l):i},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(u=t,e=r=null,l):u},l.sortSubgroups=function(t){return arguments.length?(a=t,e=null,l):a},l.sortChords=function(t){return arguments.length?(s=t,e&&n(),l):s},l.chords=function(){return e||t(),e},l.groups=function(){return r||t(),r},l},eu.layout.force=function(){function t(t){return function(n,e,r,i){if(n.point!==t){var o=n.cx-t.x,u=n.cy-t.y,a=i-e,s=o*o+u*u;if(s>a*a/v){if(d>s){var l=n.charge/s;t.px-=o*l,t.py-=u*l}return!0}if(n.point&&s&&d>s){var l=n.pointCharge/s;t.px-=o*l,t.py-=u*l}}return!n.charge}}function n(t){t.px=eu.event.x,t.py=eu.event.y,a.resume()}var e,r,i,o,u,a={},s=eu.dispatch("start","tick","end"),l=[1,1],c=.9,f=hs,h=ps,p=-30,d=ds,g=.1,v=.64,y=[],x=[];return a.tick=function(){if((r*=.99)<.005)return s.end({type:"end",alpha:r=0}),!0;var n,e,a,f,h,d,v,m,b,w=y.length,M=x.length;for(e=0;M>e;++e)a=x[e],f=a.source,h=a.target,m=h.x-f.x,b=h.y-f.y,(d=m*m+b*b)&&(d=r*o[e]*((d=Math.sqrt(d))-i[e])/d,m*=d,b*=d,h.x-=m*(v=f.weight/(h.weight+f.weight)),h.y-=b*v,f.x+=m*(v=1-v),f.y+=b*v);if((v=r*g)&&(m=l[0]/2,b=l[1]/2,e=-1,v))for(;++e<w;)a=y[e],a.x+=(m-a.x)*v,a.y+=(b-a.y)*v;if(p)for(Jr(n=eu.geom.quadtree(y),r,u),e=-1;++e<w;)(a=y[e]).fixed||n.visit(t(a));for(e=-1;++e<w;)a=y[e],a.fixed?(a.x=a.px,a.y=a.py):(a.x-=(a.px-(a.px=a.x))*c,a.y-=(a.py-(a.py=a.y))*c);s.tick({type:"tick",alpha:r})},a.nodes=function(t){return arguments.length?(y=t,a):y},a.links=function(t){return arguments.length?(x=t,a):x},a.size=function(t){return arguments.length?(l=t,a):l},a.linkDistance=function(t){return arguments.length?(f="function"==typeof t?t:+t,a):f},a.distance=a.linkDistance,a.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,a):h},a.friction=function(t){return arguments.length?(c=+t,a):c},a.charge=function(t){return arguments.length?(p="function"==typeof t?t:+t,a):p},a.chargeDistance=function(t){return arguments.length?(d=t*t,a):Math.sqrt(d)},a.gravity=function(t){return arguments.length?(g=+t,a):g},a.theta=function(t){return arguments.length?(v=t*t,a):Math.sqrt(v)},a.alpha=function(t){return arguments.length?(t=+t,r?r=t>0?t:0:t>0&&(s.start({type:"start",alpha:r=t}),eu.timer(a.tick)),a):r},a.start=function(){function t(t,r){if(!e){for(e=new Array(s),a=0;s>a;++a)e[a]=[];for(a=0;c>a;++a){var i=x[a];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var o,u=e[n],a=-1,l=u.length;++a<l;)if(!isNaN(o=u[a][t]))return o;return Math.random()*r}var n,e,r,s=y.length,c=x.length,d=l[0],g=l[1];for(n=0;s>n;++n)(r=y[n]).index=n,r.weight=0;for(n=0;c>n;++n)r=x[n],"number"==typeof r.source&&(r.source=y[r.source]),"number"==typeof r.target&&(r.target=y[r.target]),++r.source.weight,++r.target.weight;for(n=0;s>n;++n)r=y[n],isNaN(r.x)&&(r.x=t("x",d)),isNaN(r.y)&&(r.y=t("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof f)for(n=0;c>n;++n)i[n]=+f.call(this,x[n],n);else for(n=0;c>n;++n)i[n]=f;if(o=[],"function"==typeof h)for(n=0;c>n;++n)o[n]=+h.call(this,x[n],n);else for(n=0;c>n;++n)o[n]=h;if(u=[],"function"==typeof p)for(n=0;s>n;++n)u[n]=+p.call(this,y[n],n);else for(n=0;s>n;++n)u[n]=p;return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){return e||(e=eu.behavior.drag().origin(m).on("dragstart.force",Xr).on("drag.force",n).on("dragend.force",Vr)),arguments.length?void this.on("mouseover.force",Gr).on("mouseout.force",Zr).call(e):e},eu.rebind(a,s,"on")};var hs=20,ps=1,ds=1/0;eu.layout.hierarchy=function(){function t(i){var o,u=[i],a=[];for(i.depth=0;null!=(o=u.pop());)if(a.push(o),(l=e.call(t,o,o.depth))&&(s=l.length)){for(var s,l,c;--s>=0;)u.push(c=l[s]),c.parent=o,c.depth=o.depth+1;r&&(o.value=0),o.children=l}else r&&(o.value=+r.call(t,o,o.depth)||0),delete o.children;return ti(i,function(t){var e,i;n&&(e=t.children)&&e.sort(n),r&&(i=t.parent)&&(i.value+=t.value)}),a}var n=ri,e=ni,r=ei;return t.sort=function(e){return arguments.length?(n=e,t):n},t.children=function(n){return arguments.length?(e=n,t):e},t.value=function(n){return arguments.length?(r=n,t):r},t.revalue=function(n){return r&&(Qr(n,function(t){t.children&&(t.value=0)}),ti(n,function(n){var e;n.children||(n.value=+r.call(t,n,n.depth)||0),(e=n.parent)&&(e.value+=n.value)})),n},t},eu.layout.partition=function(){function t(n,e,r,i){var o=n.children;if(n.x=e,n.y=n.depth*i,n.dx=r,n.dy=i,o&&(u=o.length)){var u,a,s,l=-1;for(r=n.value?r/n.value:0;++l<u;)t(a=o[l],e,s=a.value*r,i),e+=s}}function n(t){var e=t.children,r=0;if(e&&(i=e.length))for(var i,o=-1;++o<i;)r=Math.max(r,n(e[o]));return 1+r}function e(e,o){var u=r.call(this,e,o);return t(u[0],0,i[0],i[1]/n(u[0])),u}var r=eu.layout.hierarchy(),i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},Kr(e,r)},eu.layout.pie=function(){function t(u){var a,s=u.length,l=u.map(function(e,r){return+n.call(t,e,r)}),c=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof i?i.apply(this,arguments):i)-c,h=Math.min(Math.abs(f)/s,+("function"==typeof o?o.apply(this,arguments):o)),p=h*(0>f?-1:1),d=(f-s*p)/eu.sum(l),g=eu.range(s),v=[];return null!=e&&g.sort(e===gs?function(t,n){return l[n]-l[t]}:function(t,n){return e(u[t],u[n])}),g.forEach(function(t){v[t]={data:u[t],value:a=l[t],startAngle:c,endAngle:c+=a*d+p,padAngle:h}}),v}var n=Number,e=gs,r=0,i=qu,o=0;return t.value=function(e){return arguments.length?(n=e,t):n},t.sort=function(n){return arguments.length?(e=n,t):e},t.startAngle=function(n){return arguments.length?(r=n,t):r},t.endAngle=function(n){return arguments.length?(i=n,t):i},t.padAngle=function(n){return arguments.length?(o=n,t):o},t};var gs={};eu.layout.stack=function(){function t(a,s){if(!(h=a.length))return a;var l=a.map(function(e,r){return n.call(t,e,r)}),c=l.map(function(n){return n.map(function(n,e){return[o.call(t,n,e),u.call(t,n,e)]})}),f=e.call(t,c,s);l=eu.permute(l,f),c=eu.permute(c,f);var h,p,d,g,v=r.call(t,c,s),y=l[0].length;for(d=0;y>d;++d)for(i.call(t,l[0][d],g=v[d],c[0][d][1]),p=1;h>p;++p)i.call(t,l[p][d],g+=c[p-1][d][1],c[p][d][1]);return a}var n=m,e=si,r=li,i=ai,o=oi,u=ui;return t.values=function(e){return arguments.length?(n=e,t):n},t.order=function(n){return arguments.length?(e="function"==typeof n?n:vs.get(n)||si,t):e},t.offset=function(n){return arguments.length?(r="function"==typeof n?n:ys.get(n)||li,t):r},t.x=function(n){return arguments.length?(o=n,t):o},t.y=function(n){return arguments.length?(u=n,t):u},t.out=function(n){return arguments.length?(i=n,t):i},t};var vs=eu.map({"inside-out":function(t){var n,e,r=t.length,i=t.map(ci),o=t.map(fi),u=eu.range(r).sort(function(t,n){return i[t]-i[n]}),a=0,s=0,l=[],c=[];for(n=0;r>n;++n)e=u[n],s>a?(a+=o[e],l.push(e)):(s+=o[e],c.push(e));return c.reverse().concat(l)},reverse:function(t){return eu.range(t.length).reverse()},"default":si}),ys=eu.map({silhouette:function(t){var n,e,r,i=t.length,o=t[0].length,u=[],a=0,s=[];for(e=0;o>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];r>a&&(a=r),u.push(r)}for(e=0;o>e;++e)s[e]=(a-u[e])/2;return s},wiggle:function(t){var n,e,r,i,o,u,a,s,l,c=t.length,f=t[0],h=f.length,p=[];for(p[0]=s=l=0,e=1;h>e;++e){for(n=0,i=0;c>n;++n)i+=t[n][e][1];for(n=0,o=0,a=f[e][0]-f[e-1][0];c>n;++n){for(r=0,u=(t[n][e][1]-t[n][e-1][1])/(2*a);n>r;++r)u+=(t[r][e][1]-t[r][e-1][1])/a;o+=u*t[n][e][1]}p[e]=s-=i?o/i*a:0,l>s&&(l=s)}for(e=0;h>e;++e)p[e]-=l;return p},expand:function(t){var n,e,r,i=t.length,o=t[0].length,u=1/i,a=[];for(e=0;o>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];if(r)for(n=0;i>n;n++)t[n][e][1]/=r;else for(n=0;i>n;n++)t[n][e][1]=u}for(e=0;o>e;++e)a[e]=0;return a},zero:li});eu.layout.histogram=function(){function t(t,o){for(var u,a,s=[],l=t.map(e,this),c=r.call(this,l,o),f=i.call(this,c,l,o),o=-1,h=l.length,p=f.length-1,d=n?1:1/h;++o<p;)u=s[o]=[],u.dx=f[o+1]-(u.x=f[o]),u.y=0;if(p>0)for(o=-1;++o<h;)a=l[o],a>=c[0]&&a<=c[1]&&(u=s[eu.bisect(f,a,1,p)-1],u.y+=d,u.push(t[o]));return s}var n=!0,e=Number,r=gi,i=pi;return t.value=function(n){return arguments.length?(e=n,t):e},t.range=function(n){return arguments.length?(r=Et(n),t):r},t.bins=function(n){return arguments.length?(i="number"==typeof n?function(t){return di(t,n)}:Et(n),t):i},t.frequency=function(e){return arguments.length?(n=!!e,t):n},t},eu.layout.pack=function(){function t(t,o){var u=e.call(this,t,o),a=u[0],s=i[0],l=i[1],c=null==n?Math.sqrt:"function"==typeof n?n:function(){return n};if(a.x=a.y=0,ti(a,function(t){t.r=+c(t.value)}),ti(a,bi),r){var f=r*(n?1:Math.max(2*a.r/s,2*a.r/l))/2;ti(a,function(t){t.r+=f}),ti(a,bi),ti(a,function(t){t.r-=f})}return _i(a,s/2,l/2,n?1:1/Math.max(2*a.r/s,2*a.r/l)),u}var n,e=eu.layout.hierarchy().sort(vi),r=0,i=[1,1];return t.size=function(n){return arguments.length?(i=n,t):i},t.radius=function(e){return arguments.length?(n=null==e||"function"==typeof e?e:+e,t):n},t.padding=function(n){return arguments.length?(r=+n,t):r},Kr(t,e)},eu.layout.tree=function(){function t(t,i){var c=u.call(this,t,i),f=c[0],h=n(f);if(ti(h,e),h.parent.m=-h.z,Qr(h,r),l)Qr(f,o);else{var p=f,d=f,g=f;Qr(f,function(t){t.x<p.x&&(p=t),t.x>d.x&&(d=t),t.depth>g.depth&&(g=t)});var v=a(p,d)/2-p.x,y=s[0]/(d.x+a(d,p)/2+v),m=s[1]/(g.depth||1);Qr(f,function(t){t.x=(t.x+v)*y,t.y=t.depth*m})}return c}function n(t){for(var n,e={A:null,children:[t]},r=[e];null!=(n=r.pop());)for(var i,o=n.children,u=0,a=o.length;a>u;++u)r.push((o[u]=i={_:o[u],parent:n,children:(i=o[u].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:u}).a=i);return e.children[0]}function e(t){var n=t.children,e=t.parent.children,r=t.i?e[t.i-1]:null;if(n.length){Ti(t);var o=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+a(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+a(t._,r._));t.parent.A=i(t,r,t.parent.A||e[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,n,e){if(n){for(var r,i=t,o=t,u=n,s=i.parent.children[0],l=i.m,c=o.m,f=u.m,h=s.m;u=Ni(u),i=Ei(i),u&&i;)s=Ei(s),o=Ni(o),o.a=t,r=u.z+f-i.z-l+a(u._,i._),r>0&&(Ci(Ai(u,t,e),t,r),l+=r,c+=r),f+=u.m,l+=i.m,h+=s.m,c+=o.m;u&&!Ni(o)&&(o.t=u,o.m+=f-c),i&&!Ei(s)&&(s.t=i,s.m+=l-h,e=t)}return e}function o(t){t.x*=s[0],t.y=t.depth*s[1]}var u=eu.layout.hierarchy().sort(null).value(null),a=Si,s=[1,1],l=null;return t.separation=function(n){return arguments.length?(a=n,t):a},t.size=function(n){return arguments.length?(l=null==(s=n)?o:null,t):l?null:s},t.nodeSize=function(n){return arguments.length?(l=null==(s=n)?null:o,t):l?s:null},Kr(t,u)},eu.layout.cluster=function(){function t(t,o){var u,a=n.call(this,t,o),s=a[0],l=0;ti(s,function(t){var n=t.children;n&&n.length?(t.x=Li(n),t.y=ji(n)):(t.x=u?l+=e(t,u):0,t.y=0,u=t)});var c=qi(s),f=Di(s),h=c.x-e(c,f)/2,p=f.x+e(f,c)/2;return ti(s,i?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-h)/(p-h)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),a}var n=eu.layout.hierarchy().sort(null).value(null),e=Si,r=[1,1],i=!1;return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(n){return arguments.length?(i=null==(r=n),t):i?null:r},t.nodeSize=function(n){return arguments.length?(i=null!=(r=n),t):i?r:null},Kr(t,n)},eu.layout.treemap=function(){function t(t,n){for(var e,r,i=-1,o=t.length;++i<o;)r=(e=t[i]).value*(0>n?0:n),e.area=isNaN(r)||0>=r?0:r}function n(e){var o=e.children;if(o&&o.length){var u,a,s,l=f(e),c=[],h=o.slice(),d=1/0,g="slice"===p?l.dx:"dice"===p?l.dy:"slice-dice"===p?1&e.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(t(h,l.dx*l.dy/e.value),c.area=0;(s=h.length)>0;)c.push(u=h[s-1]),c.area+=u.area,"squarify"!==p||(a=r(c,g))<=d?(h.pop(),d=a):(c.area-=c.pop().area,i(c,g,l,!1),g=Math.min(l.dx,l.dy),c.length=c.area=0,d=1/0);c.length&&(i(c,g,l,!0),c.length=c.area=0),o.forEach(n)}}function e(n){var r=n.children;if(r&&r.length){var o,u=f(n),a=r.slice(),s=[];for(t(a,u.dx*u.dy/n.value),s.area=0;o=a.pop();)s.push(o),s.area+=o.area,null!=o.z&&(i(s,o.z?u.dx:u.dy,u,!a.length),s.length=s.area=0);r.forEach(e)}}function r(t,n){for(var e,r=t.area,i=0,o=1/0,u=-1,a=t.length;++u<a;)(e=t[u].area)&&(o>e&&(o=e),e>i&&(i=e));return r*=r,n*=n,r?Math.max(n*i*d/r,r/(n*o*d)):1/0}function i(t,n,e,r){var i,o=-1,u=t.length,a=e.x,l=e.y,c=n?s(t.area/n):0;if(n==e.dx){for((r||c>e.dy)&&(c=e.dy);++o<u;)i=t[o],i.x=a,i.y=l,i.dy=c,a+=i.dx=Math.min(e.x+e.dx-a,c?s(i.area/c):0);i.z=!0,i.dx+=e.x+e.dx-a,e.y+=c,e.dy-=c}else{for((r||c>e.dx)&&(c=e.dx);++o<u;)i=t[o],i.x=a,i.y=l,i.dx=c,l+=i.dy=Math.min(e.y+e.dy-l,c?s(i.area/c):0);i.z=!1,i.dy+=e.y+e.dy-l,e.x+=c,e.dx-=c}}function o(r){var i=u||a(r),o=i[0];return o.x=0,o.y=0,o.dx=l[0],o.dy=l[1],u&&a.revalue(o),t([o],o.dx*o.dy/o.value),
(u?e:n)(o),h&&(u=i),i}var u,a=eu.layout.hierarchy(),s=Math.round,l=[1,1],c=null,f=Ri,h=!1,p="squarify",d=.5*(1+Math.sqrt(5));return o.size=function(t){return arguments.length?(l=t,o):l},o.padding=function(t){function n(n){var e=t.call(o,n,n.depth);return null==e?Ri(n):Hi(n,"number"==typeof e?[e,e,e,e]:e)}function e(n){return Hi(n,t)}if(!arguments.length)return c;var r;return f=null==(c=t)?Ri:"function"==(r=typeof t)?n:"number"===r?(t=[t,t,t,t],e):e,o},o.round=function(t){return arguments.length?(s=t?Math.round:Number,o):s!=Number},o.sticky=function(t){return arguments.length?(h=t,u=null,o):h},o.ratio=function(t){return arguments.length?(d=t,o):d},o.mode=function(t){return arguments.length?(p=t+"",o):p},Kr(o,a)},eu.random={normal:function(t,n){var e=arguments.length;return 2>e&&(n=1),1>e&&(t=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return t+n*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=eu.random.normal.apply(eu,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=eu.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(t){return function(){for(var n=0,e=0;t>e;e++)n+=Math.random();return n}}},eu.scale={};var ms={floor:m,ceil:m};eu.scale.linear=function(){return $i([0,1],[0,1],mr,!1)};var xs={s:1,g:1,p:1,r:1,e:1};eu.scale.log=function(){return Ji(eu.scale.linear().domain([0,1]),10,!0,[1,10])};var bs=eu.format(".0e"),ws={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};eu.scale.pow=function(){return Ki(eu.scale.linear(),1,[0,1])},eu.scale.sqrt=function(){return eu.scale.pow().exponent(.5)},eu.scale.ordinal=function(){return to([],{t:"range",a:[[]]})},eu.scale.category10=function(){return eu.scale.ordinal().range(Ms)},eu.scale.category20=function(){return eu.scale.ordinal().range(_s)},eu.scale.category20b=function(){return eu.scale.ordinal().range(ks)},eu.scale.category20c=function(){return eu.scale.ordinal().range(Ss)};var Ms=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xt),_s=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xt),ks=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xt),Ss=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xt);eu.scale.quantile=function(){return no([],[])},eu.scale.quantize=function(){return eo(0,1,[0,1])},eu.scale.threshold=function(){return ro([.5],[0,1])},eu.scale.identity=function(){return io([0,1])},eu.svg={},eu.svg.arc=function(){function t(){var t=Math.max(0,+e.apply(this,arguments)),l=Math.max(0,+r.apply(this,arguments)),c=u.apply(this,arguments)-Ru,f=a.apply(this,arguments)-Ru,h=Math.abs(f-c),p=c>f?0:1;if(t>l&&(d=l,l=t,t=d),h>=Du)return n(l,p)+(t?n(t,1-p):"")+"Z";var d,g,v,y,m,x,b,w,M,_,k,S,E=0,N=0,C=[];if((y=(+s.apply(this,arguments)||0)/2)&&(v=o===Es?Math.sqrt(t*t+l*l):+o.apply(this,arguments),p||(N*=-1),l&&(N=nt(v/l*Math.sin(y))),t&&(E=nt(v/t*Math.sin(y)))),l){m=l*Math.cos(c+N),x=l*Math.sin(c+N),b=l*Math.cos(f-N),w=l*Math.sin(f-N);var T=Math.abs(f-c-2*N)<=Lu?0:1;if(N&&fo(m,x,b,w)===p^T){var A=(c+f)/2;m=l*Math.cos(A),x=l*Math.sin(A),b=w=null}}else m=x=0;if(t){M=t*Math.cos(f-E),_=t*Math.sin(f-E),k=t*Math.cos(c+E),S=t*Math.sin(c+E);var j=Math.abs(c-f+2*E)<=Lu?0:1;if(E&&fo(M,_,k,S)===1-p^j){var L=(c+f)/2;M=t*Math.cos(L),_=t*Math.sin(L),k=S=null}}else M=_=0;if((d=Math.min(Math.abs(l-t)/2,+i.apply(this,arguments)))>.001){g=l>t^p?0:1;var q=null==k?[M,_]:null==b?[m,x]:qe([m,x],[k,S],[b,w],[M,_]),D=m-q[0],R=x-q[1],H=b-q[0],P=w-q[1],O=1/Math.sin(Math.acos((D*H+R*P)/(Math.sqrt(D*D+R*R)*Math.sqrt(H*H+P*P)))/2),z=Math.sqrt(q[0]*q[0]+q[1]*q[1]);if(null!=b){var F=Math.min(d,(l-z)/(O+1)),I=ho(null==k?[M,_]:[k,S],[m,x],l,F,p),W=ho([b,w],[M,_],l,F,p);d===F?C.push("M",I[0],"A",F,",",F," 0 0,",g," ",I[1],"A",l,",",l," 0 ",1-p^fo(I[1][0],I[1][1],W[1][0],W[1][1]),",",p," ",W[1],"A",F,",",F," 0 0,",g," ",W[0]):C.push("M",I[0],"A",F,",",F," 0 1,",g," ",W[0])}else C.push("M",m,",",x);if(null!=k){var $=Math.min(d,(t-z)/(O-1)),U=ho([m,x],[k,S],t,-$,p),B=ho([M,_],null==b?[m,x]:[b,w],t,-$,p);d===$?C.push("L",B[0],"A",$,",",$," 0 0,",g," ",B[1],"A",t,",",t," 0 ",p^fo(B[1][0],B[1][1],U[1][0],U[1][1]),",",1-p," ",U[1],"A",$,",",$," 0 0,",g," ",U[0]):C.push("L",B[0],"A",$,",",$," 0 0,",g," ",U[0])}else C.push("L",M,",",_)}else C.push("M",m,",",x),null!=b&&C.push("A",l,",",l," 0 ",T,",",p," ",b,",",w),C.push("L",M,",",_),null!=k&&C.push("A",t,",",t," 0 ",j,",",1-p," ",k,",",S);return C.push("Z"),C.join("")}function n(t,n){return"M0,"+t+"A"+t+","+t+" 0 1,"+n+" 0,"+-t+"A"+t+","+t+" 0 1,"+n+" 0,"+t}var e=uo,r=ao,i=oo,o=Es,u=so,a=lo,s=co;return t.innerRadius=function(n){return arguments.length?(e=Et(n),t):e},t.outerRadius=function(n){return arguments.length?(r=Et(n),t):r},t.cornerRadius=function(n){return arguments.length?(i=Et(n),t):i},t.padRadius=function(n){return arguments.length?(o=n==Es?Es:Et(n),t):o},t.startAngle=function(n){return arguments.length?(u=Et(n),t):u},t.endAngle=function(n){return arguments.length?(a=Et(n),t):a},t.padAngle=function(n){return arguments.length?(s=Et(n),t):s},t.centroid=function(){var t=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,n=(+u.apply(this,arguments)+ +a.apply(this,arguments))/2-Ru;return[Math.cos(n)*t,Math.sin(n)*t]},t};var Es="auto";eu.svg.line=function(){return po(m)};var Ns=eu.map({linear:go,"linear-closed":vo,step:yo,"step-before":mo,"step-after":xo,basis:So,"basis-open":Eo,"basis-closed":No,bundle:Co,cardinal:Mo,"cardinal-open":bo,"cardinal-closed":wo,monotone:Do});Ns.forEach(function(t,n){n.key=t,n.closed=/-closed$/.test(t)});var Cs=[0,2/3,1/3,0],Ts=[0,1/3,2/3,0],As=[0,1/6,2/3,1/6];eu.svg.line.radial=function(){var t=po(Ro);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},mo.reverse=xo,xo.reverse=mo,eu.svg.area=function(){return Ho(m)},eu.svg.area.radial=function(){var t=Ho(Ro);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},eu.svg.chord=function(){function t(t,a){var s=n(this,o,t,a),l=n(this,u,t,a);return"M"+s.p0+r(s.r,s.p1,s.a1-s.a0)+(e(s,l)?i(s.r,s.p1,s.r,s.p0):i(s.r,s.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+i(l.r,l.p1,s.r,s.p0))+"Z"}function n(t,n,e,r){var i=n.call(t,e,r),o=a.call(t,i,r),u=s.call(t,i,r)-Ru,c=l.call(t,i,r)-Ru;return{r:o,a0:u,a1:c,p0:[o*Math.cos(u),o*Math.sin(u)],p1:[o*Math.cos(c),o*Math.sin(c)]}}function e(t,n){return t.a0==n.a0&&t.a1==n.a1}function r(t,n,e){return"A"+t+","+t+" 0 "+ +(e>Lu)+",1 "+n}function i(t,n,e,r){return"Q 0,0 "+r}var o=me,u=xe,a=Po,s=so,l=lo;return t.radius=function(n){return arguments.length?(a=Et(n),t):a},t.source=function(n){return arguments.length?(o=Et(n),t):o},t.target=function(n){return arguments.length?(u=Et(n),t):u},t.startAngle=function(n){return arguments.length?(s=Et(n),t):s},t.endAngle=function(n){return arguments.length?(l=Et(n),t):l},t},eu.svg.diagonal=function(){function t(t,i){var o=n.call(this,t,i),u=e.call(this,t,i),a=(o.y+u.y)/2,s=[o,{x:o.x,y:a},{x:u.x,y:a},u];return s=s.map(r),"M"+s[0]+"C"+s[1]+" "+s[2]+" "+s[3]}var n=me,e=xe,r=Oo;return t.source=function(e){return arguments.length?(n=Et(e),t):n},t.target=function(n){return arguments.length?(e=Et(n),t):e},t.projection=function(n){return arguments.length?(r=n,t):r},t},eu.svg.diagonal.radial=function(){var t=eu.svg.diagonal(),n=Oo,e=t.projection;return t.projection=function(t){return arguments.length?e(zo(n=t)):n},t},eu.svg.symbol=function(){function t(t,r){return(js.get(n.call(this,t,r))||Wo)(e.call(this,t,r))}var n=Io,e=Fo;return t.type=function(e){return arguments.length?(n=Et(e),t):n},t.size=function(n){return arguments.length?(e=Et(n),t):e},t};var js=eu.map({circle:Wo,cross:function(t){var n=Math.sqrt(t/5)/2;return"M"+-3*n+","+-n+"H"+-n+"V"+-3*n+"H"+n+"V"+-n+"H"+3*n+"V"+n+"H"+n+"V"+3*n+"H"+-n+"V"+n+"H"+-3*n+"Z"},diamond:function(t){var n=Math.sqrt(t/(2*qs)),e=n*qs;return"M0,"+-n+"L"+e+",0 0,"+n+" "+-e+",0Z"},square:function(t){var n=Math.sqrt(t)/2;return"M"+-n+","+-n+"L"+n+","+-n+" "+n+","+n+" "+-n+","+n+"Z"},"triangle-down":function(t){var n=Math.sqrt(t/Ls),e=n*Ls/2;return"M0,"+e+"L"+n+","+-e+" "+-n+","+-e+"Z"},"triangle-up":function(t){var n=Math.sqrt(t/Ls),e=n*Ls/2;return"M0,"+-e+"L"+n+","+e+" "+-n+","+e+"Z"}});eu.svg.symbolTypes=js.keys();var Ls=Math.sqrt(3),qs=Math.tan(30*Hu);_u.transition=function(t){for(var n,e,r=Ds||++Os,i=Xo(t),o=[],u=Rs||{time:Date.now(),ease:Sr,delay:0,duration:250},a=-1,s=this.length;++a<s;){o.push(n=[]);for(var l=this[a],c=-1,f=l.length;++c<f;)(e=l[c])&&Vo(e,c,i,r,u),n.push(e)}return Uo(o,i,r)},_u.interrupt=function(t){return this.each(null==t?Hs:$o(Xo(t)))};var Ds,Rs,Hs=$o(Xo()),Ps=[],Os=0;Ps.call=_u.call,Ps.empty=_u.empty,Ps.node=_u.node,Ps.size=_u.size,eu.transition=function(t,n){return t&&t.transition?Ds?t.transition(n):t:eu.selection().transition(t)},eu.transition.prototype=Ps,Ps.select=function(t){var n,e,r,i=this.id,o=this.namespace,u=[];t=C(t);for(var a=-1,s=this.length;++a<s;){u.push(n=[]);for(var l=this[a],c=-1,f=l.length;++c<f;)(r=l[c])&&(e=t.call(r,r.__data__,c,a))?("__data__"in r&&(e.__data__=r.__data__),Vo(e,c,o,i,r[o][i]),n.push(e)):n.push(null)}return Uo(u,o,i)},Ps.selectAll=function(t){var n,e,r,i,o,u=this.id,a=this.namespace,s=[];t=T(t);for(var l=-1,c=this.length;++l<c;)for(var f=this[l],h=-1,p=f.length;++h<p;)if(r=f[h]){o=r[a][u],e=t.call(r,r.__data__,h,l),s.push(n=[]);for(var d=-1,g=e.length;++d<g;)(i=e[d])&&Vo(i,d,a,u,o),n.push(i)}return Uo(s,a,u)},Ps.filter=function(t){var n,e,r,i=[];"function"!=typeof t&&(t=I(t));for(var o=0,u=this.length;u>o;o++){i.push(n=[]);for(var e=this[o],a=0,s=e.length;s>a;a++)(r=e[a])&&t.call(r,r.__data__,a,o)&&n.push(r)}return Uo(i,this.namespace,this.id)},Ps.tween=function(t,n){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(t):$(this,null==n?function(n){n[r][e].tween.remove(t)}:function(i){i[r][e].tween.set(t,n)})},Ps.attr=function(t,n){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function i(t){return null==t?e:(t+="",function(){var n,e=this.getAttribute(a);return e!==t&&(n=u(e,t),function(t){this.setAttribute(a,n(t))})})}function o(t){return null==t?r:(t+="",function(){var n,e=this.getAttributeNS(a.space,a.local);return e!==t&&(n=u(e,t),function(t){this.setAttributeNS(a.space,a.local,n(t))})})}if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var u="transform"==t?Ir:mr,a=eu.ns.qualify(t);return Bo(this,"attr."+t,n,a.local?o:i)},Ps.attrTween=function(t,n){function e(t,e){var r=n.call(this,t,e,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,e){var r=n.call(this,t,e,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=eu.ns.qualify(t);return this.tween("attr."+t,i.local?r:e)},Ps.style=function(t,e,r){function i(){this.style.removeProperty(t)}function o(e){return null==e?i:(e+="",function(){var i,o=n(this).getComputedStyle(this,null).getPropertyValue(t);return o!==e&&(i=mr(o,e),function(n){this.style.setProperty(t,i(n),r)})})}var u=arguments.length;if(3>u){if("string"!=typeof t){2>u&&(e="");for(r in t)this.style(r,t[r],e);return this}r=""}return Bo(this,"style."+t,e,o)},Ps.styleTween=function(t,e,r){function i(i,o){var u=e.call(this,i,o,n(this).getComputedStyle(this,null).getPropertyValue(t));return u&&function(n){this.style.setProperty(t,u(n),r)}}return arguments.length<3&&(r=""),this.tween("style."+t,i)},Ps.text=function(t){return Bo(this,"text",t,Yo)},Ps.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var n;this[t].count<2&&(n=this.parentNode)&&n.removeChild(this)})},Ps.ease=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].ease:("function"!=typeof t&&(t=eu.ease.apply(eu,arguments)),$(this,function(r){r[e][n].ease=t}))},Ps.delay=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].delay:$(this,"function"==typeof t?function(r,i,o){r[e][n].delay=+t.call(r,r.__data__,i,o)}:(t=+t,function(r){r[e][n].delay=t}))},Ps.duration=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].duration:$(this,"function"==typeof t?function(r,i,o){r[e][n].duration=Math.max(1,t.call(r,r.__data__,i,o))}:(t=Math.max(1,t),function(r){r[e][n].duration=t}))},Ps.each=function(t,n){var e=this.id,r=this.namespace;if(arguments.length<2){var i=Rs,o=Ds;try{Ds=e,$(this,function(n,i,o){Rs=n[r][e],t.call(n,n.__data__,i,o)})}finally{Rs=i,Ds=o}}else $(this,function(i){var o=i[r][e];(o.event||(o.event=eu.dispatch("start","end","interrupt"))).on(t,n)});return this},Ps.transition=function(){for(var t,n,e,r,i=this.id,o=++Os,u=this.namespace,a=[],s=0,l=this.length;l>s;s++){a.push(t=[]);for(var n=this[s],c=0,f=n.length;f>c;c++)(e=n[c])&&(r=e[u][i],Vo(e,c,u,o,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(e)}return Uo(a,u,o)},eu.svg.axis=function(){function t(t){t.each(function(){var t,l=eu.select(this),c=this.__chart__||e,f=this.__chart__=e.copy(),h=null==s?f.ticks?f.ticks.apply(f,a):f.domain():s,p=null==n?f.tickFormat?f.tickFormat.apply(f,a):m:n,d=l.selectAll(".tick").data(h,f),g=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Au),v=eu.transition(d.exit()).style("opacity",Au).remove(),y=eu.transition(d.order()).style("opacity",1),x=Math.max(i,0)+u,b=Oi(f),w=l.selectAll(".domain").data([0]),M=(w.enter().append("path").attr("class","domain"),eu.transition(w));g.append("line"),g.append("text");var _,k,S,E,N=g.select("line"),C=y.select("line"),T=d.select("text").text(p),A=g.select("text"),j=y.select("text"),L="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=Go,_="x",S="y",k="x2",E="y2",T.attr("dy",0>L?"0em":".71em").style("text-anchor","middle"),M.attr("d","M"+b[0]+","+L*o+"V0H"+b[1]+"V"+L*o)):(t=Zo,_="y",S="x",k="y2",E="x2",T.attr("dy",".32em").style("text-anchor",0>L?"end":"start"),M.attr("d","M"+L*o+","+b[0]+"H0V"+b[1]+"H"+L*o)),N.attr(E,L*i),A.attr(S,L*x),C.attr(k,0).attr(E,L*i),j.attr(_,0).attr(S,L*x),f.rangeBand){var q=f,D=q.rangeBand()/2;c=f=function(t){return q(t)+D}}else c.rangeBand?c=f:v.call(t,f,c);g.call(t,c,f),y.call(t,f,f)})}var n,e=eu.scale.linear(),r=zs,i=6,o=6,u=3,a=[10],s=null;return t.scale=function(n){return arguments.length?(e=n,t):e},t.orient=function(n){return arguments.length?(r=n in Fs?n+"":zs,t):r},t.ticks=function(){return arguments.length?(a=arguments,t):a},t.tickValues=function(n){return arguments.length?(s=n,t):s},t.tickFormat=function(e){return arguments.length?(n=e,t):n},t.tickSize=function(n){var e=arguments.length;return e?(i=+n,o=+arguments[e-1],t):i},t.innerTickSize=function(n){return arguments.length?(i=+n,t):i},t.outerTickSize=function(n){return arguments.length?(o=+n,t):o},t.tickPadding=function(n){return arguments.length?(u=+n,t):u},t.tickSubdivide=function(){return arguments.length&&t},t};var zs="bottom",Fs={top:1,right:1,bottom:1,left:1};eu.svg.brush=function(){function t(n){n.each(function(){var n=eu.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",o).on("touchstart.brush",o),u=n.selectAll(".background").data([0]);u.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),n.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=n.selectAll(".resize").data(g,m);a.exit().remove(),a.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Is[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",t.empty()?"none":null);var s,f=eu.transition(n),h=eu.transition(u);l&&(s=Oi(l),h.attr("x",s[0]).attr("width",s[1]-s[0]),r(f)),c&&(s=Oi(c),h.attr("y",s[0]).attr("height",s[1]-s[0]),i(f)),e(f)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+f[+/e$/.test(t)]+","+h[+/^s/.test(t)]+")"})}function r(t){t.select(".extent").attr("x",f[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function i(t){t.select(".extent").attr("y",h[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function o(){function o(){32==eu.event.keyCode&&(T||(x=null,j[0]-=f[1],j[1]-=h[1],T=2),k())}function g(){32==eu.event.keyCode&&2==T&&(j[0]+=f[1],j[1]+=h[1],T=0,k())}function v(){var t=eu.mouse(w),n=!1;b&&(t[0]+=b[0],t[1]+=b[1]),T||(eu.event.altKey?(x||(x=[(f[0]+f[1])/2,(h[0]+h[1])/2]),j[0]=f[+(t[0]<x[0])],j[1]=h[+(t[1]<x[1])]):x=null),N&&y(t,l,0)&&(r(S),n=!0),C&&y(t,c,1)&&(i(S),n=!0),n&&(e(S),_({type:"brush",mode:T?"move":"resize"}))}function y(t,n,e){var r,i,o=Oi(n),s=o[0],l=o[1],c=j[e],g=e?h:f,v=g[1]-g[0];return T&&(s-=c,l-=v+c),r=(e?d:p)?Math.max(s,Math.min(l,t[e])):t[e],T?i=(r+=c)+v:(x&&(c=Math.max(s,Math.min(l,2*x[e]-r))),r>c?(i=r,r=c):i=c),g[0]!=r||g[1]!=i?(e?a=null:u=null,g[0]=r,g[1]=i,!0):void 0}function m(){v(),S.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),eu.select("body").style("cursor",null),L.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),_({type:"brushend"})}var x,b,w=this,M=eu.select(eu.event.target),_=s.of(w,arguments),S=eu.select(w),E=M.datum(),N=!/^(n|s)$/.test(E)&&l,C=!/^(e|w)$/.test(E)&&c,T=M.classed("extent"),A=G(w),j=eu.mouse(w),L=eu.select(n(w)).on("keydown.brush",o).on("keyup.brush",g);if(eu.event.changedTouches?L.on("touchmove.brush",v).on("touchend.brush",m):L.on("mousemove.brush",v).on("mouseup.brush",m),S.interrupt().selectAll("*").interrupt(),T)j[0]=f[0]-j[0],j[1]=h[0]-j[1];else if(E){var q=+/w$/.test(E),D=+/^n/.test(E);b=[f[1-q]-j[0],h[1-D]-j[1]],j[0]=f[q],j[1]=h[D]}else eu.event.altKey&&(x=j.slice());S.style("pointer-events","none").selectAll(".resize").style("display",null),eu.select("body").style("cursor",M.style("cursor")),_({type:"brushstart"}),v()}var u,a,s=E(t,"brushstart","brush","brushend"),l=null,c=null,f=[0,0],h=[0,0],p=!0,d=!0,g=Ws[0];return t.event=function(t){t.each(function(){var t=s.of(this,arguments),n={x:f,y:h,i:u,j:a},e=this.__chart__||n;this.__chart__=n,Ds?eu.select(this).transition().each("start.brush",function(){u=e.i,a=e.j,f=e.x,h=e.y,t({type:"brushstart"})}).tween("brush:brush",function(){var e=xr(f,n.x),r=xr(h,n.y);return u=a=null,function(i){f=n.x=e(i),h=n.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){u=n.i,a=n.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(n){return arguments.length?(l=n,g=Ws[!l<<1|!c],t):l},t.y=function(n){return arguments.length?(c=n,g=Ws[!l<<1|!c],t):c},t.clamp=function(n){return arguments.length?(l&&c?(p=!!n[0],d=!!n[1]):l?p=!!n:c&&(d=!!n),t):l&&c?[p,d]:l?p:c?d:null},t.extent=function(n){var e,r,i,o,s;return arguments.length?(l&&(e=n[0],r=n[1],c&&(e=e[0],r=r[0]),u=[e,r],l.invert&&(e=l(e),r=l(r)),e>r&&(s=e,e=r,r=s),e==f[0]&&r==f[1]||(f=[e,r])),c&&(i=n[0],o=n[1],l&&(i=i[1],o=o[1]),a=[i,o],c.invert&&(i=c(i),o=c(o)),i>o&&(s=i,i=o,o=s),i==h[0]&&o==h[1]||(h=[i,o])),t):(l&&(u?(e=u[0],r=u[1]):(e=f[0],r=f[1],l.invert&&(e=l.invert(e),r=l.invert(r)),e>r&&(s=e,e=r,r=s))),c&&(a?(i=a[0],o=a[1]):(i=h[0],o=h[1],c.invert&&(i=c.invert(i),o=c.invert(o)),i>o&&(s=i,i=o,o=s))),l&&c?[[e,i],[r,o]]:l?[e,r]:c&&[i,o])},t.clear=function(){return t.empty()||(f=[0,0],h=[0,0],u=a=null),t},t.empty=function(){return!!l&&f[0]==f[1]||!!c&&h[0]==h[1]},eu.rebind(t,s,"on")};var Is={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ws=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],$s=sa.format=da.timeFormat,Us=$s.utc,Bs=Us("%Y-%m-%dT%H:%M:%S.%LZ");$s.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Jo:Bs,Jo.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},Jo.toString=Bs.toString,sa.second=zt(function(t){return new la(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))},function(t){return t.getSeconds()}),sa.seconds=sa.second.range,sa.seconds.utc=sa.second.utc.range,sa.minute=zt(function(t){return new la(6e4*Math.floor(t/6e4))},function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))},function(t){return t.getMinutes()}),sa.minutes=sa.minute.range,sa.minutes.utc=sa.minute.utc.range,sa.hour=zt(function(t){var n=t.getTimezoneOffset()/60;return new la(36e5*(Math.floor(t/36e5-n)+n))},function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))},function(t){return t.getHours()}),sa.hours=sa.hour.range,sa.hours.utc=sa.hour.utc.range,sa.month=zt(function(t){return t=sa.day(t),t.setDate(1),t},function(t,n){t.setMonth(t.getMonth()+n)},function(t){return t.getMonth()}),sa.months=sa.month.range,sa.months.utc=sa.month.utc.range;var Ys=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Xs=[[sa.second,1],[sa.second,5],[sa.second,15],[sa.second,30],[sa.minute,1],[sa.minute,5],[sa.minute,15],[sa.minute,30],[sa.hour,1],[sa.hour,3],[sa.hour,6],[sa.hour,12],[sa.day,1],[sa.day,2],[sa.week,1],[sa.month,1],[sa.month,3],[sa.year,1]],Vs=$s.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Tn]]),Gs={range:function(t,n,e){return eu.range(Math.ceil(t/e)*e,+n,e).map(Qo)},floor:m,ceil:m};Xs.year=sa.year,sa.scale=function(){return Ko(eu.scale.linear(),Xs,Vs)};var Zs=Xs.map(function(t){return[t[0].utc,t[1]]}),Js=Us.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Tn]]);Zs.year=sa.year.utc,sa.scale.utc=function(){return Ko(eu.scale.linear(),Zs,Js)},eu.text=Nt(function(t){return t.responseText}),eu.json=function(t,n){return Ct(t,"application/json",tu,n)},eu.html=function(t,n){return Ct(t,"text/html",nu,n)},eu.xml=Nt(function(t){return t.responseXML}),"function"==typeof define&&define.amd?define(eu):"object"==typeof module&&module.exports&&(module.exports=eu),this.d3=eu}(),function(t,n){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?n(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(t)}("undefined"!=typeof window?window:this,function(t,n){function e(t){var n=!!t&&"length"in t&&t.length,e=ot.type(t);return"function"===e||ot.isWindow(t)?!1:"array"===e||0===n||"number"==typeof n&&n>0&&n-1 in t}function r(t,n,e){if(ot.isFunction(n))return ot.grep(t,function(t,r){return!!n.call(t,r,t)!==e});if(n.nodeType)return ot.grep(t,function(t){return t===n!==e});if("string"==typeof n){if(gt.test(n))return ot.filter(n,t,e);n=ot.filter(n,t)}return ot.grep(t,function(t){return Q.call(n,t)>-1!==e})}function i(t,n){for(;(t=t[n])&&1!==t.nodeType;);return t}function o(t){var n={};return ot.each(t.match(wt)||[],function(t,e){n[e]=!0}),n}function u(){G.removeEventListener("DOMContentLoaded",u),t.removeEventListener("load",u),ot.ready()}function a(){this.expando=ot.expando+a.uid++}function s(t,n,e){var r;if(void 0===e&&1===t.nodeType)if(r="data-"+n.replace(Ct,"-$&").toLowerCase(),e=t.getAttribute(r),"string"==typeof e){try{e="true"===e?!0:"false"===e?!1:"null"===e?null:+e+""===e?+e:Nt.test(e)?ot.parseJSON(e):e}catch(i){}Et.set(t,n,e)}else e=void 0;return e}function l(t,n,e,r){var i,o=1,u=20,a=r?function(){return r.cur()}:function(){return ot.css(t,n,"")},s=a(),l=e&&e[3]||(ot.cssNumber[n]?"":"px"),c=(ot.cssNumber[n]||"px"!==l&&+s)&&At.exec(ot.css(t,n));if(c&&c[3]!==l){l=l||c[3],e=e||[],c=+s||1;do o=o||".5",c/=o,ot.style(t,n,c+l);while(o!==(o=a()/s)&&1!==o&&--u)}return e&&(c=+c||+s||0,i=e[1]?c+(e[1]+1)*e[2]:+e[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function c(t,n){var e="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(n||"*"):[];return void 0===n||n&&ot.nodeName(t,n)?ot.merge([t],e):e}function f(t,n){for(var e=0,r=t.length;r>e;e++)St.set(t[e],"globalEval",!n||St.get(n[e],"globalEval"))}function h(t,n,e,r,i){for(var o,u,a,s,l,h,p=n.createDocumentFragment(),d=[],g=0,v=t.length;v>g;g++)if(o=t[g],o||0===o)if("object"===ot.type(o))ot.merge(d,o.nodeType?[o]:o);else if(Pt.test(o)){for(u=u||p.appendChild(n.createElement("div")),a=(Dt.exec(o)||["",""])[1].toLowerCase(),s=Ht[a]||Ht._default,u.innerHTML=s[1]+ot.htmlPrefilter(o)+s[2],h=s[0];h--;)u=u.lastChild;ot.merge(d,u.childNodes),u=p.firstChild,u.textContent=""}else d.push(n.createTextNode(o));for(p.textContent="",g=0;o=d[g++];)if(r&&ot.inArray(o,r)>-1)i&&i.push(o);else if(l=ot.contains(o.ownerDocument,o),u=c(p.appendChild(o),"script"),l&&f(u),e)for(h=0;o=u[h++];)Rt.test(o.type||"")&&e.push(o);return p}function p(){return!0}function d(){return!1}function g(){try{return G.activeElement}catch(t){}}function v(t,n,e,r,i,o){var u,a;if("object"==typeof n){"string"!=typeof e&&(r=r||e,e=void 0);for(a in n)v(t,a,e,r,n[a],o);return t}if(null==r&&null==i?(i=e,r=e=void 0):null==i&&("string"==typeof e?(i=r,r=void 0):(i=r,r=e,e=void 0)),i===!1)i=d;else if(!i)return t;return 1===o&&(u=i,i=function(t){return ot().off(t),u.apply(this,arguments)},i.guid=u.guid||(u.guid=ot.guid++)),t.each(function(){ot.event.add(this,n,i,r,e)})}function y(t,n){return ot.nodeName(t,"table")&&ot.nodeName(11!==n.nodeType?n:n.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function m(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function x(t){var n=Ut.exec(t.type);return n?t.type=n[1]:t.removeAttribute("type"),t}function b(t,n){var e,r,i,o,u,a,s,l;if(1===n.nodeType){if(St.hasData(t)&&(o=St.access(t),u=St.set(n,o),l=o.events)){delete u.handle,u.events={};for(i in l)for(e=0,r=l[i].length;r>e;e++)ot.event.add(n,i,l[i][e])}Et.hasData(t)&&(a=Et.access(t),s=ot.extend({},a),Et.set(n,s))}}function w(t,n){var e=n.nodeName.toLowerCase();"input"===e&&qt.test(t.type)?n.checked=t.checked:"input"!==e&&"textarea"!==e||(n.defaultValue=t.defaultValue)}function M(t,n,e,r){n=J.apply([],n);var i,o,u,a,s,l,f=0,p=t.length,d=p-1,g=n[0],v=ot.isFunction(g);if(v||p>1&&"string"==typeof g&&!rt.checkClone&&$t.test(g))return t.each(function(i){var o=t.eq(i);v&&(n[0]=g.call(this,i,o.html())),M(o,n,e,r)});if(p&&(i=h(n,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=ot.map(c(i,"script"),m),a=u.length;p>f;f++)s=i,f!==d&&(s=ot.clone(s,!0,!0),a&&ot.merge(u,c(s,"script"))),e.call(t[f],s,f);if(a)for(l=u[u.length-1].ownerDocument,ot.map(u,x),f=0;a>f;f++)s=u[f],Rt.test(s.type||"")&&!St.access(s,"globalEval")&&ot.contains(l,s)&&(s.src?ot._evalUrl&&ot._evalUrl(s.src):ot.globalEval(s.textContent.replace(Bt,"")))}return t}function _(t,n,e){for(var r,i=n?ot.filter(n,t):t,o=0;null!=(r=i[o]);o++)e||1!==r.nodeType||ot.cleanData(c(r)),r.parentNode&&(e&&ot.contains(r.ownerDocument,r)&&f(c(r,"script")),r.parentNode.removeChild(r));return t}function k(t,n){var e=ot(n.createElement(t)).appendTo(n.body),r=ot.css(e[0],"display");return e.detach(),r}function S(t){var n=G,e=Xt[t];return e||(e=k(t,n),"none"!==e&&e||(Yt=(Yt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(n.documentElement),n=Yt[0].contentDocument,n.write(),n.close(),e=k(t,n),Yt.detach()),Xt[t]=e),e}function E(t,n,e){var r,i,o,u,a=t.style;return e=e||Zt(t),u=e?e.getPropertyValue(n)||e[n]:void 0,""!==u&&void 0!==u||ot.contains(t.ownerDocument,t)||(u=ot.style(t,n)),e&&!rt.pixelMarginRight()&&Gt.test(u)&&Vt.test(n)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=u,u=e.width,a.width=r,a.minWidth=i,a.maxWidth=o),void 0!==u?u+"":u}function N(t,n){return{get:function(){return t()?void delete this.get:(this.get=n).apply(this,arguments)}}}function C(t){if(t in rn)return t;for(var n=t[0].toUpperCase()+t.slice(1),e=en.length;e--;)if(t=en[e]+n,t in rn)return t}function T(t,n,e){var r=At.exec(n);return r?Math.max(0,r[2]-(e||0))+(r[3]||"px"):n}function A(t,n,e,r,i){for(var o=e===(r?"border":"content")?4:"width"===n?1:0,u=0;4>o;o+=2)"margin"===e&&(u+=ot.css(t,e+jt[o],!0,i)),r?("content"===e&&(u-=ot.css(t,"padding"+jt[o],!0,i)),"margin"!==e&&(u-=ot.css(t,"border"+jt[o]+"Width",!0,i))):(u+=ot.css(t,"padding"+jt[o],!0,i),"padding"!==e&&(u+=ot.css(t,"border"+jt[o]+"Width",!0,i)));return u}function j(n,e,r){var i=!0,o="width"===e?n.offsetWidth:n.offsetHeight,u=Zt(n),a="border-box"===ot.css(n,"boxSizing",!1,u);if(G.msFullscreenElement&&t.top!==t&&n.getClientRects().length&&(o=Math.round(100*n.getBoundingClientRect()[e])),0>=o||null==o){if(o=E(n,e,u),(0>o||null==o)&&(o=n.style[e]),Gt.test(o))return o;i=a&&(rt.boxSizingReliable()||o===n.style[e]),o=parseFloat(o)||0}return o+A(n,e,r||(a?"border":"content"),i,u)+"px"}function L(t,n){for(var e,r,i,o=[],u=0,a=t.length;a>u;u++)r=t[u],r.style&&(o[u]=St.get(r,"olddisplay"),e=r.style.display,n?(o[u]||"none"!==e||(r.style.display=""),""===r.style.display&&Lt(r)&&(o[u]=St.access(r,"olddisplay",S(r.nodeName)))):(i=Lt(r),"none"===e&&i||St.set(r,"olddisplay",i?e:ot.css(r,"display"))));for(u=0;a>u;u++)r=t[u],r.style&&(n&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=n?o[u]||"":"none"));return t}function q(t,n,e,r,i){return new q.prototype.init(t,n,e,r,i)}function D(){return t.setTimeout(function(){on=void 0}),on=ot.now()}function R(t,n){var e,r=0,i={height:t};for(n=n?1:0;4>r;r+=2-n)e=jt[r],i["margin"+e]=i["padding"+e]=t;return n&&(i.opacity=i.width=t),i}function H(t,n,e){for(var r,i=(z.tweeners[n]||[]).concat(z.tweeners["*"]),o=0,u=i.length;u>o;o++)if(r=i[o].call(e,n,t))return r}function P(t,n,e){var r,i,o,u,a,s,l,c,f=this,h={},p=t.style,d=t.nodeType&&Lt(t),g=St.get(t,"fxshow");e.queue||(a=ot._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,ot.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in n||"width"in n)&&(e.overflow=[p.overflow,p.overflowX,p.overflowY],l=ot.css(t,"display"),c="none"===l?St.get(t,"olddisplay")||S(t.nodeName):l,"inline"===c&&"none"===ot.css(t,"float")&&(p.display="inline-block")),e.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=e.overflow[0],p.overflowX=e.overflow[1],p.overflowY=e.overflow[2]}));for(r in n)if(i=n[r],an.exec(i)){if(delete n[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;d=!0}h[r]=g&&g[r]||ot.style(t,r)}else l=void 0;if(ot.isEmptyObject(h))"inline"===("none"===l?S(t.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(d=g.hidden):g=St.access(t,"fxshow",{}),o&&(g.hidden=!d),d?ot(t).show():f.done(function(){ot(t).hide()}),f.done(function(){var n;St.remove(t,"fxshow");for(n in h)ot.style(t,n,h[n])});for(r in h)u=H(d?g[r]:0,r,f),r in g||(g[r]=u.start,d&&(u.end=u.start,u.start="width"===r||"height"===r?1:0))}}function O(t,n){var e,r,i,o,u;for(e in t)if(r=ot.camelCase(e),i=n[r],o=t[e],ot.isArray(o)&&(i=o[1],o=t[e]=o[0]),e!==r&&(t[r]=o,delete t[e]),u=ot.cssHooks[r],u&&"expand"in u){
o=u.expand(o),delete t[r];for(e in o)e in t||(t[e]=o[e],n[e]=i)}else n[r]=i}function z(t,n,e){var r,i,o=0,u=z.prefilters.length,a=ot.Deferred().always(function(){delete s.elem}),s=function(){if(i)return!1;for(var n=on||D(),e=Math.max(0,l.startTime+l.duration-n),r=e/l.duration||0,o=1-r,u=0,s=l.tweens.length;s>u;u++)l.tweens[u].run(o);return a.notifyWith(t,[l,o,e]),1>o&&s?e:(a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:ot.extend({},n),opts:ot.extend(!0,{specialEasing:{},easing:ot.easing._default},e),originalProperties:n,originalOptions:e,startTime:on||D(),duration:e.duration,tweens:[],createTween:function(n,e){var r=ot.Tween(t,l.opts,n,e,l.opts.specialEasing[n]||l.opts.easing);return l.tweens.push(r),r},stop:function(n){var e=0,r=n?l.tweens.length:0;if(i)return this;for(i=!0;r>e;e++)l.tweens[e].run(1);return n?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,n])):a.rejectWith(t,[l,n]),this}}),c=l.props;for(O(c,l.opts.specialEasing);u>o;o++)if(r=z.prefilters[o].call(l,t,c,l.opts))return ot.isFunction(r.stop)&&(ot._queueHooks(l.elem,l.opts.queue).stop=ot.proxy(r.stop,r)),r;return ot.map(c,H,l),ot.isFunction(l.opts.start)&&l.opts.start.call(t,l),ot.fx.timer(ot.extend(s,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function F(t){return t.getAttribute&&t.getAttribute("class")||""}function I(t){return function(n,e){"string"!=typeof n&&(e=n,n="*");var r,i=0,o=n.toLowerCase().match(wt)||[];if(ot.isFunction(e))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(e)):(t[r]=t[r]||[]).push(e)}}function W(t,n,e,r){function i(a){var s;return o[a]=!0,ot.each(t[a]||[],function(t,a){var l=a(n,e,r);return"string"!=typeof l||u||o[l]?u?!(s=l):void 0:(n.dataTypes.unshift(l),i(l),!1)}),s}var o={},u=t===Nn;return i(n.dataTypes[0])||!o["*"]&&i("*")}function $(t,n){var e,r,i=ot.ajaxSettings.flatOptions||{};for(e in n)void 0!==n[e]&&((i[e]?t:r||(r={}))[e]=n[e]);return r&&ot.extend(!0,t,r),t}function U(t,n,e){for(var r,i,o,u,a=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){s.unshift(i);break}if(s[0]in e)o=s[0];else{for(i in e){if(!s[0]||t.converters[i+" "+s[0]]){o=i;break}u||(u=i)}o=o||u}return o?(o!==s[0]&&s.unshift(o),e[o]):void 0}function B(t,n,e,r){var i,o,u,a,s,l={},c=t.dataTypes.slice();if(c[1])for(u in t.converters)l[u.toLowerCase()]=t.converters[u];for(o=c.shift();o;)if(t.responseFields[o]&&(e[t.responseFields[o]]=n),!s&&r&&t.dataFilter&&(n=t.dataFilter(n,t.dataType)),s=o,o=c.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(u=l[s+" "+o]||l["* "+o],!u)for(i in l)if(a=i.split(" "),a[1]===o&&(u=l[s+" "+a[0]]||l["* "+a[0]])){u===!0?u=l[i]:l[i]!==!0&&(o=a[0],c.unshift(a[1]));break}if(u!==!0)if(u&&t["throws"])n=u(n);else try{n=u(n)}catch(f){return{state:"parsererror",error:u?f:"No conversion from "+s+" to "+o}}}return{state:"success",data:n}}function Y(t,n,e,r){var i;if(ot.isArray(n))ot.each(n,function(n,i){e||jn.test(t)?r(t,i):Y(t+"["+("object"==typeof i&&null!=i?n:"")+"]",i,e,r)});else if(e||"object"!==ot.type(n))r(t,n);else for(i in n)Y(t+"["+i+"]",n[i],e,r)}function X(t){return ot.isWindow(t)?t:9===t.nodeType&&t.defaultView}var V=[],G=t.document,Z=V.slice,J=V.concat,K=V.push,Q=V.indexOf,tt={},nt=tt.toString,et=tt.hasOwnProperty,rt={},it="2.2.3",ot=function(t,n){return new ot.fn.init(t,n)},ut=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,st=/-([\da-z])/gi,lt=function(t,n){return n.toUpperCase()};ot.fn=ot.prototype={jquery:it,constructor:ot,selector:"",length:0,toArray:function(){return Z.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:Z.call(this)},pushStack:function(t){var n=ot.merge(this.constructor(),t);return n.prevObject=this,n.context=this.context,n},each:function(t){return ot.each(this,t)},map:function(t){return this.pushStack(ot.map(this,function(n,e){return t.call(n,e,n)}))},slice:function(){return this.pushStack(Z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var n=this.length,e=+t+(0>t?n:0);return this.pushStack(e>=0&&n>e?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:K,sort:V.sort,splice:V.splice},ot.extend=ot.fn.extend=function(){var t,n,e,r,i,o,u=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof u&&(l=u,u=arguments[a]||{},a++),"object"==typeof u||ot.isFunction(u)||(u={}),a===s&&(u=this,a--);s>a;a++)if(null!=(t=arguments[a]))for(n in t)e=u[n],r=t[n],u!==r&&(l&&r&&(ot.isPlainObject(r)||(i=ot.isArray(r)))?(i?(i=!1,o=e&&ot.isArray(e)?e:[]):o=e&&ot.isPlainObject(e)?e:{},u[n]=ot.extend(l,o,r)):void 0!==r&&(u[n]=r));return u},ot.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var n=t&&t.toString();return!ot.isArray(t)&&n-parseFloat(n)+1>=0},isPlainObject:function(t){var n;if("object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;if(t.constructor&&!et.call(t,"constructor")&&!et.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(n in t);return void 0===n||et.call(t,n)},isEmptyObject:function(t){var n;for(n in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[nt.call(t)]||"object":typeof t},globalEval:function(t){var n,e=eval;t=ot.trim(t),t&&(1===t.indexOf("use strict")?(n=G.createElement("script"),n.text=t,G.head.appendChild(n).parentNode.removeChild(n)):e(t))},camelCase:function(t){return t.replace(at,"ms-").replace(st,lt)},nodeName:function(t,n){return t.nodeName&&t.nodeName.toLowerCase()===n.toLowerCase()},each:function(t,n){var r,i=0;if(e(t))for(r=t.length;r>i&&n.call(t[i],i,t[i])!==!1;i++);else for(i in t)if(n.call(t[i],i,t[i])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(ut,"")},makeArray:function(t,n){var r=n||[];return null!=t&&(e(Object(t))?ot.merge(r,"string"==typeof t?[t]:t):K.call(r,t)),r},inArray:function(t,n,e){return null==n?-1:Q.call(n,t,e)},merge:function(t,n){for(var e=+n.length,r=0,i=t.length;e>r;r++)t[i++]=n[r];return t.length=i,t},grep:function(t,n,e){for(var r,i=[],o=0,u=t.length,a=!e;u>o;o++)r=!n(t[o],o),r!==a&&i.push(t[o]);return i},map:function(t,n,r){var i,o,u=0,a=[];if(e(t))for(i=t.length;i>u;u++)o=n(t[u],u,r),null!=o&&a.push(o);else for(u in t)o=n(t[u],u,r),null!=o&&a.push(o);return J.apply([],a)},guid:1,proxy:function(t,n){var e,r,i;return"string"==typeof n&&(e=t[n],n=t,t=e),ot.isFunction(t)?(r=Z.call(arguments,2),i=function(){return t.apply(n||this,r.concat(Z.call(arguments)))},i.guid=t.guid=t.guid||ot.guid++,i):void 0},now:Date.now,support:rt}),"function"==typeof Symbol&&(ot.fn[Symbol.iterator]=V[Symbol.iterator]),ot.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,n){tt["[object "+n+"]"]=n.toLowerCase()});var ct=function(t){function n(t,n,e,r){var i,o,u,a,s,l,f,p,d=n&&n.ownerDocument,g=n?n.nodeType:9;if(e=e||[],"string"!=typeof t||!t||1!==g&&9!==g&&11!==g)return e;if(!r&&((n?n.ownerDocument||n:F)!==L&&j(n),n=n||L,D)){if(11!==g&&(l=yt.exec(t)))if(i=l[1]){if(9===g){if(!(u=n.getElementById(i)))return e;if(u.id===i)return e.push(u),e}else if(d&&(u=d.getElementById(i))&&O(n,u)&&u.id===i)return e.push(u),e}else{if(l[2])return K.apply(e,n.getElementsByTagName(t)),e;if((i=l[3])&&w.getElementsByClassName&&n.getElementsByClassName)return K.apply(e,n.getElementsByClassName(i)),e}if(w.qsa&&!B[t+" "]&&(!R||!R.test(t))){if(1!==g)d=n,p=t;else if("object"!==n.nodeName.toLowerCase()){for((a=n.getAttribute("id"))?a=a.replace(xt,"\\$&"):n.setAttribute("id",a=z),f=S(t),o=f.length,s=ht.test(a)?"#"+a:"[id='"+a+"']";o--;)f[o]=s+" "+h(f[o]);p=f.join(","),d=mt.test(t)&&c(n.parentNode)||n}if(p)try{return K.apply(e,d.querySelectorAll(p)),e}catch(v){}finally{a===z&&n.removeAttribute("id")}}}return N(t.replace(at,"$1"),n,e,r)}function e(){function t(e,r){return n.push(e+" ")>M.cacheLength&&delete t[n.shift()],t[e+" "]=r}var n=[];return t}function r(t){return t[z]=!0,t}function i(t){var n=L.createElement("div");try{return!!t(n)}catch(e){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function o(t,n){for(var e=t.split("|"),r=e.length;r--;)M.attrHandle[e[r]]=n}function u(t,n){var e=n&&t,r=e&&1===t.nodeType&&1===n.nodeType&&(~n.sourceIndex||X)-(~t.sourceIndex||X);if(r)return r;if(e)for(;e=e.nextSibling;)if(e===n)return-1;return t?1:-1}function a(t){return function(n){var e=n.nodeName.toLowerCase();return"input"===e&&n.type===t}}function s(t){return function(n){var e=n.nodeName.toLowerCase();return("input"===e||"button"===e)&&n.type===t}}function l(t){return r(function(n){return n=+n,r(function(e,r){for(var i,o=t([],e.length,n),u=o.length;u--;)e[i=o[u]]&&(e[i]=!(r[i]=e[i]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function h(t){for(var n=0,e=t.length,r="";e>n;n++)r+=t[n].value;return r}function p(t,n,e){var r=n.dir,i=e&&"parentNode"===r,o=W++;return n.first?function(n,e,o){for(;n=n[r];)if(1===n.nodeType||i)return t(n,e,o)}:function(n,e,u){var a,s,l,c=[I,o];if(u){for(;n=n[r];)if((1===n.nodeType||i)&&t(n,e,u))return!0}else for(;n=n[r];)if(1===n.nodeType||i){if(l=n[z]||(n[z]={}),s=l[n.uniqueID]||(l[n.uniqueID]={}),(a=s[r])&&a[0]===I&&a[1]===o)return c[2]=a[2];if(s[r]=c,c[2]=t(n,e,u))return!0}}}function d(t){return t.length>1?function(n,e,r){for(var i=t.length;i--;)if(!t[i](n,e,r))return!1;return!0}:t[0]}function g(t,e,r){for(var i=0,o=e.length;o>i;i++)n(t,e[i],r);return r}function v(t,n,e,r,i){for(var o,u=[],a=0,s=t.length,l=null!=n;s>a;a++)(o=t[a])&&(e&&!e(o,r,i)||(u.push(o),l&&n.push(a)));return u}function y(t,n,e,i,o,u){return i&&!i[z]&&(i=y(i)),o&&!o[z]&&(o=y(o,u)),r(function(r,u,a,s){var l,c,f,h=[],p=[],d=u.length,y=r||g(n||"*",a.nodeType?[a]:a,[]),m=!t||!r&&n?y:v(y,h,t,a,s),x=e?o||(r?t:d||i)?[]:u:m;if(e&&e(m,x,a,s),i)for(l=v(x,p),i(l,[],a,s),c=l.length;c--;)(f=l[c])&&(x[p[c]]=!(m[p[c]]=f));if(r){if(o||t){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(m[c]=f);o(null,x=[],l,s)}for(c=x.length;c--;)(f=x[c])&&(l=o?tt(r,f):h[c])>-1&&(r[l]=!(u[l]=f))}}else x=v(x===u?x.splice(d,x.length):x),o?o(null,u,x,s):K.apply(u,x)})}function m(t){for(var n,e,r,i=t.length,o=M.relative[t[0].type],u=o||M.relative[" "],a=o?1:0,s=p(function(t){return t===n},u,!0),l=p(function(t){return tt(n,t)>-1},u,!0),c=[function(t,e,r){var i=!o&&(r||e!==C)||((n=e).nodeType?s(t,e,r):l(t,e,r));return n=null,i}];i>a;a++)if(e=M.relative[t[a].type])c=[p(d(c),e)];else{if(e=M.filter[t[a].type].apply(null,t[a].matches),e[z]){for(r=++a;i>r&&!M.relative[t[r].type];r++);return y(a>1&&d(c),a>1&&h(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),e,r>a&&m(t.slice(a,r)),i>r&&m(t=t.slice(r)),i>r&&h(t))}c.push(e)}return d(c)}function x(t,e){var i=e.length>0,o=t.length>0,u=function(r,u,a,s,l){var c,f,h,p=0,d="0",g=r&&[],y=[],m=C,x=r||o&&M.find.TAG("*",l),b=I+=null==m?1:Math.random()||.1,w=x.length;for(l&&(C=u===L||u||l);d!==w&&null!=(c=x[d]);d++){if(o&&c){for(f=0,u||c.ownerDocument===L||(j(c),a=!D);h=t[f++];)if(h(c,u||L,a)){s.push(c);break}l&&(I=b)}i&&((c=!h&&c)&&p--,r&&g.push(c))}if(p+=d,i&&d!==p){for(f=0;h=e[f++];)h(g,y,u,a);if(r){if(p>0)for(;d--;)g[d]||y[d]||(y[d]=Z.call(s));y=v(y)}K.apply(s,y),l&&!r&&y.length>0&&p+e.length>1&&n.uniqueSort(s)}return l&&(I=b,C=m),g};return i?r(u):u}var b,w,M,_,k,S,E,N,C,T,A,j,L,q,D,R,H,P,O,z="sizzle"+1*new Date,F=t.document,I=0,W=0,$=e(),U=e(),B=e(),Y=function(t,n){return t===n&&(A=!0),0},X=1<<31,V={}.hasOwnProperty,G=[],Z=G.pop,J=G.push,K=G.push,Q=G.slice,tt=function(t,n){for(var e=0,r=t.length;r>e;e++)if(t[e]===n)return e;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",et="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it="\\["+et+"*("+rt+")(?:"+et+"*([*^$|!~]?=)"+et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+et+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",ut=new RegExp(et+"+","g"),at=new RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),st=new RegExp("^"+et+"*,"+et+"*"),lt=new RegExp("^"+et+"*([>+~]|"+et+")"+et+"*"),ct=new RegExp("="+et+"*([^\\]'\"]*?)"+et+"*\\]","g"),ft=new RegExp(ot),ht=new RegExp("^"+rt+"$"),pt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,xt=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+et+"?|("+et+")|.)","ig"),wt=function(t,n,e){var r="0x"+n-65536;return r!==r||e?n:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Mt=function(){j()};try{K.apply(G=Q.call(F.childNodes),F.childNodes),G[F.childNodes.length].nodeType}catch(_t){K={apply:G.length?function(t,n){J.apply(t,Q.call(n))}:function(t,n){for(var e=t.length,r=0;t[e++]=n[r++];);t.length=e-1}}}w=n.support={},k=n.isXML=function(t){var n=t&&(t.ownerDocument||t).documentElement;return n?"HTML"!==n.nodeName:!1},j=n.setDocument=function(t){var n,e,r=t?t.ownerDocument||t:F;return r!==L&&9===r.nodeType&&r.documentElement?(L=r,q=L.documentElement,D=!k(L),(e=L.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Mt,!1):e.attachEvent&&e.attachEvent("onunload",Mt)),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(L.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=vt.test(L.getElementsByClassName),w.getById=i(function(t){return q.appendChild(t).id=z,!L.getElementsByName||!L.getElementsByName(z).length}),w.getById?(M.find.ID=function(t,n){if("undefined"!=typeof n.getElementById&&D){var e=n.getElementById(t);return e?[e]:[]}},M.filter.ID=function(t){var n=t.replace(bt,wt);return function(t){return t.getAttribute("id")===n}}):(delete M.find.ID,M.filter.ID=function(t){var n=t.replace(bt,wt);return function(t){var e="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}}),M.find.TAG=w.getElementsByTagName?function(t,n){return"undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t):w.qsa?n.querySelectorAll(t):void 0}:function(t,n){var e,r=[],i=0,o=n.getElementsByTagName(t);if("*"===t){for(;e=o[i++];)1===e.nodeType&&r.push(e);return r}return o},M.find.CLASS=w.getElementsByClassName&&function(t,n){return"undefined"!=typeof n.getElementsByClassName&&D?n.getElementsByClassName(t):void 0},H=[],R=[],(w.qsa=vt.test(L.querySelectorAll))&&(i(function(t){q.appendChild(t).innerHTML="<a id='"+z+"'></a><select id='"+z+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+et+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+et+"*(?:value|"+nt+")"),t.querySelectorAll("[id~="+z+"-]").length||R.push("~="),t.querySelectorAll(":checked").length||R.push(":checked"),t.querySelectorAll("a#"+z+"+*").length||R.push(".#.+[+~]")}),i(function(t){var n=L.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+et+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(w.matchesSelector=vt.test(P=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(t){w.disconnectedMatch=P.call(t,"div"),P.call(t,"[s!='']:x"),H.push("!=",ot)}),R=R.length&&new RegExp(R.join("|")),H=H.length&&new RegExp(H.join("|")),n=vt.test(q.compareDocumentPosition),O=n||vt.test(q.contains)?function(t,n){var e=9===t.nodeType?t.documentElement:t,r=n&&n.parentNode;return t===r||!(!r||1!==r.nodeType||!(e.contains?e.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,n){if(n)for(;n=n.parentNode;)if(n===t)return!0;return!1},Y=n?function(t,n){if(t===n)return A=!0,0;var e=!t.compareDocumentPosition-!n.compareDocumentPosition;return e?e:(e=(t.ownerDocument||t)===(n.ownerDocument||n)?t.compareDocumentPosition(n):1,1&e||!w.sortDetached&&n.compareDocumentPosition(t)===e?t===L||t.ownerDocument===F&&O(F,t)?-1:n===L||n.ownerDocument===F&&O(F,n)?1:T?tt(T,t)-tt(T,n):0:4&e?-1:1)}:function(t,n){if(t===n)return A=!0,0;var e,r=0,i=t.parentNode,o=n.parentNode,a=[t],s=[n];if(!i||!o)return t===L?-1:n===L?1:i?-1:o?1:T?tt(T,t)-tt(T,n):0;if(i===o)return u(t,n);for(e=t;e=e.parentNode;)a.unshift(e);for(e=n;e=e.parentNode;)s.unshift(e);for(;a[r]===s[r];)r++;return r?u(a[r],s[r]):a[r]===F?-1:s[r]===F?1:0},L):L},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==L&&j(t),e=e.replace(ct,"='$1']"),w.matchesSelector&&D&&!B[e+" "]&&(!H||!H.test(e))&&(!R||!R.test(e)))try{var r=P.call(t,e);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return n(e,L,null,[t]).length>0},n.contains=function(t,n){return(t.ownerDocument||t)!==L&&j(t),O(t,n)},n.attr=function(t,n){(t.ownerDocument||t)!==L&&j(t);var e=M.attrHandle[n.toLowerCase()],r=e&&V.call(M.attrHandle,n.toLowerCase())?e(t,n,!D):void 0;return void 0!==r?r:w.attributes||!D?t.getAttribute(n):(r=t.getAttributeNode(n))&&r.specified?r.value:null},n.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},n.uniqueSort=function(t){var n,e=[],r=0,i=0;if(A=!w.detectDuplicates,T=!w.sortStable&&t.slice(0),t.sort(Y),A){for(;n=t[i++];)n===t[i]&&(r=e.push(i));for(;r--;)t.splice(e[r],1)}return T=null,t},_=n.getText=function(t){var n,e="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)e+=_(t)}else if(3===i||4===i)return t.nodeValue}else for(;n=t[r++];)e+=_(n);return e},M=n.selectors={cacheLength:50,createPseudo:r,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){var n,e=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":e&&ft.test(e)&&(n=S(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(t[0]=t[0].slice(0,n),t[2]=e.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var n=t.replace(bt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===n}},CLASS:function(t){var n=$[t+" "];return n||(n=new RegExp("(^|"+et+")"+t+"("+et+"|$)"))&&$(t,function(t){return n.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,r){return function(i){var o=n.attr(i,t);return null==o?"!="===e:e?(o+="","="===e?o===r:"!="===e?o!==r:"^="===e?r&&0===o.indexOf(r):"*="===e?r&&o.indexOf(r)>-1:"$="===e?r&&o.slice(-r.length)===r:"~="===e?(" "+o.replace(ut," ")+" ").indexOf(r)>-1:"|="===e?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(t,n,e,r,i){var o="nth"!==t.slice(0,3),u="last"!==t.slice(-4),a="of-type"===n;return 1===r&&0===i?function(t){return!!t.parentNode}:function(n,e,s){var l,c,f,h,p,d,g=o!==u?"nextSibling":"previousSibling",v=n.parentNode,y=a&&n.nodeName.toLowerCase(),m=!s&&!a,x=!1;if(v){if(o){for(;g;){for(h=n;h=h[g];)if(a?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[u?v.firstChild:v.lastChild],u&&m){for(h=v,f=h[z]||(h[z]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[t]||[],p=l[0]===I&&l[1],x=p&&l[2],h=p&&v.childNodes[p];h=++p&&h&&h[g]||(x=p=0)||d.pop();)if(1===h.nodeType&&++x&&h===n){c[t]=[I,p,x];break}}else if(m&&(h=n,f=h[z]||(h[z]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[t]||[],p=l[0]===I&&l[1],x=p),x===!1)for(;(h=++p&&h&&h[g]||(x=p=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++x||(m&&(f=h[z]||(h[z]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),c[t]=[I,x]),h!==n)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(t,e){var i,o=M.pseudos[t]||M.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return o[z]?o(e):o.length>1?(i=[t,t,"",e],M.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,n){for(var r,i=o(t,e),u=i.length;u--;)r=tt(t,i[u]),t[r]=!(n[r]=i[u])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var n=[],e=[],i=E(t.replace(at,"$1"));return i[z]?r(function(t,n,e,r){for(var o,u=i(t,null,r,[]),a=t.length;a--;)(o=u[a])&&(t[a]=!(n[a]=o))}):function(t,r,o){return n[0]=t,i(n,null,o,e),n[0]=null,!e.pop()}}),has:r(function(t){return function(e){return n(t,e).length>0}}),contains:r(function(t){return t=t.replace(bt,wt),function(n){return(n.textContent||n.innerText||_(n)).indexOf(t)>-1}}),lang:r(function(t){return ht.test(t||"")||n.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(n){var e;do if(e=D?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return e=e.toLowerCase(),e===t||0===e.indexOf(t+"-");while((n=n.parentNode)&&1===n.nodeType);return!1}}),target:function(n){var e=t.location&&t.location.hash;return e&&e.slice(1)===n.id},root:function(t){return t===q},focus:function(t){return t===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&!!t.checked||"option"===n&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!M.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var n=t.nodeName.toLowerCase();return"input"===n&&"button"===t.type||"button"===n},text:function(t){var n;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(n=t.getAttribute("type"))||"text"===n.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,n){return[n-1]}),eq:l(function(t,n,e){return[0>e?e+n:e]}),even:l(function(t,n){for(var e=0;n>e;e+=2)t.push(e);return t}),odd:l(function(t,n){for(var e=1;n>e;e+=2)t.push(e);return t}),lt:l(function(t,n,e){for(var r=0>e?e+n:e;--r>=0;)t.push(r);return t}),gt:l(function(t,n,e){for(var r=0>e?e+n:e;++r<n;)t.push(r);return t})}},M.pseudos.nth=M.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})M.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})M.pseudos[b]=s(b);return f.prototype=M.filters=M.pseudos,M.setFilters=new f,S=n.tokenize=function(t,e){var r,i,o,u,a,s,l,c=U[t+" "];if(c)return e?0:c.slice(0);for(a=t,s=[],l=M.preFilter;a;){r&&!(i=st.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(o=[])),r=!1,(i=lt.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(at," ")}),a=a.slice(r.length));for(u in M.filter)!(i=pt[u].exec(a))||l[u]&&!(i=l[u](i))||(r=i.shift(),o.push({value:r,type:u,matches:i}),a=a.slice(r.length));if(!r)break}return e?a.length:a?n.error(t):U(t,s).slice(0)},E=n.compile=function(t,n){var e,r=[],i=[],o=B[t+" "];if(!o){for(n||(n=S(t)),e=n.length;e--;)o=m(n[e]),o[z]?r.push(o):i.push(o);o=B(t,x(i,r)),o.selector=t}return o},N=n.select=function(t,n,e,r){var i,o,u,a,s,l="function"==typeof t&&t,f=!r&&S(t=l.selector||t);if(e=e||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(u=o[0]).type&&w.getById&&9===n.nodeType&&D&&M.relative[o[1].type]){if(n=(M.find.ID(u.matches[0].replace(bt,wt),n)||[])[0],!n)return e;l&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(i=pt.needsContext.test(t)?0:o.length;i--&&(u=o[i],!M.relative[a=u.type]);)if((s=M.find[a])&&(r=s(u.matches[0].replace(bt,wt),mt.test(o[0].type)&&c(n.parentNode)||n))){if(o.splice(i,1),t=r.length&&h(o),!t)return K.apply(e,r),e;break}}return(l||E(t,f))(r,n,!D,e,!n||mt.test(t)&&c(n.parentNode)||n),e},w.sortStable=z.split("").sort(Y).join("")===z,w.detectDuplicates=!!A,j(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(L.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,n,e){return e?void 0:t.getAttribute(n,"type"===n.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,n,e){return e||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(nt,function(t,n,e){var r;return e?void 0:t[n]===!0?n.toLowerCase():(r=t.getAttributeNode(n))&&r.specified?r.value:null}),n}(t);ot.find=ct,ot.expr=ct.selectors,ot.expr[":"]=ot.expr.pseudos,ot.uniqueSort=ot.unique=ct.uniqueSort,ot.text=ct.getText,ot.isXMLDoc=ct.isXML,ot.contains=ct.contains;var ft=function(t,n,e){for(var r=[],i=void 0!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&ot(t).is(e))break;r.push(t)}return r},ht=function(t,n){for(var e=[];t;t=t.nextSibling)1===t.nodeType&&t!==n&&e.push(t);return e},pt=ot.expr.match.needsContext,dt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,gt=/^.[^:#\[\.,]*$/;ot.filter=function(t,n,e){var r=n[0];return e&&(t=":not("+t+")"),1===n.length&&1===r.nodeType?ot.find.matchesSelector(r,t)?[r]:[]:ot.find.matches(t,ot.grep(n,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var n,e=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(n=0;e>n;n++)if(ot.contains(i[n],this))return!0}));for(n=0;e>n;n++)ot.find(t,i[n],r);return r=this.pushStack(e>1?ot.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&pt.test(t)?ot(t):t||[],!1).length}});var vt,yt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,mt=ot.fn.init=function(t,n,e){var r,i;if(!t)return this;if(e=e||vt,"string"==typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:yt.exec(t),!r||!r[1]&&n)return!n||n.jquery?(n||e).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof ot?n[0]:n,ot.merge(this,ot.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:G,!0)),dt.test(r[1])&&ot.isPlainObject(n))for(r in n)ot.isFunction(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return i=G.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=G,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?void 0!==e.ready?e.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))};mt.prototype=ot.fn,vt=ot(G);var xt=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({has:function(t){var n=ot(t,this),e=n.length;return this.filter(function(){for(var t=0;e>t;t++)if(ot.contains(this,n[t]))return!0})},closest:function(t,n){for(var e,r=0,i=this.length,o=[],u=pt.test(t)||"string"!=typeof t?ot(t,n||this.context):0;i>r;r++)for(e=this[r];e&&e!==n;e=e.parentNode)if(e.nodeType<11&&(u?u.index(e)>-1:1===e.nodeType&&ot.find.matchesSelector(e,t))){o.push(e);break}return this.pushStack(o.length>1?ot.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?Q.call(ot(t),this[0]):Q.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(ot.uniqueSort(ot.merge(this.get(),ot(t,n))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var n=t.parentNode;return n&&11!==n.nodeType?n:null},parents:function(t){return ft(t,"parentNode")},parentsUntil:function(t,n,e){return ft(t,"parentNode",e)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return ft(t,"nextSibling")},prevAll:function(t){return ft(t,"previousSibling")},nextUntil:function(t,n,e){return ft(t,"nextSibling",e)},prevUntil:function(t,n,e){return ft(t,"previousSibling",e)},siblings:function(t){return ht((t.parentNode||{}).firstChild,t)},children:function(t){return ht(t.firstChild)},contents:function(t){return t.contentDocument||ot.merge([],t.childNodes)}},function(t,n){ot.fn[t]=function(e,r){var i=ot.map(this,n,e);return"Until"!==t.slice(-5)&&(r=e),r&&"string"==typeof r&&(i=ot.filter(r,i)),this.length>1&&(bt[t]||ot.uniqueSort(i),xt.test(t)&&i.reverse()),this.pushStack(i)}});var wt=/\S+/g;ot.Callbacks=function(t){t="string"==typeof t?o(t):ot.extend({},t);var n,e,r,i,u=[],a=[],s=-1,l=function(){for(i=t.once,r=n=!0;a.length;s=-1)for(e=a.shift();++s<u.length;)u[s].apply(e[0],e[1])===!1&&t.stopOnFalse&&(s=u.length,e=!1);t.memory||(e=!1),n=!1,i&&(u=e?[]:"")},c={add:function(){return u&&(e&&!n&&(s=u.length-1,a.push(e)),function r(n){ot.each(n,function(n,e){ot.isFunction(e)?t.unique&&c.has(e)||u.push(e):e&&e.length&&"string"!==ot.type(e)&&r(e)})}(arguments),e&&!n&&l()),this},remove:function(){return ot.each(arguments,function(t,n){for(var e;(e=ot.inArray(n,u,e))>-1;)u.splice(e,1),s>=e&&s--}),this},has:function(t){return t?ot.inArray(t,u)>-1:u.length>0},empty:function(){return u&&(u=[]),this},disable:function(){return i=a=[],u=e="",this},disabled:function(){return!u},lock:function(){return i=a=[],e||(u=e=""),this},locked:function(){return!!i},fireWith:function(t,e){return i||(e=e||[],e=[t,e.slice?e.slice():e],a.push(e),n||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},ot.extend({Deferred:function(t){var n=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],e="pending",r={state:function(){return e},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(e){ot.each(n,function(n,o){var u=ot.isFunction(t[n])&&t[n];i[o[1]](function(){var t=u&&u.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[o[0]+"With"](this===r?e.promise():this,u?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,r):r}},i={};return r.pipe=r.then,ot.each(n,function(t,o){var u=o[2],a=o[3];r[o[1]]=u.add,a&&u.add(function(){e=a},n[1^t][2].disable,n[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=u.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var n,e,r,i=0,o=Z.call(arguments),u=o.length,a=1!==u||t&&ot.isFunction(t.promise)?u:0,s=1===a?t:ot.Deferred(),l=function(t,e,r){return function(i){e[t]=this,r[t]=arguments.length>1?Z.call(arguments):i,r===n?s.notifyWith(e,r):--a||s.resolveWith(e,r)}};if(u>1)for(n=new Array(u),e=new Array(u),r=new Array(u);u>i;i++)o[i]&&ot.isFunction(o[i].promise)?o[i].promise().progress(l(i,e,n)).done(l(i,r,o)).fail(s.reject):--a;return a||s.resolveWith(r,o),s.promise()}});var Mt;ot.fn.ready=function(t){
return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){(t===!0?--ot.readyWait:ot.isReady)||(ot.isReady=!0,t!==!0&&--ot.readyWait>0||(Mt.resolveWith(G,[ot]),ot.fn.triggerHandler&&(ot(G).triggerHandler("ready"),ot(G).off("ready"))))}}),ot.ready.promise=function(n){return Mt||(Mt=ot.Deferred(),"complete"===G.readyState||"loading"!==G.readyState&&!G.documentElement.doScroll?t.setTimeout(ot.ready):(G.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))),Mt.promise(n)},ot.ready.promise();var _t=function(t,n,e,r,i,o,u){var a=0,s=t.length,l=null==e;if("object"===ot.type(e)){i=!0;for(a in e)_t(t,n,a,e[a],!0,o,u)}else if(void 0!==r&&(i=!0,ot.isFunction(r)||(u=!0),l&&(u?(n.call(t,r),n=null):(l=n,n=function(t,n,e){return l.call(ot(t),e)})),n))for(;s>a;a++)n(t[a],e,u?r:r.call(t[a],a,n(t[a],e)));return i?t:l?n.call(t):s?n(t[0],e):o},kt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};a.uid=1,a.prototype={register:function(t,n){var e=n||{};return t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!kt(t))return{};var n=t[this.expando];return n||(n={},kt(t)&&(t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,configurable:!0}))),n},set:function(t,n,e){var r,i=this.cache(t);if("string"==typeof n)i[n]=e;else for(r in n)i[r]=n[r];return i},get:function(t,n){return void 0===n?this.cache(t):t[this.expando]&&t[this.expando][n]},access:function(t,n,e){var r;return void 0===n||n&&"string"==typeof n&&void 0===e?(r=this.get(t,n),void 0!==r?r:this.get(t,ot.camelCase(n))):(this.set(t,n,e),void 0!==e?e:n)},remove:function(t,n){var e,r,i,o=t[this.expando];if(void 0!==o){if(void 0===n)this.register(t);else{ot.isArray(n)?r=n.concat(n.map(ot.camelCase)):(i=ot.camelCase(n),n in o?r=[n,i]:(r=i,r=r in o?[r]:r.match(wt)||[])),e=r.length;for(;e--;)delete o[r[e]]}(void 0===n||ot.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var n=t[this.expando];return void 0!==n&&!ot.isEmptyObject(n)}};var St=new a,Et=new a,Nt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ct=/[A-Z]/g;ot.extend({hasData:function(t){return Et.hasData(t)||St.hasData(t)},data:function(t,n,e){return Et.access(t,n,e)},removeData:function(t,n){Et.remove(t,n)},_data:function(t,n,e){return St.access(t,n,e)},_removeData:function(t,n){St.remove(t,n)}}),ot.fn.extend({data:function(t,n){var e,r,i,o=this[0],u=o&&o.attributes;if(void 0===t){if(this.length&&(i=Et.get(o),1===o.nodeType&&!St.get(o,"hasDataAttrs"))){for(e=u.length;e--;)u[e]&&(r=u[e].name,0===r.indexOf("data-")&&(r=ot.camelCase(r.slice(5)),s(o,r,i[r])));St.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){Et.set(this,t)}):_t(this,function(n){var e,r;if(o&&void 0===n){if(e=Et.get(o,t)||Et.get(o,t.replace(Ct,"-$&").toLowerCase()),void 0!==e)return e;if(r=ot.camelCase(t),e=Et.get(o,r),void 0!==e)return e;if(e=s(o,r,void 0),void 0!==e)return e}else r=ot.camelCase(t),this.each(function(){var e=Et.get(this,r);Et.set(this,r,n),t.indexOf("-")>-1&&void 0!==e&&Et.set(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Et.remove(this,t)})}}),ot.extend({queue:function(t,n,e){var r;return t?(n=(n||"fx")+"queue",r=St.get(t,n),e&&(!r||ot.isArray(e)?r=St.access(t,n,ot.makeArray(e)):r.push(e)),r||[]):void 0},dequeue:function(t,n){n=n||"fx";var e=ot.queue(t,n),r=e.length,i=e.shift(),o=ot._queueHooks(t,n),u=function(){ot.dequeue(t,n)};"inprogress"===i&&(i=e.shift(),r--),i&&("fx"===n&&e.unshift("inprogress"),delete o.stop,i.call(t,u,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,n){var e=n+"queueHooks";return St.get(t,e)||St.access(t,e,{empty:ot.Callbacks("once memory").add(function(){St.remove(t,[n+"queue",e])})})}}),ot.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ot.queue(this[0],t):void 0===n?this:this.each(function(){var e=ot.queue(this,t,n);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var e,r=1,i=ot.Deferred(),o=this,u=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(n=t,t=void 0),t=t||"fx";u--;)e=St.get(o[u],t+"queueHooks"),e&&e.empty&&(r++,e.empty.add(a));return a(),i.promise(n)}});var Tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,At=new RegExp("^(?:([+-])=|)("+Tt+")([a-z%]*)$","i"),jt=["Top","Right","Bottom","Left"],Lt=function(t,n){return t=n||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},qt=/^(?:checkbox|radio)$/i,Dt=/<([\w:-]+)/,Rt=/^$|\/(?:java|ecma)script/i,Ht={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ht.optgroup=Ht.option,Ht.tbody=Ht.tfoot=Ht.colgroup=Ht.caption=Ht.thead,Ht.th=Ht.td;var Pt=/<|&#?\w+;/;!function(){var t=G.createDocumentFragment(),n=t.appendChild(G.createElement("div")),e=G.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),n.appendChild(e),rt.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x</textarea>",rt.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var Ot=/^key/,zt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ft=/^([^.]*)(?:\.(.+)|)/;ot.event={global:{},add:function(t,n,e,r,i){var o,u,a,s,l,c,f,h,p,d,g,v=St.get(t);if(v)for(e.handler&&(o=e,e=o.handler,i=o.selector),e.guid||(e.guid=ot.guid++),(s=v.events)||(s=v.events={}),(u=v.handle)||(u=v.handle=function(n){return"undefined"!=typeof ot&&ot.event.triggered!==n.type?ot.event.dispatch.apply(t,arguments):void 0}),n=(n||"").match(wt)||[""],l=n.length;l--;)a=Ft.exec(n[l])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p&&(f=ot.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=ot.event.special[p]||{},c=ot.extend({type:p,origType:g,data:r,handler:e,guid:e.guid,selector:i,needsContext:i&&ot.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=s[p])||(h=s[p]=[],h.delegateCount=0,f.setup&&f.setup.call(t,r,d,u)!==!1||t.addEventListener&&t.addEventListener(p,u)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=e.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),ot.event.global[p]=!0)},remove:function(t,n,e,r,i){var o,u,a,s,l,c,f,h,p,d,g,v=St.hasData(t)&&St.get(t);if(v&&(s=v.events)){for(n=(n||"").match(wt)||[""],l=n.length;l--;)if(a=Ft.exec(n[l])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p){for(f=ot.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=s[p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=h.length;o--;)c=h[o],!i&&g!==c.origType||e&&e.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));u&&!h.length&&(f.teardown&&f.teardown.call(t,d,v.handle)!==!1||ot.removeEvent(t,p,v.handle),delete s[p])}else for(p in s)ot.event.remove(t,p+n[l],e,r,!0);ot.isEmptyObject(s)&&St.remove(t,"handle events")}},dispatch:function(t){t=ot.event.fix(t);var n,e,r,i,o,u=[],a=Z.call(arguments),s=(St.get(this,"events")||{})[t.type]||[],l=ot.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(u=ot.event.handlers.call(this,t,s),n=0;(i=u[n++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,e=0;(o=i.handlers[e++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,r=((ot.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,n){var e,r,i,o,u=[],a=n.delegateCount,s=t.target;if(a&&s.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&(s.disabled!==!0||"click"!==t.type)){for(r=[],e=0;a>e;e++)o=n[e],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?ot(i,this).index(s)>-1:ot.find(i,this,null,[s]).length),r[i]&&r.push(o);r.length&&u.push({elem:s,handlers:r})}return a<n.length&&u.push({elem:this,handlers:n.slice(a)}),u},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,n){return null==t.which&&(t.which=null!=n.charCode?n.charCode:n.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var e,r,i,o=n.button;return null==t.pageX&&null!=n.clientX&&(e=t.target.ownerDocument||G,r=e.documentElement,i=e.body,t.pageX=n.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=n.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ot.expando])return t;var n,e,r,i=t.type,o=t,u=this.fixHooks[i];for(u||(this.fixHooks[i]=u=zt.test(i)?this.mouseHooks:Ot.test(i)?this.keyHooks:{}),r=u.props?this.props.concat(u.props):this.props,t=new ot.Event(o),n=r.length;n--;)e=r[n],t[e]=o[e];return t.target||(t.target=G),3===t.target.nodeType&&(t.target=t.target.parentNode),u.filter?u.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==g()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===g()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&ot.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ot.removeEvent=function(t,n,e){t.removeEventListener&&t.removeEventListener(n,e)},ot.Event=function(t,n){return this instanceof ot.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?p:d):this.type=t,n&&ot.extend(this,n),this.timeStamp=t&&t.timeStamp||ot.now(),void(this[ot.expando]=!0)):new ot.Event(t,n)},ot.Event.prototype={constructor:ot.Event,isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=p,t&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=p,t&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=p,t&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,n){ot.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||ot.contains(r,i))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=n),e}}}),ot.fn.extend({on:function(t,n,e,r){return v(this,t,n,e,r)},one:function(t,n,e,r){return v(this,t,n,e,r,1)},off:function(t,n,e){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,ot(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,n,t[i]);return this}return n!==!1&&"function"!=typeof n||(e=n,n=void 0),e===!1&&(e=d),this.each(function(){ot.event.remove(this,t,e,n)})}});var It=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Wt=/<script|<style|<link/i,$t=/checked\s*(?:[^=]|=\s*.checked.)/i,Ut=/^true\/(.*)/,Bt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ot.extend({htmlPrefilter:function(t){return t.replace(It,"<$1></$2>")},clone:function(t,n,e){var r,i,o,u,a=t.cloneNode(!0),s=ot.contains(t.ownerDocument,t);if(!(rt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(u=c(a),o=c(t),r=0,i=o.length;i>r;r++)w(o[r],u[r]);if(n)if(e)for(o=o||c(t),u=u||c(a),r=0,i=o.length;i>r;r++)b(o[r],u[r]);else b(t,a);return u=c(a,"script"),u.length>0&&f(u,!s&&c(t,"script")),a},cleanData:function(t){for(var n,e,r,i=ot.event.special,o=0;void 0!==(e=t[o]);o++)if(kt(e)){if(n=e[St.expando]){if(n.events)for(r in n.events)i[r]?ot.event.remove(e,r):ot.removeEvent(e,r,n.handle);e[St.expando]=void 0}e[Et.expando]&&(e[Et.expando]=void 0)}}}),ot.fn.extend({domManip:M,detach:function(t){return _(this,t,!0)},remove:function(t){return _(this,t)},text:function(t){return _t(this,function(t){return void 0===t?ot.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return M(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=y(this,t);n.appendChild(t)}})},prepend:function(){return M(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=y(this,t);n.insertBefore(t,n.firstChild)}})},before:function(){return M(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return M(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,n=0;null!=(t=this[n]);n++)1===t.nodeType&&(ot.cleanData(c(t,!1)),t.textContent="");return this},clone:function(t,n){return t=null==t?!1:t,n=null==n?t:n,this.map(function(){return ot.clone(this,t,n)})},html:function(t){return _t(this,function(t){var n=this[0]||{},e=0,r=this.length;if(void 0===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!Wt.test(t)&&!Ht[(Dt.exec(t)||["",""])[1].toLowerCase()]){t=ot.htmlPrefilter(t);try{for(;r>e;e++)n=this[e]||{},1===n.nodeType&&(ot.cleanData(c(n,!1)),n.innerHTML=t);n=0}catch(i){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return M(this,arguments,function(n){var e=this.parentNode;ot.inArray(this,t)<0&&(ot.cleanData(c(this)),e&&e.replaceChild(n,this))},t)}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,n){ot.fn[t]=function(t){for(var e,r=[],i=ot(t),o=i.length-1,u=0;o>=u;u++)e=u===o?this:this.clone(!0),ot(i[u])[n](e),K.apply(r,e.get());return this.pushStack(r)}});var Yt,Xt={HTML:"block",BODY:"block"},Vt=/^margin/,Gt=new RegExp("^("+Tt+")(?!px)[a-z%]+$","i"),Zt=function(n){var e=n.ownerDocument.defaultView;return e&&e.opener||(e=t),e.getComputedStyle(n)},Jt=function(t,n,e,r){var i,o,u={};for(o in n)u[o]=t.style[o],t.style[o]=n[o];i=e.apply(t,r||[]);for(o in n)t.style[o]=u[o];return i},Kt=G.documentElement;!function(){function n(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Kt.appendChild(u);var n=t.getComputedStyle(a);e="1%"!==n.top,o="2px"===n.marginLeft,r="4px"===n.width,a.style.marginRight="50%",i="4px"===n.marginRight,Kt.removeChild(u)}var e,r,i,o,u=G.createElement("div"),a=G.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",rt.clearCloneStyle="content-box"===a.style.backgroundClip,u.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.appendChild(a),ot.extend(rt,{pixelPosition:function(){return n(),e},boxSizingReliable:function(){return null==r&&n(),r},pixelMarginRight:function(){return null==r&&n(),i},reliableMarginLeft:function(){return null==r&&n(),o},reliableMarginRight:function(){var n,e=a.appendChild(G.createElement("div"));return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",Kt.appendChild(u),n=!parseFloat(t.getComputedStyle(e).marginRight),Kt.removeChild(u),a.removeChild(e),n}}))}();var Qt=/^(none|table(?!-c[ea]).+)/,tn={position:"absolute",visibility:"hidden",display:"block"},nn={letterSpacing:"0",fontWeight:"400"},en=["Webkit","O","Moz","ms"],rn=G.createElement("div").style;ot.extend({cssHooks:{opacity:{get:function(t,n){if(n){var e=E(t,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,n,e,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,u,a=ot.camelCase(n),s=t.style;return n=ot.cssProps[a]||(ot.cssProps[a]=C(a)||a),u=ot.cssHooks[n]||ot.cssHooks[a],void 0===e?u&&"get"in u&&void 0!==(i=u.get(t,!1,r))?i:s[n]:(o=typeof e,"string"===o&&(i=At.exec(e))&&i[1]&&(e=l(t,n,i),o="number"),null!=e&&e===e&&("number"===o&&(e+=i&&i[3]||(ot.cssNumber[a]?"":"px")),rt.clearCloneStyle||""!==e||0!==n.indexOf("background")||(s[n]="inherit"),u&&"set"in u&&void 0===(e=u.set(t,e,r))||(s[n]=e)),void 0)}},css:function(t,n,e,r){var i,o,u,a=ot.camelCase(n);return n=ot.cssProps[a]||(ot.cssProps[a]=C(a)||a),u=ot.cssHooks[n]||ot.cssHooks[a],u&&"get"in u&&(i=u.get(t,!0,e)),void 0===i&&(i=E(t,n,r)),"normal"===i&&n in nn&&(i=nn[n]),""===e||e?(o=parseFloat(i),e===!0||isFinite(o)?o||0:i):i}}),ot.each(["height","width"],function(t,n){ot.cssHooks[n]={get:function(t,e,r){return e?Qt.test(ot.css(t,"display"))&&0===t.offsetWidth?Jt(t,tn,function(){return j(t,n,r)}):j(t,n,r):void 0},set:function(t,e,r){var i,o=r&&Zt(t),u=r&&A(t,n,r,"border-box"===ot.css(t,"boxSizing",!1,o),o);return u&&(i=At.exec(e))&&"px"!==(i[3]||"px")&&(t.style[n]=e,e=ot.css(t,n)),T(t,e,u)}}}),ot.cssHooks.marginLeft=N(rt.reliableMarginLeft,function(t,n){return n?(parseFloat(E(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px":void 0}),ot.cssHooks.marginRight=N(rt.reliableMarginRight,function(t,n){return n?Jt(t,{display:"inline-block"},E,[t,"marginRight"]):void 0}),ot.each({margin:"",padding:"",border:"Width"},function(t,n){ot.cssHooks[t+n]={expand:function(e){for(var r=0,i={},o="string"==typeof e?e.split(" "):[e];4>r;r++)i[t+jt[r]+n]=o[r]||o[r-2]||o[0];return i}},Vt.test(t)||(ot.cssHooks[t+n].set=T)}),ot.fn.extend({css:function(t,n){return _t(this,function(t,n,e){var r,i,o={},u=0;if(ot.isArray(n)){for(r=Zt(t),i=n.length;i>u;u++)o[n[u]]=ot.css(t,n[u],!1,r);return o}return void 0!==e?ot.style(t,n,e):ot.css(t,n)},t,n,arguments.length>1)},show:function(){return L(this,!0)},hide:function(){return L(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Lt(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=q,q.prototype={constructor:q,init:function(t,n,e,r,i,o){this.elem=t,this.prop=e,this.easing=i||ot.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ot.cssNumber[e]?"":"px")},cur:function(){var t=q.propHooks[this.prop];return t&&t.get?t.get(this):q.propHooks._default.get(this)},run:function(t){var n,e=q.propHooks[this.prop];return this.options.duration?this.pos=n=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),e&&e.set?e.set(this):q.propHooks._default.set(this),this}},q.prototype.init.prototype=q.prototype,q.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=ot.css(t.elem,t.prop,""),n&&"auto"!==n?n:0)},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ot.cssProps[t.prop]]&&!ot.cssHooks[t.prop]?t.elem[t.prop]=t.now:ot.style(t.elem,t.prop,t.now+t.unit)}}},q.propHooks.scrollTop=q.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ot.fx=q.prototype.init,ot.fx.step={};var on,un,an=/^(?:toggle|show|hide)$/,sn=/queueHooks$/;ot.Animation=ot.extend(z,{tweeners:{"*":[function(t,n){var e=this.createTween(t,n);return l(e.elem,t,At.exec(n),e),e}]},tweener:function(t,n){ot.isFunction(t)?(n=t,t=["*"]):t=t.match(wt);for(var e,r=0,i=t.length;i>r;r++)e=t[r],z.tweeners[e]=z.tweeners[e]||[],z.tweeners[e].unshift(n)},prefilters:[P],prefilter:function(t,n){n?z.prefilters.unshift(t):z.prefilters.push(t)}}),ot.speed=function(t,n,e){var r=t&&"object"==typeof t?ot.extend({},t):{complete:e||!e&&n||ot.isFunction(t)&&t,duration:t,easing:e&&n||n&&!ot.isFunction(n)&&n};return r.duration=ot.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ot.fx.speeds?ot.fx.speeds[r.duration]:ot.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){ot.isFunction(r.old)&&r.old.call(this),r.queue&&ot.dequeue(this,r.queue)},r},ot.fn.extend({fadeTo:function(t,n,e,r){return this.filter(Lt).css("opacity",0).show().end().animate({opacity:n},t,e,r)},animate:function(t,n,e,r){var i=ot.isEmptyObject(t),o=ot.speed(n,e,r),u=function(){var n=z(this,ot.extend({},t),o);(i||St.get(this,"finish"))&&n.stop(!0)};return u.finish=u,i||o.queue===!1?this.each(u):this.queue(o.queue,u)},stop:function(t,n,e){var r=function(t){var n=t.stop;delete t.stop,n(e)};return"string"!=typeof t&&(e=n,n=t,t=void 0),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var n=!0,i=null!=t&&t+"queueHooks",o=ot.timers,u=St.get(this);if(i)u[i]&&u[i].stop&&r(u[i]);else for(i in u)u[i]&&u[i].stop&&sn.test(i)&&r(u[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(e),n=!1,o.splice(i,1));!n&&e||ot.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var n,e=St.get(this),r=e[t+"queue"],i=e[t+"queueHooks"],o=ot.timers,u=r?r.length:0;for(e.finish=!0,ot.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===t&&(o[n].anim.stop(!0),o.splice(n,1));for(n=0;u>n;n++)r[n]&&r[n].finish&&r[n].finish.call(this);delete e.finish})}}),ot.each(["toggle","show","hide"],function(t,n){var e=ot.fn[n];ot.fn[n]=function(t,r,i){return null==t||"boolean"==typeof t?e.apply(this,arguments):this.animate(R(n,!0),t,r,i)}}),ot.each({slideDown:R("show"),slideUp:R("hide"),slideToggle:R("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){ot.fn[t]=function(t,e,r){return this.animate(n,t,e,r)}}),ot.timers=[],ot.fx.tick=function(){var t,n=0,e=ot.timers;for(on=ot.now();n<e.length;n++)t=e[n],t()||e[n]!==t||e.splice(n--,1);e.length||ot.fx.stop(),on=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){un||(un=t.setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){t.clearInterval(un),un=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(n,e){return n=ot.fx?ot.fx.speeds[n]||n:n,e=e||"fx",this.queue(e,function(e,r){var i=t.setTimeout(e,n);r.stop=function(){t.clearTimeout(i)}})},function(){var t=G.createElement("input"),n=G.createElement("select"),e=n.appendChild(G.createElement("option"));t.type="checkbox",rt.checkOn=""!==t.value,rt.optSelected=e.selected,n.disabled=!0,rt.optDisabled=!e.disabled,t=G.createElement("input"),t.value="t",t.type="radio",rt.radioValue="t"===t.value}();var ln,cn=ot.expr.attrHandle;ot.fn.extend({attr:function(t,n){return _t(this,ot.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?ot.prop(t,n,e):(1===o&&ot.isXMLDoc(t)||(n=n.toLowerCase(),i=ot.attrHooks[n]||(ot.expr.match.bool.test(n)?ln:void 0)),void 0!==e?null===e?void ot.removeAttr(t,n):i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:(t.setAttribute(n,e+""),e):i&&"get"in i&&null!==(r=i.get(t,n))?r:(r=ot.find.attr(t,n),null==r?void 0:r))},attrHooks:{type:{set:function(t,n){if(!rt.radioValue&&"radio"===n&&ot.nodeName(t,"input")){var e=t.value;return t.setAttribute("type",n),e&&(t.value=e),n}}}},removeAttr:function(t,n){var e,r,i=0,o=n&&n.match(wt);if(o&&1===t.nodeType)for(;e=o[i++];)r=ot.propFix[e]||e,ot.expr.match.bool.test(e)&&(t[r]=!1),t.removeAttribute(e)}}),ln={set:function(t,n,e){return n===!1?ot.removeAttr(t,e):t.setAttribute(e,e),e}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,n){var e=cn[n]||ot.find.attr;cn[n]=function(t,n,r){var i,o;return r||(o=cn[n],cn[n]=i,i=null!=e(t,n,r)?n.toLowerCase():null,cn[n]=o),i}});var fn=/^(?:input|select|textarea|button)$/i,hn=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,n){return _t(this,ot.prop,t,n,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ot.propFix[t]||t]})}}),ot.extend({prop:function(t,n,e){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ot.isXMLDoc(t)||(n=ot.propFix[n]||n,i=ot.propHooks[n]),void 0!==e?i&&"set"in i&&void 0!==(r=i.set(t,e,n))?r:t[n]=e:i&&"get"in i&&null!==(r=i.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){var n=ot.find.attr(t,"tabindex");return n?parseInt(n,10):fn.test(t.nodeName)||hn.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),rt.optSelected||(ot.propHooks.selected={get:function(t){var n=t.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(t){var n=t.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this});var pn=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var n,e,r,i,o,u,a,s=0;if(ot.isFunction(t))return this.each(function(n){ot(this).addClass(t.call(this,n,F(this)))});if("string"==typeof t&&t)for(n=t.match(wt)||[];e=this[s++];)if(i=F(e),r=1===e.nodeType&&(" "+i+" ").replace(pn," ")){for(u=0;o=n[u++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=ot.trim(r),i!==a&&e.setAttribute("class",a)}return this},removeClass:function(t){var n,e,r,i,o,u,a,s=0;if(ot.isFunction(t))return this.each(function(n){ot(this).removeClass(t.call(this,n,F(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(n=t.match(wt)||[];e=this[s++];)if(i=F(e),r=1===e.nodeType&&(" "+i+" ").replace(pn," ")){for(u=0;o=n[u++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=ot.trim(r),i!==a&&e.setAttribute("class",a)}return this},toggleClass:function(t,n){var e=typeof t;return"boolean"==typeof n&&"string"===e?n?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each(function(e){ot(this).toggleClass(t.call(this,e,F(this),n),n)}):this.each(function(){var n,r,i,o;if("string"===e)for(r=0,i=ot(this),o=t.match(wt)||[];n=o[r++];)i.hasClass(n)?i.removeClass(n):i.addClass(n);else void 0!==t&&"boolean"!==e||(n=F(this),n&&St.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||t===!1?"":St.get(this,"__className__")||""))})},hasClass:function(t){var n,e,r=0;for(n=" "+t+" ";e=this[r++];)if(1===e.nodeType&&(" "+F(e)+" ").replace(pn," ").indexOf(n)>-1)return!0;return!1}});var dn=/\r/g,gn=/[\x20\t\r\n\f]+/g;ot.fn.extend({val:function(t){var n,e,r,i=this[0];{if(arguments.length)return r=ot.isFunction(t),this.each(function(e){var i;1===this.nodeType&&(i=r?t.call(this,e,ot(this).val()):t,null==i?i="":"number"==typeof i?i+="":ot.isArray(i)&&(i=ot.map(i,function(t){return null==t?"":t+""})),n=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))});if(i)return n=ot.valHooks[i.type]||ot.valHooks[i.nodeName.toLowerCase()],n&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:(e=i.value,"string"==typeof e?e.replace(dn,""):null==e?"":e)}}}),ot.extend({valHooks:{option:{get:function(t){var n=ot.find.attr(t,"value");return null!=n?n:ot.trim(ot.text(t)).replace(gn," ")}},select:{get:function(t){for(var n,e,r=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,u=o?null:[],a=o?i+1:r.length,s=0>i?a:o?i:0;a>s;s++)if(e=r[s],(e.selected||s===i)&&(rt.optDisabled?!e.disabled:null===e.getAttribute("disabled"))&&(!e.parentNode.disabled||!ot.nodeName(e.parentNode,"optgroup"))){if(n=ot(e).val(),o)return n;u.push(n)}return u},set:function(t,n){for(var e,r,i=t.options,o=ot.makeArray(n),u=i.length;u--;)r=i[u],(r.selected=ot.inArray(ot.valHooks.option.get(r),o)>-1)&&(e=!0);return e||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,n){return ot.isArray(n)?t.checked=ot.inArray(ot(t).val(),n)>-1:void 0}},rt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var vn=/^(?:focusinfocus|focusoutblur)$/;ot.extend(ot.event,{trigger:function(n,e,r,i){var o,u,a,s,l,c,f,h=[r||G],p=et.call(n,"type")?n.type:n,d=et.call(n,"namespace")?n.namespace.split("."):[];if(u=a=r=r||G,3!==r.nodeType&&8!==r.nodeType&&!vn.test(p+ot.event.triggered)&&(p.indexOf(".")>-1&&(d=p.split("."),p=d.shift(),d.sort()),l=p.indexOf(":")<0&&"on"+p,n=n[ot.expando]?n:new ot.Event(p,"object"==typeof n&&n),n.isTrigger=i?2:3,n.namespace=d.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=r),e=null==e?[n]:ot.makeArray(e,[n]),f=ot.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,e)!==!1)){if(!i&&!f.noBubble&&!ot.isWindow(r)){for(s=f.delegateType||p,vn.test(s+p)||(u=u.parentNode);u;u=u.parentNode)h.push(u),a=u;a===(r.ownerDocument||G)&&h.push(a.defaultView||a.parentWindow||t)}for(o=0;(u=h[o++])&&!n.isPropagationStopped();)n.type=o>1?s:f.bindType||p,c=(St.get(u,"events")||{})[n.type]&&St.get(u,"handle"),c&&c.apply(u,e),c=l&&u[l],c&&c.apply&&kt(u)&&(n.result=c.apply(u,e),n.result===!1&&n.preventDefault());return n.type=p,i||n.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),e)!==!1||!kt(r)||l&&ot.isFunction(r[p])&&!ot.isWindow(r)&&(a=r[l],a&&(r[l]=null),ot.event.triggered=p,r[p](),ot.event.triggered=void 0,a&&(r[l]=a)),n.result}},simulate:function(t,n,e){var r=ot.extend(new ot.Event,e,{type:t,isSimulated:!0});ot.event.trigger(r,null,n),r.isDefaultPrevented()&&e.preventDefault()}}),ot.fn.extend({trigger:function(t,n){return this.each(function(){ot.event.trigger(t,n,this)})},triggerHandler:function(t,n){var e=this[0];return e?ot.event.trigger(t,n,e,!0):void 0}}),ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,n){ot.fn[n]=function(t,e){return arguments.length>0?this.on(n,null,t,e):this.trigger(n)}}),ot.fn.extend({hover:function(t,n){return this.mouseenter(t).mouseleave(n||t)}}),rt.focusin="onfocusin"in t,rt.focusin||ot.each({focus:"focusin",blur:"focusout"},function(t,n){var e=function(t){ot.event.simulate(n,t.target,ot.event.fix(t))};ot.event.special[n]={setup:function(){var r=this.ownerDocument||this,i=St.access(r,n);i||r.addEventListener(t,e,!0),St.access(r,n,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=St.access(r,n)-1;i?St.access(r,n,i):(r.removeEventListener(t,e,!0),St.remove(r,n))}}});var yn=t.location,mn=ot.now(),xn=/\?/;ot.parseJSON=function(t){return JSON.parse(t+"")},ot.parseXML=function(n){var e;if(!n||"string"!=typeof n)return null;try{e=(new t.DOMParser).parseFromString(n,"text/xml");
}catch(r){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+n),e};var bn=/#.*$/,wn=/([?&])_=[^&]*/,Mn=/^(.*?):[ \t]*([^\r\n]*)$/gm,_n=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kn=/^(?:GET|HEAD)$/,Sn=/^\/\//,En={},Nn={},Cn="*/".concat("*"),Tn=G.createElement("a");Tn.href=yn.href,ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn.href,type:"GET",isLocal:_n.test(yn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Cn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?$($(t,ot.ajaxSettings),n):$(ot.ajaxSettings,t)},ajaxPrefilter:I(En),ajaxTransport:I(Nn),ajax:function(n,e){function r(n,e,r,a){var l,f,m,x,w,_=e;2!==b&&(b=2,s&&t.clearTimeout(s),i=void 0,u=a||"",M.readyState=n>0?4:0,l=n>=200&&300>n||304===n,r&&(x=U(h,M,r)),x=B(h,x,M,l),l?(h.ifModified&&(w=M.getResponseHeader("Last-Modified"),w&&(ot.lastModified[o]=w),w=M.getResponseHeader("etag"),w&&(ot.etag[o]=w)),204===n||"HEAD"===h.type?_="nocontent":304===n?_="notmodified":(_=x.state,f=x.data,m=x.error,l=!m)):(m=_,!n&&_||(_="error",0>n&&(n=0))),M.status=n,M.statusText=(e||_)+"",l?g.resolveWith(p,[f,_,M]):g.rejectWith(p,[M,_,m]),M.statusCode(y),y=void 0,c&&d.trigger(l?"ajaxSuccess":"ajaxError",[M,h,l?f:m]),v.fireWith(p,[M,_]),c&&(d.trigger("ajaxComplete",[M,h]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof n&&(e=n,n=void 0),e=e||{};var i,o,u,a,s,l,c,f,h=ot.ajaxSetup({},e),p=h.context||h,d=h.context&&(p.nodeType||p.jquery)?ot(p):ot.event,g=ot.Deferred(),v=ot.Callbacks("once memory"),y=h.statusCode||{},m={},x={},b=0,w="canceled",M={readyState:0,getResponseHeader:function(t){var n;if(2===b){if(!a)for(a={};n=Mn.exec(u);)a[n[1].toLowerCase()]=n[2];n=a[t.toLowerCase()]}return null==n?null:n},getAllResponseHeaders:function(){return 2===b?u:null},setRequestHeader:function(t,n){var e=t.toLowerCase();return b||(t=x[e]=x[e]||t,m[t]=n),this},overrideMimeType:function(t){return b||(h.mimeType=t),this},statusCode:function(t){var n;if(t)if(2>b)for(n in t)y[n]=[y[n],t[n]];else M.always(t[M.status]);return this},abort:function(t){var n=t||w;return i&&i.abort(n),r(0,n),this}};if(g.promise(M).complete=v.add,M.success=M.done,M.error=M.fail,h.url=((n||h.url||yn.href)+"").replace(bn,"").replace(Sn,yn.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=ot.trim(h.dataType||"*").toLowerCase().match(wt)||[""],null==h.crossDomain){l=G.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Tn.protocol+"//"+Tn.host!=l.protocol+"//"+l.host}catch(_){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ot.param(h.data,h.traditional)),W(En,h,e,M),2===b)return M;c=ot.event&&h.global,c&&0===ot.active++&&ot.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!kn.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(xn.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=wn.test(o)?o.replace(wn,"$1_="+mn++):o+(xn.test(o)?"&":"?")+"_="+mn++)),h.ifModified&&(ot.lastModified[o]&&M.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&M.setRequestHeader("If-None-Match",ot.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||e.contentType)&&M.setRequestHeader("Content-Type",h.contentType),M.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Cn+"; q=0.01":""):h.accepts["*"]);for(f in h.headers)M.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(h.beforeSend.call(p,M,h)===!1||2===b))return M.abort();w="abort";for(f in{success:1,error:1,complete:1})M[f](h[f]);if(i=W(Nn,h,e,M)){if(M.readyState=1,c&&d.trigger("ajaxSend",[M,h]),2===b)return M;h.async&&h.timeout>0&&(s=t.setTimeout(function(){M.abort("timeout")},h.timeout));try{b=1,i.send(m,r)}catch(_){if(!(2>b))throw _;r(-1,_)}}else r(-1,"No Transport");return M},getJSON:function(t,n,e){return ot.get(t,n,e,"json")},getScript:function(t,n){return ot.get(t,void 0,n,"script")}}),ot.each(["get","post"],function(t,n){ot[n]=function(t,e,r,i){return ot.isFunction(e)&&(i=i||r,r=e,e=void 0),ot.ajax(ot.extend({url:t,type:n,dataType:i,data:e,success:r},ot.isPlainObject(t)&&t))}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ot.fn.extend({wrapAll:function(t){var n;return ot.isFunction(t)?this.each(function(n){ot(this).wrapAll(t.call(this,n))}):(this[0]&&(n=ot(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return ot.isFunction(t)?this.each(function(n){ot(this).wrapInner(t.call(this,n))}):this.each(function(){var n=ot(this),e=n.contents();e.length?e.wrapAll(t):n.append(t)})},wrap:function(t){var n=ot.isFunction(t);return this.each(function(e){ot(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return!ot.expr.filters.visible(t)},ot.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var An=/%20/g,jn=/\[\]$/,Ln=/\r?\n/g,qn=/^(?:submit|button|image|reset|file)$/i,Dn=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,n){var e,r=[],i=function(t,n){n=ot.isFunction(n)?n():null==n?"":n,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(n)};if(void 0===n&&(n=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){i(this.name,this.value)});else for(e in t)Y(e,t[e],n,i);return r.join("&").replace(An,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&Dn.test(this.nodeName)&&!qn.test(t)&&(this.checked||!qt.test(t))}).map(function(t,n){var e=ot(this).val();return null==e?null:ot.isArray(e)?ot.map(e,function(t){return{name:n.name,value:t.replace(Ln,"\r\n")}}):{name:n.name,value:e.replace(Ln,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(n){}};var Rn={0:200,1223:204},Hn=ot.ajaxSettings.xhr();rt.cors=!!Hn&&"withCredentials"in Hn,rt.ajax=Hn=!!Hn,ot.ajaxTransport(function(n){var e,r;return rt.cors||Hn&&!n.crossDomain?{send:function(i,o){var u,a=n.xhr();if(a.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(u in i)a.setRequestHeader(u,i[u]);e=function(t){return function(){e&&(e=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Rn[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),r=a.onerror=e("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){e&&r()})},e=e("abort");try{a.send(n.hasContent&&n.data||null)}catch(s){if(e)throw s}},abort:function(){e&&e()}}:void 0}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var n,e;return{send:function(r,i){n=ot("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",e=function(t){n.remove(),e=null,t&&i("error"===t.type?404:200,t.type)}),G.head.appendChild(n[0])},abort:function(){e&&e()}}}});var Pn=[],On=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Pn.pop()||ot.expando+"_"+mn++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(n,e,r){var i,o,u,a=n.jsonp!==!1&&(On.test(n.url)?"url":"string"==typeof n.data&&0===(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&On.test(n.data)&&"data");return a||"jsonp"===n.dataTypes[0]?(i=n.jsonpCallback=ot.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,a?n[a]=n[a].replace(On,"$1"+i):n.jsonp!==!1&&(n.url+=(xn.test(n.url)?"&":"?")+n.jsonp+"="+i),n.converters["script json"]=function(){return u||ot.error(i+" was not called"),u[0]},n.dataTypes[0]="json",o=t[i],t[i]=function(){u=arguments},r.always(function(){void 0===o?ot(t).removeProp(i):t[i]=o,n[i]&&(n.jsonpCallback=e.jsonpCallback,Pn.push(i)),u&&ot.isFunction(o)&&o(u[0]),u=o=void 0}),"script"):void 0}),ot.parseHTML=function(t,n,e){if(!t||"string"!=typeof t)return null;"boolean"==typeof n&&(e=n,n=!1),n=n||G;var r=dt.exec(t),i=!e&&[];return r?[n.createElement(r[1])]:(r=h([t],n,i),i&&i.length&&ot(i).remove(),ot.merge([],r.childNodes))};var zn=ot.fn.load;ot.fn.load=function(t,n,e){if("string"!=typeof t&&zn)return zn.apply(this,arguments);var r,i,o,u=this,a=t.indexOf(" ");return a>-1&&(r=ot.trim(t.slice(a)),t=t.slice(0,a)),ot.isFunction(n)?(e=n,n=void 0):n&&"object"==typeof n&&(i="POST"),u.length>0&&ot.ajax({url:t,type:i||"GET",dataType:"html",data:n}).done(function(t){o=arguments,u.html(r?ot("<div>").append(ot.parseHTML(t)).find(r):t)}).always(e&&function(t,n){u.each(function(){e.apply(this,o||[t.responseText,n,t])})}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,n){ot.fn[n]=function(t){return this.on(n,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(n){return t===n.elem}).length},ot.offset={setOffset:function(t,n,e){var r,i,o,u,a,s,l,c=ot.css(t,"position"),f=ot(t),h={};"static"===c&&(t.style.position="relative"),a=f.offset(),o=ot.css(t,"top"),s=ot.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+s).indexOf("auto")>-1,l?(r=f.position(),u=r.top,i=r.left):(u=parseFloat(o)||0,i=parseFloat(s)||0),ot.isFunction(n)&&(n=n.call(t,e,ot.extend({},a))),null!=n.top&&(h.top=n.top-a.top+u),null!=n.left&&(h.left=n.left-a.left+i),"using"in n?n.using.call(t,h):f.css(h)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(n){ot.offset.setOffset(this,t,n)});var n,e,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return n=o.documentElement,ot.contains(n,r)?(i=r.getBoundingClientRect(),e=X(o),{top:i.top+e.pageYOffset-n.clientTop,left:i.left+e.pageXOffset-n.clientLeft}):i},position:function(){if(this[0]){var t,n,e=this[0],r={top:0,left:0};return"fixed"===ot.css(e,"position")?n=e.getBoundingClientRect():(t=this.offsetParent(),n=this.offset(),ot.nodeName(t[0],"html")||(r=t.offset()),r.top+=ot.css(t[0],"borderTopWidth",!0),r.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:n.top-r.top-ot.css(e,"marginTop",!0),left:n.left-r.left-ot.css(e,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||Kt})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var e="pageYOffset"===n;ot.fn[t]=function(r){return _t(this,function(t,r,i){var o=X(t);return void 0===i?o?o[n]:t[r]:void(o?o.scrollTo(e?o.pageXOffset:i,e?i:o.pageYOffset):t[r]=i)},t,r,arguments.length)}}),ot.each(["top","left"],function(t,n){ot.cssHooks[n]=N(rt.pixelPosition,function(t,e){return e?(e=E(t,n),Gt.test(e)?ot(t).position()[n]+"px":e):void 0})}),ot.each({Height:"height",Width:"width"},function(t,n){ot.each({padding:"inner"+t,content:n,"":"outer"+t},function(e,r){ot.fn[r]=function(r,i){var o=arguments.length&&(e||"boolean"!=typeof r),u=e||(r===!0||i===!0?"margin":"border");return _t(this,function(n,e,r){var i;return ot.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(i=n.documentElement,Math.max(n.body["scroll"+t],i["scroll"+t],n.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?ot.css(n,e,u):ot.style(n,e,r,u)},n,o?r:void 0,o,null)}})}),ot.fn.extend({bind:function(t,n,e){return this.on(t,null,n,e)},unbind:function(t,n){return this.off(t,null,n)},delegate:function(t,n,e,r){return this.on(n,t,e,r)},undelegate:function(t,n,e){return 1===arguments.length?this.off(t,"**"):this.off(n,t||"**",e)},size:function(){return this.length}}),ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var Fn=t.jQuery,In=t.$;return ot.noConflict=function(n){return t.$===ot&&(t.$=In),n&&t.jQuery===ot&&(t.jQuery=Fn),ot},n||(t.jQuery=t.$=ot),ot}),function(t,n){"function"==typeof define&&define.amd?define(["d3"],n):"object"==typeof module&&module.exports?module.exports=function(t){return t.tip=n(t),t.tip}:t.d3.tip=n(t.d3)}(this,function(t){return function(){function n(t){w=d(t),M=w.createSVGPoint(),document.body.appendChild(b)}function e(){return"n"}function r(){return[0,0]}function i(){return" "}function o(){var t=v();return{top:t.n.y-b.offsetHeight,left:t.n.x-b.offsetWidth/2}}function u(){var t=v();return{top:t.s.y,left:t.s.x-b.offsetWidth/2}}function a(){var t=v();return{top:t.e.y-b.offsetHeight/2,left:t.e.x}}function s(){var t=v();return{top:t.w.y-b.offsetHeight/2,left:t.w.x-b.offsetWidth}}function l(){var t=v();return{top:t.nw.y-b.offsetHeight,left:t.nw.x-b.offsetWidth}}function c(){var t=v();return{top:t.ne.y-b.offsetHeight,left:t.ne.x}}function f(){var t=v();return{top:t.sw.y,left:t.sw.x-b.offsetWidth}}function h(){var t=v();return{top:t.se.y,left:t.e.x}}function p(){var n=t.select(document.createElement("div"));return n.style({position:"absolute",top:0,opacity:0,"pointer-events":"none","box-sizing":"border-box"}),n.node()}function d(t){return t=t.node(),"svg"===t.tagName.toLowerCase()?t:t.ownerSVGElement}function g(){return null===b&&(b=p(),document.body.appendChild(b)),t.select(b)}function v(){for(var n=_||t.event.target;"undefined"==typeof n.getScreenCTM&&"undefined"===n.parentNode;)n=n.parentNode;var e={},r=n.getScreenCTM(),i=n.getBBox(),o=i.width,u=i.height,a=i.x,s=i.y;return M.x=a,M.y=s,e.nw=M.matrixTransform(r),M.x+=o,e.ne=M.matrixTransform(r),M.y+=u,e.se=M.matrixTransform(r),M.x-=o,e.sw=M.matrixTransform(r),M.y-=u/2,e.w=M.matrixTransform(r),M.x+=o,e.e=M.matrixTransform(r),M.x-=o/2,M.y-=u/2,e.n=M.matrixTransform(r),M.y+=u,e.s=M.matrixTransform(r),e}var y=e,m=r,x=i,b=p(),w=null,M=null,_=null;n.show=function(){var t=Array.prototype.slice.call(arguments);t[t.length-1]instanceof SVGElement&&(_=t.pop());var e,r=x.apply(this,t),i=m.apply(this,t),o=y.apply(this,t),u=g(),a=S.length,s=document.documentElement.scrollTop||document.body.scrollTop,l=document.documentElement.scrollLeft||document.body.scrollLeft;for(u.html(r).style({opacity:1,"pointer-events":"all"});a--;)u.classed(S[a],!1);return e=k.get(o).apply(this),u.classed(o,!0).style({top:e.top+i[0]+s+"px",left:e.left+i[1]+l+"px"}),n},n.hide=function(){var t=g();return t.style({opacity:0,"pointer-events":"none"}),n},n.attr=function(e,r){if(arguments.length<2&&"string"==typeof e)return g().attr(e);var i=Array.prototype.slice.call(arguments);return t.selection.prototype.attr.apply(g(),i),n},n.style=function(e,r){if(arguments.length<2&&"string"==typeof e)return g().style(e);var i=Array.prototype.slice.call(arguments);return t.selection.prototype.style.apply(g(),i),n},n.direction=function(e){return arguments.length?(y=null==e?e:t.functor(e),n):y},n.offset=function(e){return arguments.length?(m=null==e?e:t.functor(e),n):m},n.html=function(e){return arguments.length?(x=null==e?e:t.functor(e),n):x},n.destroy=function(){return b&&(g().remove(),b=null),n};var k=t.map({n:o,s:u,e:a,w:s,nw:l,ne:c,sw:f,se:h}),S=k.keys();return n}}),function(t){"use strict";t.fn.fitVids=function(n){var e={customSelector:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],i=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",o=document.createElement("div");o.innerHTML='<p>x</p><style id="fit-vids-style">'+i+"</style>",r.appendChild(o.childNodes[1])}return n&&t.extend(e,n),this.each(function(){var n=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];e.customSelector&&n.push(e.customSelector);var r=t(this).find(n.join(","));r=r.not("object object"),r.each(function(){var n=t(this);if(!("embed"===this.tagName.toLowerCase()&&n.parent("object").length||n.parent(".fluid-width-video-wrapper").length)){var e="object"===this.tagName.toLowerCase()||n.attr("height")&&!isNaN(parseInt(n.attr("height"),10))?parseInt(n.attr("height"),10):n.height(),r=isNaN(parseInt(n.attr("width"),10))?n.width():parseInt(n.attr("width"),10),i=e/r;if(!n.attr("id")){var o="fitvid"+Math.floor(999999*Math.random());n.attr("id",o)}n.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),n.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(t){"function"==typeof define&&define.amd?define(t):"undefined"!=typeof module&&module.exports?module.exports=t():window.pym=t.call(this)}(function(){var t="xPYMx",n={},e=function(t){var n=new RegExp("[\\?&]"+t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]")+"=([^&#]*)"),e=n.exec(location.search);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))},r=function(t,n){return"*"===n.xdomain||t.origin.match(new RegExp(n.xdomain+"$"))?!0:void 0},i=function(n,e,r){var i=["pym",n,e,r];return i.join(t)},o=function(n){var e=["pym",n,"(\\S+)","(.+)"];return new RegExp("^"+e.join(t)+"$")},u=function(){for(var t=document.querySelectorAll("[data-pym-src]:not([data-pym-auto-initialized])"),e=t.length,r=0;e>r;++r){var i=t[r];i.setAttribute("data-pym-auto-initialized",""),""===i.id&&(i.id="pym-"+r);var o=i.getAttribute("data-pym-src"),u=i.getAttribute("data-pym-xdomain"),a={};u&&(a.xdomain=u),new n.Parent(i.id,o,a)}};return n.Parent=function(t,n,e){this.id=t,this.url=n,this.el=document.getElementById(t),this.iframe=null,this.settings={xdomain:"*"},this.messageRegex=o(this.id),this.messageHandlers={},e=e||{},this._constructIframe=function(){var t=this.el.offsetWidth.toString();this.iframe=document.createElement("iframe");var n="",e=this.url.indexOf("#");e>-1&&(n=this.url.substring(e,this.url.length),this.url=this.url.substring(0,e)),this.url.indexOf("?")<0?this.url+="?":this.url+="&",this.iframe.src=this.url+"initialWidth="+t+"&childId="+this.id+"&parentUrl="+encodeURIComponent(window.location.href)+n,this.iframe.setAttribute("width","100%"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("marginheight","0"),this.iframe.setAttribute("frameborder","0"),this.el.appendChild(this.iframe),window.addEventListener("resize",this._onResize)},this._onResize=function(){this.sendWidth()}.bind(this),this._fire=function(t,n){if(t in this.messageHandlers)for(var e=0;e<this.messageHandlers[t].length;e++)this.messageHandlers[t][e].call(this,n)},this.remove=function(){window.removeEventListener("message",this._processMessage),window.removeEventListener("resize",this._onResize),this.el.removeChild(this.iframe)},this._processMessage=function(t){if(r(t,this.settings)&&"string"==typeof t.data){var n=t.data.match(this.messageRegex);if(!n||3!==n.length)return!1;var e=n[1],i=n[2];this._fire(e,i)}}.bind(this),this._onHeightMessage=function(t){var n=parseInt(t);this.iframe.setAttribute("height",n+"px")},this._onNavigateToMessage=function(t){document.location.href=t},this.onMessage=function(t,n){t in this.messageHandlers||(this.messageHandlers[t]=[]),this.messageHandlers[t].push(n)},this.sendMessage=function(t,n){this.el.getElementsByTagName("iframe")[0].contentWindow.postMessage(i(this.id,t,n),"*")},this.sendWidth=function(){var t=this.el.offsetWidth.toString();this.sendMessage("width",t)};for(var u in e)this.settings[u]=e[u];return this.onMessage("height",this._onHeightMessage),this.onMessage("navigateTo",this._onNavigateToMessage),window.addEventListener("message",this._processMessage,!1),this._constructIframe(),this},n.Child=function(n){this.parentWidth=null,this.id=null,this.parentUrl=null,this.settings={renderCallback:null,xdomain:"*",polling:0},this.messageRegex=null,this.messageHandlers={},n=n||{},this.onMessage=function(t,n){t in this.messageHandlers||(this.messageHandlers[t]=[]),this.messageHandlers[t].push(n)},this._fire=function(t,n){if(t in this.messageHandlers)for(var e=0;e<this.messageHandlers[t].length;e++)this.messageHandlers[t][e].call(this,n)},this._processMessage=function(t){if(r(t,this.settings)&&"string"==typeof t.data){var n=t.data.match(this.messageRegex);if(n&&3===n.length){var e=n[1],i=n[2];this._fire(e,i)}}}.bind(this),this._onWidthMessage=function(t){var n=parseInt(t);n!==this.parentWidth&&(this.parentWidth=n,this.settings.renderCallback&&this.settings.renderCallback(n),this.sendHeight())},this.sendMessage=function(t,n){window.parent.postMessage(i(this.id,t,n),"*")},this.sendHeight=function(){var t=document.getElementsByTagName("body")[0].offsetHeight.toString();this.sendMessage("height",t)}.bind(this),this.scrollParentTo=function(t){this.sendMessage("navigateTo","#"+t)},this.navigateParentTo=function(t){this.sendMessage("navigateTo",t)},this.id=e("childId")||n.id,this.messageRegex=new RegExp("^pym"+t+this.id+t+"(\\S+)"+t+"(.+)$");var o=parseInt(e("initialWidth"));this.parentUrl=e("parentUrl"),this.onMessage("width",this._onWidthMessage);for(var u in n)this.settings[u]=n[u];return window.addEventListener("message",this._processMessage,!1),this.settings.renderCallback&&this.settings.renderCallback(o),this.sendHeight(),this.settings.polling&&window.setInterval(this.sendHeight,this.settings.polling),this},u(),n}),function(){"use strict";var t=!1;if("undefined"!=typeof process&&!process.browser){t=!0;var n=require("request".trim())}var e=!1,r=!1;try{var i=new XMLHttpRequest;"undefined"!=typeof i.withCredentials?e=!0:"XDomainRequest"in window&&(e=!0,r=!0)}catch(o){}var u=Array.prototype.indexOf,a=function(t,n){var e=0,r=t.length;if(u&&t.indexOf===u)return t.indexOf(n);for(;r>e;e++)if(t[e]===n)return e;return-1},s=function(n){return this&&this instanceof s?("string"==typeof n&&(n={key:n}),this.callback=n.callback,this.wanted=n.wanted||[],this.key=n.key,this.simpleSheet=!!n.simpleSheet,this.parseNumbers=!!n.parseNumbers,this.wait=!!n.wait,this.reverse=!!n.reverse,this.postProcess=n.postProcess,this.debug=!!n.debug,this.query=n.query||"",this.orderby=n.orderby,this.endpoint=n.endpoint||"https://spreadsheets.google.com",this.singleton=!!n.singleton,this.simple_url=!!n.simple_url,this.callbackContext=n.callbackContext,this.prettyColumnNames="undefined"==typeof n.prettyColumnNames?!n.proxy:n.prettyColumnNames,"undefined"!=typeof n.proxy&&(this.endpoint=n.proxy.replace(/\/$/,""),this.simple_url=!0,this.singleton=!0,e=!1),this.parameterize=n.parameterize||!1,this.singleton&&("undefined"!=typeof s.singleton&&this.log("WARNING! Tabletop singleton already defined"),s.singleton=this),/key=/.test(this.key)&&(this.log("You passed an old Google Docs url as the key! Attempting to parse."),this.key=this.key.match("key=(.*?)(&|#|$)")[1]),/pubhtml/.test(this.key)&&(this.log("You passed a new Google Spreadsheets url as the key! Attempting to parse."),this.key=this.key.match("d\\/(.*?)\\/pubhtml")[1]),this.key?(this.log("Initializing with key "+this.key),this.models={},this.model_names=[],this.base_json_path="/feeds/worksheets/"+this.key+"/public/basic?alt=",t||e?this.base_json_path+="json":this.base_json_path+="json-in-script",void(this.wait||this.fetch())):void this.log("You need to pass Tabletop a key!")):new s(n)};s.callbacks={},s.init=function(t){return new s(t)},s.sheets=function(){this.log("Times have changed! You'll want to use var tabletop = Tabletop.init(...); tabletop.sheets(...); instead of Tabletop.sheets(...)")},s.prototype={fetch:function(t){"undefined"!=typeof t&&(this.callback=t),this.requestData(this.base_json_path,this.loadSheets)},requestData:function(n,i){if(t)this.serverSideFetch(n,i);else{var o=this.endpoint.split("//").shift()||"http";!e||r&&o!==location.protocol?this.injectScript(n,i):this.xhrFetch(n,i)}},xhrFetch:function(t,n){var e=r?new XDomainRequest:new XMLHttpRequest;e.open("GET",this.endpoint+t);var i=this;e.onload=function(){try{var t=JSON.parse(e.responseText)}catch(r){console.error(r)}n.call(i,t)},e.send()},injectScript:function(t,n){var e,r=document.createElement("script");if(this.singleton)n===this.loadSheets?e="Tabletop.singleton.loadSheets":n===this.loadSheet&&(e="Tabletop.singleton.loadSheet");else{var i=this;e="tt"+ +new Date+Math.floor(1e5*Math.random()),s.callbacks[e]=function(){var t=Array.prototype.slice.call(arguments,0);n.apply(i,t),r.parentNode.removeChild(r),delete s.callbacks[e]},e="Tabletop.callbacks."+e}var o=t+"&callback="+e;this.simple_url?-1!==t.indexOf("/list/")?r.src=this.endpoint+"/"+this.key+"-"+t.split("/")[4]:r.src=this.endpoint+"/"+this.key:r.src=this.endpoint+o,this.parameterize&&(r.src=this.parameterize+encodeURIComponent(r.src)),document.getElementsByTagName("script")[0].parentNode.appendChild(r)},serverSideFetch:function(t,e){var r=this;n({url:this.endpoint+t,json:!0},function(t,n,i){return t?console.error(t):void e.call(r,i)})},isWanted:function(t){return 0===this.wanted.length?!0:-1!==a(this.wanted,t)},data:function(){return 0!==this.model_names.length?this.simpleSheet?(this.model_names.length>1&&this.debug&&this.log("WARNING You have more than one sheet but are using simple sheet mode! Don't blame me when something goes wrong."),this.models[this.model_names[0]].all()):this.models:void 0},addWanted:function(t){-1===a(this.wanted,t)&&this.wanted.push(t)},loadSheets:function(n){var r,i,o=[];for(this.googleSheetName=n.feed.title.$t,this.foundSheetNames=[],r=0,i=n.feed.entry.length;i>r;r++)if(this.foundSheetNames.push(n.feed.entry[r].title.$t),this.isWanted(n.feed.entry[r].content.$t)){var u=n.feed.entry[r].link.length-1,a=n.feed.entry[r].link[u].href.split("/").pop(),s="/feeds/list/"+this.key+"/"+a+"/public/values?alt=";s+=t||e?"json":"json-in-script",this.query&&(s+="&sq="+this.query),this.orderby&&(s+="&orderby=column:"+this.orderby.toLowerCase()),this.reverse&&(s+="&reverse=true"),o.push(s)}for(this.sheetsToLoad=o.length,r=0,i=o.length;i>r;r++)this.requestData(o[r],this.loadSheet)},sheets:function(t){return"undefined"==typeof t?this.models:"undefined"==typeof this.models[t]?void 0:this.models[t]},sheetReady:function(t){this.models[t.name]=t,-1===a(this.model_names,t.name)&&this.model_names.push(t.name),this.sheetsToLoad--,0===this.sheetsToLoad&&this.doCallback()},loadSheet:function(t){var n=this;new s.Model({data:t,parseNumbers:this.parseNumbers,postProcess:this.postProcess,tabletop:this,prettyColumnNames:this.prettyColumnNames,onReady:function(){n.sheetReady(this)}})},doCallback:function(){0===this.sheetsToLoad&&this.callback.apply(this.callbackContext||this,[this.data(),this])},log:function(t){this.debug&&"undefined"!=typeof console&&"undefined"!=typeof console.log&&Function.prototype.apply.apply(console.log,[console,arguments])}},s.Model=function(t){var n,e,r,i;if(this.column_names=[],this.name=t.data.feed.title.$t,this.tabletop=t.tabletop,this.elements=[],this.onReady=t.onReady,this.raw=t.data,"undefined"==typeof t.data.feed.entry)return t.tabletop.log("Missing data for "+this.name+", make sure you didn't forget column headers"),this.original_columns=[],this.elements=[],void this.onReady.call(this);for(var o in t.data.feed.entry[0])/^gsx/.test(o)&&this.column_names.push(o.replace("gsx$",""));for(this.original_columns=this.column_names,n=0,r=t.data.feed.entry.length;r>n;n++){for(var u=t.data.feed.entry[n],a={},e=0,i=this.column_names.length;i>e;e++){var s=u["gsx$"+this.column_names[e]];"undefined"!=typeof s?t.parseNumbers&&""!==s.$t&&!isNaN(s.$t)?a[this.column_names[e]]=+s.$t:a[this.column_names[e]]=s.$t:a[this.column_names[e]]=""}void 0===a.rowNumber&&(a.rowNumber=n+1),t.postProcess&&t.postProcess(a),this.elements.push(a)}t.prettyColumnNames?this.fetchPrettyColumns():this.onReady.call(this)},s.Model.prototype={all:function(){return this.elements},fetchPrettyColumns:function(){if(!this.raw.feed.link[3])return this.ready();var t=this.raw.feed.link[3].href.replace("/feeds/list/","/feeds/cells/").replace("https://spreadsheets.google.com",""),n=this;this.tabletop.requestData(t,function(t){n.loadPrettyColumns(t)})},ready:function(){this.onReady.call(this)},loadPrettyColumns:function(t){for(var n={},e=this.column_names,r=0,i=e.length;i>r;r++)"undefined"!=typeof t.feed.entry[r].content.$t?n[e[r]]=t.feed.entry[r].content.$t:n[e[r]]=e[r];this.pretty_columns=n,this.prettifyElements(),this.ready()},prettifyElements:function(){var t,n,e,r,i,o=[],i=[];for(n=0,r=this.column_names.length;r>n;n++)i.push(this.pretty_columns[this.column_names[n]]);for(t=0,e=this.elements.length;e>t;t++){var u={};for(n=0,r=this.column_names.length;r>n;n++){var a=this.pretty_columns[this.column_names[n]];u[a]=this.elements[t][this.column_names[n]]}o.push(u)}this.elements=o,this.column_names=i},toArray:function(){var t,n,e,r,i=[];for(t=0,e=this.elements.length;e>t;t++){var o=[];for(n=0,r=this.column_names.length;r>n;n++)o.push(this.elements[t][this.column_names[n]]);i.push(o)}return i}},"undefined"!=typeof module&&module.exports?module.exports=s:"function"==typeof define&&define.amd?define(function(){return s}):window.Tabletop=s}(),function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.topojson={})}(this,function(t){"use strict";function n(){}function e(t){if(!t)return n;var e,r,i=t.scale[0],o=t.scale[1],u=t.translate[0],a=t.translate[1];return function(t,n){n||(e=r=0),t[0]=(e+=t[0])*i+u,t[1]=(r+=t[1])*o+a}}function r(t){if(!t)return n;var e,r,i=t.scale[0],o=t.scale[1],u=t.translate[0],a=t.translate[1];return function(t,n){n||(e=r=0);var s=(t[0]-u)/i|0,l=(t[1]-a)/o|0;t[0]=s-e,t[1]=l-r,e=s,r=l}}function i(t,n){for(var e,r=t.length,i=r-n;i<--r;)e=t[i],t[i++]=t[r],t[r]=e}function o(t,n){for(var e=0,r=t.length;r>e;){var i=e+r>>>1;t[i]<n?e=i+1:r=i}return e}function u(t,n){return"GeometryCollection"===n.type?{type:"FeatureCollection",features:n.geometries.map(function(n){return a(t,n)})}:a(t,n)}function a(t,n){var e={type:"Feature",id:n.id,properties:n.properties||{},geometry:s(t,n)};return null==n.id&&delete e.id,e}function s(t,n){function r(t,n){n.length&&n.pop();for(var e,r=f[0>t?~t:t],o=0,u=r.length;u>o;++o)n.push(e=r[o].slice()),c(e,o);0>t&&i(n,u)}function o(t){return t=t.slice(),c(t,0),t}function u(t){for(var n=[],e=0,i=t.length;i>e;++e)r(t[e],n);return n.length<2&&n.push(n[0].slice()),n}function a(t){for(var n=u(t);n.length<4;)n.push(n[0].slice());return n}function s(t){return t.map(a)}function l(t){var n=t.type;return"GeometryCollection"===n?{type:n,geometries:t.geometries.map(l)}:n in h?{type:n,coordinates:h[n](t)}:null}var c=e(t.transform),f=t.arcs,h={Point:function(t){return o(t.coordinates)},MultiPoint:function(t){return t.coordinates.map(o)},LineString:function(t){return u(t.arcs)},MultiLineString:function(t){return t.arcs.map(u)},Polygon:function(t){return s(t.arcs)},MultiPolygon:function(t){return t.arcs.map(s);
}};return l(n)}function l(t,n){function e(n){var e,r=t.arcs[0>n?~n:n],i=r[0];return t.transform?(e=[0,0],r.forEach(function(t){e[0]+=t[0],e[1]+=t[1]})):e=r[r.length-1],0>n?[e,i]:[i,e]}function r(t,n){for(var e in t){var r=t[e];delete n[r.start],delete r.start,delete r.end,r.forEach(function(t){i[0>t?~t:t]=1}),a.push(r)}}var i={},o={},u={},a=[],s=-1;return n.forEach(function(e,r){var i,o=t.arcs[0>e?~e:e];o.length<3&&!o[1][0]&&!o[1][1]&&(i=n[++s],n[s]=e,n[r]=i)}),n.forEach(function(t){var n,r,i=e(t),a=i[0],s=i[1];if(n=u[a])if(delete u[n.end],n.push(t),n.end=s,r=o[s]){delete o[r.start];var l=r===n?n:n.concat(r);o[l.start=n.start]=u[l.end=r.end]=l}else o[n.start]=u[n.end]=n;else if(n=o[s])if(delete o[n.start],n.unshift(t),n.start=a,r=u[a]){delete u[r.end];var c=r===n?n:r.concat(n);o[c.start=r.start]=u[c.end=n.end]=c}else o[n.start]=u[n.end]=n;else n=[t],o[n.start=a]=u[n.end=s]=n}),r(u,o),r(o,u),n.forEach(function(t){i[0>t?~t:t]||a.push([t])}),a}function c(t){return s(t,f.apply(this,arguments))}function f(t,n,e){function r(t){var n=0>t?~t:t;(c[n]||(c[n]=[])).push({i:t,g:s})}function i(t){t.forEach(r)}function o(t){t.forEach(i)}function u(t){"GeometryCollection"===t.type?t.geometries.forEach(u):t.type in f&&(s=t,f[t.type](t.arcs))}var a=[];if(arguments.length>1){var s,c=[],f={LineString:i,MultiLineString:o,Polygon:o,MultiPolygon:function(t){t.forEach(o)}};u(n),c.forEach(arguments.length<3?function(t){a.push(t[0].i)}:function(t){e(t[0].g,t[t.length-1].g)&&a.push(t[0].i)})}else for(var h=0,p=t.arcs.length;p>h;++h)a.push(h);return{type:"MultiLineString",arcs:l(t,a)}}function h(t){var n=t[0],e=t[1],r=t[2];return Math.abs((n[0]-r[0])*(e[1]-n[1])-(n[0]-e[0])*(r[1]-n[1]))}function p(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[0]*i[1]-n[1]*i[0];return o/2}function d(t){return s(t,g.apply(this,arguments))}function g(t,n){function e(t){t.forEach(function(n){n.forEach(function(n){(i[n=0>n?~n:n]||(i[n]=[])).push(t)})}),o.push(t)}function r(n){return p(s(t,{type:"Polygon",arcs:[n]}).coordinates[0])>0}var i={},o=[],u=[];return n.forEach(function(t){"Polygon"===t.type?e(t.arcs):"MultiPolygon"===t.type&&t.arcs.forEach(e)}),o.forEach(function(t){if(!t._){var n=[],e=[t];for(t._=1,u.push(n);t=e.pop();)n.push(t),t.forEach(function(t){t.forEach(function(t){i[0>t?~t:t].forEach(function(t){t._||(t._=1,e.push(t))})})})}}),o.forEach(function(t){delete t._}),{type:"MultiPolygon",arcs:u.map(function(n){var e,o=[];if(n.forEach(function(t){t.forEach(function(t){t.forEach(function(t){i[0>t?~t:t].length<2&&o.push(t)})})}),o=l(t,o),(e=o.length)>1)for(var u,a=r(n[0][0]),s=0;e>s;++s)if(a===r(o[s])){u=o[0],o[0]=o[s],o[s]=u;break}return o})}}function v(t){function n(t,n){t.forEach(function(t){0>t&&(t=~t);var e=i[t];e?e.push(n):i[t]=[n]})}function e(t,e){t.forEach(function(t){n(t,e)})}function r(t,n){"GeometryCollection"===t.type?t.geometries.forEach(function(t){r(t,n)}):t.type in a&&a[t.type](t.arcs,n)}var i={},u=t.map(function(){return[]}),a={LineString:n,MultiLineString:e,Polygon:e,MultiPolygon:function(t,n){t.forEach(function(t){e(t,n)})}};t.forEach(r);for(var s in i)for(var l=i[s],c=l.length,f=0;c>f;++f)for(var h=f+1;c>h;++h){var p,d=l[f],g=l[h];(p=u[d])[s=o(p,g)]!==g&&p.splice(s,0,g),(p=u[g])[s=o(p,d)]!==d&&p.splice(s,0,d)}return u}function y(t,n){return t[1][2]-n[1][2]}function m(){function t(t,n){for(;n>0;){var e=(n+1>>1)-1,i=r[e];if(y(t,i)>=0)break;r[i._=n]=i,r[t._=n=e]=t}}function n(t,n){for(;;){var e=n+1<<1,o=e-1,u=n,a=r[u];if(i>o&&y(r[o],a)<0&&(a=r[u=o]),i>e&&y(r[e],a)<0&&(a=r[u=e]),u===n)break;r[a._=n]=a,r[t._=n=u]=t}}var e={},r=[],i=0;return e.push=function(n){return t(r[n._=i]=n,i++),i},e.pop=function(){if(!(0>=i)){var t,e=r[0];return--i>0&&(t=r[i],n(r[t._=0]=t,0)),e}},e.remove=function(e){var o,u=e._;if(r[u]===e)return u!==--i&&(o=r[i],(y(o,e)<0?t:n)(r[o._=u]=o,u)),u},e}function x(t,n){function i(t){a.remove(t),t[1][2]=n(t),a.push(t)}var o=e(t.transform),u=r(t.transform),a=m();return n||(n=h),t.arcs.forEach(function(t){var e,r,s,l,c=[],f=0;for(r=0,s=t.length;s>r;++r)l=t[r],o(t[r]=[l[0],l[1],1/0],r);for(r=1,s=t.length-1;s>r;++r)e=t.slice(r-1,r+2),e[1][2]=n(e),c.push(e),a.push(e);for(r=0,s=c.length;s>r;++r)e=c[r],e.previous=c[r-1],e.next=c[r+1];for(;e=a.pop();){var h=e.previous,p=e.next;e[1][2]<f?e[1][2]=f:f=e[1][2],h&&(h.next=p,h[2]=e[2],i(h)),p&&(p.previous=h,p[0]=e[0],i(p))}t.forEach(u)}),t}var b="1.6.24";t.version=b,t.mesh=c,t.meshArcs=f,t.merge=d,t.mergeArcs=g,t.feature=u,t.neighbors=v,t.presimplify=x}),function(){function t(t){function n(n,e,r,i,o,u){for(;o>=0&&u>o;o+=t){var a=i?i[o]:o;r=e(r,n[a],a,n)}return r}return function(e,r,i,o){r=x(r,o,4);var u=!E(e)&&m.keys(e),a=(u||e).length,s=t>0?0:a-1;return arguments.length<3&&(i=e[u?u[s]:s],s+=t),n(e,r,i,u,s,a)}}function n(t){return function(n,e,r){e=b(e,r);for(var i=S(n),o=t>0?0:i-1;o>=0&&i>o;o+=t)if(e(n[o],o,n))return o;return-1}}function e(t,n,e){return function(r,i,o){var u=0,a=S(r);if("number"==typeof o)t>0?u=o>=0?o:Math.max(o+a,u):a=o>=0?Math.min(o+1,a):o+a+1;else if(e&&o&&a)return o=e(r,i),r[o]===i?o:-1;if(i!==i)return o=n(c.call(r,u,a),m.isNaN),o>=0?o+u:-1;for(o=t>0?u:a-1;o>=0&&a>o;o+=t)if(r[o]===i)return o;return-1}}function r(t,n){var e=j.length,r=t.constructor,i=m.isFunction(r)&&r.prototype||a,o="constructor";for(m.has(t,o)&&!m.contains(n,o)&&n.push(o);e--;)o=j[e],o in t&&t[o]!==i[o]&&!m.contains(n,o)&&n.push(o)}var i=this,o=i._,u=Array.prototype,a=Object.prototype,s=Function.prototype,l=u.push,c=u.slice,f=a.toString,h=a.hasOwnProperty,p=Array.isArray,d=Object.keys,g=s.bind,v=Object.create,y=function(){},m=function(t){return t instanceof m?t:this instanceof m?void(this._wrapped=t):new m(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):i._=m,m.VERSION="1.8.3";var x=function(t,n,e){if(void 0===n)return t;switch(null==e?3:e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,o){return t.call(n,e,r,i,o)}}return function(){return t.apply(n,arguments)}},b=function(t,n,e){return null==t?m.identity:m.isFunction(t)?x(t,n,e):m.isObject(t)?m.matcher(t):m.property(t)};m.iteratee=function(t,n){return b(t,n,1/0)};var w=function(t,n){return function(e){var r=arguments.length;if(2>r||null==e)return e;for(var i=1;r>i;i++)for(var o=arguments[i],u=t(o),a=u.length,s=0;a>s;s++){var l=u[s];n&&void 0!==e[l]||(e[l]=o[l])}return e}},M=function(t){if(!m.isObject(t))return{};if(v)return v(t);y.prototype=t;var n=new y;return y.prototype=null,n},_=function(t){return function(n){return null==n?void 0:n[t]}},k=Math.pow(2,53)-1,S=_("length"),E=function(t){var n=S(t);return"number"==typeof n&&n>=0&&k>=n};m.each=m.forEach=function(t,n,e){n=x(n,e);var r,i;if(E(t))for(r=0,i=t.length;i>r;r++)n(t[r],r,t);else{var o=m.keys(t);for(r=0,i=o.length;i>r;r++)n(t[o[r]],o[r],t)}return t},m.map=m.collect=function(t,n,e){n=b(n,e);for(var r=!E(t)&&m.keys(t),i=(r||t).length,o=Array(i),u=0;i>u;u++){var a=r?r[u]:u;o[u]=n(t[a],a,t)}return o},m.reduce=m.foldl=m.inject=t(1),m.reduceRight=m.foldr=t(-1),m.find=m.detect=function(t,n,e){var r;return r=E(t)?m.findIndex(t,n,e):m.findKey(t,n,e),void 0!==r&&-1!==r?t[r]:void 0},m.filter=m.select=function(t,n,e){var r=[];return n=b(n,e),m.each(t,function(t,e,i){n(t,e,i)&&r.push(t)}),r},m.reject=function(t,n,e){return m.filter(t,m.negate(b(n)),e)},m.every=m.all=function(t,n,e){n=b(n,e);for(var r=!E(t)&&m.keys(t),i=(r||t).length,o=0;i>o;o++){var u=r?r[o]:o;if(!n(t[u],u,t))return!1}return!0},m.some=m.any=function(t,n,e){n=b(n,e);for(var r=!E(t)&&m.keys(t),i=(r||t).length,o=0;i>o;o++){var u=r?r[o]:o;if(n(t[u],u,t))return!0}return!1},m.contains=m.includes=m.include=function(t,n,e,r){return E(t)||(t=m.values(t)),("number"!=typeof e||r)&&(e=0),m.indexOf(t,n,e)>=0},m.invoke=function(t,n){var e=c.call(arguments,2),r=m.isFunction(n);return m.map(t,function(t){var i=r?n:t[n];return null==i?i:i.apply(t,e)})},m.pluck=function(t,n){return m.map(t,m.property(n))},m.where=function(t,n){return m.filter(t,m.matcher(n))},m.findWhere=function(t,n){return m.find(t,m.matcher(n))},m.max=function(t,n,e){var r,i,o=-(1/0),u=-(1/0);if(null==n&&null!=t){t=E(t)?t:m.values(t);for(var a=0,s=t.length;s>a;a++)r=t[a],r>o&&(o=r)}else n=b(n,e),m.each(t,function(t,e,r){i=n(t,e,r),(i>u||i===-(1/0)&&o===-(1/0))&&(o=t,u=i)});return o},m.min=function(t,n,e){var r,i,o=1/0,u=1/0;if(null==n&&null!=t){t=E(t)?t:m.values(t);for(var a=0,s=t.length;s>a;a++)r=t[a],o>r&&(o=r)}else n=b(n,e),m.each(t,function(t,e,r){i=n(t,e,r),(u>i||i===1/0&&o===1/0)&&(o=t,u=i)});return o},m.shuffle=function(t){for(var n,e=E(t)?t:m.values(t),r=e.length,i=Array(r),o=0;r>o;o++)n=m.random(0,o),n!==o&&(i[o]=i[n]),i[n]=e[o];return i},m.sample=function(t,n,e){return null==n||e?(E(t)||(t=m.values(t)),t[m.random(t.length-1)]):m.shuffle(t).slice(0,Math.max(0,n))},m.sortBy=function(t,n,e){return n=b(n,e),m.pluck(m.map(t,function(t,e,r){return{value:t,index:e,criteria:n(t,e,r)}}).sort(function(t,n){var e=t.criteria,r=n.criteria;if(e!==r){if(e>r||void 0===e)return 1;if(r>e||void 0===r)return-1}return t.index-n.index}),"value")};var N=function(t){return function(n,e,r){var i={};return e=b(e,r),m.each(n,function(r,o){var u=e(r,o,n);t(i,r,u)}),i}};m.groupBy=N(function(t,n,e){m.has(t,e)?t[e].push(n):t[e]=[n]}),m.indexBy=N(function(t,n,e){t[e]=n}),m.countBy=N(function(t,n,e){m.has(t,e)?t[e]++:t[e]=1}),m.toArray=function(t){return t?m.isArray(t)?c.call(t):E(t)?m.map(t,m.identity):m.values(t):[]},m.size=function(t){return null==t?0:E(t)?t.length:m.keys(t).length},m.partition=function(t,n,e){n=b(n,e);var r=[],i=[];return m.each(t,function(t,e,o){(n(t,e,o)?r:i).push(t)}),[r,i]},m.first=m.head=m.take=function(t,n,e){return null!=t?null==n||e?t[0]:m.initial(t,t.length-n):void 0},m.initial=function(t,n,e){return c.call(t,0,Math.max(0,t.length-(null==n||e?1:n)))},m.last=function(t,n,e){return null!=t?null==n||e?t[t.length-1]:m.rest(t,Math.max(0,t.length-n)):void 0},m.rest=m.tail=m.drop=function(t,n,e){return c.call(t,null==n||e?1:n)},m.compact=function(t){return m.filter(t,m.identity)};var C=function(t,n,e,r){for(var i=[],o=0,u=r||0,a=S(t);a>u;u++){var s=t[u];if(E(s)&&(m.isArray(s)||m.isArguments(s))){n||(s=C(s,n,e));var l=0,c=s.length;for(i.length+=c;c>l;)i[o++]=s[l++]}else e||(i[o++]=s)}return i};m.flatten=function(t,n){return C(t,n,!1)},m.without=function(t){return m.difference(t,c.call(arguments,1))},m.uniq=m.unique=function(t,n,e,r){m.isBoolean(n)||(r=e,e=n,n=!1),null!=e&&(e=b(e,r));for(var i=[],o=[],u=0,a=S(t);a>u;u++){var s=t[u],l=e?e(s,u,t):s;n?(u&&o===l||i.push(s),o=l):e?m.contains(o,l)||(o.push(l),i.push(s)):m.contains(i,s)||i.push(s)}return i},m.union=function(){return m.uniq(C(arguments,!0,!0))},m.intersection=function(t){for(var n=[],e=arguments.length,r=0,i=S(t);i>r;r++){var o=t[r];if(!m.contains(n,o)){for(var u=1;e>u&&m.contains(arguments[u],o);u++);u===e&&n.push(o)}}return n},m.difference=function(t){var n=C(arguments,!0,!0,1);return m.filter(t,function(t){return!m.contains(n,t)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(t){for(var n=t&&m.max(t,S).length||0,e=Array(n),r=0;n>r;r++)e[r]=m.pluck(t,r);return e},m.object=function(t,n){for(var e={},r=0,i=S(t);i>r;r++)n?e[t[r]]=n[r]:e[t[r][0]]=t[r][1];return e},m.findIndex=n(1),m.findLastIndex=n(-1),m.sortedIndex=function(t,n,e,r){e=b(e,r,1);for(var i=e(n),o=0,u=S(t);u>o;){var a=Math.floor((o+u)/2);e(t[a])<i?o=a+1:u=a}return o},m.indexOf=e(1,m.findIndex,m.sortedIndex),m.lastIndexOf=e(-1,m.findLastIndex),m.range=function(t,n,e){null==n&&(n=t||0,t=0),e=e||1;for(var r=Math.max(Math.ceil((n-t)/e),0),i=Array(r),o=0;r>o;o++,t+=e)i[o]=t;return i};var T=function(t,n,e,r,i){if(!(r instanceof n))return t.apply(e,i);var o=M(t.prototype),u=t.apply(o,i);return m.isObject(u)?u:o};m.bind=function(t,n){if(g&&t.bind===g)return g.apply(t,c.call(arguments,1));if(!m.isFunction(t))throw new TypeError("Bind must be called on a function");var e=c.call(arguments,2),r=function(){return T(t,r,n,this,e.concat(c.call(arguments)))};return r},m.partial=function(t){var n=c.call(arguments,1),e=function(){for(var r=0,i=n.length,o=Array(i),u=0;i>u;u++)o[u]=n[u]===m?arguments[r++]:n[u];for(;r<arguments.length;)o.push(arguments[r++]);return T(t,e,this,this,o)};return e},m.bindAll=function(t){var n,e,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(n=1;r>n;n++)e=arguments[n],t[e]=m.bind(t[e],t);return t},m.memoize=function(t,n){var e=function(r){var i=e.cache,o=""+(n?n.apply(this,arguments):r);return m.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return e.cache={},e},m.delay=function(t,n){var e=c.call(arguments,2);return setTimeout(function(){return t.apply(null,e)},n)},m.defer=m.partial(m.delay,m,1),m.throttle=function(t,n,e){var r,i,o,u=null,a=0;e||(e={});var s=function(){a=e.leading===!1?0:m.now(),u=null,o=t.apply(r,i),u||(r=i=null)};return function(){var l=m.now();a||e.leading!==!1||(a=l);var c=n-(l-a);return r=this,i=arguments,0>=c||c>n?(u&&(clearTimeout(u),u=null),a=l,o=t.apply(r,i),u||(r=i=null)):u||e.trailing===!1||(u=setTimeout(s,c)),o}},m.debounce=function(t,n,e){var r,i,o,u,a,s=function(){var l=m.now()-u;n>l&&l>=0?r=setTimeout(s,n-l):(r=null,e||(a=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,u=m.now();var l=e&&!r;return r||(r=setTimeout(s,n)),l&&(a=t.apply(o,i),o=i=null),a}},m.wrap=function(t,n){return m.partial(n,t)},m.negate=function(t){return function(){return!t.apply(this,arguments)}},m.compose=function(){var t=arguments,n=t.length-1;return function(){for(var e=n,r=t[n].apply(this,arguments);e--;)r=t[e].call(this,r);return r}},m.after=function(t,n){return function(){return--t<1?n.apply(this,arguments):void 0}},m.before=function(t,n){var e;return function(){return--t>0&&(e=n.apply(this,arguments)),1>=t&&(n=null),e}},m.once=m.partial(m.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(t){if(!m.isObject(t))return[];if(d)return d(t);var n=[];for(var e in t)m.has(t,e)&&n.push(e);return A&&r(t,n),n},m.allKeys=function(t){if(!m.isObject(t))return[];var n=[];for(var e in t)n.push(e);return A&&r(t,n),n},m.values=function(t){for(var n=m.keys(t),e=n.length,r=Array(e),i=0;e>i;i++)r[i]=t[n[i]];return r},m.mapObject=function(t,n,e){n=b(n,e);for(var r,i=m.keys(t),o=i.length,u={},a=0;o>a;a++)r=i[a],u[r]=n(t[r],r,t);return u},m.pairs=function(t){for(var n=m.keys(t),e=n.length,r=Array(e),i=0;e>i;i++)r[i]=[n[i],t[n[i]]];return r},m.invert=function(t){for(var n={},e=m.keys(t),r=0,i=e.length;i>r;r++)n[t[e[r]]]=e[r];return n},m.functions=m.methods=function(t){var n=[];for(var e in t)m.isFunction(t[e])&&n.push(e);return n.sort()},m.extend=w(m.allKeys),m.extendOwn=m.assign=w(m.keys),m.findKey=function(t,n,e){n=b(n,e);for(var r,i=m.keys(t),o=0,u=i.length;u>o;o++)if(r=i[o],n(t[r],r,t))return r},m.pick=function(t,n,e){var r,i,o={},u=t;if(null==u)return o;m.isFunction(n)?(i=m.allKeys(u),r=x(n,e)):(i=C(arguments,!1,!1,1),r=function(t,n,e){return n in e},u=Object(u));for(var a=0,s=i.length;s>a;a++){var l=i[a],c=u[l];r(c,l,u)&&(o[l]=c)}return o},m.omit=function(t,n,e){if(m.isFunction(n))n=m.negate(n);else{var r=m.map(C(arguments,!1,!1,1),String);n=function(t,n){return!m.contains(r,n)}}return m.pick(t,n,e)},m.defaults=w(m.allKeys,!0),m.create=function(t,n){var e=M(t);return n&&m.extendOwn(e,n),e},m.clone=function(t){return m.isObject(t)?m.isArray(t)?t.slice():m.extend({},t):t},m.tap=function(t,n){return n(t),t},m.isMatch=function(t,n){var e=m.keys(n),r=e.length;if(null==t)return!r;for(var i=Object(t),o=0;r>o;o++){var u=e[o];if(n[u]!==i[u]||!(u in i))return!1}return!0};var L=function(t,n,e,r){if(t===n)return 0!==t||1/t===1/n;if(null==t||null==n)return t===n;t instanceof m&&(t=t._wrapped),n instanceof m&&(n=n._wrapped);var i=f.call(t);if(i!==f.call(n))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!==+t?+n!==+n:0===+t?1/+t===1/n:+t===+n;case"[object Date]":case"[object Boolean]":return+t===+n}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof n)return!1;var u=t.constructor,a=n.constructor;if(u!==a&&!(m.isFunction(u)&&u instanceof u&&m.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in n)return!1}e=e||[],r=r||[];for(var s=e.length;s--;)if(e[s]===t)return r[s]===n;if(e.push(t),r.push(n),o){if(s=t.length,s!==n.length)return!1;for(;s--;)if(!L(t[s],n[s],e,r))return!1}else{var l,c=m.keys(t);if(s=c.length,m.keys(n).length!==s)return!1;for(;s--;)if(l=c[s],!m.has(n,l)||!L(t[l],n[l],e,r))return!1}return e.pop(),r.pop(),!0};m.isEqual=function(t,n){return L(t,n)},m.isEmpty=function(t){return null==t?!0:E(t)&&(m.isArray(t)||m.isString(t)||m.isArguments(t))?0===t.length:0===m.keys(t).length},m.isElement=function(t){return!(!t||1!==t.nodeType)},m.isArray=p||function(t){return"[object Array]"===f.call(t)},m.isObject=function(t){var n=typeof t;return"function"===n||"object"===n&&!!t},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){m["is"+t]=function(n){return f.call(n)==="[object "+t+"]"}}),m.isArguments(arguments)||(m.isArguments=function(t){return m.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(t){return"function"==typeof t||!1}),m.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},m.isNaN=function(t){return m.isNumber(t)&&t!==+t},m.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===f.call(t)},m.isNull=function(t){return null===t},m.isUndefined=function(t){return void 0===t},m.has=function(t,n){return null!=t&&h.call(t,n)},m.noConflict=function(){return i._=o,this},m.identity=function(t){return t},m.constant=function(t){return function(){return t}},m.noop=function(){},m.property=_,m.propertyOf=function(t){return null==t?function(){}:function(n){return t[n]}},m.matcher=m.matches=function(t){return t=m.extendOwn({},t),function(n){return m.isMatch(n,t)}},m.times=function(t,n,e){var r=Array(Math.max(0,t));n=x(n,e,1);for(var i=0;t>i;i++)r[i]=n(i);return r},m.random=function(t,n){return null==n&&(n=t,t=0),t+Math.floor(Math.random()*(n-t+1))},m.now=Date.now||function(){return(new Date).getTime()};var q={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},D=m.invert(q),R=function(t){var n=function(n){return t[n]},e="(?:"+m.keys(t).join("|")+")",r=RegExp(e),i=RegExp(e,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,n):t}};m.escape=R(q),m.unescape=R(D),m.result=function(t,n,e){var r=null==t?void 0:t[n];return void 0===r&&(r=e),m.isFunction(r)?r.call(t):r};var H=0;m.uniqueId=function(t){var n=++H+"";return t?t+n:n},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var P=/(.)^/,O={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,F=function(t){return"\\"+O[t]};m.template=function(t,n,e){!n&&e&&(n=e),n=m.defaults({},n,m.templateSettings);var r=RegExp([(n.escape||P).source,(n.interpolate||P).source,(n.evaluate||P).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(n,e,r,u,a){return o+=t.slice(i,a).replace(z,F),i=a+n.length,e?o+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":u&&(o+="';\n"+u+"\n__p+='"),n}),o+="';\n",n.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var u=new Function(n.variable||"obj","_",o)}catch(a){throw a.source=o,a}var s=function(t){return u.call(this,t,m)},l=n.variable||"obj";return s.source="function("+l+"){\n"+o+"}",s},m.chain=function(t){var n=m(t);return n._chain=!0,n};var I=function(t,n){return t._chain?m(n).chain():n};m.mixin=function(t){m.each(m.functions(t),function(n){var e=m[n]=t[n];m.prototype[n]=function(){var t=[this._wrapped];return l.apply(t,arguments),I(this,e.apply(m,t))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=u[t];m.prototype[t]=function(){var e=this._wrapped;return n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],I(this,e)}}),m.each(["concat","join","slice"],function(t){var n=u[t];m.prototype[t]=function(){return I(this,n.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}.call(this);