!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(5)},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=p[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(l(r.parts[o],e))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(l(r.parts[o],e));p[r.id]={id:r.id,refs:1,parts:a}}}}function i(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],a=i[1],u=i[2],s=i[3],l={css:a,media:u,sourceMap:s};n[o]?n[o].parts.push(l):e.push(n[o]={id:o,parts:[l]})}return e}function o(t,e){var n=v(),r=x[x.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),x.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=x.indexOf(t);e>=0&&x.splice(e,1)}function u(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function l(t,e){var n,r,i;if(e.singleton){var o=y++;n=m||(m=u(e)),r=c.bind(null,n,o,!1),i=c.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=h.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(e),r=f.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function c(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function f(t,e){var n=e.css,r=e.media;e.sourceMap;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function h(t,e){var n=e.css,r=(e.media,e.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var p={},d=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},g=d(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=d(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,y=0,x=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=g()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var u=n[a],s=p[u.id];s.refs--,o.push(s)}if(t){var l=i(t);r(l,e)}for(var a=0;a<o.length;a++){var s=o[a];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete p[s.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){var r,i;!function(){function o(t){return t&&(t.ownerDocument||t.document||t).documentElement}function a(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function u(t,e){return e>t?-1:t>e?1:t>=e?0:NaN}function s(t){return null===t?NaN:+t}function l(t){return!isNaN(t)}function c(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}function f(t){return t.length}function h(t){for(var e=1;t*e%1;)e*=10;return e}function p(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function d(){this._=Object.create(null)}function g(t){return(t+="")===Sa||t[0]===Ca?Ca+t:t}function v(t){return(t+="")[0]===Ca?t.slice(1):t}function m(t){return g(t)in this._}function y(t){return(t=g(t))in this._&&delete this._[t]}function x(){var t=[];for(var e in this._)t.push(v(e));return t}function b(){var t=0;for(var e in this._)++t;return t}function w(){for(var t in this._)return!1;return!0}function M(){this._=Object.create(null)}function k(t){return t}function _(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function N(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=Ea.length;r>n;++n){var i=Ea[n]+e;if(i in t)return i}}function S(){}function C(){}function E(t){function e(){for(var e,r=n,i=-1,o=r.length;++i<o;)(e=r[i].on)&&e.apply(this,arguments);return t}var n=[],r=new d;return e.on=function(e,i){var o,a=r.get(e);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,o=n.indexOf(a)).concat(n.slice(o+1)),r.remove(e)),i&&n.push(r.set(e,{on:i})),t)},e}function T(){pa.event.preventDefault()}function A(){for(var t,e=pa.event;t=e.sourceEvent;)e=t;return e}function L(t){for(var e=new C,n=0,r=arguments.length;++n<r;)e[arguments[n]]=E(e);return e.of=function(n,r){return function(i){try{var o=i.sourceEvent=pa.event;i.target=t,pa.event=i,e[i.type].apply(n,r)}finally{pa.event=o}}},e}function D(t){return Aa(t,ja),t}function q(t){return"function"==typeof t?t:function(){return La(t,this)}}function j(t){return"function"==typeof t?t:function(){return Da(t,this)}}function z(t,e){function n(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,e)}function o(){this.setAttributeNS(t.space,t.local,e)}function a(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function u(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=pa.ns.qualify(t),null==e?t.local?r:n:"function"==typeof e?t.local?u:a:t.local?o:i}function R(t){return t.trim().replace(/\s+/g," ")}function H(t){return new RegExp("(?:^|\\s+)"+pa.requote(t)+"(?:\\s+|$)","g")}function P(t){return(t+"").trim().split(/^|\s+/)}function O(t,e){function n(){for(var n=-1;++n<i;)t[n](this,e)}function r(){for(var n=-1,r=e.apply(this,arguments);++n<i;)t[n](this,r)}t=P(t).map(F);var i=t.length;return"function"==typeof e?r:n}function F(t){var e=H(t);return function(n,r){if(i=n.classList)return r?i.add(t):i.remove(t);var i=n.getAttribute("class")||"";r?(e.lastIndex=0,e.test(i)||n.setAttribute("class",R(i+" "+t))):n.setAttribute("class",R(i.replace(e," ")))}}function B(t,e,n){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,e,n)}function o(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}return null==e?r:"function"==typeof e?o:i}function X(t,e){function n(){delete this[t]}function r(){this[t]=e}function i(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}return null==e?n:"function"==typeof e?i:r}function U(t){function e(){var e=this.ownerDocument,n=this.namespaceURI;return n?e.createElementNS(n,t):e.createElement(t)}function n(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=pa.ns.qualify(t)).local?n:e}function I(){var t=this.parentNode;t&&t.removeChild(this)}function Y(t){return{__data__:t}}function $(t){return function(){return qa(this,t)}}function W(t){return arguments.length||(t=u),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function V(t,e){for(var n=0,r=t.length;r>n;n++)for(var i,o=t[n],a=0,u=o.length;u>a;a++)(i=o[a])&&e(i,a,n);return t}function J(t){return Aa(t,Ra),t}function Z(t){var e,n;return function(r,i,o){var a,u=t[o].update,s=u.length;for(o!=n&&(n=o,e=0),i>=e&&(e=i+1);!(a=u[e])&&++e<s;);return a}}function G(t,e,n){function r(){var e=this[a];e&&(this.removeEventListener(t,e,e.$),delete this[a])}function i(){var i=s(e,ga(arguments));r.call(this),this.addEventListener(t,this[a]=i,i.$=n),i._=e}function o(){var e,n=new RegExp("^__on([^.]+)"+pa.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}var a="__on"+t,u=t.indexOf("."),s=Q;u>0&&(t=t.slice(0,u));var l=Ha.get(t);return l&&(t=l,s=K),u?e?i:r:e?S:o}function Q(t,e){return function(n){var r=pa.event;pa.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{pa.event=r}}}function K(t,e){var n=Q(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function tt(t){var e=".dragsuppress-"+ ++Oa,n="click"+e,r=pa.select(a(t)).on("touchmove"+e,T).on("dragstart"+e,T).on("selectstart"+e,T);if(null==Pa&&(Pa="onselectstart"in t?!1:N(t.style,"userSelect")),Pa){var i=o(t).style,u=i[Pa];i[Pa]="none"}return function(t){if(r.on(e,null),Pa&&(i[Pa]=u),t){var o=function(){r.on(n,null)};r.on(n,function(){T(),o()},!0),setTimeout(o,0)}}}function et(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(0>Fa){var i=a(t);if(i.scrollX||i.scrollY){n=pa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=n[0][0].getScreenCTM();Fa=!(o.f||o.e),n.remove()}}return Fa?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var u=t.getBoundingClientRect();return[e.clientX-u.left-t.clientLeft,e.clientY-u.top-t.clientTop]}function nt(){return pa.event.changedTouches[0].identifier}function rt(t){return t>0?1:0>t?-1:0}function it(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function ot(t){return t>1?0:-1>t?Ua:Math.acos(t)}function at(t){return t>1?$a:-1>t?-$a:Math.asin(t)}function ut(t){return((t=Math.exp(t))-1/t)/2}function st(t){return((t=Math.exp(t))+1/t)/2}function lt(t){return((t=Math.exp(2*t))-1)/(t+1)}function ct(t){return(t=Math.sin(t/2))*t}function ft(){}function ht(t,e,n){return this instanceof ht?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof ht?new ht(t.h,t.s,t.l):St(""+t,Ct,ht):new ht(t,e,n)}function pt(t,e,n){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?o+(a-o)*t/60:180>t?a:240>t?o+(a-o)*(240-t)/60:o}function i(t){return Math.round(255*r(t))}var o,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:0>e?0:e>1?1:e,n=0>n?0:n>1?1:n,a=.5>=n?n*(1+e):n+e-n*e,o=2*n-a,new Mt(i(t+120),i(t),i(t-120))}function dt(t,e,n){return this instanceof dt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof dt?new dt(t.h,t.c,t.l):t instanceof vt?yt(t.l,t.a,t.b):yt((t=Et((t=pa.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new dt(t,e,n)}function gt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new vt(n,Math.cos(t*=Wa)*e,Math.sin(t)*e)}function vt(t,e,n){return this instanceof vt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof vt?new vt(t.l,t.a,t.b):t instanceof dt?gt(t.h,t.c,t.l):Et((t=Mt(t)).r,t.g,t.b):new vt(t,e,n)}function mt(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return i=xt(i)*iu,r=xt(r)*ou,o=xt(o)*au,new Mt(wt(3.2404542*i-1.5371385*r-.4985314*o),wt(-.969266*i+1.8760108*r+.041556*o),wt(.0556434*i-.2040259*r+1.0572252*o))}function yt(t,e,n){return t>0?new dt(Math.atan2(n,e)*Va,Math.sqrt(e*e+n*n),t):new dt(NaN,NaN,t)}function xt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function bt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function wt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Mt(t,e,n){return this instanceof Mt?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof Mt?new Mt(t.r,t.g,t.b):St(""+t,Mt,pt):new Mt(t,e,n)}function kt(t){return new Mt(t>>16,t>>8&255,255&t)}function _t(t){return kt(t)+""}function Nt(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function St(t,e,n){var r,i,o,a=0,u=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(At(i[0]),At(i[1]),At(i[2]))}return(o=lu.get(t))?e(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a=a>>4|a,u=240&o,u=u>>4|u,s=15&o,s=s<<4|s):7===t.length&&(a=(16711680&o)>>16,u=(65280&o)>>8,s=255&o)),e(a,u,s))}function Ct(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),u=a-o,s=(a+o)/2;return u?(i=.5>s?u/(a+o):u/(2-a-o),r=t==a?(e-n)/u+(n>e?6:0):e==a?(n-t)/u+2:(t-e)/u+4,r*=60):(r=NaN,i=s>0&&1>s?0:r),new ht(r,i,s)}function Et(t,e,n){t=Tt(t),e=Tt(e),n=Tt(n);var r=bt((.4124564*t+.3575761*e+.1804375*n)/iu),i=bt((.2126729*t+.7151522*e+.072175*n)/ou),o=bt((.0193339*t+.119192*e+.9503041*n)/au);return vt(116*i-16,500*(r-i),200*(i-o))}function Tt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function At(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function Lt(t){return"function"==typeof t?t:function(){return t}}function Dt(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),qt(e,n,t,r)}}function qt(t,e,n,r){function i(){var t,e=s.status;if(!e&&zt(s)||e>=200&&300>e||304===e){try{t=n.call(o,s)}catch(r){return void a.error.call(o,r)}a.load.call(o,t)}else a.error.call(o,s)}var o={},a=pa.dispatch("beforesend","progress","load","error"),u={},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 e=pa.event;pa.event=t;try{a.progress.call(o,s)}finally{pa.event=e}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",o):e},o.responseType=function(t){return arguments.length?(l=t,o):l},o.response=function(t){return n=t,o},["get","post"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(ga(arguments)))}}),o.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),s.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),s.setRequestHeader)for(var c in u)s.setRequestHeader(c,u[c]);return null!=e&&s.overrideMimeType&&s.overrideMimeType(e),null!=l&&(s.responseType=l),null!=i&&o.on("error",i).on("load",function(t){i(null,t)}),a.beforesend.call(o,s),s.send(null==r?null:r),o},o.abort=function(){return s.abort(),o},pa.rebind(o,a,"on"),null==r?o:o.get(jt(r))}function jt(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function zt(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Rt(t,e,n){var r=arguments.length;2>r&&(e=0),3>r&&(n=Date.now());var i=n+e,o={c:t,t:i,n:null};return fu?fu.n=o:cu=o,fu=o,hu||(pu=clearTimeout(pu),hu=1,du(Ht)),o}function Ht(){var t=Pt(),e=Ot()-t;e>24?(isFinite(e)&&(clearTimeout(pu),pu=setTimeout(Ht,e)),hu=0):(hu=1,du(Ht))}function Pt(){for(var t=Date.now(),e=cu;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Ot(){for(var t,e=cu,n=1/0;e;)e.c?(e.t<n&&(n=e.t),e=(t=e).n):e=t?t.n=e.n:cu=e.n;return fu=t,n}function Ft(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Bt(t,e){var n=Math.pow(10,3*Na(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Xt(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,o=r&&n?function(t,e){for(var i=t.length,o=[],a=0,u=r[0],s=0;i>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),o.push(t.substring(i-=u,i+u)),!((s+=u+1)>e));)u=r[a=(a+1)%r.length];return o.reverse().join(n)}:k;return function(t){var n=vu.exec(t),r=n[1]||" ",a=n[2]||">",u=n[3]||"-",s=n[4]||"",l=n[5],c=+n[6],f=n[7],h=n[8],p=n[9],d=1,g="",v="",m=!1,y=!0;switch(h&&(h=+h.substring(1)),(l||"0"===r&&"="===a)&&(l=r="0",a="="),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":y=!1;case"d":m=!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=mu.get(p)||Ut;var x=l&&f;return function(t){var n=v;if(m&&t%1)return"";var i=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===u?"":u;if(0>d){var s=pa.formatPrefix(t,h);t=s.scale(t),n=s.symbol+v}else t*=d;t=p(t,h);var b,w,M=t.lastIndexOf(".");if(0>M){var k=y?t.lastIndexOf("e"):-1;0>k?(b=t,w=""):(b=t.substring(0,k),w=t.substring(k))}else b=t.substring(0,M),w=e+t.substring(M+1);!l&&f&&(b=o(b,1/0));var _=g.length+b.length+w.length+(x?0:i.length),N=c>_?new Array(_=c-_+1).join(r):"";return x&&(b=o(N+b,N.length?c-w.length:1/0)),i+=g,t=b+w,("<"===a?i+t+N:">"===a?N+i+t:"^"===a?N.substring(0,_>>=1)+i+t+N.substring(_):i+(x?t:N+t))+n}}}function Ut(t){return t+""}function It(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Yt(t,e,n){function r(e){var n=t(e),r=o(n,1);return r-e>e-n?n:r}function i(n){return e(n=t(new xu(n-1)),1),n}function o(t,n){return e(t=new xu(+t),n),t}function a(t,r,o){var a=i(t),u=[];if(o>1)for(;r>a;)n(a)%o||u.push(new Date(+a)),e(a,1);else for(;r>a;)u.push(new Date(+a)),e(a,1);return u}function u(t,e,n){try{xu=It;var r=new It;return r._=t,a(r,e,n)}finally{xu=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=a;var s=t.utc=$t(t);return s.floor=s,s.round=$t(r),s.ceil=$t(i),s.offset=$t(o),s.range=u,t}function $t(t){return function(e,n){try{xu=It;var r=new It;return r._=e,t(r,n)._}finally{xu=Date}}}function Wt(t){function e(t){function e(e){for(var n,i,o,a=[],u=-1,s=0;++u<r;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(i=wu[n=t.charAt(++u)])&&(n=t.charAt(++u)),(o=E[n])&&(n=o(e,null==i?"e"===n?" ":"0":i)),a.push(n),s=u+1);return a.push(t.slice(s,u)),a.join("")}var r=t.length;return e.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=n(r,t,e,0);if(i!=e.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var o=null!=r.Z&&xu!==It,a=new(o?It:xu);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),o?a._:a},e.toString=function(){return t},e}function n(t,e,n,r){for(var i,o,a,u=0,s=e.length,l=n.length;s>u;){if(r>=l)return-1;if(i=e.charCodeAt(u++),37===i){if(a=e.charAt(u++),o=T[a in wu?e.charAt(u++):a],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){M.lastIndex=0;var r=M.exec(e.slice(n));return r?(t.w=k.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){b.lastIndex=0;var r=b.exec(e.slice(n));return r?(t.w=w.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){S.lastIndex=0;var r=S.exec(e.slice(n));return r?(t.m=C.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){_.lastIndex=0;var r=_.exec(e.slice(n));return r?(t.m=N.get(r[0].toLowerCase()),n+r[0].length):-1}function u(t,e,r){return n(t,E.c.toString(),e,r)}function s(t,e,r){return n(t,E.x.toString(),e,r)}function l(t,e,r){return n(t,E.X.toString(),e,r)}function c(t,e,n){var r=x.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var f=t.dateTime,h=t.date,p=t.time,d=t.periods,g=t.days,v=t.shortDays,m=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{xu=It;var e=new xu;return e._=t,r(e)}finally{xu=Date}}var r=e(t);return n.parse=function(t){try{xu=It;var e=r.parse(t);return e&&e._}finally{xu=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=pe;var x=pa.map(),b=Jt(g),w=Zt(g),M=Jt(v),k=Zt(v),_=Jt(m),N=Zt(m),S=Jt(y),C=Zt(y);d.forEach(function(t,e){x.set(t.toLowerCase(),e)});var E={a:function(t){return v[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:e(f),d:function(t,e){return Vt(t.getDate(),e,2)},e:function(t,e){return Vt(t.getDate(),e,2)},H:function(t,e){return Vt(t.getHours(),e,2)},I:function(t,e){return Vt(t.getHours()%12||12,e,2)},j:function(t,e){return Vt(1+yu.dayOfYear(t),e,3)},L:function(t,e){return Vt(t.getMilliseconds(),e,3)},m:function(t,e){return Vt(t.getMonth()+1,e,2)},M:function(t,e){return Vt(t.getMinutes(),e,2)},p:function(t){return d[+(t.getHours()>=12)]},S:function(t,e){return Vt(t.getSeconds(),e,2)},U:function(t,e){return Vt(yu.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Vt(yu.mondayOfYear(t),e,2)},x:e(h),X:e(p),y:function(t,e){return Vt(t.getFullYear()%100,e,2)},Y:function(t,e){return Vt(t.getFullYear()%1e4,e,4)},Z:fe,"%":function(){return"%"}},T={a:r,A:i,b:o,B:a,c:u,d:oe,e:oe,H:ue,I:ue,j:ae,L:ce,m:ie,M:se,p:c,S:le,U:Qt,w:Gt,W:Kt,x:s,X:l,y:ee,Y:te,Z:ne,"%":he};return e}function Vt(t,e,n){var r=0>t?"-":"",i=(r?-t:t)+"",o=i.length;return r+(n>o?new Array(n-o+1).join(e)+i:i)}function Jt(t){return new RegExp("^(?:"+t.map(pa.requote).join("|")+")","i")}function Zt(t){for(var e=new d,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function Gt(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Qt(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function Kt(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function te(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ee(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+2));return r?(t.y=re(+r[0]),n+r[0].length):-1}function ne(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function re(t){return t+(t>68?1900:2e3)}function ie(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function oe(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ae(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function ue(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function se(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function le(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ce(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function fe(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=Na(e)/60|0,i=Na(e)%60;return n+Vt(r,"0",2)+Vt(i,"0",2)}function he(t,e,n){ku.lastIndex=0;var r=ku.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function pe(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,r=t[n];!r[1](e);)r=t[++n];return r[0](e)}}function de(){}function ge(t,e,n){var r=n.s=t+e,i=r-t,o=r-i;n.t=t-o+(e-i)}function ve(t,e){t&&Cu.hasOwnProperty(t.type)&&Cu[t.type](t,e)}function me(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function ye(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)me(t[n],e,1);e.polygonEnd()}function xe(){function t(t,e){t*=Wa,e=e*Wa/2+Ua/4;var n=t-r,a=n>=0?1:-1,u=a*n,s=Math.cos(e),l=Math.sin(e),c=o*l,f=i*s+c*Math.cos(u),h=c*a*Math.sin(u);Tu.add(Math.atan2(h,f)),r=t,i=s,o=l}var e,n,r,i,o;Au.point=function(a,u){Au.point=t,r=(e=a)*Wa,i=Math.cos(u=(n=u)*Wa/2+Ua/4),o=Math.sin(u)},Au.lineEnd=function(){t(e,n)}}function be(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function we(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Me(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ke(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function _e(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Ne(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Se(t){return[Math.atan2(t[1],t[0]),at(t[2])]}function Ce(t,e){return Na(t[0]-e[0])<Ba&&Na(t[1]-e[1])<Ba}function Ee(t,e){t*=Wa;var n=Math.cos(e*=Wa);Te(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function Te(t,e,n){++Lu,qu+=(t-qu)/Lu,ju+=(e-ju)/Lu,zu+=(n-zu)/Lu}function Ae(){function t(t,i){t*=Wa;var o=Math.cos(i*=Wa),a=o*Math.cos(t),u=o*Math.sin(t),s=Math.sin(i),l=Math.atan2(Math.sqrt((l=n*s-r*u)*l+(l=r*a-e*s)*l+(l=e*u-n*a)*l),e*a+n*u+r*s);Du+=l,Ru+=l*(e+(e=a)),Hu+=l*(n+(n=u)),Pu+=l*(r+(r=s)),Te(e,n,r)}var e,n,r;Xu.point=function(i,o){i*=Wa;var a=Math.cos(o*=Wa);e=a*Math.cos(i),n=a*Math.sin(i),r=Math.sin(o),Xu.point=t,Te(e,n,r)}}function Le(){Xu.point=Ee}function De(){function t(t,e){t*=Wa;var n=Math.cos(e*=Wa),a=n*Math.cos(t),u=n*Math.sin(t),s=Math.sin(e),l=i*s-o*u,c=o*a-r*s,f=r*u-i*a,h=Math.sqrt(l*l+c*c+f*f),p=r*a+i*u+o*s,d=h&&-ot(p)/h,g=Math.atan2(h,p);Ou+=d*l,Fu+=d*c,Bu+=d*f,Du+=g,Ru+=g*(r+(r=a)),Hu+=g*(i+(i=u)),Pu+=g*(o+(o=s)),Te(r,i,o)}var e,n,r,i,o;Xu.point=function(a,u){e=a,n=u,Xu.point=t,a*=Wa;var s=Math.cos(u*=Wa);r=s*Math.cos(a),i=s*Math.sin(a),o=Math.sin(u),Te(r,i,o)},Xu.lineEnd=function(){t(e,n),Xu.lineEnd=Le,Xu.point=Ee}}function qe(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return n=e.invert(n,r),n&&t.invert(n[0],n[1])}),n}function je(){return!0}function ze(t,e,n,r,i){var o=[],a=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(Ce(n,r)){i.lineStart();for(var u=0;e>u;++u)i.point((n=t[u])[0],n[1]);return void i.lineEnd()}var s=new He(n,t,null,!0),l=new He(n,null,s,!1);s.o=l,o.push(s),a.push(l),s=new He(r,t,null,!1),l=new He(r,null,s,!0),s.o=l,o.push(s),a.push(l)}}),a.sort(e),Re(o),Re(a),o.length){for(var u=0,s=n,l=a.length;l>u;++u)a[u].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 u=0,l=c.length;l>u;++u)i.point((f=c[u])[0],f[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(d){c=p.p.z;for(var u=c.length-1;u>=0;--u)i.point((f=c[u])[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 Re(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function He(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Pe(t,e,n,r){return function(i,o){function a(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&o.point(e,n)}function u(t,e){var n=i(t,e);v.point(n[0],n[1])}function s(){y.point=u,v.lineStart()}function l(){y.point=a,v.lineEnd()}function c(t,e){g.push([t,e]);var n=i(t,e);b.point(n[0],n[1])}function f(){b.lineStart(),g=[]}function h(){c(g[0][0],g[0][1]),b.lineEnd();var t,e=b.clean(),n=x.buffer(),r=n.length;if(g.pop(),d.push(g),g=null,r)if(1&e){t=n[0];var i,r=t.length-1,a=-1;if(r>0){for(w||(o.polygonStart(),w=!0),o.lineStart();++a<r;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else r>1&&2&e&&n.push(n.pop().concat(n.shift())),p.push(n.filter(Oe))}var p,d,g,v=e(o),m=i.invert(r[0],r[1]),y={point:a,lineStart:s,lineEnd:l,polygonStart:function(){y.point=c,y.lineStart=f,y.lineEnd=h,p=[],d=[]},polygonEnd:function(){y.point=a,y.lineStart=s,y.lineEnd=l,p=pa.merge(p);var t=Ye(m,d);p.length?(w||(o.polygonStart(),w=!0),ze(p,Be,t,n,o)):t&&(w||(o.polygonStart(),w=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),w&&(o.polygonEnd(),w=!1),p=d=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}},x=Fe(),b=e(x),w=!1;return y}}function Oe(t){return t.length>1}function Fe(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:S,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function Be(t,e){return((t=t.x)[0]<0?t[1]-$a-Ba:$a-t[1])-((e=e.x)[0]<0?e[1]-$a-Ba:$a-e[1])}function Xe(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?Ua:-Ua,s=Na(o-n);Na(s-Ua)<Ba?(t.point(n,r=(r+a)/2>0?$a:-$a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&s>=Ua&&(Na(n-i)<Ba&&(n-=i*Ba),Na(o-u)<Ba&&(o-=u*Ba),r=Ue(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=a),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function Ue(t,e,n,r){var i,o,a=Math.sin(t-n);return Na(a)>Ba?Math.atan((Math.sin(e)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*o*a)):(e+r)/2}function Ie(t,e,n,r){var i;if(null==t)i=n*$a,r.point(-Ua,i),r.point(0,i),r.point(Ua,i),r.point(Ua,0),r.point(Ua,-i),r.point(0,-i),r.point(-Ua,-i),r.point(-Ua,0),r.point(-Ua,i);else if(Na(t[0]-e[0])>Ba){var o=t[0]<e[0]?Ua:-Ua;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}function Ye(t,e){var n=t[0],r=t[1],i=[Math.sin(n),-Math.cos(n),0],o=0,a=0;Tu.reset();for(var u=0,s=e.length;s>u;++u){var l=e[u],c=l.length;if(c)for(var f=l[0],h=f[0],p=f[1]/2+Ua/4,d=Math.sin(p),g=Math.cos(p),v=1;;){v===c&&(v=0),t=l[v];var m=t[0],y=t[1]/2+Ua/4,x=Math.sin(y),b=Math.cos(y),w=m-h,M=w>=0?1:-1,k=M*w,_=k>Ua,N=d*x;if(Tu.add(Math.atan2(N*M*Math.sin(k),g*b+N*Math.cos(k))),o+=_?w+M*Ia:w,_^h>=n^m>=n){var S=Me(be(f),be(t));Ne(S);var C=Me(i,S);Ne(C);var E=(_^w>=0?-1:1)*at(C[2]);(r>E||r===E&&(S[0]||S[1]))&&(a+=_^w>=0?1:-1)}if(!v++)break;h=m,d=x,g=b,f=t}}return(-Ba>o||Ba>o&&0>Tu)^1&a}function $e(t){function e(t,e){return Math.cos(t)*Math.cos(e)>o}function n(t){var n,o,s,l,c;return{lineStart:function(){l=s=!1,c=1},point:function(f,h){var p,d=[f,h],g=e(f,h),v=a?g?0:i(f,h):g?i(f+(0>f?Ua:-Ua),h):0;if(!n&&(l=s=g)&&t.lineStart(),g!==s&&(p=r(n,d),(Ce(n,p)||Ce(d,p))&&(d[0]+=Ba,d[1]+=Ba,g=e(d[0],d[1]))),g!==s)c=0,g?(t.lineStart(),p=r(d,n),t.point(p[0],p[1])):(p=r(n,d),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(u&&n&&a^g){var m;v&o||!(m=r(d,n,!0))||(c=0,a?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||n&&Ce(n,d)||t.point(d[0],d[1]),n=d,s=g,o=v},lineEnd:function(){s&&t.lineEnd(),n=null},clean:function(){return c|(l&&s)<<1}}}function r(t,e,n){var r=be(t),i=be(e),a=[1,0,0],u=Me(r,i),s=we(u,u),l=u[0],c=s-l*l;if(!c)return!n&&t;var f=o*s/c,h=-o*l/c,p=Me(a,u),d=_e(a,f),g=_e(u,h);ke(d,g);var v=p,m=we(d,v),y=we(v,v),x=m*m-y*(we(d,d)-1);if(!(0>x)){var b=Math.sqrt(x),w=_e(v,(-m-b)/y);if(ke(w,d),w=Se(w),!n)return w;var M,k=t[0],_=e[0],N=t[1],S=e[1];k>_&&(M=k,k=_,_=M);var C=_-k,E=Na(C-Ua)<Ba,T=E||Ba>C;if(!E&&N>S&&(M=N,N=S,S=M),T?E?N+S>0^w[1]<(Na(w[0]-k)<Ba?N:S):N<=w[1]&&w[1]<=S:C>Ua^(k<=w[0]&&w[0]<=_)){var A=_e(v,(-m+b)/y);return ke(A,d),[w,Se(A)]}}}function i(e,n){var r=a?t:Ua-t,i=0;return-r>e?i|=1:e>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var o=Math.cos(t),a=o>0,u=Na(o)>Ba,s=bn(t,6*Wa);return Pe(e,n,s,a?[0,-t]:[-Ua,t-Ua])}function We(t,e,n,r){return function(i){var o,a=i.a,u=i.b,s=a.x,l=a.y,c=u.x,f=u.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=n-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=e-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 Ve(t,e,n,r){function i(r,i){return Na(r[0]-t)<Ba?i>0?0:3:Na(r[0]-n)<Ba?i>0?2:1:Na(r[1]-e)<Ba?i>0?1:0:i>0?3:2}function o(t,e){return a(t.x,e.x)}function a(t,e){var n=i(t,1),r=i(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0];
}return function(u){function s(t){for(var e=0,n=v.length,r=t[1],i=0;n>i;++i)for(var o,a=1,u=v[i],s=u.length,l=u[0];s>a;++a)o=u[a],l[1]<=r?o[1]>r&&it(l,o,t)>0&&++e:o[1]<=r&&it(l,o,t)<0&&--e,l=o;return 0!==e}function l(o,u,s,l){var c=0,f=0;if(null==o||(c=i(o,s))!==(f=i(u,s))||a(o,u)<0^s>0){do l.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+s+4)%4)!==f)}else l.point(u[0],u[1])}function c(i,o){return i>=t&&n>=i&&o>=e&&r>=o}function f(t,e){c(t,e)&&u.point(t,e)}function h(){T.point=d,v&&v.push(m=[]),_=!0,k=!1,w=M=NaN}function p(){g&&(d(y,x),b&&k&&C.rejoin(),g.push(C.buffer())),T.point=f,k&&u.lineEnd()}function d(t,e){t=Math.max(-Iu,Math.min(Iu,t)),e=Math.max(-Iu,Math.min(Iu,e));var n=c(t,e);if(v&&m.push([t,e]),_)y=t,x=e,b=n,_=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&k)u.point(t,e);else{var r={a:{x:w,y:M},b:{x:t,y:e}};E(r)?(k||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),N=!1):n&&(u.lineStart(),u.point(t,e),N=!1)}w=t,M=e,k=n}var g,v,m,y,x,b,w,M,k,_,N,S=u,C=Fe(),E=We(t,e,n,r),T={point:f,lineStart:h,lineEnd:p,polygonStart:function(){u=C,g=[],v=[],N=!0},polygonEnd:function(){u=S,g=pa.merge(g);var e=s([t,r]),n=N&&e,i=g.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),l(null,null,1,u),u.lineEnd()),i&&ze(g,o,e,l,u),u.polygonEnd()),g=v=m=null}};return T}}function Je(t){var e=0,n=Ua/3,r=hn(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Ua/180,n=t[1]*Ua/180):[e/Ua*180,n/Ua*180]},i}function Ze(t,e){function n(t,e){var n=Math.sqrt(o-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),a-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,o=1+r*(2*i-r),a=Math.sqrt(o)/i;return n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/i,at((o-(t*t+n*n)*i*i)/(2*i))]},n}function Ge(){function t(t,e){$u+=i*t-r*e,r=t,i=e}var e,n,r,i;Gu.point=function(o,a){Gu.point=t,e=r=o,n=i=a},Gu.lineEnd=function(){t(e,n)}}function Qe(t,e){Wu>t&&(Wu=t),t>Ju&&(Ju=t),Vu>e&&(Vu=e),e>Zu&&(Zu=e)}function Ke(){function t(t,e){a.push("M",t,",",e,o)}function e(t,e){a.push("M",t,",",e),u.point=n}function n(t,e){a.push("L",t,",",e)}function r(){u.point=t}function i(){a.push("Z")}var o=tn(4.5),a=[],u={point:t,lineStart:function(){u.point=e},lineEnd:r,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=r,u.point=t},pointRadius:function(t){return o=tn(t),u},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return u}function tn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function en(t,e){qu+=t,ju+=e,++zu}function nn(){function t(t,r){var i=t-e,o=r-n,a=Math.sqrt(i*i+o*o);Ru+=a*(e+t)/2,Hu+=a*(n+r)/2,Pu+=a,en(e=t,n=r)}var e,n;Ku.point=function(r,i){Ku.point=t,en(e=r,n=i)}}function rn(){Ku.point=en}function on(){function t(t,e){var n=t-r,o=e-i,a=Math.sqrt(n*n+o*o);Ru+=a*(r+t)/2,Hu+=a*(i+e)/2,Pu+=a,a=i*t-r*e,Ou+=a*(r+t),Fu+=a*(i+e),Bu+=3*a,en(r=t,i=e)}var e,n,r,i;Ku.point=function(o,a){Ku.point=t,en(e=r=o,n=i=a)},Ku.lineEnd=function(){t(e,n)}}function an(t){function e(e,n){t.moveTo(e+a,n),t.arc(e,n,a,0,Ia)}function n(e,n){t.moveTo(e,n),u.point=r}function r(e,n){t.lineTo(e,n)}function i(){u.point=e}function o(){t.closePath()}var a=4.5,u={point:e,lineStart:function(){u.point=n},lineEnd:i,polygonStart:function(){u.lineEnd=o},polygonEnd:function(){u.lineEnd=i,u.point=e},pointRadius:function(t){return a=t,u},result:S};return u}function un(t){function e(t){return(u?r:n)(t)}function n(e){return cn(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){x=NaN,_.point=o,e.lineStart()}function o(n,r){var o=be([n,r]),a=t(n,r);i(x,b,y,w,M,k,x=a[0],b=a[1],y=n,w=o[0],M=o[1],k=o[2],u,e),e.point(x,b)}function a(){_.point=n,e.lineEnd()}function s(){r(),_.point=l,_.lineEnd=c}function l(t,e){o(f=t,h=e),p=x,d=b,g=w,v=M,m=k,_.point=o}function c(){i(x,b,y,w,M,k,p,d,f,g,v,m,u,e),_.lineEnd=a,a()}var f,h,p,d,g,v,m,y,x,b,w,M,k,_={point:n,lineStart:r,lineEnd:a,polygonStart:function(){e.polygonStart(),_.lineStart=s},polygonEnd:function(){e.polygonEnd(),_.lineStart=r}};return _}function i(e,n,r,u,s,l,c,f,h,p,d,g,v,m){var y=c-e,x=f-n,b=y*y+x*x;if(b>4*o&&v--){var w=u+p,M=s+d,k=l+g,_=Math.sqrt(w*w+M*M+k*k),N=Math.asin(k/=_),S=Na(Na(k)-1)<Ba||Na(r-h)<Ba?(r+h)/2:Math.atan2(M,w),C=t(S,N),E=C[0],T=C[1],A=E-e,L=T-n,D=x*A-y*L;(D*D/b>o||Na((y*A+x*L)/b-.5)>.3||a>u*p+s*d+l*g)&&(i(e,n,r,u,s,l,E,T,S,w/=_,M/=_,k,v,m),m.point(E,T),i(E,T,S,w,M,k,c,f,h,p,d,g,v,m))}}var o=.5,a=Math.cos(30*Wa),u=16;return e.precision=function(t){return arguments.length?(u=(o=t*t)>0&&16,e):Math.sqrt(o)},e}function sn(t){var e=un(function(e,n){return t([e*Va,n*Va])});return function(t){return pn(e(t))}}function ln(t){this.stream=t}function cn(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function fn(t){return hn(function(){return t})()}function hn(t){function e(t){return t=u(t[0]*Wa,t[1]*Wa),[t[0]*h+s,l-t[1]*h]}function n(t){return t=u.invert((t[0]-s)/h,(l-t[1])/h),t&&[t[0]*Va,t[1]*Va]}function r(){u=qe(a=vn(m,y,x),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),e}var o,a,u,s,l,c,f=un(function(t,e){return t=o(t,e),[t[0]*h+s,l-t[1]*h]}),h=150,p=480,d=250,g=0,v=0,m=0,y=0,x=0,b=Uu,w=k,M=null,_=null;return e.stream=function(t){return c&&(c.valid=!1),c=pn(b(a,f(w(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(b=null==t?(M=t,Uu):$e((M=+t)*Wa),i()):M},e.clipExtent=function(t){return arguments.length?(_=t,w=t?Ve(t[0][0],t[0][1],t[1][0],t[1][1]):k,i()):_},e.scale=function(t){return arguments.length?(h=+t,r()):h},e.translate=function(t){return arguments.length?(p=+t[0],d=+t[1],r()):[p,d]},e.center=function(t){return arguments.length?(g=t[0]%360*Wa,v=t[1]%360*Wa,r()):[g*Va,v*Va]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Wa,y=t[1]%360*Wa,x=t.length>2?t[2]%360*Wa:0,r()):[m*Va,y*Va,x*Va]},pa.rebind(e,f,"precision"),function(){return o=t.apply(this,arguments),e.invert=o.invert&&n,r()}}function pn(t){return cn(t,function(e,n){t.point(e*Wa,n*Wa)})}function dn(t,e){return[t,e]}function gn(t,e){return[t>Ua?t-Ia:-Ua>t?t+Ia:t,e]}function vn(t,e,n){return t?e||n?qe(yn(t),xn(e,n)):yn(t):e||n?xn(e,n):gn}function mn(t){return function(e,n){return e+=t,[e>Ua?e-Ia:-Ua>e?e+Ia:e,n]}}function yn(t){var e=mn(t);return e.invert=mn(-t),e}function xn(t,e){function n(t,e){var n=Math.cos(e),u=Math.cos(t)*n,s=Math.sin(t)*n,l=Math.sin(e),c=l*r+u*i;return[Math.atan2(s*o-c*a,u*r-l*i),at(c*o+s*a)]}var r=Math.cos(t),i=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),u=Math.cos(t)*n,s=Math.sin(t)*n,l=Math.sin(e),c=l*o-s*a;return[Math.atan2(s*o+l*a,u*r+c*i),at(c*r-u*i)]},n}function bn(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,u){var s=a*e;null!=i?(i=wn(n,i),o=wn(n,o),(a>0?o>i:i>o)&&(i+=a*Ia)):(i=t+a*Ia,o=t-.5*s);for(var l,c=i;a>0?c>o:o>c;c-=s)u.point((l=Se([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],l[1])}}function wn(t,e){var n=be(e);n[0]-=t,Ne(n);var r=ot(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Ba)%(2*Math.PI)}function Mn(t,e,n){var r=pa.range(t,e-Ba,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function kn(t,e,n){var r=pa.range(t,e-Ba,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function _n(t){return t.source}function Nn(t){return t.target}function Sn(t,e,n,r){var i=Math.cos(e),o=Math.sin(e),a=Math.cos(r),u=Math.sin(r),s=i*Math.cos(t),l=i*Math.sin(t),c=a*Math.cos(n),f=a*Math.sin(n),h=2*Math.asin(Math.sqrt(ct(r-e)+i*a*ct(n-t))),p=1/Math.sin(h),d=h?function(t){var e=Math.sin(t*=h)*p,n=Math.sin(h-t)*p,r=n*s+e*c,i=n*l+e*f,a=n*o+e*u;return[Math.atan2(i,r)*Va,Math.atan2(a,Math.sqrt(r*r+i*i))*Va]}:function(){return[t*Va,e*Va]};return d.distance=h,d}function Cn(){function t(t,i){var o=Math.sin(i*=Wa),a=Math.cos(i),u=Na((t*=Wa)-e),s=Math.cos(u);ts+=Math.atan2(Math.sqrt((u=a*Math.sin(u))*u+(u=r*o-n*a*s)*u),n*o+r*a*s),e=t,n=o,r=a}var e,n,r;es.point=function(i,o){e=i*Wa,n=Math.sin(o*=Wa),r=Math.cos(o),es.point=t},es.lineEnd=function(){es.point=es.lineEnd=S}}function En(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),o=t(r*i);return[o*i*Math.sin(e),o*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&n*o/r)]},n}function Tn(t,e){function n(t,e){a>0?-$a+Ba>e&&(e=-$a+Ba):e>$a-Ba&&(e=$a-Ba);var n=a/Math.pow(i(e),o);return[n*Math.sin(o*t),a-n*Math.cos(o*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Ua/4+t/2)},o=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(i(e)/i(t)),a=r*Math.pow(i(t),o)/o;return o?(n.invert=function(t,e){var n=a-e,r=rt(o)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/o,2*Math.atan(Math.pow(a/r,1/o))-$a]},n):Ln}function An(t,e){function n(t,e){var n=o-e;return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}var r=Math.cos(t),i=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),o=r/i+t;return Na(i)<Ba?dn:(n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,o-rt(i)*Math.sqrt(t*t+n*n)]},n)}function Ln(t,e){return[t,Math.log(Math.tan(Ua/4+e/2))]}function Dn(t){var e,n=fn(t),r=n.scale,i=n.translate,o=n.clipExtent;return n.scale=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=i.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var a=o.apply(n,arguments);if(a===n){if(e=null==t){var u=Ua*r(),s=i();o([[s[0]-u,s[1]-u],[s[0]+u,s[1]+u]])}}else e&&(a=null);return a},n.clipExtent(null)}function qn(t,e){return[Math.log(Math.tan(Ua/4+e/2)),-t]}function jn(t){return t[0]}function zn(t){return t[1]}function Rn(t){for(var e=t.length,n=[0,1],r=2,i=2;e>i;i++){for(;r>1&&it(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Hn(t,e){return t[0]-e[0]||t[1]-e[1]}function Pn(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function On(t,e,n,r){var i=t[0],o=n[0],a=e[0]-i,u=r[0]-o,s=t[1],l=n[1],c=e[1]-s,f=r[1]-l,h=(u*(s-l)-f*(i-o))/(f*a-u*c);return[i+h*a,s+h*c]}function Fn(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function Bn(){sr(this),this.edge=this.site=this.circle=null}function Xn(t){var e=ps.pop()||new Bn;return e.site=t,e}function Un(t){Kn(t),cs.remove(t),ps.push(t),sr(t)}function In(t){var e=t.circle,n=e.x,r=e.cy,i={x:n,y:r},o=t.P,a=t.N,u=[t];Un(t);for(var s=o;s.circle&&Na(n-s.circle.x)<Ba&&Na(r-s.circle.cy)<Ba;)o=s.P,u.unshift(s),Un(s),s=o;u.unshift(s),Kn(s);for(var l=a;l.circle&&Na(n-l.circle.x)<Ba&&Na(r-l.circle.cy)<Ba;)a=l.N,u.push(l),Un(l),l=a;u.push(l),Kn(l);var c,f=u.length;for(c=1;f>c;++c)l=u[c],s=u[c-1],or(l.edge,s.site,l.site,i);s=u[0],l=u[f-1],l.edge=rr(s.site,l.site,null,i),Qn(s),Qn(l)}function Yn(t){for(var e,n,r,i,o=t.x,a=t.y,u=cs._;u;)if(r=$n(u,a)-o,r>Ba)u=u.L;else{if(i=o-Wn(u,a),!(i>Ba)){r>-Ba?(e=u.P,n=u):i>-Ba?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}var s=Xn(t);if(cs.insert(e,s),e||n){if(e===n)return Kn(e),n=Xn(e.site),cs.insert(s,n),s.edge=n.edge=rr(e.site,s.site),Qn(e),void Qn(n);if(!n)return void(s.edge=rr(e.site,s.site));Kn(e),Kn(n);var l=e.site,c=l.x,f=l.y,h=t.x-c,p=t.y-f,d=n.site,g=d.x-c,v=d.y-f,m=2*(h*v-p*g),y=h*h+p*p,x=g*g+v*v,b={x:(v*y-p*x)/m+c,y:(h*x-g*y)/m+f};or(n.edge,l,d,b),s.edge=rr(l,t,null,b),n.edge=rr(t,d,null,b),Qn(e),Qn(n)}}function $n(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.P;if(!a)return-(1/0);n=a.site;var u=n.x,s=n.y,l=s-e;if(!l)return u;var c=u-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+u)/2}function Wn(t,e){var n=t.N;if(n)return $n(n,e);var r=t.site;return r.y===e?r.x:1/0}function Vn(t){this.site=t,this.edges=[]}function Jn(t){for(var e,n,r,i,o,a,u,s,l,c,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=ls,v=g.length;v--;)if(o=g[v],o&&o.prepare())for(u=o.edges,s=u.length,a=0;s>a;)c=u[a].end(),r=c.x,i=c.y,l=u[++a%s].start(),e=l.x,n=l.y,(Na(r-e)>Ba||Na(i-n)>Ba)&&(u.splice(a,0,new ar(ir(o.site,c,Na(r-f)<Ba&&d-i>Ba?{x:f,y:Na(e-f)<Ba?n:d}:Na(i-d)<Ba&&h-r>Ba?{x:Na(n-d)<Ba?e:h,y:d}:Na(r-h)<Ba&&i-p>Ba?{x:h,y:Na(e-h)<Ba?n:p}:Na(i-p)<Ba&&r-f>Ba?{x:Na(n-p)<Ba?e:f,y:p}:null),o.site,null)),++s)}function Zn(t,e){return e.angle-t.angle}function Gn(){sr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qn(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,u=i.y,s=r.x-a,l=r.y-u,c=o.x-a,f=o.y-u,h=2*(s*f-l*c);if(!(h>=-Xa)){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+u,m=ds.pop()||new Gn;m.arc=t,m.site=i,m.x=g+a,m.y=f+Math.sqrt(g*g+v*v),m.cy=f,t.circle=m;for(var y=null,x=hs._;x;)if(m.y<x.y||m.y===x.y&&m.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}hs.insert(y,m),y||(fs=m)}}}}function Kn(t){var e=t.circle;e&&(e.P||(fs=e.N),hs.remove(e),ds.push(e),sr(e),t.circle=null)}function tr(t){for(var e,n=ss,r=We(t[0][0],t[0][1],t[1][0],t[1][1]),i=n.length;i--;)e=n[i],(!er(e,t)||!r(e)||Na(e.a.x-e.b.x)<Ba&&Na(e.a.y-e.b.y)<Ba)&&(e.a=e.b=null,n.splice(i,1))}function er(t,e){var n=t.b;if(n)return!0;var r,i,o=t.a,a=e[0][0],u=e[1][0],s=e[0][1],l=e[1][1],c=t.l,f=t.r,h=c.x,p=c.y,d=f.x,g=f.y,v=(h+d)/2,m=(p+g)/2;if(g===p){if(a>v||v>=u)return;if(h>d){if(o){if(o.y>=l)return}else o={x:v,y:s};n={x:v,y:l}}else{if(o){if(o.y<s)return}else o={x:v,y:l};n={x:v,y:s}}}else if(r=(h-d)/(g-p),i=m-r*v,-1>r||r>1)if(h>d){if(o){if(o.y>=l)return}else o={x:(s-i)/r,y:s};n={x:(l-i)/r,y:l}}else{if(o){if(o.y<s)return}else o={x:(l-i)/r,y:l};n={x:(s-i)/r,y:s}}else if(g>p){if(o){if(o.x>=u)return}else o={x:a,y:r*a+i};n={x:u,y:r*u+i}}else{if(o){if(o.x<a)return}else o={x:u,y:r*u+i};n={x:a,y:r*a+i}}return t.a=o,t.b=n,!0}function nr(t,e){this.l=t,this.r=e,this.a=this.b=null}function rr(t,e,n,r){var i=new nr(t,e);return ss.push(i),n&&or(i,t,e,n),r&&or(i,e,t,r),ls[t.i].edges.push(new ar(i,t,e)),ls[e.i].edges.push(new ar(i,e,t)),i}function ir(t,e,n){var r=new nr(t,null);return r.a=e,r.b=n,ss.push(r),r}function or(t,e,n,r){t.a||t.b?t.l===n?t.b=r:t.a=r:(t.a=r,t.l=e,t.r=n)}function ar(t,e,n){var r=t.a,i=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function ur(){this._=null}function sr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function lr(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function cr(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function fr(t){for(;t.L;)t=t.L;return t}function hr(t,e){var n,r,i,o=t.sort(pr).pop();for(ss=[],ls=new Array(t.length),cs=new ur,hs=new ur;;)if(i=fs,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))(o.x!==n||o.y!==r)&&(ls[o.i]=new Vn(o),Yn(o),n=o.x,r=o.y),o=t.pop();else{if(!i)break;In(i.arc)}e&&(tr(e),Jn(e));var a={cells:ls,edges:ss};return cs=hs=ss=ls=null,a}function pr(t,e){return e.y-t.y||e.x-t.x}function dr(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function gr(t){return t.x}function vr(t){return t.y}function mr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function yr(t,e,n,r,i,o){if(!t(e,n,r,i,o)){var a=.5*(n+i),u=.5*(r+o),s=e.nodes;s[0]&&yr(t,s[0],n,r,a,u),s[1]&&yr(t,s[1],a,r,i,u),s[2]&&yr(t,s[2],n,u,a,o),s[3]&&yr(t,s[3],a,u,i,o)}}function xr(t,e,n,r,i,o,a){var u,s=1/0;return function l(t,c,f,h,p){if(!(c>o||f>a||r>h||i>p)){if(d=t.point){var d,g=e-t.x,v=n-t.y,m=g*g+v*v;if(s>m){var y=Math.sqrt(s=m);r=e-y,i=n-y,o=e+y,a=n+y,u=d}}for(var x=t.nodes,b=.5*(c+h),w=.5*(f+p),M=e>=b,k=n>=w,_=k<<1|M,N=_+4;N>_;++_)if(t=x[3&_])switch(3&_){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,a),u}function br(t,e){t=pa.rgb(t),e=pa.rgb(e);var n=t.r,r=t.g,i=t.b,o=e.r-n,a=e.g-r,u=e.b-i;return function(t){return"#"+Nt(Math.round(n+o*t))+Nt(Math.round(r+a*t))+Nt(Math.round(i+u*t))}}function wr(t,e){var n,r={},i={};for(n in t)n in e?r[n]=_r(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}}function Mr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function kr(t,e){var n,r,i,o=vs.lastIndex=ms.lastIndex=0,a=-1,u=[],s=[];for(t+="",e+="";(n=vs.exec(t))&&(r=ms.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:Mr(n,r)})),o=ms.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?(e=s[0].x,function(t){return e(t)+""}):function(){return e}:(e=s.length,function(t){for(var n,r=0;e>r;++r)u[(n=s[r]).i]=n.x(t);return u.join("")})}function _r(t,e){for(var n,r=pa.interpolators.length;--r>=0&&!(n=pa.interpolators[r](t,e)););return n}function Nr(t,e){var n,r=[],i=[],o=t.length,a=e.length,u=Math.min(t.length,e.length);for(n=0;u>n;++n)r.push(_r(t[n],e[n]));for(;o>n;++n)i[n]=t[n];for(;a>n;++n)i[n]=e[n];return function(t){for(n=0;u>n;++n)i[n]=r[n](t);return i}}function Sr(t){return function(e){return 0>=e?0:e>=1?1:t(e)}}function Cr(t){return function(e){return 1-t(1-e)}}function Er(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function Tr(t){return t*t}function Ar(t){return t*t*t}function Lr(t){if(0>=t)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(.5>t?n:3*(t-e)+n-.75)}function Dr(t){return function(e){return Math.pow(e,t)}}function qr(t){return 1-Math.cos(t*$a)}function jr(t){return Math.pow(2,10*(t-1))}function zr(t){return 1-Math.sqrt(1-t*t)}function Rr(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/Ia*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*Ia/e)}}function Hr(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Pr(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 Or(t,e){t=pa.hcl(t),e=pa.hcl(e);var n=t.h,r=t.c,i=t.l,o=e.h-n,a=e.c-r,u=e.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?e.c:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:-180>o&&(o+=360),function(t){return gt(n+o*t,r+a*t,i+u*t)+""}}function Fr(t,e){t=pa.hsl(t),e=pa.hsl(e);var n=t.h,r=t.s,i=t.l,o=e.h-n,a=e.s-r,u=e.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?e.s:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:-180>o&&(o+=360),function(t){return pt(n+o*t,r+a*t,i+u*t)+""}}function Br(t,e){t=pa.lab(t),e=pa.lab(e);var n=t.l,r=t.a,i=t.b,o=e.l-n,a=e.a-r,u=e.b-i;return function(t){return mt(n+o*t,r+a*t,i+u*t)+""}}function Xr(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function Ur(t){var e=[t.a,t.b],n=[t.c,t.d],r=Yr(e),i=Ir(e,n),o=Yr($r(n,e,-i))||0;e[0]*n[1]<n[0]*e[1]&&(e[0]*=-1,e[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(e[1],e[0]):Math.atan2(-n[0],n[1]))*Va,this.translate=[t.e,t.f],this.scale=[r,o],this.skew=o?Math.atan2(i,o)*Va:0}function Ir(t,e){return t[0]*e[0]+t[1]*e[1]}function Yr(t){var e=Math.sqrt(Ir(t,t));return e&&(t[0]/=e,t[1]/=e),e}function $r(t,e,n){return t[0]+=n*e[0],t[1]+=n*e[1],t}function Wr(t){return t.length?t.pop()+",":""}function Vr(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:Mr(t[0],e[0])},{i:i-2,x:Mr(t[1],e[1])})}else(e[0]||e[1])&&n.push("translate("+e+")")}function Jr(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(Wr(n)+"rotate(",null,")")-2,x:Mr(t,e)})):e&&n.push(Wr(n)+"rotate("+e+")")}function Zr(t,e,n,r){t!==e?r.push({i:n.push(Wr(n)+"skewX(",null,")")-2,x:Mr(t,e)}):e&&n.push(Wr(n)+"skewX("+e+")")}function Gr(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push(Wr(n)+"scale(",null,",",null,")");r.push({i:i-4,x:Mr(t[0],e[0])},{i:i-2,x:Mr(t[1],e[1])})}else(1!==e[0]||1!==e[1])&&n.push(Wr(n)+"scale("+e+")")}function Qr(t,e){var n=[],r=[];return t=pa.transform(t),e=pa.transform(e),Vr(t.translate,e.translate,n,r),Jr(t.rotate,e.rotate,n,r),Zr(t.skew,e.skew,n,r),Gr(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,i=-1,o=r.length;++i<o;)n[(e=r[i]).i]=e.x(t);return n.join("")}}function Kr(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function ti(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function ei(t){for(var e=t.source,n=t.target,r=ri(e,n),i=[e];e!==r;)e=e.parent,i.push(e);for(var o=i.length;n!==r;)i.splice(o,0,n),n=n.parent;return i}function ni(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function ri(t,e){if(t===e)return t;for(var n=ni(t),r=ni(e),i=n.pop(),o=r.pop(),a=null;i===o;)a=i,i=n.pop(),o=r.pop();return a}function ii(t){t.fixed|=2}function oi(t){t.fixed&=-7}function ai(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ui(t){t.fixed&=-5}function si(t,e,n){var r=0,i=0;if(t.charge=0,!t.leaf)for(var o,a=t.nodes,u=a.length,s=-1;++s<u;)o=a[s],null!=o&&(si(o,e,n),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=e*n[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 li(t,e){return pa.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=gi,t}function ci(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function fi(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,a=-1;++a<i;)n.push(o[a]);for(;null!=(t=r.pop());)e(t)}function hi(t){return t.children}function pi(t){return t.value}function di(t,e){return e.value-t.value}function gi(t){return pa.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function vi(t){return t.x}function mi(t){return t.y}function yi(t,e,n){t.y0=e,t.y=n}function xi(t){return pa.range(t.length)}function bi(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function wi(t){for(var e,n=1,r=0,i=t[0][1],o=t.length;o>n;++n)(e=t[n][1])>i&&(r=n,i=e);return r}function Mi(t){return t.reduce(ki,0)}function ki(t,e){return t+e[1]}function _i(t,e){return Ni(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Ni(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function Si(t){return[pa.min(t),pa.max(t)]}function Ci(t,e){return t.value-e.value}function Ei(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function Ti(t,e){t._pack_next=e,e._pack_prev=t}function Ai(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function Li(t){function e(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((n=t.children)&&(l=n.length)){var n,r,i,o,a,u,s,l,c=1/0,f=-(1/0),h=1/0,p=-(1/0);if(n.forEach(Di),r=n[0],r.x=-r.r,r.y=0,e(r),l>1&&(i=n[1],i.x=i.r,i.y=0,e(i),l>2))for(o=n[2],zi(r,i,o),e(o),Ei(r,o),r._pack_prev=o,Ei(o,i),i=r._pack_next,a=3;l>a;a++){zi(r,i,o=n[a]);var d=0,g=1,v=1;for(u=i._pack_next;u!==i;u=u._pack_next,g++)if(Ai(u,o)){d=1;break}if(1==d)for(s=r._pack_prev;s!==u._pack_prev&&!Ai(s,o);s=s._pack_prev,v++);d?(v>g||g==v&&i.r<r.r?Ti(r,i=u):Ti(r=s,i),a--):(Ei(r,o),i=o,e(o))}var m=(c+f)/2,y=(h+p)/2,x=0;for(a=0;l>a;a++)o=n[a],o.x-=m,o.y-=y,x=Math.max(x,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=x,n.forEach(qi)}}function Di(t){t._pack_next=t._pack_prev=t}function qi(t){delete t._pack_next,delete t._pack_prev}function ji(t,e,n,r){var i=t.children;if(t.x=e+=r*t.x,t.y=n+=r*t.y,t.r*=r,i)for(var o=-1,a=i.length;++o<a;)ji(i[o],e,n,r)}function zi(t,e,n){var r=t.r+n.r,i=e.x-t.x,o=e.y-t.y;if(r&&(i||o)){var a=e.r+n.r,u=i*i+o*o;a*=a,r*=r;var s=.5+(r-a)/(2*u),l=Math.sqrt(Math.max(0,2*a*(r+u)-(r-=u)*r-a*a))/(2*u);n.x=t.x+s*i+l*o,n.y=t.y+s*o-l*i}else n.x=t.x+r,n.y=t.y}function Ri(t,e){return t.parent==e.parent?1:2}function Hi(t){var e=t.children;return e.length?e[0]:t.t}function Pi(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function Oi(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Fi(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)e=i[o],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function Bi(t,e,n){return t.a.parent===e.parent?t.a:n}function Xi(t){return 1+pa.max(t,function(t){return t.y})}function Ui(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Ii(t){var e=t.children;return e&&e.length?Ii(e[0]):t}function Yi(t){var e,n=t.children;return n&&(e=n.length)?Yi(n[e-1]):t}function $i(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Wi(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],o=t.dy-e[0]-e[2];return 0>i&&(n+=i/2,i=0),0>o&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function Vi(t){var e=t[0],n=t[t.length-1];return n>e?[e,n]:[n,e]}function Ji(t){return t.rangeExtent?t.rangeExtent():Vi(t.range())}function Zi(t,e,n,r){var i=n(t[0],t[1]),o=r(e[0],e[1]);return function(t){return o(i(t))}}function Gi(t,e){var n,r=0,i=t.length-1,o=t[r],a=t[i];return o>a&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function Qi(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:Es}function Ki(t,e,n,r){var i=[],o=[],a=0,u=Math.min(t.length,e.length)-1;for(t[u]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<=u;)i.push(n(t[a-1],t[a])),o.push(r(e[a-1],e[a]));return function(e){var n=pa.bisect(t,e,1,u)-1;return o[n](i[n](e))}}function to(t,e,n,r){function i(){var i=Math.min(t.length,e.length)>2?Ki:Zi,s=r?ti:Kr;return a=i(t,e,s,n),u=i(e,t,s,_r),o}function o(t){return a(t)}var a,u;return o.invert=function(t){return u(t)},o.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},o.range=function(t){return arguments.length?(e=t,i()):e},o.rangeRound=function(t){return o.range(t).interpolate(Xr)},o.clamp=function(t){return arguments.length?(r=t,i()):r},o.interpolate=function(t){return arguments.length?(n=t,i()):n},o.ticks=function(e){return io(t,e)},o.tickFormat=function(e,n){return oo(t,e,n)},o.nice=function(e){return no(t,e),i()},o.copy=function(){return to(t,e,n,r)},i()}function eo(t,e){return pa.rebind(t,e,"range","rangeRound","interpolate","clamp")}function no(t,e){return Gi(t,Qi(ro(t,e)[2]))}function ro(t,e){null==e&&(e=10);var n=Vi(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return.15>=o?i*=10:.35>=o?i*=5:.75>=o&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function io(t,e){return pa.range.apply(pa,ro(t,e))}function oo(t,e,n){var r=ro(t,e);if(n){var i=vu.exec(n);if(i.shift(),"s"===i[8]){var o=pa.formatPrefix(Math.max(Na(r[0]),Na(r[1])));return i[7]||(i[7]="."+ao(o.scale(r[2]))),i[8]="f",n=pa.format(i.join("")),function(t){return n(o.scale(t))+o.symbol}}i[7]||(i[7]="."+uo(i[8],r)),n=i.join("")}else n=",."+ao(r[2])+"f";return pa.format(n)}function ao(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function uo(t,e){var n=ao(e[2]);return t in Ts?Math.abs(n-ao(Math.max(Na(e[0]),Na(e[1]))))+ +("e"!==t):n-2*("%"===t)}function so(t,e,n,r){function i(t){return(n?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function o(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function a(e){return t(i(e))}return a.invert=function(e){return o(t.invert(e))},a.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),a):r},a.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),a):e},a.nice=function(){var e=Gi(r.map(i),n?Math:Ls);return t.domain(e),r=e.map(o),a},a.ticks=function(){var t=Vi(r),a=[],u=t[0],s=t[1],l=Math.floor(i(u)),c=Math.ceil(i(s)),f=e%1?2:e;if(isFinite(c-l)){if(n){for(;c>l;l++)for(var h=1;f>h;h++)a.push(o(l)*h);a.push(o(l))}else for(a.push(o(l));l++<c;)for(var h=f-1;h>0;h--)a.push(o(l)*h);for(l=0;a[l]<u;l++);for(c=a.length;a[c-1]>s;c--);a=a.slice(l,c)}return a},a.tickFormat=function(t,e){if(!arguments.length)return As;arguments.length<2?e=As:"function"!=typeof e&&(e=pa.format(e));var r,u=Math.max(.1,t/a.ticks().length),s=n?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/o(s(i(t)+r))<=u?e(t):""}},a.copy=function(){return so(t.copy(),e,n,r)},eo(a,t)}function lo(t,e,n){function r(e){return t(i(e))}var i=co(e),o=co(1/e);return r.invert=function(e){return o(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(i)),r):n},r.ticks=function(t){return io(n,t)},r.tickFormat=function(t,e){return oo(n,t,e)},r.nice=function(t){return r.domain(no(n,t))},r.exponent=function(a){return arguments.length?(i=co(e=a),o=co(1/e),t.domain(n.map(i)),r):e},r.copy=function(){return lo(t.copy(),e,n)},eo(r,t)}function co(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function fo(t,e){function n(n){return o[((i.get(n)||("range"===e.t?i.set(n,t.push(n)):NaN))-1)%o.length]}function r(e,n){return pa.range(t.length).map(function(t){return e+n*t})}var i,o,a;return n.domain=function(r){if(!arguments.length)return t;t=[],i=new d;for(var o,a=-1,u=r.length;++a<u;)i.has(o=r[a])||i.set(o,t.push(o));return n[e.t].apply(n,e.a)},n.range=function(t){return arguments.length?(o=t,a=0,e={t:"range",a:arguments},n):o},n.rangePoints=function(i,u){arguments.length<2&&(u=0);var s=i[0],l=i[1],c=t.length<2?(s=(s+l)/2,0):(l-s)/(t.length-1+u);return o=r(s+c*u/2,c),a=0,e={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(i,u){arguments.length<2&&(u=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+u)|0;return o=r(s+Math.round(c*u/2+(l-s-(t.length-1+u)*c)/2),c),a=0,e={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(i,u,s){arguments.length<2&&(u=0),arguments.length<3&&(s=u);var l=i[1]<i[0],c=i[l-0],f=i[1-l],h=(f-c)/(t.length-u+2*s);return o=r(c+h*s,h),l&&o.reverse(),a=h*(1-u),e={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,u,s){arguments.length<2&&(u=0),arguments.length<3&&(s=u);var l=i[1]<i[0],c=i[l-0],f=i[1-l],h=Math.floor((f-c)/(t.length-u+2*s));return o=r(c+Math.round((f-c-(t.length-u)*h)/2),h),l&&o.reverse(),a=Math.round(h*(1-u)),e={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return a},n.rangeExtent=function(){return Vi(e.a[0])},n.copy=function(){return fo(t,e)},n.domain(t)}function ho(t,e){function n(){var n=0,o=e.length;for(i=[];++n<o;)i[n-1]=pa.quantile(t,n/o);return r}function r(t){return isNaN(t=+t)?void 0:e[pa.bisect(i,t)]}var i;return r.domain=function(e){return arguments.length?(t=e.map(s).filter(l).sort(u),n()):t},r.range=function(t){return arguments.length?(e=t,n()):e},r.quantiles=function(){return i},r.invertExtent=function(n){return n=e.indexOf(n),0>n?[NaN,NaN]:[n>0?i[n-1]:t[0],n<i.length?i[n]:t[t.length-1]]},r.copy=function(){return ho(t,e)},n()}function po(t,e,n){function r(e){return n[Math.max(0,Math.min(a,Math.floor(o*(e-t))))]}function i(){return o=n.length/(e-t),a=n.length-1,r}var o,a;return r.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],i()):[t,e]},r.range=function(t){return arguments.length?(n=t,i()):n},r.invertExtent=function(e){return e=n.indexOf(e),e=0>e?NaN:e/o+t,[e,e+1/o]},r.copy=function(){return po(t,e,n)},i()}function go(t,e){function n(n){return n>=n?e[pa.bisect(t,n)]:void 0}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(t){return arguments.length?(e=t,n):e},n.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]},n.copy=function(){return go(t,e)},n}function vo(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=n.map(e),e):t},e.ticks=function(e){return io(t,e)},e.tickFormat=function(e,n){return oo(t,e,n)},e.copy=function(){return vo(t)},e}function mo(){return 0}function yo(t){return t.innerRadius}function xo(t){return t.outerRadius}function bo(t){return t.startAngle}function wo(t){return t.endAngle}function Mo(t){return t&&t.padAngle}function ko(t,e,n,r){return(t-n)*e-(e-r)*t>0?0:1}function _o(t,e,n,r,i){var o=t[0]-e[0],a=t[1]-e[1],u=(i?r:-r)/Math.sqrt(o*o+a*a),s=u*a,l=-u*o,c=t[0]+s,f=t[1]+l,h=e[0]+s,p=e[1]+l,d=(c+h)/2,g=(f+p)/2,v=h-c,m=p-f,y=v*v+m*m,x=n-r,b=c*p-h*f,w=(0>m?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),M=(b*m-v*w)/y,k=(-b*v-m*w)/y,_=(b*m+v*w)/y,N=(-b*v+m*w)/y,S=M-d,C=k-g,E=_-d,T=N-g;return S*S+C*C>E*E+T*T&&(M=_,k=N),[[M-s,k-l],[M*n/x,k*n/x]]}function No(t){function e(e){function a(){l.push("M",o(t(c),u))}for(var s,l=[],c=[],f=-1,h=e.length,p=Lt(n),d=Lt(r);++f<h;)i.call(this,s=e[f],f)?c.push([+p.call(this,s,f),+d.call(this,s,f)]):c.length&&(a(),
c=[]);return c.length&&a(),l.length?l.join(""):null}var n=jn,r=zn,i=je,o=So,a=o.key,u=.7;return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(a="function"==typeof t?o=t:(o=Hs.get(t)||So).key,e):a},e.tension=function(t){return arguments.length?(u=t,e):u},e}function So(t){return t.length>1?t.join("L"):t+"Z"}function Co(t){return t.join("L")+"Z"}function Eo(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function To(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function Ao(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function Lo(t,e){return t.length<4?So(t):t[1]+jo(t.slice(1,-1),zo(t,e))}function Do(t,e){return t.length<3?Co(t):t[0]+jo((t.push(t[0]),t),zo([t[t.length-2]].concat(t,[t[1]]),e))}function qo(t,e){return t.length<3?So(t):t[0]+jo(t,zo(t,e))}function jo(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return So(t);var n=t.length!=e.length,r="",i=t[0],o=t[1],a=e[0],u=a,s=1;if(n&&(r+="Q"+(o[0]-2*a[0]/3)+","+(o[1]-2*a[1]/3)+","+o[0]+","+o[1],i=t[1],s=2),e.length>1){u=e[1],o=t[s],s++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1];for(var l=2;l<e.length;l++,s++)o=t[s],u=e[l],r+="S"+(o[0]-u[0])+","+(o[1]-u[1])+","+o[0]+","+o[1]}if(n){var c=t[s];r+="Q"+(o[0]+2*u[0]/3)+","+(o[1]+2*u[1]/3)+","+c[0]+","+c[1]}return r}function zo(t,e){for(var n,r=[],i=(1-e)/2,o=t[0],a=t[1],u=1,s=t.length;++u<s;)n=o,o=a,a=t[u],r.push([i*(a[0]-n[0]),i*(a[1]-n[1])]);return r}function Ro(t){if(t.length<3)return So(t);var e=1,n=t.length,r=t[0],i=r[0],o=r[1],a=[i,i,i,(r=t[1])[0]],u=[o,o,o,r[1]],s=[i,",",o,"L",Fo(Fs,a),",",Fo(Fs,u)];for(t.push(t[n-1]);++e<=n;)r=t[e],a.shift(),a.push(r[0]),u.shift(),u.push(r[1]),Bo(s,a,u);return t.pop(),s.push("L",r),s.join("")}function Ho(t){if(t.length<4)return So(t);for(var e,n=[],r=-1,i=t.length,o=[0],a=[0];++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);for(n.push(Fo(Fs,o)+","+Fo(Fs,a)),--r;++r<i;)e=t[r],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Bo(n,o,a);return n.join("")}function Po(t){for(var e,n,r=-1,i=t.length,o=i+4,a=[],u=[];++r<4;)n=t[r%i],a.push(n[0]),u.push(n[1]);for(e=[Fo(Fs,a),",",Fo(Fs,u)],--r;++r<o;)n=t[r%i],a.shift(),a.push(n[0]),u.shift(),u.push(n[1]),Bo(e,a,u);return e.join("")}function Oo(t,e){var n=t.length-1;if(n)for(var r,i,o=t[0][0],a=t[0][1],u=t[n][0]-o,s=t[n][1]-a,l=-1;++l<=n;)r=t[l],i=l/n,r[0]=e*r[0]+(1-e)*(o+i*u),r[1]=e*r[1]+(1-e)*(a+i*s);return Ro(t)}function Fo(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Bo(t,e,n){t.push("C",Fo(Ps,e),",",Fo(Ps,n),",",Fo(Os,e),",",Fo(Os,n),",",Fo(Fs,e),",",Fo(Fs,n))}function Xo(t,e){return(e[1]-t[1])/(e[0]-t[0])}function Uo(t){for(var e=0,n=t.length-1,r=[],i=t[0],o=t[1],a=r[0]=Xo(i,o);++e<n;)r[e]=(a+(a=Xo(i=o,o=t[e+1])))/2;return r[e]=a,r}function Io(t){for(var e,n,r,i,o=[],a=Uo(t),u=-1,s=t.length-1;++u<s;)e=Xo(t[u],t[u+1]),Na(e)<Ba?a[u]=a[u+1]=0:(n=a[u]/e,r=a[u+1]/e,i=n*n+r*r,i>9&&(i=3*e/Math.sqrt(i),a[u]=i*n,a[u+1]=i*r));for(u=-1;++u<=s;)i=(t[Math.min(s,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+a[u]*a[u])),o.push([i||0,a[u]*i||0]);return o}function Yo(t){return t.length<3?So(t):t[0]+jo(t,Io(t))}function $o(t){for(var e,n,r,i=-1,o=t.length;++i<o;)e=t[i],n=e[0],r=e[1]-$a,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function Wo(t){function e(e){function s(){g.push("M",u(t(m),f),c,l(t(v.reverse()),f),"Z")}for(var h,p,d,g=[],v=[],m=[],y=-1,x=e.length,b=Lt(n),w=Lt(i),M=n===r?function(){return p}:Lt(r),k=i===o?function(){return d}:Lt(o);++y<x;)a.call(this,h=e[y],y)?(v.push([p=+b.call(this,h,y),d=+w.call(this,h,y)]),m.push([+M.call(this,h,y),+k.call(this,h,y)])):v.length&&(s(),v=[],m=[]);return v.length&&s(),g.length?g.join(""):null}var n=jn,r=jn,i=0,o=zn,a=je,u=So,s=u.key,l=u,c="L",f=.7;return e.x=function(t){return arguments.length?(n=r=t,e):r},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(i=o=t,e):o},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(o=t,e):o},e.defined=function(t){return arguments.length?(a=t,e):a},e.interpolate=function(t){return arguments.length?(s="function"==typeof t?u=t:(u=Hs.get(t)||So).key,l=u.reverse||u,c=u.closed?"M":"L",e):s},e.tension=function(t){return arguments.length?(f=t,e):f},e}function Vo(t){return t.radius}function Jo(t){return[t.x,t.y]}function Zo(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]-$a;return[n*Math.cos(r),n*Math.sin(r)]}}function Go(){return 64}function Qo(){return"circle"}function Ko(t){var e=Math.sqrt(t/Ua);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function ta(t){return function(){var e,n,r;(e=this[t])&&(r=e[n=e.active])&&(r.timer.c=null,r.timer.t=NaN,--e.count?delete e[n]:delete this[t],e.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function ea(t,e,n){return Aa(t,Ws),t.namespace=e,t.id=n,t}function na(t,e,n,r){var i=t.id,o=t.namespace;return V(t,"function"==typeof n?function(t,a,u){t[o][i].tween.set(e,r(n.call(t,t.__data__,a,u)))}:(n=r(n),function(t){t[o][i].tween.set(e,n)}))}function ra(t){return null==t&&(t=""),function(){this.textContent=t}}function ia(t){return null==t?"__transition__":"__transition_"+t+"__"}function oa(t,e,n,r,i){function o(i){function o(n){var i=a.active,o=a[i];o&&(o.timer.c=null,o.timer.t=NaN,--a.count,delete a[i],o.event&&o.event.interrupt.call(t,t.__data__,o.index));for(var p in a)if(r>+p){var g=a[p];g.timer.c=null,g.timer.t=NaN,--a.count,delete a[p]}a.active=r,u.event&&u.event.start.call(t,t.__data__,e),u.tween.forEach(function(n,r){(r=r.call(t,t.__data__,e))&&d.push(r)}),h=u.ease,f=u.duration,l.c=c,Rt(function(){return l.c&&c(n||1)&&(l.c=null,l.t=NaN),1},0,s)}function c(i){for(var o=i/f,s=h(o),l=d.length;l>0;)d[--l].call(t,s);return o>=1?(u.event&&u.event.end.call(t,t.__data__,e),--a.count?delete a[r]:delete t[n],1):void 0}var f,h,p=u.delay,d=[];return l.t=p+s,i>=p?o(i-p):void(l.c=o)}var a=t[n]||(t[n]={active:0,count:0}),u=a[r];if(!u){var s=i.time,l=Rt(o,0,s);u=a[r]={tween:new d,time:s,timer:l,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++a.count}}function aa(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function ua(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function sa(t){return t.toISOString()}function la(t,e,n){function r(e){return t(e)}function i(t,n){var r=t[1]-t[0],i=r/n,o=pa.bisect(nl,i);return o==nl.length?[e.year,ro(t.map(function(t){return t/31536e6}),n)[2]]:o?e[i/nl[o-1]<nl[o]/i?o-1:o]:[ol,ro(t,n)[2]]}return r.invert=function(e){return ca(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(ca)},r.nice=function(t,e){function n(n){return!isNaN(n)&&!t.range(n,ca(+n+1),e).length}var o=r.domain(),a=Vi(o),u=null==t?i(a,10):"number"==typeof t&&i(a,t);return u&&(t=u[0],e=u[1]),r.domain(Gi(o,e>1?{floor:function(e){for(;n(e=t.floor(e));)e=ca(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=ca(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Vi(r.domain()),o=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return o&&(t=o[0],e=o[1]),t.range(n[0],ca(+n[1]+1),1>e?1:e)},r.tickFormat=function(){return n},r.copy=function(){return la(t.copy(),e,n)},eo(r,t)}function ca(t){return new Date(t)}function fa(t){return JSON.parse(t.responseText)}function ha(t){var e=va.createRange();return e.selectNode(va.body),e.createContextualFragment(t.responseText)}var pa={version:"3.5.7"},da=[].slice,ga=function(t){return da.call(t)},va=this.document;if(va)try{ga(va.documentElement.childNodes)[0].nodeType}catch(ma){ga=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),va)try{va.createElement("DIV").style.setProperty("opacity",0,"")}catch(ya){var xa=this.Element.prototype,ba=xa.setAttribute,wa=xa.setAttributeNS,Ma=this.CSSStyleDeclaration.prototype,ka=Ma.setProperty;xa.setAttribute=function(t,e){ba.call(this,t,e+"")},xa.setAttributeNS=function(t,e,n){wa.call(this,t,e,n+"")},Ma.setProperty=function(t,e,n){ka.call(this,t,e+"",n)}}pa.ascending=u,pa.descending=function(t,e){return t>e?-1:e>t?1:e>=t?0:NaN},pa.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<o;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=e.call(t,t[i],i))&&n>r&&(n=r)}return n},pa.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<o;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=e.call(t,t[i],i))&&r>n&&(n=r)}return n},pa.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o<a;)if(null!=(r=t[o])&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;++o<a;)if(null!=(r=e.call(t,t[o],o))&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=e.call(t,t[o],o))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},pa.sum=function(t,e){var n,r=0,i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)l(n=+t[o])&&(r+=n);else for(;++o<i;)l(n=+e.call(t,t[o],o))&&(r+=n);return r},pa.mean=function(t,e){var n,r=0,i=t.length,o=-1,a=i;if(1===arguments.length)for(;++o<i;)l(n=s(t[o]))?r+=n:--a;else for(;++o<i;)l(n=s(e.call(t,t[o],o)))?r+=n:--a;return a?r/a:void 0},pa.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i},pa.median=function(t,e){var n,r=[],i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)l(n=s(t[o]))&&r.push(n);else for(;++o<i;)l(n=s(e.call(t,t[o],o)))&&r.push(n);return r.length?pa.quantile(r.sort(u),.5):void 0},pa.variance=function(t,e){var n,r,i=t.length,o=0,a=0,u=-1,c=0;if(1===arguments.length)for(;++u<i;)l(n=s(t[u]))&&(r=n-o,o+=r/++c,a+=r*(n-o));else for(;++u<i;)l(n=s(e.call(t,t[u],u)))&&(r=n-o,o+=r/++c,a+=r*(n-o));return c>1?a/(c-1):void 0},pa.deviation=function(){var t=pa.variance.apply(this,arguments);return t?Math.sqrt(t):t};var _a=c(u);pa.bisectLeft=_a.left,pa.bisect=pa.bisectRight=_a.right,pa.bisector=function(t){return c(1===t.length?function(e,n){return u(t(e),n)}:t)},pa.shuffle=function(t,e,n){(o=arguments.length)<3&&(n=t.length,2>o&&(e=0));for(var r,i,o=n-e;o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},pa.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},pa.pairs=function(t){for(var e,n=0,r=t.length-1,i=t[0],o=new Array(0>r?0:r);r>n;)o[n]=[e=i,i=t[++n]];return o},pa.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,e=pa.min(arguments,f),n=new Array(e);++t<e;)for(var r,i=-1,o=n[t]=new Array(r);++i<r;)o[i]=arguments[i][t];return n},pa.transpose=function(t){return pa.zip.apply(pa,t)},pa.keys=function(t){var e=[];for(var n in t)e.push(n);return e},pa.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},pa.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},pa.merge=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(r=t[i],e=r.length;--e>=0;)n[--a]=r[e];return n};var Na=Math.abs;pa.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n===1/0)throw new Error("infinite range");var r,i=[],o=h(Na(n)),a=-1;if(t*=o,e*=o,n*=o,0>n)for(;(r=t+n*++a)>e;)i.push(r/o);else for(;(r=t+n*++a)<e;)i.push(r/o);return i},pa.map=function(t,e){var n=new d;if(t instanceof d)t.forEach(function(t,e){n.set(t,e)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(1===arguments.length)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e.call(t,r=t[i],i),r)}else for(var a in t)n.set(a,t[a]);return n};var Sa="__proto__",Ca="\x00";p(d,{has:m,get:function(t){return this._[g(t)]},set:function(t,e){return this._[g(t)]=e},remove:y,keys:x,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:v(e),value:this._[e]});return t},size:b,empty:w,forEach:function(t){for(var e in this._)t.call(this,v(e),this._[e])}}),pa.nest=function(){function t(e,a,u){if(u>=o.length)return r?r.call(i,a):n?a.sort(n):a;for(var s,l,c,f,h=-1,p=a.length,g=o[u++],v=new d;++h<p;)(f=v.get(s=g(l=a[h])))?f.push(l):v.set(s,[l]);return e?(l=e(),c=function(n,r){l.set(n,t(e,r,u))}):(l={},c=function(n,r){l[n]=t(e,r,u)}),v.forEach(c),l}function e(t,n){if(n>=o.length)return t;var r=[],i=a[n++];return t.forEach(function(t,i){r.push({key:t,values:e(i,n)})}),i?r.sort(function(t,e){return i(t.key,e.key)}):r}var n,r,i={},o=[],a=[];return i.map=function(e,n){return t(n,e,0)},i.entries=function(n){return e(t(pa.map,n,0),0)},i.key=function(t){return o.push(t),i},i.sortKeys=function(t){return a[o.length-1]=t,i},i.sortValues=function(t){return n=t,i},i.rollup=function(t){return r=t,i},i},pa.set=function(t){var e=new M;if(t)for(var n=0,r=t.length;r>n;++n)e.add(t[n]);return e},p(M,{has:m,add:function(t){return this._[g(t+="")]=!0,t},remove:y,values:x,size:b,empty:w,forEach:function(t){for(var e in this._)t.call(this,v(e))}}),pa.behavior={},pa.rebind=function(t,e){for(var n,r=1,i=arguments.length;++r<i;)t[n=arguments[r]]=_(t,e,e[n]);return t};var Ea=["webkit","ms","moz","Moz","o","O"];pa.dispatch=function(){for(var t=new C,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=E(t);return t},C.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},pa.event=null,pa.requote=function(t){return t.replace(Ta,"\\$&")};var Ta=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Aa={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},La=function(t,e){return e.querySelector(t)},Da=function(t,e){return e.querySelectorAll(t)},qa=function(t,e){var n=t.matches||t[N(t,"matchesSelector")];return(qa=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(La=function(t,e){return Sizzle(t,e)[0]||null},Da=Sizzle,qa=Sizzle.matchesSelector),pa.selection=function(){return pa.select(va.documentElement)};var ja=pa.selection.prototype=[];ja.select=function(t){var e,n,r,i,o=[];t=q(t);for(var a=-1,u=this.length;++a<u;){o.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=-1,l=r.length;++s<l;)(i=r[s])?(e.push(n=t.call(i,i.__data__,s,a)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return D(o)},ja.selectAll=function(t){var e,n,r=[];t=j(t);for(var i=-1,o=this.length;++i<o;)for(var a=this[i],u=-1,s=a.length;++u<s;)(n=a[u])&&(r.push(e=ga(t.call(n,n.__data__,u,i))),e.parentNode=n);return D(r)};var za={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/"};pa.ns={prefix:za,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),za.hasOwnProperty(n)?{space:za[n],local:t}:t}},ja.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=pa.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(z(e,t[e]));return this}return this.each(z(t,e))},ja.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=P(t)).length,i=-1;if(e=n.classList){for(;++i<r;)if(!e.contains(t[i]))return!1}else for(e=n.getAttribute("class");++i<r;)if(!H(t[i]).test(e))return!1;return!0}for(e in t)this.each(O(e,t[e]));return this}return this.each(O(t,e))},ja.style=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(e="");for(n in t)this.each(B(n,t[n],e));return this}if(2>r){var i=this.node();return a(i).getComputedStyle(i,null).getPropertyValue(t)}n=""}return this.each(B(t,e,n))},ja.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(X(e,t[e]));return this}return this.each(X(t,e))},ja.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},ja.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},ja.append=function(t){return t=U(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},ja.insert=function(t,e){return t=U(t),e=q(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},ja.remove=function(){return this.each(I)},ja.data=function(t,e){function n(t,n){var r,i,o,a=t.length,c=n.length,f=Math.min(a,c),h=new Array(c),p=new Array(c),g=new Array(a);if(e){var v,m=new d,y=new Array(a);for(r=-1;++r<a;)(i=t[r])&&(m.has(v=e.call(i,i.__data__,r))?g[r]=i:m.set(v,i),y[r]=v);for(r=-1;++r<c;)(i=m.get(v=e.call(n,o=n[r],r)))?i!==!0&&(h[r]=i,i.__data__=o):p[r]=Y(o),m.set(v,!0);for(r=-1;++r<a;)r in y&&m.get(y[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<f;)i=t[r],o=n[r],i?(i.__data__=o,h[r]=i):p[r]=Y(o);for(;c>r;++r)p[r]=Y(n[r]);for(;a>r;++r)g[r]=t[r]}p.update=h,p.parentNode=h.parentNode=g.parentNode=t.parentNode,u.push(p),s.push(h),l.push(g)}var r,i,o=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++o<a;)(i=r[o])&&(t[o]=i.__data__);return t}var u=J([]),s=D([]),l=D([]);if("function"==typeof t)for(;++o<a;)n(r=this[o],t.call(r,r.parentNode.__data__,o));else for(;++o<a;)n(r=this[o],t);return s.enter=function(){return u},s.exit=function(){return l},s},ja.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},ja.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=$(t));for(var o=0,a=this.length;a>o;o++){i.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var u=0,s=n.length;s>u;u++)(r=n[u])&&t.call(r,r.__data__,u,o)&&e.push(r)}return D(i)},ja.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],i=r.length-1,o=r[i];--i>=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},ja.sort=function(t){t=W.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},ja.each=function(t){return V(this,function(e,n,r){t.call(e,e.__data__,n,r)})},ja.call=function(t){var e=ga(arguments);return t.apply(e[0]=this,e),this},ja.empty=function(){return!this.node()},ja.node=function(){for(var t=0,e=this.length;e>t;t++)for(var n=this[t],r=0,i=n.length;i>r;r++){var o=n[r];if(o)return o}return null},ja.size=function(){var t=0;return V(this,function(){++t}),t};var Ra=[];pa.selection.enter=J,pa.selection.enter.prototype=Ra,Ra.append=ja.append,Ra.empty=ja.empty,Ra.node=ja.node,Ra.call=ja.call,Ra.size=ja.size,Ra.select=function(t){for(var e,n,r,i,o,a=[],u=-1,s=this.length;++u<s;){r=(i=this[u]).update,a.push(e=[]),e.parentNode=i.parentNode;for(var l=-1,c=i.length;++l<c;)(o=i[l])?(e.push(r[l]=n=t.call(i.parentNode,o.__data__,l,u)),n.__data__=o.__data__):e.push(null)}return D(a)},Ra.insert=function(t,e){return arguments.length<2&&(e=Z(this)),ja.insert.call(this,t,e)},pa.select=function(t){var e;return"string"==typeof t?(e=[La(t,va)],e.parentNode=va.documentElement):(e=[t],e.parentNode=o(t)),D([e])},pa.selectAll=function(t){var e;return"string"==typeof t?(e=ga(Da(t,va)),e.parentNode=va.documentElement):(e=ga(t),e.parentNode=null),D([e])},ja.on=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(e=!1);for(n in t)this.each(G(n,t[n],e));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(G(t,e,n))};var Ha=pa.map({mouseenter:"mouseover",mouseleave:"mouseout"});va&&Ha.forEach(function(t){"on"+t in va&&Ha.remove(t)});var Pa,Oa=0;pa.mouse=function(t){return et(t,A())};var Fa=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;pa.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=A().changedTouches),e)for(var r,i=0,o=e.length;o>i;++i)if((r=e[i]).identifier===n)return et(t,r)},pa.behavior.drag=function(){function t(){this.on("mousedown.drag",i).on("touchstart.drag",o)}function e(t,e,i,o,a){return function(){function u(){var t,n,r=e(h,g);r&&(t=r[0]-x[0],n=r[1]-x[1],d|=t|n,x=r,p({type:"drag",x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:n}))}function s(){e(h,g)&&(m.on(o+v,null).on(a+v,null),y(d&&pa.event.target===f),p({type:"dragend"}))}var l,c=this,f=pa.event.target,h=c.parentNode,p=n.of(c,arguments),d=0,g=t(),v=".drag"+(null==g?"":"-"+g),m=pa.select(i(f)).on(o+v,u).on(a+v,s),y=tt(f),x=e(h,g);r?(l=r.apply(c,arguments),l=[l.x-x[0],l.y-x[1]]):l=[0,0],p({type:"dragstart"})}}var n=L(t,"drag","dragstart","dragend"),r=null,i=e(S,pa.mouse,a,"mousemove","mouseup"),o=e(nt,pa.touch,k,"touchmove","touchend");return t.origin=function(e){return arguments.length?(r=e,t):r},pa.rebind(t,n,"on")},pa.touches=function(t,e){return arguments.length<2&&(e=A().touches),e?ga(e).map(function(e){var n=et(t,e);return n.identifier=e.identifier,n}):[]};var Ba=1e-6,Xa=Ba*Ba,Ua=Math.PI,Ia=2*Ua,Ya=Ia-Ba,$a=Ua/2,Wa=Ua/180,Va=180/Ua,Ja=Math.SQRT2,Za=2,Ga=4;pa.interpolateZoom=function(t,e){var n,r,i=t[0],o=t[1],a=t[2],u=e[0],s=e[1],l=e[2],c=u-i,f=s-o,h=c*c+f*f;if(Xa>h)r=Math.log(l/a)/Ja,n=function(t){return[i+t*c,o+t*f,a*Math.exp(Ja*t*r)]};else{var p=Math.sqrt(h),d=(l*l-a*a+Ga*h)/(2*a*Za*p),g=(l*l-a*a-Ga*h)/(2*l*Za*p),v=Math.log(Math.sqrt(d*d+1)-d),m=Math.log(Math.sqrt(g*g+1)-g);r=(m-v)/Ja,n=function(t){var e=t*r,n=st(v),u=a/(Za*p)*(n*lt(Ja*e+v)-ut(v));return[i+u*c,o+u*f,a*n/st(Ja*e+v)]}}return n.duration=1e3*r,n},pa.behavior.zoom=function(){function t(t){t.on(A,f).on(Ka+".zoom",p).on("dblclick.zoom",d).on(j,h)}function e(t){return[(t[0]-_.x)/_.k,(t[1]-_.y)/_.k]}function n(t){return[t[0]*_.k+_.x,t[1]*_.k+_.y]}function r(t){_.k=Math.max(S[0],Math.min(S[1],t))}function i(t,e){e=n(e),_.x+=t[0]-e[0],_.y+=t[1]-e[1]}function o(e,n,o,a){e.__chart__={x:_.x,y:_.y,k:_.k},r(Math.pow(2,a)),i(v=n,o),e=pa.select(e),C>0&&(e=e.transition().duration(C)),e.call(t.event)}function u(){w&&w.domain(b.range().map(function(t){return(t-_.x)/_.k}).map(b.invert)),k&&k.domain(M.range().map(function(t){return(t-_.y)/_.k}).map(M.invert))}function s(t){E++||t({type:"zoomstart"})}function l(t){u(),t({type:"zoom",scale:_.k,translate:[_.x,_.y]})}function c(t){--E||(t({type:"zoomend"}),v=null)}function f(){function t(){f=1,i(pa.mouse(r),p),l(u)}function n(){h.on(D,null).on(q,null),d(f&&pa.event.target===o),c(u)}var r=this,o=pa.event.target,u=z.of(r,arguments),f=0,h=pa.select(a(r)).on(D,t).on(q,n),p=e(pa.mouse(r)),d=tt(r);$s.call(r),s(u)}function h(){function t(){var t=pa.touches(d);return p=_.k,t.forEach(function(t){t.identifier in v&&(v[t.identifier]=e(t))}),t}function n(){var e=pa.event.target;pa.select(e).on(b,a).on(w,u),M.push(e);for(var n=pa.event.changedTouches,r=0,i=n.length;i>r;++r)v[n[r].identifier]=null;var s=t(),l=Date.now();if(1===s.length){if(500>l-x){var c=s[0];o(d,c,v[c.identifier],Math.floor(Math.log(_.k)/Math.LN2)+1),T()}x=l}else if(s.length>1){var c=s[0],f=s[1],h=c[0]-f[0],p=c[1]-f[1];m=h*h+p*p}}function a(){var t,e,n,o,a=pa.touches(d);$s.call(d);for(var u=0,s=a.length;s>u;++u,o=null)if(n=a[u],o=v[n.identifier]){if(e)break;t=n,e=o}if(o){var c=(c=n[0]-t[0])*c+(c=n[1]-t[1])*c,f=m&&Math.sqrt(c/m);t=[(t[0]+n[0])/2,(t[1]+n[1])/2],e=[(e[0]+o[0])/2,(e[1]+o[1])/2],r(f*p)}x=null,i(t,e),l(g)}function u(){if(pa.event.touches.length){for(var e=pa.event.changedTouches,n=0,r=e.length;r>n;++n)delete v[e[n].identifier];for(var i in v)return void t()}pa.selectAll(M).on(y,null),k.on(A,f).on(j,h),N(),c(g)}var p,d=this,g=z.of(d,arguments),v={},m=0,y=".zoom-"+pa.event.changedTouches[0].identifier,b="touchmove"+y,w="touchend"+y,M=[],k=pa.select(d),N=tt(d);n(),s(g),k.on(A,null).on(j,n)}function p(){var t=z.of(this,arguments);y?clearTimeout(y):($s.call(this),g=e(v=m||pa.mouse(this)),s(t)),y=setTimeout(function(){y=null,c(t)},50),T(),r(Math.pow(2,.002*Qa())*_.k),i(v,g),l(t)}function d(){var t=pa.mouse(this),n=Math.log(_.k)/Math.LN2;o(this,t,e(t),pa.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var g,v,m,y,x,b,w,M,k,_={x:0,y:0,k:1},N=[960,500],S=tu,C=250,E=0,A="mousedown.zoom",D="mousemove.zoom",q="mouseup.zoom",j="touchstart.zoom",z=L(t,"zoomstart","zoom","zoomend");return Ka||(Ka="onwheel"in va?(Qa=function(){return-pa.event.deltaY*(pa.event.deltaMode?120:1)},"wheel"):"onmousewheel"in va?(Qa=function(){return pa.event.wheelDelta},"mousewheel"):(Qa=function(){return-pa.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=z.of(this,arguments),e=_;Is?pa.select(this).transition().each("start.zoom",function(){_=this.__chart__||{x:0,y:0,k:1},s(t)}).tween("zoom:zoom",function(){var n=N[0],r=N[1],i=v?v[0]:n/2,o=v?v[1]:r/2,a=pa.interpolateZoom([(i-_.x)/_.k,(o-_.y)/_.k,n/_.k],[(i-e.x)/e.k,(o-e.y)/e.k,n/e.k]);return function(e){var r=a(e),u=n/r[2];this.__chart__=_={x:i-r[0]*u,y:o-r[1]*u,k:u},l(t)}}).each("interrupt.zoom",function(){c(t)}).each("end.zoom",function(){c(t)}):(this.__chart__=_,s(t),l(t),c(t))})},t.translate=function(e){return arguments.length?(_={x:+e[0],y:+e[1],k:_.k},u(),t):[_.x,_.y]},t.scale=function(e){return arguments.length?(_={x:_.x,y:_.y,k:null},r(+e),u(),t):_.k},t.scaleExtent=function(e){return arguments.length?(S=null==e?tu:[+e[0],+e[1]],t):S},t.center=function(e){return arguments.length?(m=e&&[+e[0],+e[1]],t):m},t.size=function(e){return arguments.length?(N=e&&[+e[0],+e[1]],t):N},t.duration=function(e){return arguments.length?(C=+e,t):C},t.x=function(e){return arguments.length?(w=e,b=e.copy(),_={x:0,y:0,k:1},t):w},t.y=function(e){return arguments.length?(k=e,M=e.copy(),_={x:0,y:0,k:1},t):k},pa.rebind(t,z,"on")};var Qa,Ka,tu=[0,1/0];pa.color=ft,ft.prototype.toString=function(){return this.rgb()+""},pa.hsl=ht;var eu=ht.prototype=new ft;eu.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ht(this.h,this.s,this.l/t)},eu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ht(this.h,this.s,t*this.l)},eu.rgb=function(){return pt(this.h,this.s,this.l)},pa.hcl=dt;var nu=dt.prototype=new ft;nu.brighter=function(t){return new dt(this.h,this.c,Math.min(100,this.l+ru*(arguments.length?t:1)))},nu.darker=function(t){return new dt(this.h,this.c,Math.max(0,this.l-ru*(arguments.length?t:1)))},nu.rgb=function(){return gt(this.h,this.c,this.l).rgb()},pa.lab=vt;var ru=18,iu=.95047,ou=1,au=1.08883,uu=vt.prototype=new ft;uu.brighter=function(t){return new vt(Math.min(100,this.l+ru*(arguments.length?t:1)),this.a,this.b)},uu.darker=function(t){return new vt(Math.max(0,this.l-ru*(arguments.length?t:1)),this.a,this.b)},uu.rgb=function(){return mt(this.l,this.a,this.b)},pa.rgb=Mt;var su=Mt.prototype=new ft;su.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&i>e&&(e=i),n&&i>n&&(n=i),r&&i>r&&(r=i),new Mt(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,r/t))):new Mt(i,i,i)},su.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Mt(t*this.r,t*this.g,t*this.b)},su.hsl=function(){return Ct(this.r,this.g,this.b)},su.toString=function(){return"#"+Nt(this.r)+Nt(this.g)+Nt(this.b)};var lu=pa.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});lu.forEach(function(t,e){lu.set(t,kt(e))}),pa.functor=Lt,pa.xhr=Dt(k),pa.dsv=function(t,e){function n(t,n,o){arguments.length<3&&(o=n,n=null);var a=qt(t,e,null==n?r:i(n),o);return a.row=function(t){return arguments.length?a.response(null==(n=t)?r:i(t)):n},a}function r(t){return n.parse(t.responseText)}function i(t){return function(e){return n.parse(e.responseText,t)}}function o(e){return e.map(a).join(t)}function a(t){return u.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return n.parse=function(t,e){var r;return n.parseRows(t,function(t,n){if(r)return r(t,n-1);var i=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");r=e?function(t,n){return e(i(t),n)}:i})},n.parseRows=function(t,e){function n(){if(c>=l)return a;if(i)return i=!1,o;var e=c;if(34===t.charCodeAt(e)){for(var n=e;n++<l;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}c=n+2;var r=t.charCodeAt(n+1);return 13===r?(i=!0,10===t.charCodeAt(n+2)&&++c):10===r&&(i=!0),t.slice(e+1,n).replace(/""/g,'"')}for(;l>c;){var r=t.charCodeAt(c++),u=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(c)&&(++c,++u);else if(r!==s)continue;return t.slice(e,c-u)}return t.slice(e)}for(var r,i,o={},a={},u=[],l=t.length,c=0,f=0;(r=n())!==a;){for(var h=[];r!==o&&r!==a;)h.push(r),r=n();e&&null==(h=e(h,f++))||u.push(h)}return u},n.format=function(e){if(Array.isArray(e[0]))return n.formatRows(e);var r=new M,i=[];return e.forEach(function(t){for(var e in t)r.has(e)||i.push(r.add(e))}),[i.map(a).join(t)].concat(e.map(function(e){return i.map(function(t){return a(e[t]);
}).join(t)})).join("\n")},n.formatRows=function(t){return t.map(o).join("\n")},n},pa.csv=pa.dsv(",","text/csv"),pa.tsv=pa.dsv("	","text/tab-separated-values");var cu,fu,hu,pu,du=this[N(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};pa.timer=function(){Rt.apply(this,arguments)},pa.timer.flush=function(){Pt(),Ot()},pa.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var gu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Bt);pa.formatPrefix=function(t,e){var n=0;return(t=+t)&&(0>t&&(t*=-1),e&&(t=pa.round(t,Ft(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),gu[8+n/3]};var vu=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,mu=pa.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,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=pa.round(t,Ft(t,e))).toFixed(Math.max(0,Math.min(20,Ft(t*(1+1e-15),e))))}}),yu=pa.time={},xu=Date;It.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(){bu.setUTCDate.apply(this._,arguments)},setDay:function(){bu.setUTCDay.apply(this._,arguments)},setFullYear:function(){bu.setUTCFullYear.apply(this._,arguments)},setHours:function(){bu.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){bu.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){bu.setUTCMinutes.apply(this._,arguments)},setMonth:function(){bu.setUTCMonth.apply(this._,arguments)},setSeconds:function(){bu.setUTCSeconds.apply(this._,arguments)},setTime:function(){bu.setTime.apply(this._,arguments)}};var bu=Date.prototype;yu.year=Yt(function(t){return t=yu.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),yu.years=yu.year.range,yu.years.utc=yu.year.utc.range,yu.day=Yt(function(t){var e=new xu(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),yu.days=yu.day.range,yu.days.utc=yu.day.utc.range,yu.dayOfYear=function(t){var e=yu.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=yu[t]=Yt(function(t){return(t=yu.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=yu.year(t).getDay();return Math.floor((yu.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});yu[t+"s"]=n.range,yu[t+"s"].utc=n.utc.range,yu[t+"OfYear"]=function(t){var n=yu.year(t).getDay();return Math.floor((yu.dayOfYear(t)+(n+e)%7)/7)}}),yu.week=yu.sunday,yu.weeks=yu.sunday.range,yu.weeks.utc=yu.sunday.utc.range,yu.weekOfYear=yu.sundayOfYear;var wu={"-":"",_:" ",0:"0"},Mu=/^\s*\d+/,ku=/^%/;pa.locale=function(t){return{numberFormat:Xt(t),timeFormat:Wt(t)}};var _u=pa.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"]});pa.format=_u.numberFormat,pa.geo={},de.prototype={s:0,t:0,add:function(t){ge(t,this.t,Nu),ge(Nu.s,this.s,this),this.s?this.t+=Nu.t:this.s=Nu.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Nu=new de;pa.geo.stream=function(t,e){t&&Su.hasOwnProperty(t.type)?Su[t.type](t,e):ve(t,e)};var Su={Feature:function(t,e){ve(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)ve(n[r].geometry,e)}},Cu={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){me(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)me(n[r],e,0)},Polygon:function(t,e){ye(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)ye(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)ve(n[r],e)}};pa.geo.area=function(t){return Eu=0,pa.geo.stream(t,Au),Eu};var Eu,Tu=new de,Au={sphere:function(){Eu+=4*Ua},point:S,lineStart:S,lineEnd:S,polygonStart:function(){Tu.reset(),Au.lineStart=xe},polygonEnd:function(){var t=2*Tu;Eu+=0>t?4*Ua+t:t,Au.lineStart=Au.lineEnd=Au.point=S}};pa.geo.bounds=function(){function t(t,e){x.push(b=[c=t,h=t]),f>e&&(f=e),e>p&&(p=e)}function e(e,n){var r=be([e*Wa,n*Wa]);if(m){var i=Me(m,r),o=[i[1],-i[0],0],a=Me(o,i);Ne(a),a=Se(a);var s=e-d,l=s>0?1:-1,g=a[0]*Va*l,v=Na(s)>180;if(v^(g>l*d&&l*e>g)){var y=a[1]*Va;y>p&&(p=y)}else if(g=(g+360)%360-180,v^(g>l*d&&l*e>g)){var y=-a[1]*Va;f>y&&(f=y)}else f>n&&(f=n),n>p&&(p=n);v?d>e?u(c,e)>u(c,h)&&(h=e):u(e,h)>u(c,h)&&(c=e):h>=c?(c>e&&(c=e),e>h&&(h=e)):e>d?u(c,e)>u(c,h)&&(h=e):u(e,h)>u(c,h)&&(c=e)}else t(e,n);m=r,d=e}function n(){w.point=e}function r(){b[0]=c,b[1]=h,w.point=t,m=null}function i(t,n){if(m){var r=t-d;y+=Na(r)>180?r+(r>0?360:-360):r}else g=t,v=n;Au.point(t,n),e(t,n)}function o(){Au.lineStart()}function a(){i(g,v),Au.lineEnd(),Na(y)>Ba&&(c=-(h=180)),b[0]=c,b[1]=h,m=null}function u(t,e){return(e-=t)<0?e+360:e}function s(t,e){return t[0]-e[0]}function l(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var c,f,h,p,d,g,v,m,y,x,b,w={point:t,lineStart:n,lineEnd:r,polygonStart:function(){w.point=i,w.lineStart=o,w.lineEnd=a,y=0,Au.polygonStart()},polygonEnd:function(){Au.polygonEnd(),w.point=t,w.lineStart=n,w.lineEnd=r,0>Tu?(c=-(h=180),f=-(p=90)):y>Ba?p=90:-Ba>y&&(f=-90),b[0]=c,b[1]=h}};return function(t){p=h=-(c=f=1/0),x=[],pa.geo.stream(t,w);var e=x.length;if(e){x.sort(s);for(var n,r=1,i=x[0],o=[i];e>r;++r)n=x[r],l(n[0],i)||l(n[1],i)?(u(i[0],n[1])>u(i[0],i[1])&&(i[1]=n[1]),u(n[0],i[1])>u(i[0],i[1])&&(i[0]=n[0])):o.push(i=n);for(var a,n,d=-(1/0),e=o.length-1,r=0,i=o[e];e>=r;i=n,++r)n=o[r],(a=u(i[1],n[0]))>d&&(d=a,c=n[0],h=i[1])}return x=b=null,c===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,f],[h,p]]}}(),pa.geo.centroid=function(t){Lu=Du=qu=ju=zu=Ru=Hu=Pu=Ou=Fu=Bu=0,pa.geo.stream(t,Xu);var e=Ou,n=Fu,r=Bu,i=e*e+n*n+r*r;return Xa>i&&(e=Ru,n=Hu,r=Pu,Ba>Du&&(e=qu,n=ju,r=zu),i=e*e+n*n+r*r,Xa>i)?[NaN,NaN]:[Math.atan2(n,e)*Va,at(r/Math.sqrt(i))*Va]};var Lu,Du,qu,ju,zu,Ru,Hu,Pu,Ou,Fu,Bu,Xu={sphere:S,point:Ee,lineStart:Ae,lineEnd:Le,polygonStart:function(){Xu.lineStart=De},polygonEnd:function(){Xu.lineStart=Ae}},Uu=Pe(je,Xe,Ie,[-Ua,-Ua/2]),Iu=1e9;pa.geo.clipExtent=function(){var t,e,n,r,i,o,a={stream:function(t){return i&&(i.valid=!1),i=o(t),i.valid=!0,i},extent:function(u){return arguments.length?(o=Ve(t=+u[0][0],e=+u[0][1],n=+u[1][0],r=+u[1][1]),i&&(i.valid=!1,i=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(pa.geo.conicEqualArea=function(){return Je(Ze)}).raw=Ze,pa.geo.albers=function(){return pa.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},pa.geo.albersUsa=function(){function t(t){var o=t[0],a=t[1];return e=null,n(o,a),e||(r(o,a),e)||i(o,a),e}var e,n,r,i,o=pa.geo.albers(),a=pa.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=pa.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){e=[t,n]}};return t.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?a:i>=.166&&.234>i&&r>=-.214&&-.115>r?u:o).invert(t)},t.stream=function(t){var e=o.stream(t),n=a.stream(t),r=u.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},t.precision=function(e){return arguments.length?(o.precision(e),a.precision(e),u.precision(e),t):o.precision()},t.scale=function(e){return arguments.length?(o.scale(e),a.scale(.35*e),u.scale(e),t.translate(o.translate())):o.scale()},t.translate=function(e){if(!arguments.length)return o.translate();var l=o.scale(),c=+e[0],f=+e[1];return n=o.translate(e).clipExtent([[c-.455*l,f-.238*l],[c+.455*l,f+.238*l]]).stream(s).point,r=a.translate([c-.307*l,f+.201*l]).clipExtent([[c-.425*l+Ba,f+.12*l+Ba],[c-.214*l-Ba,f+.234*l-Ba]]).stream(s).point,i=u.translate([c-.205*l,f+.212*l]).clipExtent([[c-.214*l+Ba,f+.166*l+Ba],[c-.115*l-Ba,f+.234*l-Ba]]).stream(s).point,t},t.scale(1070)};var Yu,$u,Wu,Vu,Ju,Zu,Gu={point:S,lineStart:S,lineEnd:S,polygonStart:function(){$u=0,Gu.lineStart=Ge},polygonEnd:function(){Gu.lineStart=Gu.lineEnd=Gu.point=S,Yu+=Na($u/2)}},Qu={point:Qe,lineStart:S,lineEnd:S,polygonStart:S,polygonEnd:S},Ku={point:en,lineStart:nn,lineEnd:rn,polygonStart:function(){Ku.lineStart=on},polygonEnd:function(){Ku.point=en,Ku.lineStart=nn,Ku.lineEnd=rn}};pa.geo.path=function(){function t(t){return t&&("function"==typeof u&&o.pointRadius(+u.apply(this,arguments)),a&&a.valid||(a=i(o)),pa.geo.stream(t,a)),o.result()}function e(){return a=null,t}var n,r,i,o,a,u=4.5;return t.area=function(t){return Yu=0,pa.geo.stream(t,i(Gu)),Yu},t.centroid=function(t){return qu=ju=zu=Ru=Hu=Pu=Ou=Fu=Bu=0,pa.geo.stream(t,i(Ku)),Bu?[Ou/Bu,Fu/Bu]:Pu?[Ru/Pu,Hu/Pu]:zu?[qu/zu,ju/zu]:[NaN,NaN]},t.bounds=function(t){return Ju=Zu=-(Wu=Vu=1/0),pa.geo.stream(t,i(Qu)),[[Wu,Vu],[Ju,Zu]]},t.projection=function(t){return arguments.length?(i=(n=t)?t.stream||sn(t):k,e()):n},t.context=function(t){return arguments.length?(o=null==(r=t)?new Ke:new an(t),"function"!=typeof u&&o.pointRadius(u),e()):r},t.pointRadius=function(e){return arguments.length?(u="function"==typeof e?e:(o.pointRadius(+e),+e),t):u},t.projection(pa.geo.albersUsa()).context(null)},pa.geo.transform=function(t){return{stream:function(e){var n=new ln(e);for(var r in t)n[r]=t[r];return n}}},ln.prototype={point:function(t,e){this.stream.point(t,e)},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()}},pa.geo.projection=fn,pa.geo.projectionMutator=hn,(pa.geo.equirectangular=function(){return fn(dn)}).raw=dn.invert=dn,pa.geo.rotation=function(t){function e(e){return e=t(e[0]*Wa,e[1]*Wa),e[0]*=Va,e[1]*=Va,e}return t=vn(t[0]%360*Wa,t[1]*Wa,t.length>2?t[2]*Wa:0),e.invert=function(e){return e=t.invert(e[0]*Wa,e[1]*Wa),e[0]*=Va,e[1]*=Va,e},e},gn.invert=dn,pa.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=vn(-t[0]*Wa,-t[1]*Wa,0).invert,i=[];return n(null,null,1,{point:function(t,n){i.push(t=e(t,n)),t[0]*=Va,t[1]*=Va}}),{type:"Polygon",coordinates:[i]}}var e,n,r=[0,0],i=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=bn((e=+r)*Wa,i*Wa),t):e},t.precision=function(r){return arguments.length?(n=bn(e*Wa,(i=+r)*Wa),t):i},t.angle(90)},pa.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Wa,i=t[1]*Wa,o=e[1]*Wa,a=Math.sin(r),u=Math.cos(r),s=Math.sin(i),l=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-s*f*u)*n),s*c+l*f*u)},pa.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return pa.range(Math.ceil(o/v)*v,i,v).map(h).concat(pa.range(Math.ceil(l/m)*m,s,m).map(p)).concat(pa.range(Math.ceil(r/d)*d,n,d).filter(function(t){return Na(t%v)>Ba}).map(c)).concat(pa.range(Math.ceil(u/g)*g,a,g).filter(function(t){return Na(t%m)>Ba}).map(f))}var n,r,i,o,a,u,s,l,c,f,h,p,d=10,g=d,v=90,m=360,y=2.5;return t.lines=function(){return e().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(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(o=+e[0][0],i=+e[1][0],l=+e[0][1],s=+e[1][1],o>i&&(e=o,o=i,i=e),l>s&&(e=l,l=s,s=e),t.precision(y)):[[o,l],[i,s]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),u>a&&(e=u,u=a,a=e),t.precision(y)):[[r,u],[n,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(v=+e[0],m=+e[1],t):[v,m]},t.minorStep=function(e){return arguments.length?(d=+e[0],g=+e[1],t):[d,g]},t.precision=function(e){return arguments.length?(y=+e,c=Mn(u,a,90),f=kn(r,n,y),h=Mn(l,s,90),p=kn(o,i,y),t):y},t.majorExtent([[-180,-90+Ba],[180,90-Ba]]).minorExtent([[-180,-80-Ba],[180,80+Ba]])},pa.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||i.apply(this,arguments)]}}var e,n,r=_n,i=Nn;return t.distance=function(){return pa.geo.distance(e||r.apply(this,arguments),n||i.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(i=e,n="function"==typeof e?null:e,t):i},t.precision=function(){return arguments.length?t:0},t},pa.geo.interpolate=function(t,e){return Sn(t[0]*Wa,t[1]*Wa,e[0]*Wa,e[1]*Wa)},pa.geo.length=function(t){return ts=0,pa.geo.stream(t,es),ts};var ts,es={sphere:S,point:S,lineStart:Cn,lineEnd:S,polygonStart:S,polygonEnd:S},ns=En(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(pa.geo.azimuthalEqualArea=function(){return fn(ns)}).raw=ns;var rs=En(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},k);(pa.geo.azimuthalEquidistant=function(){return fn(rs)}).raw=rs,(pa.geo.conicConformal=function(){return Je(Tn)}).raw=Tn,(pa.geo.conicEquidistant=function(){return Je(An)}).raw=An;var is=En(function(t){return 1/t},Math.atan);(pa.geo.gnomonic=function(){return fn(is)}).raw=is,Ln.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-$a]},(pa.geo.mercator=function(){return Dn(Ln)}).raw=Ln;var os=En(function(){return 1},Math.asin);(pa.geo.orthographic=function(){return fn(os)}).raw=os;var as=En(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(pa.geo.stereographic=function(){return fn(as)}).raw=as,qn.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-$a]},(pa.geo.transverseMercator=function(){var t=Dn(qn),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=qn,pa.geom={},pa.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,i=Lt(n),o=Lt(r),a=t.length,u=[],s=[];for(e=0;a>e;e++)u.push([+i.call(this,t[e],e),+o.call(this,t[e],e),e]);for(u.sort(Hn),e=0;a>e;e++)s.push([u[e][0],-u[e][1]]);var l=Rn(u),c=Rn(s),f=c[0]===l[0],h=c[c.length-1]===l[l.length-1],p=[];for(e=l.length-1;e>=0;--e)p.push(t[u[l[e]][2]]);for(e=+f;e<c.length-h;++e)p.push(t[u[c[e]][2]]);return p}var n=jn,r=zn;return arguments.length?e(t):(e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e)},pa.geom.polygon=function(t){return Aa(t,us),t};var us=pa.geom.polygon.prototype=[];us.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],i=0;++e<n;)t=r,r=this[e],i+=t[1]*r[0]-t[0]*r[1];return.5*i},us.centroid=function(t){var e,n,r=-1,i=this.length,o=0,a=0,u=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=u,u=this[r],n=e[0]*u[1]-u[0]*e[1],o+=(e[0]+u[0])*n,a+=(e[1]+u[1])*n;return[o*t,a*t]},us.clip=function(t){for(var e,n,r,i,o,a,u=Fn(t),s=-1,l=this.length-Fn(this),c=this[l-1];++s<l;){for(e=t.slice(),t.length=0,i=this[s],o=e[(r=e.length-u)-1],n=-1;++n<r;)a=e[n],Pn(a,c,i)?(Pn(o,c,i)||t.push(On(o,a,c,i)),t.push(a)):Pn(o,c,i)&&t.push(On(o,a,c,i)),o=a;u&&t.push(t[0]),c=i}return t};var ss,ls,cs,fs,hs,ps=[],ds=[];Vn.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)t=e[n].edge,t.b&&t.a||e.splice(n,1);return e.sort(Zn),e.length},ar.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}},ur.prototype={insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=fr(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(lr(this,n),t=n,n=t.U),n.C=!1,r.C=!0,cr(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(cr(this,n),t=n,n=t.U),n.C=!1,r.C=!0,lr(this,r))),n=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 e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?fr(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,lr(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,cr(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,lr(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,cr(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,lr(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,cr(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},pa.geom.voronoi=function(t){function e(t){var e=new Array(t.length),r=u[0][0],i=u[0][1],o=u[1][0],a=u[1][1];return hr(n(t),u).cells.forEach(function(n,u){var s=n.edges,l=n.site,c=e[u]=s.length?s.map(function(t){var e=t.start();return[e.x,e.y]}):l.x>=r&&l.x<=o&&l.y>=i&&l.y<=a?[[r,a],[o,a],[o,i],[r,i]]:[];c.point=t[u]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(o(t,e)/Ba)*Ba,y:Math.round(a(t,e)/Ba)*Ba,i:e}})}var r=jn,i=zn,o=r,a=i,u=gs;return t?e(t):(e.links=function(t){return hr(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return hr(n(t)).cells.forEach(function(n,r){for(var i,o,a=n.site,u=n.edges.sort(Zn),s=-1,l=u.length,c=u[l-1].edge,f=c.l===a?c.r:c.l;++s<l;)i=c,o=f,c=u[s].edge,f=c.l===a?c.r:c.l,r<o.i&&r<f.i&&dr(a,o,f)<0&&e.push([t[r],t[o.i],t[f.i]])}),e},e.x=function(t){return arguments.length?(o=Lt(r=t),e):r},e.y=function(t){return arguments.length?(a=Lt(i=t),e):i},e.clipExtent=function(t){return arguments.length?(u=null==t?gs:t,e):u===gs?null:u},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):u===gs?null:u&&u[1]},e)};var gs=[[-1e6,-1e6],[1e6,1e6]];pa.geom.delaunay=function(t){return pa.geom.voronoi().triangles(t)},pa.geom.quadtree=function(t,e,n,r,i){function o(t){function o(t,e,n,r,i,o,a,u){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var s=t.x,c=t.y;if(null!=s)if(Na(s-n)+Na(c-r)<.01)l(t,e,n,r,i,o,a,u);else{var f=t.point;t.x=t.y=t.point=null,l(t,f,s,c,i,o,a,u),l(t,e,n,r,i,o,a,u)}else t.x=n,t.y=r,t.point=e}else l(t,e,n,r,i,o,a,u)}function l(t,e,n,r,i,a,u,s){var l=.5*(i+u),c=.5*(a+s),f=n>=l,h=r>=c,p=h<<1|f;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=mr()),f?i=l:u=l,h?a=c:s=c,o(t,e,n,r,i,a,u,s)}var c,f,h,p,d,g,v,m,y,x=Lt(u),b=Lt(s);if(null!=e)g=e,v=n,m=r,y=i;else if(m=y=-(g=v=1/0),f=[],h=[],d=t.length,a)for(p=0;d>p;++p)c=t[p],c.x<g&&(g=c.x),c.y<v&&(v=c.y),c.x>m&&(m=c.x),c.y>y&&(y=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>m&&(m=w),M>y&&(y=M),f.push(w),h.push(M)}var k=m-g,_=y-v;k>_?y=v+k:m=g+_;var N=mr();if(N.add=function(t){o(N,t,+x(t,++p),+b(t,p),g,v,m,y)},N.visit=function(t){yr(t,N,g,v,m,y)},N.find=function(t){return xr(N,t[0],t[1],g,v,m,y)},p=-1,null==e){for(;++p<d;)o(N,t[p],f[p],h[p],g,v,m,y);--p}else t.forEach(N.add);return f=h=t=c=null,N}var a,u=jn,s=zn;return(a=arguments.length)?(u=gr,s=vr,3===a&&(i=n,r=e,n=e=0),o(t)):(o.x=function(t){return arguments.length?(u=t,o):u},o.y=function(t){return arguments.length?(s=t,o):s},o.extent=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),o):null==e?null:[[e,n],[r,i]]},o.size=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=n=0,r=+t[0],i=+t[1]),o):null==e?null:[r-e,i-n]},o)},pa.interpolateRgb=br,pa.interpolateObject=wr,pa.interpolateNumber=Mr,pa.interpolateString=kr;var vs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ms=new RegExp(vs.source,"g");pa.interpolate=_r,pa.interpolators=[function(t,e){var n=typeof e;return("string"===n?lu.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?br:kr:e instanceof ft?br:Array.isArray(e)?Nr:"object"===n&&isNaN(e)?wr:Mr)(t,e)}],pa.interpolateArray=Nr;var ys=function(){return k},xs=pa.map({linear:ys,poly:Dr,quad:function(){return Tr},cubic:function(){return Ar},sin:function(){return qr},exp:function(){return jr},circle:function(){return zr},elastic:Rr,back:Hr,bounce:function(){return Pr}}),bs=pa.map({"in":k,out:Cr,"in-out":Er,"out-in":function(t){return Er(Cr(t))}});pa.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=xs.get(n)||ys,r=bs.get(r)||k,Sr(r(n.apply(null,da.call(arguments,1))))},pa.interpolateHcl=Or,pa.interpolateHsl=Fr,pa.interpolateLab=Br,pa.interpolateRound=Xr,pa.transform=function(t){var e=va.createElementNS(pa.ns.prefix.svg,"g");return(pa.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Ur(n?n.matrix:ws)})(t)},Ur.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ws={a:1,b:0,c:0,d:1,e:0,f:0};pa.interpolateTransform=Qr,pa.layout={},pa.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(ei(t[n]));return e}},pa.layout.chord=function(){function t(){var t,l,f,h,p,d={},g=[],v=pa.range(o),m=[];for(n=[],r=[],t=0,h=-1;++h<o;){for(l=0,p=-1;++p<o;)l+=i[h][p];g.push(l),m.push(pa.range(o)),t+=l}for(a&&v.sort(function(t,e){return a(g[t],g[e])}),u&&m.forEach(function(t,e){t.sort(function(t,n){return u(i[e][t],i[e][n])})}),t=(Ia-c*o)/t,l=0,h=-1;++h<o;){for(f=l,p=-1;++p<o;){var y=v[h],x=m[y][p],b=i[y][x],w=l,M=l+=b*t;d[y+"-"+x]={index:y,subindex:x,startAngle:w,endAngle:M,value:b}}r[y]={index:y,startAngle:f,endAngle:l,value:(l-f)/t},l+=c}for(h=-1;++h<o;)for(p=h-1;++p<o;){var k=d[h+"-"+p],_=d[p+"-"+h];(k.value||_.value)&&n.push(k.value<_.value?{source:_,target:k}:{source:k,target:_})}s&&e()}function e(){n.sort(function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,r,i,o,a,u,s,l={},c=0;return l.matrix=function(t){return arguments.length?(o=(i=t)&&i.length,n=r=null,l):i},l.padding=function(t){return arguments.length?(c=t,n=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,n=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(u=t,n=null,l):u},l.sortChords=function(t){return arguments.length?(s=t,n&&e(),l):s},l.chords=function(){return n||t(),n},l.groups=function(){return r||t(),r},l},pa.layout.force=function(){function t(t){return function(e,n,r,i){if(e.point!==t){var o=e.cx-t.x,a=e.cy-t.y,u=i-n,s=o*o+a*a;if(s>u*u/m){if(g>s){var l=e.charge/s;t.px-=o*l,t.py-=a*l}return!0}if(e.point&&s&&g>s){var l=e.pointCharge/s;t.px-=o*l,t.py-=a*l}}return!e.charge}}function e(t){t.px=pa.event.x,t.py=pa.event.y,s.resume()}var n,r,i,o,a,u,s={},l=pa.dispatch("start","tick","end"),c=[1,1],f=.9,h=Ms,p=ks,d=-30,g=_s,v=.1,m=.64,y=[],x=[];return s.tick=function(){if((i*=.99)<.005)return n=null,l.end({type:"end",alpha:i=0}),!0;var e,r,s,h,p,g,m,b,w,M=y.length,k=x.length;for(r=0;k>r;++r)s=x[r],h=s.source,p=s.target,b=p.x-h.x,w=p.y-h.y,(g=b*b+w*w)&&(g=i*a[r]*((g=Math.sqrt(g))-o[r])/g,b*=g,w*=g,p.x-=b*(m=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=w*m,h.x+=b*(m=1-m),h.y+=w*m);if((m=i*v)&&(b=c[0]/2,w=c[1]/2,r=-1,m))for(;++r<M;)s=y[r],s.x+=(b-s.x)*m,s.y+=(w-s.y)*m;if(d)for(si(e=pa.geom.quadtree(y),i,u),r=-1;++r<M;)(s=y[r]).fixed||e.visit(t(s));for(r=-1;++r<M;)s=y[r],s.fixed?(s.x=s.px,s.y=s.py):(s.x-=(s.px-(s.px=s.x))*f,s.y-=(s.py-(s.py=s.y))*f);l.tick({type:"tick",alpha:i})},s.nodes=function(t){return arguments.length?(y=t,s):y},s.links=function(t){return arguments.length?(x=t,s):x},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(h="function"==typeof t?t:+t,s):h},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(p="function"==typeof t?t:+t,s):p},s.friction=function(t){return arguments.length?(f=+t,s):f},s.charge=function(t){return arguments.length?(d="function"==typeof t?t:+t,s):d},s.chargeDistance=function(t){return arguments.length?(g=t*t,s):Math.sqrt(g)},s.gravity=function(t){return arguments.length?(v=+t,s):v},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,i?t>0?i=t:(n.c=null,n.t=NaN,n=null,l.start({type:"end",alpha:i=0})):t>0&&(l.start({type:"start",alpha:i=t}),n=Rt(s.tick)),s):i},s.start=function(){function t(t,r){if(!n){for(n=new Array(i),s=0;i>s;++s)n[s]=[];for(s=0;l>s;++s){var o=x[s];n[o.source.index].push(o.target),n[o.target.index].push(o.source)}}for(var a,u=n[e],s=-1,c=u.length;++s<c;)if(!isNaN(a=u[s][t]))return a;return Math.random()*r}var e,n,r,i=y.length,l=x.length,f=c[0],g=c[1];for(e=0;i>e;++e)(r=y[e]).index=e,r.weight=0;for(e=0;l>e;++e)r=x[e],"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(e=0;i>e;++e)r=y[e],isNaN(r.x)&&(r.x=t("x",f)),isNaN(r.y)&&(r.y=t("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(o=[],"function"==typeof h)for(e=0;l>e;++e)o[e]=+h.call(this,x[e],e);else for(e=0;l>e;++e)o[e]=h;if(a=[],"function"==typeof p)for(e=0;l>e;++e)a[e]=+p.call(this,x[e],e);else for(e=0;l>e;++e)a[e]=p;if(u=[],"function"==typeof d)for(e=0;i>e;++e)u[e]=+d.call(this,y[e],e);else for(e=0;i>e;++e)u[e]=d;return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){return r||(r=pa.behavior.drag().origin(k).on("dragstart.force",ii).on("drag.force",e).on("dragend.force",oi)),arguments.length?void this.on("mouseover.force",ai).on("mouseout.force",ui).call(r):r},pa.rebind(s,l,"on")};var Ms=20,ks=1,_s=1/0;pa.layout.hierarchy=function(){function t(i){var o,a=[i],u=[];for(i.depth=0;null!=(o=a.pop());)if(u.push(o),(l=n.call(t,o,o.depth))&&(s=l.length)){for(var s,l,c;--s>=0;)a.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 fi(i,function(t){var n,i;e&&(n=t.children)&&n.sort(e),r&&(i=t.parent)&&(i.value+=t.value)}),u}var e=di,n=hi,r=pi;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(ci(e,function(t){t.children&&(t.value=0)}),fi(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},pa.layout.partition=function(){function t(e,n,r,i){var o=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,o&&(a=o.length)){var a,u,s,l=-1;for(r=e.value?r/e.value:0;++l<a;)t(u=o[l],n,s=u.value*r,i),n+=s}}function e(t){var n=t.children,r=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)r=Math.max(r,e(n[o]));return 1+r}function n(n,o){var a=r.call(this,n,o);return t(a[0],0,i[0],i[1]/e(a[0])),a}var r=pa.layout.hierarchy(),i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},li(n,r)},pa.layout.pie=function(){function t(a){var u,s=a.length,l=a.map(function(n,r){return+e.call(t,n,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=pa.sum(l),g=d?(f-s*p)/d:0,v=pa.range(s),m=[];return null!=n&&v.sort(n===Ns?function(t,e){return l[e]-l[t]}:function(t,e){return n(a[t],a[e])}),v.forEach(function(t){m[t]={data:a[t],value:u=l[t],startAngle:c,endAngle:c+=u*g+p,padAngle:h}}),m}var e=Number,n=Ns,r=0,i=Ia,o=0;return t.value=function(n){return arguments.length?(e=n,t):e},t.sort=function(e){return arguments.length?(n=e,t):n},t.startAngle=function(e){return arguments.length?(r=e,t):r},t.endAngle=function(e){return arguments.length?(i=e,t):i},t.padAngle=function(e){return arguments.length?(o=e,t):o},t};var Ns={};pa.layout.stack=function(){function t(u,s){if(!(h=u.length))return u;var l=u.map(function(n,r){return e.call(t,n,r)}),c=l.map(function(e){return e.map(function(e,n){return[o.call(t,e,n),a.call(t,e,n)]})}),f=n.call(t,c,s);l=pa.permute(l,f),c=pa.permute(c,f);var h,p,d,g,v=r.call(t,c,s),m=l[0].length;for(d=0;m>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 u}var e=k,n=xi,r=bi,i=yi,o=vi,a=mi;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:Ss.get(e)||xi,t):n},t.offset=function(e){return arguments.length?(r="function"==typeof e?e:Cs.get(e)||bi,t):r},t.x=function(e){return arguments.length?(o=e,t):o},t.y=function(e){return arguments.length?(a=e,t):a},t.out=function(e){return arguments.length?(i=e,t):i},t};var Ss=pa.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(wi),o=t.map(Mi),a=pa.range(r).sort(function(t,e){return i[t]-i[e]}),u=0,s=0,l=[],c=[];for(e=0;r>e;++e)n=a[e],s>u?(u+=o[n],l.push(n)):(s+=o[n],c.push(n));return c.reverse().concat(l)},reverse:function(t){return pa.range(t.length).reverse()},"default":xi}),Cs=pa.map({silhouette:function(t){var e,n,r,i=t.length,o=t[0].length,a=[],u=0,s=[];for(n=0;o>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];r>u&&(u=r),a.push(r)}for(n=0;o>n;++n)s[n]=(u-a[n])/2;return s},wiggle:function(t){var e,n,r,i,o,a,u,s,l,c=t.length,f=t[0],h=f.length,p=[];for(p[0]=s=l=0,n=1;h>n;++n){for(e=0,i=0;c>e;++e)i+=t[e][n][1];for(e=0,o=0,u=f[n][0]-f[n-1][0];c>e;++e){for(r=0,a=(t[e][n][1]-t[e][n-1][1])/(2*u);e>r;++r)a+=(t[r][n][1]-t[r][n-1][1])/u;o+=a*t[e][n][1]}p[n]=s-=i?o/i*u:0,l>s&&(l=s)}for(n=0;h>n;++n)p[n]-=l;return p},expand:function(t){var e,n,r,i=t.length,o=t[0].length,a=1/i,u=[];for(n=0;o>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];if(r)for(e=0;i>e;e++)t[e][n][1]/=r;else for(e=0;i>e;e++)t[e][n][1]=a}for(n=0;o>n;++n)u[n]=0;return u},zero:bi});pa.layout.histogram=function(){function t(t,o){for(var a,u,s=[],l=t.map(n,this),c=r.call(this,l,o),f=i.call(this,c,l,o),o=-1,h=l.length,p=f.length-1,d=e?1:1/h;++o<p;)a=s[o]=[],a.dx=f[o+1]-(a.x=f[o]),a.y=0;if(p>0)for(o=-1;++o<h;)u=l[o],u>=c[0]&&u<=c[1]&&(a=s[pa.bisect(f,u,1,p)-1],a.y+=d,a.push(t[o]));return s}var e=!0,n=Number,r=Si,i=_i;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=Lt(e),t):r},t.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return Ni(t,e)}:Lt(e),t):i;
},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},pa.layout.pack=function(){function t(t,o){var a=n.call(this,t,o),u=a[0],s=i[0],l=i[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(u.x=u.y=0,fi(u,function(t){t.r=+c(t.value)}),fi(u,Li),r){var f=r*(e?1:Math.max(2*u.r/s,2*u.r/l))/2;fi(u,function(t){t.r+=f}),fi(u,Li),fi(u,function(t){t.r-=f})}return ji(u,s/2,l/2,e?1:1/Math.max(2*u.r/s,2*u.r/l)),a}var e,n=pa.layout.hierarchy().sort(Ci),r=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},li(t,n)},pa.layout.tree=function(){function t(t,i){var c=a.call(this,t,i),f=c[0],h=e(f);if(fi(h,n),h.parent.m=-h.z,ci(h,r),l)ci(f,o);else{var p=f,d=f,g=f;ci(f,function(t){t.x<p.x&&(p=t),t.x>d.x&&(d=t),t.depth>g.depth&&(g=t)});var v=u(p,d)/2-p.x,m=s[0]/(d.x+u(d,p)/2+v),y=s[1]/(g.depth||1);ci(f,function(t){t.x=(t.x+v)*m,t.y=t.depth*y})}return c}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,o=e.children,a=0,u=o.length;u>a;++a)r.push((o[a]=i={_:o[a],parent:e,children:(i=o[a].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=i);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){Fi(t);var o=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+u(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+u(t._,r._));t.parent.A=i(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,n){if(e){for(var r,i=t,o=t,a=e,s=i.parent.children[0],l=i.m,c=o.m,f=a.m,h=s.m;a=Pi(a),i=Hi(i),a&&i;)s=Hi(s),o=Pi(o),o.a=t,r=a.z+f-i.z-l+u(a._,i._),r>0&&(Oi(Bi(a,t,n),t,r),l+=r,c+=r),f+=a.m,l+=i.m,h+=s.m,c+=o.m;a&&!Pi(o)&&(o.t=a,o.m+=f-c),i&&!Hi(s)&&(s.t=i,s.m+=l-h,n=t)}return n}function o(t){t.x*=s[0],t.y=t.depth*s[1]}var a=pa.layout.hierarchy().sort(null).value(null),u=Ri,s=[1,1],l=null;return t.separation=function(e){return arguments.length?(u=e,t):u},t.size=function(e){return arguments.length?(l=null==(s=e)?o:null,t):l?null:s},t.nodeSize=function(e){return arguments.length?(l=null==(s=e)?null:o,t):l?s:null},li(t,a)},pa.layout.cluster=function(){function t(t,o){var a,u=e.call(this,t,o),s=u[0],l=0;fi(s,function(t){var e=t.children;e&&e.length?(t.x=Ui(e),t.y=Xi(e)):(t.x=a?l+=n(t,a):0,t.y=0,a=t)});var c=Ii(s),f=Yi(s),h=c.x-n(c,f)/2,p=f.x+n(f,c)/2;return fi(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]}),u}var e=pa.layout.hierarchy().sort(null).value(null),n=Ri,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},li(t,e)},pa.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,o=t.length;++i<o;)r=(n=t[i]).value*(0>e?0:e),n.area=isNaN(r)||0>=r?0:r}function e(n){var o=n.children;if(o&&o.length){var a,u,s,l=f(n),c=[],h=o.slice(),d=1/0,g="slice"===p?l.dx:"dice"===p?l.dy:"slice-dice"===p?1&n.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(t(h,l.dx*l.dy/n.value),c.area=0;(s=h.length)>0;)c.push(a=h[s-1]),c.area+=a.area,"squarify"!==p||(u=r(c,g))<=d?(h.pop(),d=u):(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(e)}}function n(e){var r=e.children;if(r&&r.length){var o,a=f(e),u=r.slice(),s=[];for(t(u,a.dx*a.dy/e.value),s.area=0;o=u.pop();)s.push(o),s.area+=o.area,null!=o.z&&(i(s,o.z?a.dx:a.dy,a,!u.length),s.length=s.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,u=t.length;++a<u;)(n=t[a].area)&&(o>n&&(o=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*d/r,r/(e*o*d)):1/0}function i(t,e,n,r){var i,o=-1,a=t.length,u=n.x,l=n.y,c=e?s(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++o<a;)i=t[o],i.x=u,i.y=l,i.dy=c,u+=i.dx=Math.min(n.x+n.dx-u,c?s(i.area/c):0);i.z=!0,i.dx+=n.x+n.dx-u,n.y+=c,n.dy-=c}else{for((r||c>n.dx)&&(c=n.dx);++o<a;)i=t[o],i.x=u,i.y=l,i.dx=c,l+=i.dy=Math.min(n.y+n.dy-l,c?s(i.area/c):0);i.z=!1,i.dy+=n.y+n.dy-l,n.x+=c,n.dx-=c}}function o(r){var i=a||u(r),o=i[0];return o.x=o.y=0,o.value?(o.dx=l[0],o.dy=l[1]):o.dx=o.dy=0,a&&u.revalue(o),t([o],o.dx*o.dy/o.value),(a?n:e)(o),h&&(a=i),i}var a,u=pa.layout.hierarchy(),s=Math.round,l=[1,1],c=null,f=$i,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 e(e){var n=t.call(o,e,e.depth);return null==n?$i(e):Wi(e,"number"==typeof n?[n,n,n,n]:n)}function n(e){return Wi(e,t)}if(!arguments.length)return c;var r;return f=null==(c=t)?$i:"function"==(r=typeof t)?e:"number"===r?(t=[t,t,t,t],n):n,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,a=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},li(o,u)},pa.random={normal:function(t,e){var n=arguments.length;return 2>n&&(e=1),1>n&&(t=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=pa.random.normal.apply(pa,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=pa.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;t>n;n++)e+=Math.random();return e}}},pa.scale={};var Es={floor:k,ceil:k};pa.scale.linear=function(){return to([0,1],[0,1],_r,!1)};var Ts={s:1,g:1,p:1,r:1,e:1};pa.scale.log=function(){return so(pa.scale.linear().domain([0,1]),10,!0,[1,10])};var As=pa.format(".0e"),Ls={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};pa.scale.pow=function(){return lo(pa.scale.linear(),1,[0,1])},pa.scale.sqrt=function(){return pa.scale.pow().exponent(.5)},pa.scale.ordinal=function(){return fo([],{t:"range",a:[[]]})},pa.scale.category10=function(){return pa.scale.ordinal().range(Ds)},pa.scale.category20=function(){return pa.scale.ordinal().range(qs)},pa.scale.category20b=function(){return pa.scale.ordinal().range(js)},pa.scale.category20c=function(){return pa.scale.ordinal().range(zs)};var Ds=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(_t),qs=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(_t),js=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(_t),zs=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(_t);pa.scale.quantile=function(){return ho([],[])},pa.scale.quantize=function(){return po(0,1,[0,1])},pa.scale.threshold=function(){return go([.5],[0,1])},pa.scale.identity=function(){return vo([0,1])},pa.svg={},pa.svg.arc=function(){function t(){var t=Math.max(0,+n.apply(this,arguments)),l=Math.max(0,+r.apply(this,arguments)),c=a.apply(this,arguments)-$a,f=u.apply(this,arguments)-$a,h=Math.abs(f-c),p=c>f?0:1;if(t>l&&(d=l,l=t,t=d),h>=Ya)return e(l,p)+(t?e(t,1-p):"")+"Z";var d,g,v,m,y,x,b,w,M,k,_,N,S=0,C=0,E=[];if((m=(+s.apply(this,arguments)||0)/2)&&(v=o===Rs?Math.sqrt(t*t+l*l):+o.apply(this,arguments),p||(C*=-1),l&&(C=at(v/l*Math.sin(m))),t&&(S=at(v/t*Math.sin(m)))),l){y=l*Math.cos(c+C),x=l*Math.sin(c+C),b=l*Math.cos(f-C),w=l*Math.sin(f-C);var T=Math.abs(f-c-2*C)<=Ua?0:1;if(C&&ko(y,x,b,w)===p^T){var A=(c+f)/2;y=l*Math.cos(A),x=l*Math.sin(A),b=w=null}}else y=x=0;if(t){M=t*Math.cos(f-S),k=t*Math.sin(f-S),_=t*Math.cos(c+S),N=t*Math.sin(c+S);var L=Math.abs(c-f+2*S)<=Ua?0:1;if(S&&ko(M,k,_,N)===1-p^L){var D=(c+f)/2;M=t*Math.cos(D),k=t*Math.sin(D),_=N=null}}else M=k=0;if(h>Ba&&(d=Math.min(Math.abs(l-t)/2,+i.apply(this,arguments)))>.001){g=l>t^p?0:1;var q=d,j=d;if(Ua>h){var z=null==_?[M,k]:null==b?[y,x]:On([y,x],[_,N],[b,w],[M,k]),R=y-z[0],H=x-z[1],P=b-z[0],O=w-z[1],F=1/Math.sin(Math.acos((R*P+H*O)/(Math.sqrt(R*R+H*H)*Math.sqrt(P*P+O*O)))/2),B=Math.sqrt(z[0]*z[0]+z[1]*z[1]);j=Math.min(d,(t-B)/(F-1)),q=Math.min(d,(l-B)/(F+1))}if(null!=b){var X=_o(null==_?[M,k]:[_,N],[y,x],l,q,p),U=_o([b,w],[M,k],l,q,p);d===q?E.push("M",X[0],"A",q,",",q," 0 0,",g," ",X[1],"A",l,",",l," 0 ",1-p^ko(X[1][0],X[1][1],U[1][0],U[1][1]),",",p," ",U[1],"A",q,",",q," 0 0,",g," ",U[0]):E.push("M",X[0],"A",q,",",q," 0 1,",g," ",U[0])}else E.push("M",y,",",x);if(null!=_){var I=_o([y,x],[_,N],t,-j,p),Y=_o([M,k],null==b?[y,x]:[b,w],t,-j,p);d===j?E.push("L",Y[0],"A",j,",",j," 0 0,",g," ",Y[1],"A",t,",",t," 0 ",p^ko(Y[1][0],Y[1][1],I[1][0],I[1][1]),",",1-p," ",I[1],"A",j,",",j," 0 0,",g," ",I[0]):E.push("L",Y[0],"A",j,",",j," 0 0,",g," ",I[0])}else E.push("L",M,",",k)}else E.push("M",y,",",x),null!=b&&E.push("A",l,",",l," 0 ",T,",",p," ",b,",",w),E.push("L",M,",",k),null!=_&&E.push("A",t,",",t," 0 ",L,",",1-p," ",_,",",N);return E.push("Z"),E.join("")}function e(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}var n=yo,r=xo,i=mo,o=Rs,a=bo,u=wo,s=Mo;return t.innerRadius=function(e){return arguments.length?(n=Lt(e),t):n},t.outerRadius=function(e){return arguments.length?(r=Lt(e),t):r},t.cornerRadius=function(e){return arguments.length?(i=Lt(e),t):i},t.padRadius=function(e){return arguments.length?(o=e==Rs?Rs:Lt(e),t):o},t.startAngle=function(e){return arguments.length?(a=Lt(e),t):a},t.endAngle=function(e){return arguments.length?(u=Lt(e),t):u},t.padAngle=function(e){return arguments.length?(s=Lt(e),t):s},t.centroid=function(){var t=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,e=(+a.apply(this,arguments)+ +u.apply(this,arguments))/2-$a;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Rs="auto";pa.svg.line=function(){return No(k)};var Hs=pa.map({linear:So,"linear-closed":Co,step:Eo,"step-before":To,"step-after":Ao,basis:Ro,"basis-open":Ho,"basis-closed":Po,bundle:Oo,cardinal:qo,"cardinal-open":Lo,"cardinal-closed":Do,monotone:Yo});Hs.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Ps=[0,2/3,1/3,0],Os=[0,1/3,2/3,0],Fs=[0,1/6,2/3,1/6];pa.svg.line.radial=function(){var t=No($o);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},To.reverse=Ao,Ao.reverse=To,pa.svg.area=function(){return Wo(k)},pa.svg.area.radial=function(){var t=Wo($o);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},pa.svg.chord=function(){function t(t,u){var s=e(this,o,t,u),l=e(this,a,t,u);return"M"+s.p0+r(s.r,s.p1,s.a1-s.a0)+(n(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 e(t,e,n,r){var i=e.call(t,n,r),o=u.call(t,i,r),a=s.call(t,i,r)-$a,c=l.call(t,i,r)-$a;return{r:o,a0:a,a1:c,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos(c),o*Math.sin(c)]}}function n(t,e){return t.a0==e.a0&&t.a1==e.a1}function r(t,e,n){return"A"+t+","+t+" 0 "+ +(n>Ua)+",1 "+e}function i(t,e,n,r){return"Q 0,0 "+r}var o=_n,a=Nn,u=Vo,s=bo,l=wo;return t.radius=function(e){return arguments.length?(u=Lt(e),t):u},t.source=function(e){return arguments.length?(o=Lt(e),t):o},t.target=function(e){return arguments.length?(a=Lt(e),t):a},t.startAngle=function(e){return arguments.length?(s=Lt(e),t):s},t.endAngle=function(e){return arguments.length?(l=Lt(e),t):l},t},pa.svg.diagonal=function(){function t(t,i){var o=e.call(this,t,i),a=n.call(this,t,i),u=(o.y+a.y)/2,s=[o,{x:o.x,y:u},{x:a.x,y:u},a];return s=s.map(r),"M"+s[0]+"C"+s[1]+" "+s[2]+" "+s[3]}var e=_n,n=Nn,r=Jo;return t.source=function(n){return arguments.length?(e=Lt(n),t):e},t.target=function(e){return arguments.length?(n=Lt(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},pa.svg.diagonal.radial=function(){var t=pa.svg.diagonal(),e=Jo,n=t.projection;return t.projection=function(t){return arguments.length?n(Zo(e=t)):e},t},pa.svg.symbol=function(){function t(t,r){return(Bs.get(e.call(this,t,r))||Ko)(n.call(this,t,r))}var e=Qo,n=Go;return t.type=function(n){return arguments.length?(e=Lt(n),t):e},t.size=function(e){return arguments.length?(n=Lt(e),t):n},t};var Bs=pa.map({circle:Ko,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Us)),n=e*Us;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Xs),n=e*Xs/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Xs),n=e*Xs/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});pa.svg.symbolTypes=Bs.keys();var Xs=Math.sqrt(3),Us=Math.tan(30*Wa);ja.transition=function(t){for(var e,n,r=Is||++Vs,i=ia(t),o=[],a=Ys||{time:Date.now(),ease:Lr,delay:0,duration:250},u=-1,s=this.length;++u<s;){o.push(e=[]);for(var l=this[u],c=-1,f=l.length;++c<f;)(n=l[c])&&oa(n,c,i,r,a),e.push(n)}return ea(o,i,r)},ja.interrupt=function(t){return this.each(null==t?$s:ta(ia(t)))};var Is,Ys,$s=ta(ia()),Ws=[],Vs=0;Ws.call=ja.call,Ws.empty=ja.empty,Ws.node=ja.node,Ws.size=ja.size,pa.transition=function(t,e){return t&&t.transition?Is?t.transition(e):t:pa.selection().transition(t)},pa.transition.prototype=Ws,Ws.select=function(t){var e,n,r,i=this.id,o=this.namespace,a=[];t=q(t);for(var u=-1,s=this.length;++u<s;){a.push(e=[]);for(var l=this[u],c=-1,f=l.length;++c<f;)(r=l[c])&&(n=t.call(r,r.__data__,c,u))?("__data__"in r&&(n.__data__=r.__data__),oa(n,c,o,i,r[o][i]),e.push(n)):e.push(null)}return ea(a,o,i)},Ws.selectAll=function(t){var e,n,r,i,o,a=this.id,u=this.namespace,s=[];t=j(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[u][a],n=t.call(r,r.__data__,h,l),s.push(e=[]);for(var d=-1,g=n.length;++d<g;)(i=n[d])&&oa(i,d,u,a,o),e.push(i)}return ea(s,u,a)},Ws.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=$(t));for(var o=0,a=this.length;a>o;o++){i.push(e=[]);for(var n=this[o],u=0,s=n.length;s>u;u++)(r=n[u])&&t.call(r,r.__data__,u,o)&&e.push(r)}return ea(i,this.namespace,this.id)},Ws.tween=function(t,e){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(t):V(this,null==e?function(e){e[r][n].tween.remove(t)}:function(i){i[r][n].tween.set(t,e)})},Ws.attr=function(t,e){function n(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}function i(t){return null==t?n:(t+="",function(){var e,n=this.getAttribute(u);return n!==t&&(e=a(n,t),function(t){this.setAttribute(u,e(t))})})}function o(t){return null==t?r:(t+="",function(){var e,n=this.getAttributeNS(u.space,u.local);return n!==t&&(e=a(n,t),function(t){this.setAttributeNS(u.space,u.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var a="transform"==t?Qr:_r,u=pa.ns.qualify(t);return na(this,"attr."+t,e,u.local?o:i)},Ws.attrTween=function(t,e){function n(t,n){var r=e.call(this,t,n,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,n){var r=e.call(this,t,n,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=pa.ns.qualify(t);return this.tween("attr."+t,i.local?r:n)},Ws.style=function(t,e,n){function r(){this.style.removeProperty(t)}function i(e){return null==e?r:(e+="",function(){var r,i=a(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(r=_r(i,e),function(e){this.style.setProperty(t,r(e),n)})})}var o=arguments.length;if(3>o){if("string"!=typeof t){2>o&&(e="");for(n in t)this.style(n,t[n],e);return this}n=""}return na(this,"style."+t,e,i)},Ws.styleTween=function(t,e,n){function r(r,i){var o=e.call(this,r,i,a(this).getComputedStyle(this,null).getPropertyValue(t));return o&&function(e){this.style.setProperty(t,o(e),n)}}return arguments.length<3&&(n=""),this.tween("style."+t,r)},Ws.text=function(t){return na(this,"text",t,ra)},Ws.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},Ws.ease=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].ease:("function"!=typeof t&&(t=pa.ease.apply(pa,arguments)),V(this,function(r){r[n][e].ease=t}))},Ws.delay=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].delay:V(this,"function"==typeof t?function(r,i,o){r[n][e].delay=+t.call(r,r.__data__,i,o)}:(t=+t,function(r){r[n][e].delay=t}))},Ws.duration=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].duration:V(this,"function"==typeof t?function(r,i,o){r[n][e].duration=Math.max(1,t.call(r,r.__data__,i,o))}:(t=Math.max(1,t),function(r){r[n][e].duration=t}))},Ws.each=function(t,e){var n=this.id,r=this.namespace;if(arguments.length<2){var i=Ys,o=Is;try{Is=n,V(this,function(e,i,o){Ys=e[r][n],t.call(e,e.__data__,i,o)})}finally{Ys=i,Is=o}}else V(this,function(i){var o=i[r][n];(o.event||(o.event=pa.dispatch("start","end","interrupt"))).on(t,e)});return this},Ws.transition=function(){for(var t,e,n,r,i=this.id,o=++Vs,a=this.namespace,u=[],s=0,l=this.length;l>s;s++){u.push(t=[]);for(var e=this[s],c=0,f=e.length;f>c;c++)(n=e[c])&&(r=n[a][i],oa(n,c,a,o,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(n)}return ea(u,a,o)},pa.svg.axis=function(){function t(t){t.each(function(){var t,l=pa.select(this),c=this.__chart__||n,f=this.__chart__=n.copy(),h=null==s?f.ticks?f.ticks.apply(f,u):f.domain():s,p=null==e?f.tickFormat?f.tickFormat.apply(f,u):k:e,d=l.selectAll(".tick").data(h,f),g=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Ba),v=pa.transition(d.exit()).style("opacity",Ba).remove(),m=pa.transition(d.order()).style("opacity",1),y=Math.max(i,0)+a,x=Ji(f),b=l.selectAll(".domain").data([0]),w=(b.enter().append("path").attr("class","domain"),pa.transition(b));g.append("line"),g.append("text");var M,_,N,S,C=g.select("line"),E=m.select("line"),T=d.select("text").text(p),A=g.select("text"),L=m.select("text"),D="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=aa,M="x",N="y",_="x2",S="y2",T.attr("dy",0>D?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+x[0]+","+D*o+"V0H"+x[1]+"V"+D*o)):(t=ua,M="y",N="x",_="y2",S="x2",T.attr("dy",".32em").style("text-anchor",0>D?"end":"start"),w.attr("d","M"+D*o+","+x[0]+"H0V"+x[1]+"H"+D*o)),C.attr(S,D*i),A.attr(N,D*y),E.attr(_,0).attr(S,D*i),L.attr(M,0).attr(N,D*y),f.rangeBand){var q=f,j=q.rangeBand()/2;c=f=function(t){return q(t)+j}}else c.rangeBand?c=f:v.call(t,f,c);g.call(t,c,f),m.call(t,f,f)})}var e,n=pa.scale.linear(),r=Js,i=6,o=6,a=3,u=[10],s=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(r=e in Zs?e+"":Js,t):r},t.ticks=function(){return arguments.length?(u=ga(arguments),t):u},t.tickValues=function(e){return arguments.length?(s=e,t):s},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e){var n=arguments.length;return n?(i=+e,o=+arguments[n-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(o=+e,t):o},t.tickPadding=function(e){return arguments.length?(a=+e,t):a},t.tickSubdivide=function(){return arguments.length&&t},t};var Js="bottom",Zs={top:1,right:1,bottom:1,left:1};pa.svg.brush=function(){function t(o){o.each(function(){var o=pa.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=o.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),o.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var u=o.selectAll(".resize").data(g,k);u.exit().remove(),u.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Gs[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"),u.style("display",t.empty()?"none":null);var s,f=pa.transition(o),h=pa.transition(a);l&&(s=Ji(l),h.attr("x",s[0]).attr("width",s[1]-s[0]),n(f)),c&&(s=Ji(c),h.attr("y",s[0]).attr("height",s[1]-s[0]),r(f)),e(f)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+f[+/e$/.test(t)]+","+h[+/^s/.test(t)]+")"})}function n(t){t.select(".extent").attr("x",f[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function r(t){t.select(".extent").attr("y",h[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==pa.event.keyCode&&(E||(x=null,L[0]-=f[1],L[1]-=h[1],E=2),T())}function g(){32==pa.event.keyCode&&2==E&&(L[0]+=f[1],L[1]+=h[1],E=0,T())}function v(){var t=pa.mouse(w),i=!1;b&&(t[0]+=b[0],t[1]+=b[1]),E||(pa.event.altKey?(x||(x=[(f[0]+f[1])/2,(h[0]+h[1])/2]),L[0]=f[+(t[0]<x[0])],L[1]=h[+(t[1]<x[1])]):x=null),S&&m(t,l,0)&&(n(_),i=!0),C&&m(t,c,1)&&(r(_),i=!0),i&&(e(_),k({type:"brush",mode:E?"move":"resize"}))}function m(t,e,n){var r,i,a=Ji(e),s=a[0],l=a[1],c=L[n],g=n?h:f,v=g[1]-g[0];return E&&(s-=c,l-=v+c),r=(n?d:p)?Math.max(s,Math.min(l,t[n])):t[n],E?i=(r+=c)+v:(x&&(c=Math.max(s,Math.min(l,2*x[n]-r))),r>c?(i=r,r=c):i=c),g[0]!=r||g[1]!=i?(n?u=null:o=null,g[0]=r,g[1]=i,!0):void 0}function y(){v(),_.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),pa.select("body").style("cursor",null),D.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(),k({type:"brushend"})}var x,b,w=this,M=pa.select(pa.event.target),k=s.of(w,arguments),_=pa.select(w),N=M.datum(),S=!/^(n|s)$/.test(N)&&l,C=!/^(e|w)$/.test(N)&&c,E=M.classed("extent"),A=tt(w),L=pa.mouse(w),D=pa.select(a(w)).on("keydown.brush",i).on("keyup.brush",g);if(pa.event.changedTouches?D.on("touchmove.brush",v).on("touchend.brush",y):D.on("mousemove.brush",v).on("mouseup.brush",y),_.interrupt().selectAll("*").interrupt(),E)L[0]=f[0]-L[0],L[1]=h[0]-L[1];else if(N){var q=+/w$/.test(N),j=+/^n/.test(N);b=[f[1-q]-L[0],h[1-j]-L[1]],L[0]=f[q],L[1]=h[j]}else pa.event.altKey&&(x=L.slice());_.style("pointer-events","none").selectAll(".resize").style("display",null),pa.select("body").style("cursor",M.style("cursor")),k({type:"brushstart"}),v()}var o,u,s=L(t,"brushstart","brush","brushend"),l=null,c=null,f=[0,0],h=[0,0],p=!0,d=!0,g=Qs[0];return t.event=function(t){t.each(function(){var t=s.of(this,arguments),e={x:f,y:h,i:o,j:u},n=this.__chart__||e;this.__chart__=e,Is?pa.select(this).transition().each("start.brush",function(){o=n.i,u=n.j,f=n.x,h=n.y,t({type:"brushstart"})}).tween("brush:brush",function(){var n=Nr(f,e.x),r=Nr(h,e.y);return o=u=null,function(i){f=e.x=n(i),h=e.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=e.i,u=e.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(e){return arguments.length?(l=e,g=Qs[!l<<1|!c],t):l},t.y=function(e){return arguments.length?(c=e,g=Qs[!l<<1|!c],t):c},t.clamp=function(e){return arguments.length?(l&&c?(p=!!e[0],d=!!e[1]):l?p=!!e:c&&(d=!!e),t):l&&c?[p,d]:l?p:c?d:null},t.extent=function(e){var n,r,i,a,s;return arguments.length?(l&&(n=e[0],r=e[1],c&&(n=n[0],r=r[0]),o=[n,r],l.invert&&(n=l(n),r=l(r)),n>r&&(s=n,n=r,r=s),(n!=f[0]||r!=f[1])&&(f=[n,r])),c&&(i=e[0],a=e[1],l&&(i=i[1],a=a[1]),u=[i,a],c.invert&&(i=c(i),a=c(a)),i>a&&(s=i,i=a,a=s),(i!=h[0]||a!=h[1])&&(h=[i,a])),t):(l&&(o?(n=o[0],r=o[1]):(n=f[0],r=f[1],l.invert&&(n=l.invert(n),r=l.invert(r)),n>r&&(s=n,n=r,r=s))),c&&(u?(i=u[0],a=u[1]):(i=h[0],a=h[1],c.invert&&(i=c.invert(i),a=c.invert(a)),i>a&&(s=i,i=a,a=s))),l&&c?[[n,i],[r,a]]:l?[n,r]:c&&[i,a])},t.clear=function(){return t.empty()||(f=[0,0],h=[0,0],o=u=null),t},t.empty=function(){return!!l&&f[0]==f[1]||!!c&&h[0]==h[1]},pa.rebind(t,s,"on")};var Gs={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qs=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ks=yu.format=_u.timeFormat,tl=Ks.utc,el=tl("%Y-%m-%dT%H:%M:%S.%LZ");Ks.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?sa:el,sa.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},sa.toString=el.toString,yu.second=Yt(function(t){return new xu(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),yu.seconds=yu.second.range,yu.seconds.utc=yu.second.utc.range,yu.minute=Yt(function(t){return new xu(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),yu.minutes=yu.minute.range,yu.minutes.utc=yu.minute.utc.range,yu.hour=Yt(function(t){var e=t.getTimezoneOffset()/60;return new xu(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),yu.hours=yu.hour.range,yu.hours.utc=yu.hour.utc.range,yu.month=Yt(function(t){return t=yu.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),yu.months=yu.month.range,yu.months.utc=yu.month.utc.range;var nl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],rl=[[yu.second,1],[yu.second,5],[yu.second,15],[yu.second,30],[yu.minute,1],[yu.minute,5],[yu.minute,15],[yu.minute,30],[yu.hour,1],[yu.hour,3],[yu.hour,6],[yu.hour,12],[yu.day,1],[yu.day,2],[yu.week,1],[yu.month,1],[yu.month,3],[yu.year,1]],il=Ks.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",je]]),ol={range:function(t,e,n){return pa.range(Math.ceil(t/n)*n,+e,n).map(ca)},floor:k,ceil:k};rl.year=yu.year,yu.scale=function(){return la(pa.scale.linear(),rl,il)};var al=rl.map(function(t){return[t[0].utc,t[1]]}),ul=tl.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",je]]);al.year=yu.year.utc,yu.scale.utc=function(){return la(pa.scale.linear(),al,ul)},pa.text=Dt(function(t){return t.responseText}),pa.json=function(t,e){return qt(t,"application/json",fa,e)},pa.html=function(t,e){return qt(t,"text/html",ha,e)},pa.xml=Dt(function(t){return t.responseXML}),r=this.d3=pa,i="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==i&&(t.exports=i))}()},function(t,e,n){var r,i;/*!
	 * jQuery JavaScript Library v2.1.4
	 * http://jquery.com/
	 *
	 * Includes Sizzle.js
	 * http://sizzlejs.com/
	 *
	 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
	 * Released under the MIT license
	 * http://jquery.org/license
	 *
	 * Date: 2015-04-28T16:01Z
	 */
!function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){function a(t){var e="length"in t&&t.length,n=rt.type(t);return"function"===n||rt.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function u(t,e,n){if(rt.isFunction(e))return rt.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return rt.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(ft.test(e))return rt.filter(e,t,n);e=rt.filter(e,t)}return rt.grep(t,function(t){return Z.call(e,t)>=0!==n})}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function l(t){var e=yt[t]={};return rt.each(t.match(mt)||[],function(t,n){e[n]=!0}),e}function c(){et.removeEventListener("DOMContentLoaded",c,!1),n.removeEventListener("load",c,!1),rt.ready()}function f(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=rt.expando+f.uid++}function h(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(_t,"-$1").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:kt.test(n)?rt.parseJSON(n):n}catch(i){}Mt.set(t,e,n)}else n=void 0;return n}function p(){return!0}function d(){return!1}function g(){try{return et.activeElement}catch(t){}}function v(t,e){return rt.nodeName(t,"table")&&rt.nodeName(11!==e.nodeType?e:e.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 y(t){var e=Ft.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function x(t,e){for(var n=0,r=t.length;r>n;n++)wt.set(t[n],"globalEval",!e||wt.get(e[n],"globalEval"))}function b(t,e){var n,r,i,o,a,u,s,l;if(1===e.nodeType){if(wt.hasData(t)&&(o=wt.access(t),a=wt.set(e,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)rt.event.add(e,i,l[i][n])}Mt.hasData(t)&&(u=Mt.access(t),s=rt.extend({},u),Mt.set(e,s))}}function w(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&rt.nodeName(t,e)?rt.merge([t],n):n}function M(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Et.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function k(t,e){var r,i=rt(e.createElement(t)).appendTo(e.body),o=n.getDefaultComputedStyle&&(r=n.getDefaultComputedStyle(i[0]))?r.display:rt.css(i[0],"display");return i.detach(),o}function _(t){var e=et,n=It[t];return n||(n=k(t,e),"none"!==n&&n||(Ut=(Ut||rt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Ut[0].contentDocument,e.write(),e.close(),n=k(t,e),Ut.detach()),It[t]=n),n}function N(t,e,n){var r,i,o,a,u=t.style;return n=n||Wt(t),n&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||rt.contains(t.ownerDocument,t)||(a=rt.style(t,e)),$t.test(a)&&Yt.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function S(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function C(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Kt.length;i--;)if(e=Kt[i]+n,e in t)return e;return r}function E(t,e,n){var r=Jt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function T(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=rt.css(t,n+St[o],!0,i)),r?("content"===n&&(a-=rt.css(t,"padding"+St[o],!0,i)),"margin"!==n&&(a-=rt.css(t,"border"+St[o]+"Width",!0,i))):(a+=rt.css(t,"padding"+St[o],!0,i),"padding"!==n&&(a+=rt.css(t,"border"+St[o]+"Width",!0,i)));return a}function A(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Wt(t),a="border-box"===rt.css(t,"boxSizing",!1,o);if(0>=i||null==i){if(i=N(t,e,o),(0>i||null==i)&&(i=t.style[e]),$t.test(i))return i;r=a&&(tt.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+T(t,e,n||(a?"border":"content"),r,o)+"px"}function L(t,e){for(var n,r,i,o=[],a=0,u=t.length;u>a;a++)r=t[a],r.style&&(o[a]=wt.get(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Ct(r)&&(o[a]=wt.access(r,"olddisplay",_(r.nodeName)))):(i=Ct(r),"none"===n&&i||wt.set(r,"olddisplay",i?n:rt.css(r,"display"))));for(a=0;u>a;a++)r=t[a],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function D(t,e,n,r,i){return new D.prototype.init(t,e,n,r,i)}function q(){return setTimeout(function(){te=void 0}),te=rt.now()}function j(t,e){var n,r=0,i={height:t};for(e=e?1:0;4>r;r+=2-e)n=St[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function z(t,e,n){for(var r,i=(ae[e]||[]).concat(ae["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,e,t))return r}function R(t,e,n){var r,i,o,a,u,s,l,c,f=this,h={},p=t.style,d=t.nodeType&&Ct(t),g=wt.get(t,"fxshow");n.queue||(u=rt._queueHooks(t,"fx"),null==u.unqueued&&(u.unqueued=0,s=u.empty.fire,u.empty.fire=function(){u.unqueued||s()}),u.unqueued++,f.always(function(){f.always(function(){u.unqueued--,rt.queue(t,"fx").length||u.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=rt.css(t,"display"),c="none"===l?wt.get(t,"olddisplay")||_(t.nodeName):l,"inline"===c&&"none"===rt.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],ne.exec(i)){if(delete e[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]||rt.style(t,r)}else l=void 0;if(rt.isEmptyObject(h))"inline"===("none"===l?_(t.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(d=g.hidden):g=wt.access(t,"fxshow",{}),o&&(g.hidden=!d),d?rt(t).show():f.done(function(){rt(t).hide()}),f.done(function(){var e;wt.remove(t,"fxshow");for(e in h)rt.style(t,e,h[e])});for(r in h)a=z(d?g[r]:0,r,f),r in g||(g[r]=a.start,d&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function H(t,e){var n,r,i,o,a;for(n in t)if(r=rt.camelCase(n),i=e[r],o=t[n],rt.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),a=rt.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function P(t,e,n){var r,i,o=0,a=oe.length,u=rt.Deferred().always(function(){delete s.elem}),s=function(){if(i)return!1;for(var e=te||q(),n=Math.max(0,l.startTime+l.duration-e),r=n/l.duration||0,o=1-r,a=0,s=l.tweens.length;s>a;a++)l.tweens[a].run(o);return u.notifyWith(t,[l,o,n]),1>o&&s?n:(u.resolveWith(t,[l]),!1)},l=u.promise({elem:t,props:rt.extend({},e),opts:rt.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:te||q(),duration:n.duration,tweens:[],createTween:function(e,n){var r=rt.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return e?u.resolveWith(t,[l,e]):u.rejectWith(t,[l,e]),this}}),c=l.props;for(H(c,l.opts.specialEasing);a>o;o++)if(r=oe[o].call(l,t,c,l.opts))return r;return rt.map(c,z,l),rt.isFunction(l.opts.start)&&l.opts.start.call(t,l),rt.fx.timer(rt.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 O(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(mt)||[];if(rt.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function F(t,e,n,r){function i(u){var s;return o[u]=!0,rt.each(t[u]||[],function(t,u){var l=u(e,n,r);return"string"!=typeof l||a||o[l]?a?!(s=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),s}var o={},a=t===ke;return i(e.dataTypes[0])||!o["*"]&&i("*")}function B(t,e){var n,r,i=rt.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&rt.extend(!0,t,r),t}function X(t,e,n){for(var r,i,o,a,u=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){s.unshift(i);break}if(s[0]in n)o=s[0];else{for(i in n){if(!s[0]||t.converters[i+" "+s[0]]){o=i;break}a||(a=i)}o=o||a}return o?(o!==s[0]&&s.unshift(o),n[o]):void 0}function U(t,e,n,r){var i,o,a,u,s,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!s&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),s=o,o=c.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(a=l[s+" "+o]||l["* "+o],!a)for(i in l)if(u=i.split(" "),u[1]===o&&(a=l[s+" "+u[0]]||l["* "+u[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=u[0],c.unshift(u[1]));break}if(a!==!0)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+s+" to "+o}}}return{state:"success",data:e}}function I(t,e,n,r){var i;if(rt.isArray(e))rt.each(e,function(e,i){n||Ee.test(t)?r(t,i):I(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==rt.type(e))r(t,e);else for(i in e)I(t+"["+i+"]",e[i],n,r)}function Y(t){return rt.isWindow(t)?t:9===t.nodeType&&t.defaultView}var $=[],W=$.slice,V=$.concat,J=$.push,Z=$.indexOf,G={},Q=G.toString,K=G.hasOwnProperty,tt={},et=n.document,nt="2.1.4",rt=function(t,e){return new rt.fn.init(t,e)},it=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ot=/^-ms-/,at=/-([\da-z])/gi,ut=function(t,e){return e.toUpperCase()};rt.fn=rt.prototype={jquery:nt,constructor:rt,selector:"",length:0,toArray:function(){return W.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:W.call(this)},pushStack:function(t){var e=rt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return rt.each(this,t,e)},map:function(t){return this.pushStack(rt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(W.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:J,sort:$.sort,splice:$.splice},rt.extend=rt.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},u=1,s=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[u]||{},u++),"object"==typeof a||rt.isFunction(a)||(a={}),u===s&&(a=this,u--);s>u;u++)if(null!=(t=arguments[u]))for(e in t)n=a[e],r=t[e],a!==r&&(l&&r&&(rt.isPlainObject(r)||(i=rt.isArray(r)))?(i?(i=!1,o=n&&rt.isArray(n)?n:[]):o=n&&rt.isPlainObject(n)?n:{},a[e]=rt.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},rt.extend({expando:"jQuery"+(nt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===rt.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!rt.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"!==rt.type(t)||t.nodeType||rt.isWindow(t)?!1:t.constructor&&!K.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?G[Q.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=rt.trim(t),t&&(1===t.indexOf("use strict")?(e=et.createElement("script"),e.text=t,et.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ot,"ms-").replace(at,ut)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r,i=0,o=t.length,u=a(t);if(n){if(u)for(;o>i&&(r=e.apply(t[i],n),r!==!1);i++);else for(i in t)if(r=e.apply(t[i],n),r===!1)break}else if(u)for(;o>i&&(r=e.call(t[i],i,t[i]),r!==!1);i++);else for(i in t)if(r=e.call(t[i],i,t[i]),r===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(it,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(a(Object(t))?rt.merge(n,"string"==typeof t?[t]:t):J.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:Z.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;n>r;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,a=t.length,u=!n;a>o;o++)r=!e(t[o],o),r!==u&&i.push(t[o]);return i},map:function(t,e,n){var r,i=0,o=t.length,u=a(t),s=[];if(u)for(;o>i;i++)r=e(t[i],i,n),null!=r&&s.push(r);else for(i in t)r=e(t[i],i,n),null!=r&&s.push(r);return V.apply([],s)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),rt.isFunction(t)?(r=W.call(arguments,2),i=function(){return t.apply(e||this,r.concat(W.call(arguments)))},i.guid=t.guid=t.guid||rt.guid++,i):void 0},now:Date.now,support:tt}),rt.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){G["[object "+e+"]"]=e.toLowerCase()});var st=/*!
	 * Sizzle CSS Selector Engine v2.2.0-pre
	 * http://sizzlejs.com/
	 *
	 * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
	 * Released under the MIT license
	 * http://jquery.org/license
	 *
	 * Date: 2014-12-16
	 */
function(t){function e(t,e,n,r){var i,o,a,u,s,l,f,p,d,g;if((e?e.ownerDocument||e:F)!==D&&L(e),e=e||D,n=n||[],u=e.nodeType,"string"!=typeof t||!t||1!==u&&9!==u&&11!==u)return n;if(!r&&j){if(11!==u&&(i=yt.exec(t)))if(a=i[1]){if(9===u){if(o=e.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&P(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&w.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(a)),n}if(w.qsa&&(!z||!z.test(t))){if(p=f=O,d=e,g=1!==u&&t,1===u&&"object"!==e.nodeName.toLowerCase()){for(l=N(t),(f=e.getAttribute("id"))?p=f.replace(bt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",s=l.length;s--;)l[s]=p+h(l[s]);d=xt.test(t)&&c(e.parentNode)||e,g=l.join(",")}if(g)try{return Q.apply(n,d.querySelectorAll(g)),n}catch(v){}finally{f||e.removeAttribute("id")}}}return C(t.replace(st,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>M.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[O]=!0,t}function i(t){var e=D.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=t.length;r--;)M.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||W)-(~t.sourceIndex||W);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function u(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function s(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function h(t){for(var e=0,n=t.length,r="";n>e;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=X++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var u,s,l=[B,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(s=e[O]||(e[O]={}),(u=s[r])&&u[0]===B&&u[1]===o)return l[2]=u[2];if(s[r]=l,l[2]=t(e,n,a))return!0}}}function d(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function g(t,n,r){for(var i=0,o=n.length;o>i;i++)e(t,n[i],r);return r}function v(t,e,n,r,i){for(var o,a=[],u=0,s=t.length,l=null!=e;s>u;u++)(o=t[u])&&(!n||n(o,r,i))&&(a.push(o),l&&e.push(u));return a}function m(t,e,n,i,o,a){return i&&!i[O]&&(i=m(i)),o&&!o[O]&&(o=m(o,a)),r(function(r,a,u,s){var l,c,f,h=[],p=[],d=a.length,m=r||g(e||"*",u.nodeType?[u]:u,[]),y=!t||!r&&e?m:v(m,h,t,u,s),x=n?o||(r?t:d||i)?[]:a:y;if(n&&n(y,x,u,s),i)for(l=v(x,p),i(l,[],u,s),c=l.length;c--;)(f=l[c])&&(x[p[c]]=!(y[p[c]]=f));if(r){if(o||t){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(y[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]=!(a[l]=f))}}else x=v(x===a?x.splice(d,x.length):x),o?o(null,a,x,s):Q.apply(a,x)})}function y(t){for(var e,n,r,i=t.length,o=M.relative[t[0].type],a=o||M.relative[" "],u=o?1:0,s=p(function(t){return t===e},a,!0),l=p(function(t){return tt(e,t)>-1},a,!0),c=[function(t,n,r){var i=!o&&(r||n!==E)||((e=n).nodeType?s(t,n,r):l(t,n,r));return e=null,i}];i>u;u++)if(n=M.relative[t[u].type])c=[p(d(c),n)];else{if(n=M.filter[t[u].type].apply(null,t[u].matches),n[O]){for(r=++u;i>r&&!M.relative[t[r].type];r++);return m(u>1&&d(c),u>1&&h(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(st,"$1"),n,r>u&&y(t.slice(u,r)),i>r&&y(t=t.slice(r)),i>r&&h(t))}c.push(n)}return d(c)}function x(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,u,s,l){var c,f,h,p=0,d="0",g=r&&[],m=[],y=E,x=r||o&&M.find.TAG("*",l),b=B+=null==y?1:Math.random()||.1,w=x.length;for(l&&(E=a!==D&&a);d!==w&&null!=(c=x[d]);d++){if(o&&c){for(f=0;h=t[f++];)if(h(c,a,u)){s.push(c);break}l&&(B=b)}i&&((c=!h&&c)&&p--,r&&g.push(c))}if(p+=d,i&&d!==p){for(f=0;h=n[f++];)h(g,m,a,u);if(r){if(p>0)for(;d--;)g[d]||m[d]||(m[d]=Z.call(s));m=v(m)}Q.apply(s,m),l&&!r&&m.length>0&&p+n.length>1&&e.uniqueSort(s)}return l&&(B=b,E=y),g};return i?r(a):a}var b,w,M,k,_,N,S,C,E,T,A,L,D,q,j,z,R,H,P,O="sizzle"+1*new Date,F=t.document,B=0,X=0,U=n(),I=n(),Y=n(),$=function(t,e){return t===e&&(A=!0),0},W=1<<31,V={}.hasOwnProperty,J=[],Z=J.pop,G=J.push,Q=J.push,K=J.slice,tt=function(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it=rt.replace("w","w#"),ot="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",at=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",ut=new RegExp(nt+"+","g"),st=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ft=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ht=new RegExp(at),pt=new RegExp("^"+it+"$"),dt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,vt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xt=/[+~]/,bt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),Mt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},kt=function(){L()};try{Q.apply(J=K.call(F.childNodes),F.childNodes),J[F.childNodes.length].nodeType}catch(_t){Q={apply:J.length?function(t,e){G.apply(t,K.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}w=e.support={},_=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},L=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:F;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,q=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",kt,!1):n.attachEvent&&n.attachEvent("onunload",kt)),j=!_(r),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(r.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=mt.test(r.getElementsByClassName),w.getById=i(function(t){return q.appendChild(t).id=O,!r.getElementsByName||!r.getElementsByName(O).length}),w.getById?(M.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&j){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},M.filter.ID=function(t){var e=t.replace(wt,Mt);return function(t){return t.getAttribute("id")===e}}):(delete M.find.ID,M.filter.ID=function(t){var e=t.replace(wt,Mt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),M.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},M.find.CLASS=w.getElementsByClassName&&function(t,e){return j?e.getElementsByClassName(t):void 0},R=[],z=[],(w.qsa=mt.test(r.querySelectorAll))&&(i(function(t){q.appendChild(t).innerHTML="<a id='"+O+"'></a><select id='"+O+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&z.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||z.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+O+"-]").length||z.push("~="),t.querySelectorAll(":checked").length||z.push(":checked"),t.querySelectorAll("a#"+O+"+*").length||z.push(".#.+[+~]")}),i(function(t){var e=r.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&z.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||z.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),z.push(",.*:")})),(w.matchesSelector=mt.test(H=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(t){w.disconnectedMatch=H.call(t,"div"),H.call(t,"[s!='']:x"),R.push("!=",at)}),z=z.length&&new RegExp(z.join("|")),R=R.length&&new RegExp(R.join("|")),e=mt.test(q.compareDocumentPosition),P=e||mt.test(q.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return A=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===r||t.ownerDocument===F&&P(F,t)?-1:e===r||e.ownerDocument===F&&P(F,e)?1:T?tt(T,t)-tt(T,e):0:4&n?-1:1)}:function(t,e){if(t===e)return A=!0,0;var n,i=0,o=t.parentNode,u=e.parentNode,s=[t],l=[e];if(!o||!u)return t===r?-1:e===r?1:o?-1:u?1:T?tt(T,t)-tt(T,e):0;if(o===u)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]===F?-1:l[i]===F?1:0},r):D},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==D&&L(t),n=n.replace(ft,"='$1']"),w.matchesSelector&&j&&(!R||!R.test(n))&&(!z||!z.test(n)))try{var r=H.call(t,n);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,D,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==D&&L(t),P(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==D&&L(t);var n=M.attrHandle[e.toLowerCase()],r=n&&V.call(M.attrHandle,e.toLowerCase())?n(t,e,!j):void 0;return void 0!==r?r:w.attributes||!j?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(A=!w.detectDuplicates,T=!w.sortStable&&t.slice(0),t.sort($),A){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return T=null,t},k=e.getText=function(t){var e,n="",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)n+=k(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=k(e);return n},M=e.selectors={cacheLength:50,createPseudo:r,match:dt,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(wt,Mt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,Mt),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=N(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,Mt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ut," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),u="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,s){var l,c,f,h,p,d,g=o!==a?"nextSibling":"previousSibling",v=e.parentNode,m=u&&e.nodeName.toLowerCase(),y=!s&&!u;if(v){if(o){for(;g;){for(f=e;f=f[g];)if(u?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?v.firstChild:v.lastChild],a&&y){for(c=v[O]||(v[O]={}),l=c[t]||[],p=l[0]===B&&l[1],h=l[0]===B&&l[2],f=p&&v.childNodes[p];f=++p&&f&&f[g]||(h=p=0)||d.pop();)if(1===f.nodeType&&++h&&f===e){c[t]=[B,p,h];break}}else if(y&&(l=(e[O]||(e[O]={}))[t])&&l[0]===B)h=l[1];else for(;(f=++p&&f&&f[g]||(h=p=0)||d.pop())&&((u?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++h||(y&&((f[O]||(f[O]={}))[t]=[B,h]),f!==e)););return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(t,n){var i,o=M.pseudos[t]||M.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[O]?o(n):o.length>1?(i=[t,t,"",n],M.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=tt(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(st,"$1"));return i[O]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),u=t.length;u--;)(o=a[u])&&(t[u]=!(e[u]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(wt,Mt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:r(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,Mt).toLowerCase(),function(e){var n;do if(n=j?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===q},focus:function(t){return t===D.activeElement&&(!D.hasFocus||D.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 e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!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 vt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[0>n?n+e:n]}),even:l(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:l(function(t,e,n){for(var r=0>n?n+e:n;++r<e;)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]=u(b);for(b in{submit:!0,reset:!0})M.pseudos[b]=s(b);return f.prototype=M.filters=M.pseudos,M.setFilters=new f,N=e.tokenize=function(t,n){var r,i,o,a,u,s,l,c=I[t+" "];if(c)return n?0:c.slice(0);for(u=t,s=[],l=M.preFilter;u;){(!r||(i=lt.exec(u)))&&(i&&(u=u.slice(i[0].length)||u),s.push(o=[])),r=!1,(i=ct.exec(u))&&(r=i.shift(),o.push({value:r,type:i[0].replace(st," ")}),u=u.slice(r.length));for(a in M.filter)!(i=dt[a].exec(u))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),u=u.slice(r.length));if(!r)break}return n?u.length:u?e.error(t):I(t,s).slice(0)},S=e.compile=function(t,e){var n,r=[],i=[],o=Y[t+" "];if(!o){for(e||(e=N(t)),n=e.length;n--;)o=y(e[n]),o[O]?r.push(o):i.push(o);o=Y(t,x(i,r)),o.selector=t}return o},C=e.select=function(t,e,n,r){var i,o,a,u,s,l="function"==typeof t&&t,f=!r&&N(t=l.selector||t);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===e.nodeType&&j&&M.relative[o[1].type]){if(e=(M.find.ID(a.matches[0].replace(wt,Mt),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=dt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!M.relative[u=a.type]);)if((s=M.find[u])&&(r=s(a.matches[0].replace(wt,Mt),xt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&h(o),!t)return Q.apply(n,r),n;break}}return(l||S(t,f))(r,e,!j,n,xt.test(t)&&c(e.parentNode)||e),n},w.sortStable=O.split("").sort($).join("")===O,w.detectDuplicates=!!A,L(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(D.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;return n?void 0:t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(n);rt.find=st,rt.expr=st.selectors,rt.expr[":"]=rt.expr.pseudos,rt.unique=st.uniqueSort,rt.text=st.getText,rt.isXMLDoc=st.isXML,rt.contains=st.contains;var lt=rt.expr.match.needsContext,ct=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ft=/^.[^:#\[\.,]*$/;rt.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?rt.find.matchesSelector(r,t)?[r]:[]:rt.find.matches(t,rt.grep(e,function(t){return 1===t.nodeType}))},rt.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(rt(t).filter(function(){for(e=0;n>e;e++)if(rt.contains(i[e],this))return!0}));for(e=0;n>e;e++)rt.find(t,i[e],r);return r=this.pushStack(n>1?rt.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(u(this,t||[],!1))},not:function(t){return this.pushStack(u(this,t||[],!0))},is:function(t){return!!u(this,"string"==typeof t&&lt.test(t)?rt(t):t||[],!1).length}});var ht,pt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,dt=rt.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:pt.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||ht).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof rt?e[0]:e,rt.merge(this,rt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:et,!0)),ct.test(n[1])&&rt.isPlainObject(e))for(n in e)rt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=et.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=et,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):rt.isFunction(t)?"undefined"!=typeof ht.ready?ht.ready(t):t(rt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),rt.makeArray(t,this))};dt.prototype=rt.fn,ht=rt(et);var gt=/^(?:parents|prev(?:Until|All))/,vt={children:!0,contents:!0,next:!0,prev:!0};rt.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&rt(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),rt.fn.extend({has:function(t){var e=rt(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(rt.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=lt.test(t)||"string"!=typeof t?rt(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&rt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?rt.unique(o):o)},index:function(t){return t?"string"==typeof t?Z.call(rt(t),this[0]):Z.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(rt.unique(rt.merge(this.get(),rt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),rt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return rt.dir(t,"parentNode")},parentsUntil:function(t,e,n){return rt.dir(t,"parentNode",n)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return rt.dir(t,"nextSibling")},prevAll:function(t){return rt.dir(t,"previousSibling")},nextUntil:function(t,e,n){return rt.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return rt.dir(t,"previousSibling",n)},siblings:function(t){return rt.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return rt.sibling(t.firstChild)},contents:function(t){return t.contentDocument||rt.merge([],t.childNodes)}},function(t,e){rt.fn[t]=function(n,r){var i=rt.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=rt.filter(r,i)),this.length>1&&(vt[t]||rt.unique(i),gt.test(t)&&i.reverse()),this.pushStack(i)}});var mt=/\S+/g,yt={};rt.Callbacks=function(t){t="string"==typeof t?yt[t]||l(t):rt.extend({},t);var e,n,r,i,o,a,u=[],s=!t.once&&[],c=function(l){for(e=t.memory&&l,n=!0,a=i||0,i=0,o=u.length,r=!0;u&&o>a;a++)if(u[a].apply(l[0],l[1])===!1&&t.stopOnFalse){e=!1;break}r=!1,u&&(s?s.length&&c(s.shift()):e?u=[]:f.disable())},f={add:function(){if(u){var n=u.length;!function a(e){rt.each(e,function(e,n){var r=rt.type(n);"function"===r?t.unique&&f.has(n)||u.push(n):n&&n.length&&"string"!==r&&a(n)})}(arguments),r?o=u.length:e&&(i=n,c(e))}return this},remove:function(){return u&&rt.each(arguments,function(t,e){for(var n;(n=rt.inArray(e,u,n))>-1;)u.splice(n,1),r&&(o>=n&&o--,a>=n&&a--)}),this},has:function(t){return t?rt.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],o=0,this},disable:function(){return u=s=e=void 0,this},disabled:function(){return!u},lock:function(){return s=void 0,e||f.disable(),this},locked:function(){return!s},fireWith:function(t,e){return!u||n&&!s||(e=e||[],e=[t,e.slice?e.slice():e],r?s.push(e):c(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!n}};return f},rt.extend({Deferred:function(t){var e=[["resolve","done",rt.Callbacks("once memory"),"resolved"],["reject","fail",rt.Callbacks("once memory"),"rejected"],["notify","progress",rt.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return rt.Deferred(function(n){rt.each(e,function(e,o){var a=rt.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&rt.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?rt.extend(t,r):r}},i={};return r.pipe=r.then,rt.each(e,function(t,o){var a=o[2],u=o[3];r[o[1]]=a.add,u&&a.add(function(){n=u},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=W.call(arguments),a=o.length,u=1!==a||t&&rt.isFunction(t.promise)?a:0,s=1===u?t:rt.Deferred(),l=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?W.call(arguments):i,r===e?s.notifyWith(n,r):--u||s.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&rt.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(s.reject).progress(l(i,n,e)):--u;return u||s.resolveWith(r,o),s.promise()}});var xt;rt.fn.ready=function(t){return rt.ready.promise().done(t),this},rt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?rt.readyWait++:rt.ready(!0)},ready:function(t){(t===!0?--rt.readyWait:rt.isReady)||(rt.isReady=!0,t!==!0&&--rt.readyWait>0||(xt.resolveWith(et,[rt]),rt.fn.triggerHandler&&(rt(et).triggerHandler("ready"),rt(et).off("ready"))))}}),rt.ready.promise=function(t){return xt||(xt=rt.Deferred(),"complete"===et.readyState?setTimeout(rt.ready):(et.addEventListener("DOMContentLoaded",c,!1),n.addEventListener("load",c,!1))),xt.promise(t)},rt.ready.promise();var bt=rt.access=function(t,e,n,r,i,o,a){var u=0,s=t.length,l=null==n;if("object"===rt.type(n)){i=!0;for(u in n)rt.access(t,e,u,n[u],!0,o,a)}else if(void 0!==r&&(i=!0,rt.isFunction(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(rt(t),n)})),e))for(;s>u;u++)e(t[u],n,a?r:r.call(t[u],u,e(t[u],n)));return i?t:l?e.call(t):s?e(t[0],n):o};rt.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},f.uid=1,f.accepts=rt.acceptData,f.prototype={key:function(t){if(!f.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=f.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,rt.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(rt.isEmptyObject(o))rt.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,rt.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),a=this.cache[o];if(void 0===e)this.cache[o]={};else{rt.isArray(e)?r=e.concat(e.map(rt.camelCase)):(i=rt.camelCase(e),e in a?r=[e,i]:(r=i,r=r in a?[r]:r.match(mt)||[])),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(t){return!rt.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var wt=new f,Mt=new f,kt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,_t=/([A-Z])/g;rt.extend({hasData:function(t){return Mt.hasData(t)||wt.hasData(t)},data:function(t,e,n){return Mt.access(t,e,n)},removeData:function(t,e){Mt.remove(t,e)},_data:function(t,e,n){return wt.access(t,e,n)},_removeData:function(t,e){wt.remove(t,e)}}),rt.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=Mt.get(o),1===o.nodeType&&!wt.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=rt.camelCase(r.slice(5)),h(o,r,i[r])));wt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){Mt.set(this,t)}):bt(this,function(e){var n,r=rt.camelCase(t);if(o&&void 0===e){if(n=Mt.get(o,t),void 0!==n)return n;if(n=Mt.get(o,r),void 0!==n)return n;if(n=h(o,r,void 0),void 0!==n)return n}else this.each(function(){var n=Mt.get(this,r);Mt.set(this,r,e),-1!==t.indexOf("-")&&void 0!==n&&Mt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Mt.remove(this,t)})}}),rt.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=wt.get(t,e),n&&(!r||rt.isArray(n)?r=wt.access(t,e,rt.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=rt.queue(t,e),r=n.length,i=n.shift(),o=rt._queueHooks(t,e),a=function(){rt.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return wt.get(t,n)||wt.access(t,n,{empty:rt.Callbacks("once memory").add(function(){wt.remove(t,[e+"queue",n])})})}}),rt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?rt.queue(this[0],t):void 0===e?this:this.each(function(){var n=rt.queue(this,t,e);rt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&rt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){rt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=rt.Deferred(),o=this,a=this.length,u=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=wt.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(e)}});var Nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,St=["Top","Right","Bottom","Left"],Ct=function(t,e){return t=e||t,"none"===rt.css(t,"display")||!rt.contains(t.ownerDocument,t)},Et=/^(?:checkbox|radio)$/i;!function(){var t=et.createDocumentFragment(),e=t.appendChild(et.createElement("div")),n=et.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),tt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",tt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Tt="undefined";tt.focusinBubbles="onfocusin"in n;var At=/^key/,Lt=/^(?:mouse|pointer|contextmenu)|click/,Dt=/^(?:focusinfocus|focusoutblur)$/,qt=/^([^.]*)(?:\.(.+)|)$/;rt.event={global:{},add:function(t,e,n,r,i){var o,a,u,s,l,c,f,h,p,d,g,v=wt.get(t);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=rt.guid++),(s=v.events)||(s=v.events={}),(a=v.handle)||(a=v.handle=function(e){return typeof rt!==Tt&&rt.event.triggered!==e.type?rt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(mt)||[""],l=e.length;l--;)u=qt.exec(e[l])||[],p=g=u[1],d=(u[2]||"").split(".").sort(),p&&(f=rt.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=rt.event.special[p]||{},c=rt.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&rt.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,a)!==!1||t.addEventListener&&t.addEventListener(p,a,!1)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),rt.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,u,s,l,c,f,h,p,d,g,v=wt.hasData(t)&&wt.get(t);if(v&&(s=v.events)){for(e=(e||"").match(mt)||[""],l=e.length;l--;)if(u=qt.exec(e[l])||[],p=g=u[1],d=(u[2]||"").split(".").sort(),p){for(f=rt.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=s[p]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||u&&!u.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));a&&!h.length&&(f.teardown&&f.teardown.call(t,d,v.handle)!==!1||rt.removeEvent(t,p,v.handle),delete s[p])}else for(p in s)rt.event.remove(t,p+e[l],n,r,!0);rt.isEmptyObject(s)&&(delete v.handle,wt.remove(t,"events"))}},trigger:function(t,e,r,i){var o,a,u,s,l,c,f,h=[r||et],p=K.call(t,"type")?t.type:t,d=K.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||et,3!==r.nodeType&&8!==r.nodeType&&!Dt.test(p+rt.event.triggered)&&(p.indexOf(".")>=0&&(d=p.split("."),p=d.shift(),d.sort()),l=p.indexOf(":")<0&&"on"+p,t=t[rt.expando]?t:new rt.Event(p,"object"==typeof t&&t),
t.isTrigger=i?2:3,t.namespace=d.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:rt.makeArray(e,[t]),f=rt.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,e)!==!1)){if(!i&&!f.noBubble&&!rt.isWindow(r)){for(s=f.delegateType||p,Dt.test(s+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||et)&&h.push(u.defaultView||u.parentWindow||n)}for(o=0;(a=h[o++])&&!t.isPropagationStopped();)t.type=o>1?s:f.bindType||p,c=(wt.get(a,"events")||{})[t.type]&&wt.get(a,"handle"),c&&c.apply(a,e),c=l&&a[l],c&&c.apply&&rt.acceptData(a)&&(t.result=c.apply(a,e),t.result===!1&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),e)!==!1||!rt.acceptData(r)||l&&rt.isFunction(r[p])&&!rt.isWindow(r)&&(u=r[l],u&&(r[l]=null),rt.event.triggered=p,r[p](),rt.event.triggered=void 0,u&&(r[l]=u)),t.result}},dispatch:function(t){t=rt.event.fix(t);var e,n,r,i,o,a=[],u=W.call(arguments),s=(wt.get(this,"events")||{})[t.type]||[],l=rt.event.special[t.type]||{};if(u[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(a=rt.event.handlers.call(this,t,s),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,r=((rt.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],u=e.delegateCount,s=t.target;if(u&&s.nodeType&&(!t.button||"click"!==t.type))for(;s!==this;s=s.parentNode||this)if(s.disabled!==!0||"click"!==t.type){for(r=[],n=0;u>n;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?rt(i,this).index(s)>=0:rt.find(i,this,null,[s]).length),r[i]&&r.push(o);r.length&&a.push({elem:s,handlers:r})}return u<e.length&&a.push({elem:this,handlers:e.slice(u)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||et,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.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[rt.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Lt.test(i)?this.mouseHooks:At.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new rt.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=et),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.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&&rt.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return rt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=rt.extend(new rt.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?rt.event.trigger(i,null,e):rt.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},rt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},rt.Event=function(t,e){return this instanceof rt.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,e&&rt.extend(this,e),this.timeStamp=t&&t.timeStamp||rt.now(),void(this[rt.expando]=!0)):new rt.Event(t,e)},rt.Event.prototype={isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=p,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=p,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=p,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},rt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){rt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==r&&!rt.contains(r,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),tt.focusinBubbles||rt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){rt.event.simulate(e,t.target,rt.event.fix(t),!0)};rt.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=wt.access(r,e);i||r.addEventListener(t,n,!0),wt.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=wt.access(r,e)-1;i?wt.access(r,e,i):(r.removeEventListener(t,n,!0),wt.remove(r,e))}}}),rt.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(a in t)this.on(a,e,n,t[a],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),r===!1)r=d;else if(!r)return this;return 1===i&&(o=r,r=function(t){return rt().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=rt.guid++)),this.each(function(){rt.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,rt(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,e,t[i]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=d),this.each(function(){rt.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){rt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?rt.event.trigger(t,e,n,!0):void 0}});var jt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,zt=/<([\w:]+)/,Rt=/<|&#?\w+;/,Ht=/<(?:script|style|link)/i,Pt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ot=/^$|\/(?:java|ecma)script/i,Ft=/^true\/(.*)/,Bt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Xt={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,"",""]};Xt.optgroup=Xt.option,Xt.tbody=Xt.tfoot=Xt.colgroup=Xt.caption=Xt.thead,Xt.th=Xt.td,rt.extend({clone:function(t,e,n){var r,i,o,a,u=t.cloneNode(!0),s=rt.contains(t.ownerDocument,t);if(!(tt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||rt.isXMLDoc(t)))for(a=w(u),o=w(t),r=0,i=o.length;i>r;r++)M(o[r],a[r]);if(e)if(n)for(o=o||w(t),a=a||w(u),r=0,i=o.length;i>r;r++)b(o[r],a[r]);else b(t,u);return a=w(u,"script"),a.length>0&&x(a,!s&&w(t,"script")),u},buildFragment:function(t,e,n,r){for(var i,o,a,u,s,l,c=e.createDocumentFragment(),f=[],h=0,p=t.length;p>h;h++)if(i=t[h],i||0===i)if("object"===rt.type(i))rt.merge(f,i.nodeType?[i]:i);else if(Rt.test(i)){for(o=o||c.appendChild(e.createElement("div")),a=(zt.exec(i)||["",""])[1].toLowerCase(),u=Xt[a]||Xt._default,o.innerHTML=u[1]+i.replace(jt,"<$1></$2>")+u[2],l=u[0];l--;)o=o.lastChild;rt.merge(f,o.childNodes),o=c.firstChild,o.textContent=""}else f.push(e.createTextNode(i));for(c.textContent="",h=0;i=f[h++];)if((!r||-1===rt.inArray(i,r))&&(s=rt.contains(i.ownerDocument,i),o=w(c.appendChild(i),"script"),s&&x(o),n))for(l=0;i=o[l++];)Ot.test(i.type||"")&&n.push(i);return c},cleanData:function(t){for(var e,n,r,i,o=rt.event.special,a=0;void 0!==(n=t[a]);a++){if(rt.acceptData(n)&&(i=n[wt.expando],i&&(e=wt.cache[i]))){if(e.events)for(r in e.events)o[r]?rt.event.remove(n,r):rt.removeEvent(n,r,e.handle);wt.cache[i]&&delete wt.cache[i]}delete Mt.cache[n[Mt.expando]]}}}),rt.fn.extend({text:function(t){return bt(this,function(t){return void 0===t?rt.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 this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?rt.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||rt.cleanData(w(n)),n.parentNode&&(e&&rt.contains(n.ownerDocument,n)&&x(w(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(rt.cleanData(w(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return rt.clone(this,t,e)})},html:function(t){return bt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ht.test(t)&&!Xt[(zt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(jt,"<$1></$2>");try{for(;r>n;n++)e=this[n]||{},1===e.nodeType&&(rt.cleanData(w(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,rt.cleanData(w(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=V.apply([],t);var n,r,i,o,a,u,s=0,l=this.length,c=this,f=l-1,h=t[0],p=rt.isFunction(h);if(p||l>1&&"string"==typeof h&&!tt.checkClone&&Pt.test(h))return this.each(function(n){var r=c.eq(n);p&&(t[0]=h.call(this,n,r.html())),r.domManip(t,e)});if(l&&(n=rt.buildFragment(t,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=rt.map(w(n,"script"),m),o=i.length;l>s;s++)a=n,s!==f&&(a=rt.clone(a,!0,!0),o&&rt.merge(i,w(a,"script"))),e.call(this[s],a,s);if(o)for(u=i[i.length-1].ownerDocument,rt.map(i,y),s=0;o>s;s++)a=i[s],Ot.test(a.type||"")&&!wt.access(a,"globalEval")&&rt.contains(u,a)&&(a.src?rt._evalUrl&&rt._evalUrl(a.src):rt.globalEval(a.textContent.replace(Bt,"")))}return this}}),rt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){rt.fn[t]=function(t){for(var n,r=[],i=rt(t),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),rt(i[a])[e](n),J.apply(r,n.get());return this.pushStack(r)}});var Ut,It={},Yt=/^margin/,$t=new RegExp("^("+Nt+")(?!px)[a-z%]+$","i"),Wt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):n.getComputedStyle(t,null)};!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",i.appendChild(o);var t=n.getComputedStyle(a,null);e="1%"!==t.top,r="4px"===t.width,i.removeChild(o)}var e,r,i=et.documentElement,o=et.createElement("div"),a=et.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",tt.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(a),n.getComputedStyle&&rt.extend(tt,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==r&&t(),r},reliableMarginRight:function(){var t,e=a.appendChild(et.createElement("div"));return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-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",i.appendChild(o),t=!parseFloat(n.getComputedStyle(e,null).marginRight),i.removeChild(o),a.removeChild(e),t}}))}(),rt.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i};var Vt=/^(none|table(?!-c[ea]).+)/,Jt=new RegExp("^("+Nt+")(.*)$","i"),Zt=new RegExp("^([+-])=("+Nt+")","i"),Gt={position:"absolute",visibility:"hidden",display:"block"},Qt={letterSpacing:"0",fontWeight:"400"},Kt=["Webkit","O","Moz","ms"];rt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=N(t,"opacity");return""===n?"1":n}}}},cssNumber:{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,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,u=rt.camelCase(e),s=t.style;return e=rt.cssProps[u]||(rt.cssProps[u]=C(s,u)),a=rt.cssHooks[e]||rt.cssHooks[u],void 0===n?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:s[e]:(o=typeof n,"string"===o&&(i=Zt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(rt.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||rt.cssNumber[u]||(n+="px"),tt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(s[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(s[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,a,u=rt.camelCase(e);return e=rt.cssProps[u]||(rt.cssProps[u]=C(t.style,u)),a=rt.cssHooks[e]||rt.cssHooks[u],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=N(t,e,r)),"normal"===i&&e in Qt&&(i=Qt[e]),""===n||n?(o=parseFloat(i),n===!0||rt.isNumeric(o)?o||0:i):i}}),rt.each(["height","width"],function(t,e){rt.cssHooks[e]={get:function(t,n,r){return n?Vt.test(rt.css(t,"display"))&&0===t.offsetWidth?rt.swap(t,Gt,function(){return A(t,e,r)}):A(t,e,r):void 0},set:function(t,n,r){var i=r&&Wt(t);return E(t,n,r?T(t,e,r,"border-box"===rt.css(t,"boxSizing",!1,i),i):0)}}}),rt.cssHooks.marginRight=S(tt.reliableMarginRight,function(t,e){return e?rt.swap(t,{display:"inline-block"},N,[t,"marginRight"]):void 0}),rt.each({margin:"",padding:"",border:"Width"},function(t,e){rt.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[t+St[r]+e]=o[r]||o[r-2]||o[0];return i}},Yt.test(t)||(rt.cssHooks[t+e].set=E)}),rt.fn.extend({css:function(t,e){return bt(this,function(t,e,n){var r,i,o={},a=0;if(rt.isArray(e)){for(r=Wt(t),i=e.length;i>a;a++)o[e[a]]=rt.css(t,e[a],!1,r);return o}return void 0!==n?rt.style(t,e,n):rt.css(t,e)},t,e,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(){Ct(this)?rt(this).show():rt(this).hide()})}}),rt.Tween=D,D.prototype={constructor:D,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(rt.cssNumber[n]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return t&&t.get?t.get(this):D.propHooks._default.get(this)},run:function(t){var e,n=D.propHooks[this.prop];return this.options.duration?this.pos=e=rt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=rt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){rt.fx.step[t.prop]?rt.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[rt.cssProps[t.prop]]||rt.cssHooks[t.prop])?rt.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},rt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},rt.fx=D.prototype.init,rt.fx.step={};var te,ee,ne=/^(?:toggle|show|hide)$/,re=new RegExp("^(?:([+-])=|)("+Nt+")([a-z%]*)$","i"),ie=/queueHooks$/,oe=[R],ae={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=re.exec(e),o=i&&i[3]||(rt.cssNumber[t]?"":"px"),a=(rt.cssNumber[t]||"px"!==o&&+r)&&re.exec(rt.css(n.elem,t)),u=1,s=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do u=u||".5",a/=u,rt.style(n.elem,t,a+o);while(u!==(u=n.cur()/r)&&1!==u&&--s)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};rt.Animation=rt.extend(P,{tweener:function(t,e){rt.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;i>r;r++)n=t[r],ae[n]=ae[n]||[],ae[n].unshift(e)},prefilter:function(t,e){e?oe.unshift(t):oe.push(t)}}),rt.speed=function(t,e,n){var r=t&&"object"==typeof t?rt.extend({},t):{complete:n||!n&&e||rt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!rt.isFunction(e)&&e};return r.duration=rt.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in rt.fx.speeds?rt.fx.speeds[r.duration]:rt.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){rt.isFunction(r.old)&&r.old.call(this),r.queue&&rt.dequeue(this,r.queue)},r},rt.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Ct).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=rt.isEmptyObject(t),o=rt.speed(e,n,r),a=function(){var e=P(this,rt.extend({},t),o);(i||wt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=rt.timers,a=wt.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ie.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));(e||!n)&&rt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=wt.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=rt.timers,a=r?r.length:0;for(n.finish=!0,rt.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;a>e;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),rt.each(["toggle","show","hide"],function(t,e){var n=rt.fn[e];rt.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(j(e,!0),t,r,i)}}),rt.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){rt.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),rt.timers=[],rt.fx.tick=function(){var t,e=0,n=rt.timers;for(te=rt.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||rt.fx.stop(),te=void 0},rt.fx.timer=function(t){rt.timers.push(t),t()?rt.fx.start():rt.timers.pop()},rt.fx.interval=13,rt.fx.start=function(){ee||(ee=setInterval(rt.fx.tick,rt.fx.interval))},rt.fx.stop=function(){clearInterval(ee),ee=null},rt.fx.speeds={slow:600,fast:200,_default:400},rt.fn.delay=function(t,e){return t=rt.fx?rt.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t=et.createElement("input"),e=et.createElement("select"),n=e.appendChild(et.createElement("option"));t.type="checkbox",tt.checkOn=""!==t.value,tt.optSelected=n.selected,e.disabled=!0,tt.optDisabled=!n.disabled,t=et.createElement("input"),t.value="t",t.type="radio",tt.radioValue="t"===t.value}();var ue,se,le=rt.expr.attrHandle;rt.fn.extend({attr:function(t,e){return bt(this,rt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){rt.removeAttr(this,t)})}}),rt.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===Tt?rt.prop(t,e,n):(1===o&&rt.isXMLDoc(t)||(e=e.toLowerCase(),r=rt.attrHooks[e]||(rt.expr.match.bool.test(e)?se:ue)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=rt.find.attr(t,e),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void rt.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(mt);if(o&&1===t.nodeType)for(;n=o[i++];)r=rt.propFix[n]||n,rt.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!tt.radioValue&&"radio"===e&&rt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),se={set:function(t,e,n){return e===!1?rt.removeAttr(t,n):t.setAttribute(n,n),n}},rt.each(rt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=le[e]||rt.find.attr;le[e]=function(t,e,r){var i,o;return r||(o=le[e],le[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,le[e]=o),i}});var ce=/^(?:input|select|textarea|button)$/i;rt.fn.extend({prop:function(t,e){return bt(this,rt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[rt.propFix[t]||t]})}}),rt.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var r,i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return o=1!==a||!rt.isXMLDoc(t),o&&(e=rt.propFix[e]||e,i=rt.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||ce.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),tt.optSelected||(rt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),rt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){rt.propFix[this.toLowerCase()]=this});var fe=/[\t\r\n\f]/g;rt.fn.extend({addClass:function(t){var e,n,r,i,o,a,u="string"==typeof t&&t,s=0,l=this.length;if(rt.isFunction(t))return this.each(function(e){rt(this).addClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(mt)||[];l>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(fe," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=rt.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,u=0===arguments.length||"string"==typeof t&&t,s=0,l=this.length;if(rt.isFunction(t))return this.each(function(e){rt(this).removeClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(mt)||[];l>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(fe," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=t?rt.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):rt.isFunction(t)?this.each(function(n){rt(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,r=0,i=rt(this),o=t.match(mt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===Tt||"boolean"===n)&&(this.className&&wt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":wt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(fe," ").indexOf(e)>=0)return!0;return!1}});var he=/\r/g;rt.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=rt.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,rt(this).val()):t,null==i?i="":"number"==typeof i?i+="":rt.isArray(i)&&(i=rt.map(i,function(t){return null==t?"":t+""})),e=rt.valHooks[this.type]||rt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=rt.valHooks[i.type]||rt.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(he,""):null==n?"":n)}}}),rt.extend({valHooks:{option:{get:function(t){var e=rt.find.attr(t,"value");return null!=e?e:rt.trim(rt.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,a=o?null:[],u=o?i+1:r.length,s=0>i?u:o?i:0;u>s;s++)if(n=r[s],(n.selected||s===i)&&(tt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!rt.nodeName(n.parentNode,"optgroup"))){if(e=rt(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=rt.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=rt.inArray(r.value,o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),rt.each(["radio","checkbox"],function(){rt.valHooks[this]={set:function(t,e){return rt.isArray(e)?t.checked=rt.inArray(rt(t).val(),e)>=0:void 0}},tt.checkOn||(rt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),rt.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,e){rt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),rt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var pe=rt.now(),de=/\?/;rt.parseJSON=function(t){return JSON.parse(t+"")},rt.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{n=new DOMParser,e=n.parseFromString(t,"text/xml")}catch(r){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&rt.error("Invalid XML: "+t),e};var ge=/#.*$/,ve=/([?&])_=[^&]*/,me=/^(.*?):[ \t]*([^\r\n]*)$/gm,ye=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,xe=/^(?:GET|HEAD)$/,be=/^\/\//,we=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Me={},ke={},_e="*/".concat("*"),Ne=n.location.href,Se=we.exec(Ne.toLowerCase())||[];rt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ne,type:"GET",isLocal:ye.test(Se[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_e,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":rt.parseJSON,"text xml":rt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?B(B(t,rt.ajaxSettings),e):B(rt.ajaxSettings,t)},ajaxPrefilter:O(Me),ajaxTransport:O(ke),ajax:function(t,e){function n(t,e,n,a){var s,c,m,y,b,M=e;2!==x&&(x=2,u&&clearTimeout(u),r=void 0,o=a||"",w.readyState=t>0?4:0,s=t>=200&&300>t||304===t,n&&(y=X(f,w,n)),y=U(f,y,w,s),s?(f.ifModified&&(b=w.getResponseHeader("Last-Modified"),b&&(rt.lastModified[i]=b),b=w.getResponseHeader("etag"),b&&(rt.etag[i]=b)),204===t||"HEAD"===f.type?M="nocontent":304===t?M="notmodified":(M=y.state,c=y.data,m=y.error,s=!m)):(m=M,(t||!M)&&(M="error",0>t&&(t=0))),w.status=t,w.statusText=(e||M)+"",s?d.resolveWith(h,[c,M,w]):d.rejectWith(h,[w,M,m]),w.statusCode(v),v=void 0,l&&p.trigger(s?"ajaxSuccess":"ajaxError",[w,f,s?c:m]),g.fireWith(h,[w,M]),l&&(p.trigger("ajaxComplete",[w,f]),--rt.active||rt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,u,s,l,c,f=rt.ajaxSetup({},e),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?rt(h):rt.event,d=rt.Deferred(),g=rt.Callbacks("once memory"),v=f.statusCode||{},m={},y={},x=0,b="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!a)for(a={};e=me.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=y[n]=y[n]||t,m[t]=e),this},overrideMimeType:function(t){return x||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>x)for(e in t)v[e]=[v[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||b;return r&&r.abort(e),n(0,e),this}};if(d.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,f.url=((t||f.url||Ne)+"").replace(ge,"").replace(be,Se[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=rt.trim(f.dataType||"*").toLowerCase().match(mt)||[""],null==f.crossDomain&&(s=we.exec(f.url.toLowerCase()),f.crossDomain=!(!s||s[1]===Se[1]&&s[2]===Se[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(Se[3]||("http:"===Se[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=rt.param(f.data,f.traditional)),F(Me,f,e,w),2===x)return w;l=rt.event&&f.global,l&&0===rt.active++&&rt.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!xe.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(de.test(i)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=ve.test(i)?i.replace(ve,"$1_="+pe++):i+(de.test(i)?"&":"?")+"_="+pe++)),f.ifModified&&(rt.lastModified[i]&&w.setRequestHeader("If-Modified-Since",rt.lastModified[i]),rt.etag[i]&&w.setRequestHeader("If-None-Match",rt.etag[i])),(f.data&&f.hasContent&&f.contentType!==!1||e.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+_e+"; q=0.01":""):f.accepts["*"]);for(c in f.headers)w.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(f.beforeSend.call(h,w,f)===!1||2===x))return w.abort();b="abort";for(c in{success:1,error:1,complete:1})w[c](f[c]);if(r=F(ke,f,e,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(u=setTimeout(function(){w.abort("timeout")},f.timeout));try{x=1,r.send(m,n)}catch(M){if(!(2>x))throw M;n(-1,M)}}else n(-1,"No Transport");return w},getJSON:function(t,e,n){return rt.get(t,e,n,"json")},getScript:function(t,e){return rt.get(t,void 0,e,"script")}}),rt.each(["get","post"],function(t,e){rt[e]=function(t,n,r,i){return rt.isFunction(n)&&(i=i||r,r=n,n=void 0),rt.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),rt._evalUrl=function(t){return rt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},rt.fn.extend({wrapAll:function(t){var e;return rt.isFunction(t)?this.each(function(e){rt(this).wrapAll(t.call(this,e))}):(this[0]&&(e=rt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return rt.isFunction(t)?this.each(function(e){rt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=rt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=rt.isFunction(t);return this.each(function(n){rt(this).wrapAll(e?t.call(this,n):t);
})},unwrap:function(){return this.parent().each(function(){rt.nodeName(this,"body")||rt(this).replaceWith(this.childNodes)}).end()}}),rt.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},rt.expr.filters.visible=function(t){return!rt.expr.filters.hidden(t)};var Ce=/%20/g,Ee=/\[\]$/,Te=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;rt.param=function(t,e){var n,r=[],i=function(t,e){e=rt.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=rt.ajaxSettings&&rt.ajaxSettings.traditional),rt.isArray(t)||t.jquery&&!rt.isPlainObject(t))rt.each(t,function(){i(this.name,this.value)});else for(n in t)I(n,t[n],e,i);return r.join("&").replace(Ce,"+")},rt.fn.extend({serialize:function(){return rt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=rt.prop(this,"elements");return t?rt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!rt(this).is(":disabled")&&Le.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!Et.test(t))}).map(function(t,e){var n=rt(this).val();return null==n?null:rt.isArray(n)?rt.map(n,function(t){return{name:e.name,value:t.replace(Te,"\r\n")}}):{name:e.name,value:n.replace(Te,"\r\n")}}).get()}}),rt.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var De=0,qe={},je={0:200,1223:204},ze=rt.ajaxSettings.xhr();n.attachEvent&&n.attachEvent("onunload",function(){for(var t in qe)qe[t]()}),tt.cors=!!ze&&"withCredentials"in ze,tt.ajax=ze=!!ze,rt.ajaxTransport(function(t){var e;return tt.cors||ze&&!t.crossDomain?{send:function(n,r){var i,o=t.xhr(),a=++De;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(delete qe[a],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?r(o.status,o.statusText):r(je[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e("error"),e=qe[a]=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(u){if(e)throw u}},abort:function(){e&&e()}}:void 0}),rt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return rt.globalEval(t),t}}}),rt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),rt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=rt("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),et.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Re=[],He=/(=)\?(?=&|$)|\?\?/;rt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Re.pop()||rt.expando+"_"+pe++;return this[t]=!0,t}}),rt.ajaxPrefilter("json jsonp",function(t,e,r){var i,o,a,u=t.jsonp!==!1&&(He.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&He.test(t.data)&&"data");return u||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=rt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(He,"$1"+i):t.jsonp!==!1&&(t.url+=(de.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||rt.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Re.push(i)),a&&rt.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),rt.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||et;var r=ct.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=rt.buildFragment([t],e,i),i&&i.length&&rt(i).remove(),rt.merge([],r.childNodes))};var Pe=rt.fn.load;rt.fn.load=function(t,e,n){if("string"!=typeof t&&Pe)return Pe.apply(this,arguments);var r,i,o,a=this,u=t.indexOf(" ");return u>=0&&(r=rt.trim(t.slice(u)),t=t.slice(0,u)),rt.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&rt.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?rt("<div>").append(rt.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},rt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){rt.fn[e]=function(t){return this.on(e,t)}}),rt.expr.filters.animated=function(t){return rt.grep(rt.timers,function(e){return t===e.elem}).length};var Oe=n.document.documentElement;rt.offset={setOffset:function(t,e,n){var r,i,o,a,u,s,l,c=rt.css(t,"position"),f=rt(t),h={};"static"===c&&(t.style.position="relative"),u=f.offset(),o=rt.css(t,"top"),s=rt.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+s).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(s)||0),rt.isFunction(e)&&(e=e.call(t,n,u)),null!=e.top&&(h.top=e.top-u.top+a),null!=e.left&&(h.left=e.left-u.left+i),"using"in e?e.using.call(t,h):f.css(h)}},rt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){rt.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,rt.contains(e,r)?(typeof r.getBoundingClientRect!==Tt&&(i=r.getBoundingClientRect()),n=Y(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===rt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),rt.nodeName(t[0],"html")||(r=t.offset()),r.top+=rt.css(t[0],"borderTopWidth",!0),r.left+=rt.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-rt.css(n,"marginTop",!0),left:e.left-r.left-rt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Oe;t&&!rt.nodeName(t,"html")&&"static"===rt.css(t,"position");)t=t.offsetParent;return t||Oe})}}),rt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var r="pageYOffset"===e;rt.fn[t]=function(i){return bt(this,function(t,i,o){var a=Y(t);return void 0===o?a?a[e]:t[i]:void(a?a.scrollTo(r?n.pageXOffset:o,r?o:n.pageYOffset):t[i]=o)},t,i,arguments.length,null)}}),rt.each(["top","left"],function(t,e){rt.cssHooks[e]=S(tt.pixelPosition,function(t,n){return n?(n=N(t,e),$t.test(n)?rt(t).position()[e]+"px":n):void 0})}),rt.each({Height:"height",Width:"width"},function(t,e){rt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){rt.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return bt(this,function(e,n,r){var i;return rt.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?rt.css(e,n,a):rt.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),rt.fn.size=function(){return this.length},rt.fn.andSelf=rt.fn.addBack,r=[],i=function(){return rt}.apply(e,r),!(void 0!==i&&(t.exports=i));var Fe=n.jQuery,Be=n.$;return rt.noConflict=function(t){return n.$===rt&&(n.$=Be),t&&n.jQuery===rt&&(n.jQuery=Fe),rt},typeof o===Tt&&(n.jQuery=n.$=rt),rt})},function(t,e,n){"use strict";var r=n(13);window.onload=function(){n(22);var t=n(28);t.on("file-loaded",function(t){var e=JSON.parse(t);document.body.classList.remove("loading"),r(document.body,e)}),t.send("treex-view-ready")}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(4),a=n(3),u=n(23),s=function(){function t(e){var i=this;r(this,t),this.element=e,this.hideEmpty=!0,this.hidden=!0;var s=o(n(20)(u)),l=o(e);l.append(s),l.find('input[name="hide-empty"]').change(function(t){i.hideEmpty=t.target.checked,i.update()}),l.find("span[close]").click(function(){i.hide()}),this._dispatch=a.dispatch("open","close"),this.table=a.select(this.element).classed(u.attributes,!0).select("[table]")}return i(t,[{key:"onOpen",value:function(t){this._dispatch.on("open",t)}},{key:"onClose",value:function(t){this._dispatch.on("close",t)}},{key:"update",value:function(){this.createTable(this.filterData(this.node.attributes),this.table)}},{key:"createTable",value:function(t,e){var n=this;if(0===t.length)return void e.append("tr").append("td").text("<empty>");var r=e.selectAll(function(){return e.node().childNodes}).data(t,function(t){return t.id}),i=r.enter().append("tr").selectAll(function(){return r.node().childNodes}).data(function(t){return t&&t.expand?[t]:[t.name,t.value]},function(t){return t&&t.id?t.id:t});i.enter().append("td").attr("colspan",function(t){return t&&t.expand?2:null}).each(function(t){var r=a.select(this);return t&&"object"==typeof t?(e=r.text(t.name).attr("class",u.expandable).append("table").append("tbody"),void n.createTable(n.filterData(t.children),e)):void r.text(t)}),i.exit().remove(),r.exit().remove(),r.sort(function(t,e){return a.ascending(t.name,e.name)})}},{key:"filterData",value:function(t){return this.hideEmpty?t.filter(function(t){return""!==t.value&&null!==t.value}):t}},{key:"show",value:function(t){this.node=t,t?(this.hidden&&(o(this.element).addClass(u.visible),this._dispatch.open(),this.hidden=!1),this.update()):this.hide()}},{key:"hide",value:function(){this.hidden||(o(this.element).removeClass(u.visible),this._dispatch.close(),this.hidden=!0)}}]),t}();t.exports=s},function(t,e,n){"use strict";function r(){this.parent=i("body"),this.visible=!1,this.hint=i("<div>").addClass(o.hint)}var i=n(4),o=n(24);!function(t){t.show=function(t){this.lastContent!==t&&(this.hint.html(t.replace(/\n/g,"<br />")),this.lastContent=t),this.visible||(this.parent.append(this.hint),this.visible=!0)},t.move=function(t,e){("undefined"==typeof e||"left"!==e&&"right"!==e)&&(e="left");var n=t.pageY+10,r=0,o=this.hint.outerWidth(),a=this.hint.outerHeight(),u=i(window).width(),s=i(document).height();"left"===e?(r=t.pageX+10,r+o>u&&(r-=r+o-u)):r=this.parent.width()-t.pageX+10,n+a>s&&(n-=n+a-s),this.hint.css(e,r).css("top",n)},t.hide=function(){this.hint&&(this.hint.remove(),this.visible=!1)},t.offsetX=function(){return this.parent.offset().left},t.offsetY=function(){return this.parent.offset().top}}(r.prototype),t.exports=r},function(t,e,n){"use strict";function r(t){return i.merge(t.map(function(t){return(t.children()||[]).map(function(e){return{source:t,target:e}})}))}var i=n(3),o={nodeXSkip:10,nodeYSkip:5,marginX:2,marginY:2};t.exports.constituency=function(t){function e(t){var e=t.allNodes().sort(function(t,e){return i.ascending(t.order,e.order)});return n=i.max(e,function(t){return t.depth()}),e}var n;return t=o,t.nodeXSkip=4,e.computeLayout=function(e){for(var r,i,o,a=-1,u=e.length,s=[],l=0,c=[],f=[];++a<u;)o=e[a],i=o.isLeaf()?n:o.depth(),c[i]||(c[i]=0),l+=o.width/2,0===a?s[0]=l:(c[i]>=l?l=c[i]+t.nodeXSkip:l+=t.nodeXSkip,s[a]=l,c[i]=l+o.width,o.isRoot()||1!==o.children().length||(l+=15)),(!f[i]||f[i]<o.height)&&(f[i]=o.height);for(f.push(0),a=0,r=f.length,i=0;r>a;a++){var h=f[a];f[a]=i,i+=h}for(a=-1;++a<u;)o=e[a],i=o.isLeaf()?n:o.depth(),o.y=t.marginY,o.y+=f[i]+(t.nodeYSkip+t.marginY)*i,o.x=t.marginX+a*t.marginX+s[a]},e.nodes=e,e.links=r,e},t.exports.tree=function(t){function e(t){return t.allNodes().sort(function(t,e){return i.ascending(t.order,e.order)})}return t=o,e.computeLayout=function(e){for(var n,r,i,o=-1,a=e.length,u=[],s=0,l=[],c=[];++o<a;)i=e[o],r=i.depth(),l[r]||(l[r]=0),l[r]>=s?s=l[r]+t.nodeXSkip:s+=t.nodeXSkip,u[o]=s,l[r]=s+i.width,(!c[r]||c[r]<i.height)&&(c[r]=i.height);for(c.push(0),o=0,n=c.length,r=0;n>o;o++){var f=c[o];c[o]=r,r+=f}for(o=-1;++o<a;)i=e[o],r=i.depth(),i.y=t.marginY,i.y=c[r]+(t.nodeYSkip+t.marginY)*r,i.x=t.marginX+o*t.marginX+u[o]},e.nodes=e,e.links=r,e}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(4),a=n(3),u=n(25),s=12,l=function f(t,e,n){r(this,f),this.number=t,this.bundle=t-1,this.text=e,this.active=!!n},c=function(){function t(e){r(this,t),this.element=e}return i(t,[{key:"getPages",value:function(){var t=this.treeView,e=t.$doc.bundles.length,n=t.bundle+1,r=1,i=e,o=e>s,a=[];o&&(r=Math.max(n-Math.floor(s/2),1),i=r+s-1,i>e&&(i=e,r=i-s+1));for(var u=r;i>=u;u++)a.push(new l(u,u,n===u));return o&&(r>3&&a.unshift(new l(r-1,"...")),e>i&&a.push(new l(i+1,"..."))),a}},{key:"init",value:function(t){var e=this;o(this.element).empty(),this.treeView=t,t.$doc.bundles.length<=1||(a.select(this.element).classed(u.pagination,!0),this.prev=this._button().text("Previous").on("click",function(){t.previousBundle(),e.renderPages()}),this.pages=a.select(this.element).append("ul").attr("class",u.pages),this.next=this._button().text("Next").on("click",function(){t.nextBundle(),e.renderPages()}),this.renderPages())}},{key:"_button",value:function(){return a.select(this.element).append("button").attr({"class":u.button,type:"button"})}},{key:"renderPages",value:function(){var t=this,e=this.pages.selectAll("li").data(this.getPages(),function(t){return t.text+t.bundle});e.enter().append("li").on("click",function(e){t.treeView.setBundle(e.bundle),t.renderPages()}).append("span").text(function(t){return t.text}),e.exit().remove(),e.classed(u.active,function(t){return t.active}),e.sort(function(t,e){return a.ascending(t.number,e.number)}),this.update()}},{key:"update",value:function(){var t=this;this.next.property("disabled",function(){return!t.treeView.hasNextBundle()}),this.prev.property("disabled",function(){return!t.treeView.hasPreviousBundle()})}}]),t}();t.exports=c},function(t,e){"use strict";function n(t){return c(t).style("fill",m.anode),t.call(p),t}function r(t){return t.append("line").style("stroke-width",2).style("stroke",m.edge)}function i(t){return t.attr("x1",function(t){return t.source.x+x+1}).attr("y1",function(t){return t.source.y+x+1}).attr("x2",function(t){return t.target.x+x+1}).attr("y2",function(t){return t.target.y+x+1}),t}function o(t){var e=this;return t.each(function(t){var n=d3.select(this),r=t.attr("is_generated")?f(n):c(n);r.attr("fill",function(t){return!t.isRoot()&&e.isCoord(t)?m.tnode_coord:m.tnode})}),t.call(p),t}function a(t){var e=this;return t=t.append("line").each(function(t){var n=t.source,r=t.target,i=d3.select(this),o=m.edge,a=2,u=null;r.attr("is_member")?!r.isRoot()&&e.isCoord(n)?(a=1,o=m.coord):o=m.error:!r.isRoot()&&e.isCoord(n)?o=m.coord_mod:e.isCoord(r)&&(o=m.coord,a=1);var s=null!=r.attr("functor")?r.attr("functor")[0]["#value"]:"";(s.match(/^(PAR|PARTL|VOCAT|RHEM|CM|FPHR|PREC)$/)||!r.isRoot()&&n.isRoot())&&(a=1,u="1, 2",o=m.edge),i.style("stroke-width",a).style("stroke",o),u&&i.style("stroke-dasharray",u)})}function u(t){return t.each(function(t){var e,n,r=t.isLeaf(),i=d3.select(this);r?(e=c(i).attr("cx",0).attr("cy",0),i.call(d),i.select("text").style("text-anchor","middle"),n="-NONE-"===t.attr("tag")?"trace":t.attr("is_head")?"terminal_head":"terminal"):(e=h(i),n=t.attr("is_head")?"nonterminal_head":"nonterminal"),e.attr("fill",m[n])}),t}function s(t){return t.append("path").attr("stroke-width",1).attr("stroke",m.edge).attr("fill","none").attr("stroke-dasharray",function(t){return t.target.isLeaf()?"4,3":"none"})}function l(t){return t.attr("d",function(t){var e=t.source,n=t.target;e.isLeaf()?x+1:e.width/2,n.isLeaf()?x+1:n.width/2;return"M"+e.x+" "+e.y+"L"+n.x+" "+e.y+"L"+n.x+" "+n.y}),t}function c(t){return t.append("circle").style("stroke",m.edge).style("stroke-width",1).attr("r",x).attr("cx",x+1).attr("cy",x+1)}function f(t){return t.append("rect").attr("width",b).attr("height",b).attr("x",1).attr("y",1).style("stroke",m.edge).style("stroke-width",1)}function h(t){return t.append("rect").style("stroke",m.edge).style("stroke-width",1).each(function(t){var e=d3.select(this),n=d3.select(this.parentNode),r=n.append("text").style("text-anchor","middle").style("font-family","Arial").style("font-size","12px").style("line-height","normal").attr("stroke","none").attr("font-size","12px").attr("font",'10px "Arial"').call(g),i=r.node().getBBox();r.attr("x",0).attr("y",i.height/2),e.attr("width",i.width+4).attr("height",i.height+1).attr("x",-i.width/2-1).attr("y",-i.height/2+2)})}function p(t){return t.append("rect").attr("x",0).attr("y",9).style("fill-opacity",.9).attr("fill","white").each(function(t){var e=d3.select(this),n=d3.select(this.parentNode),r=n.append("text").attr("dx",1).attr("dy",22).style("text-anchor","start").style("font-family","Arial").style("font-size","12px").style("line-height","normal").call(g),i=r.node().getBBox();e.attr("width",i.width+1).attr("height",i.height+2)})}function d(t){return t.append("rect").attr("x",0).attr("y",9).style("fill-opacity",.9).attr("fill","white").each(function(t){var e=d3.select(this),n=d3.select(this.parentNode),r=n.append("text").attr("dx",1).attr("dy",22).style("text-anchor","middle").style("font-family","Arial").style("font-size","12px").style("line-height","normal").call(g),i=r.node().getBBox();e.attr("width",i.width+2).attr("height",i.height+2).attr("x",-i.width/2+1)})}function g(t){t.each(function(t){if(t.labels){var e=d3.select(this),n=t.labels.slice(),r=t.data.wild_dump;if(r&&r.labels)for(var i in r.labels)r.labels.hasOwnProperty(i)&&r.labels[i]&&n.push("#{orange}"+i);for(var o=0,a=n.length;a>o;o++){var u,s=n[o]||"",l=s.match(/#\{[\w#]+\}/g),c=s.split(/#\{[\w#]+\}/);!c[0]&&c.length>1&&c.shift();for(var f=0,h=c.length;h>f;f++){var p=null;l&&f<l.length&&(p=l[f].slice(2,-1)),u=e.append("tspan"),o&&0==f&&u.attr("dy",12*1.2),0==f&&u.attr("x",1),p&&u.attr("fill",p),u.text(c[f])}}}})}function v(t){switch(this.tree=t,t.layer){case"p":this.styleNode=u,this.styleConnection=s,this.connect=l;break;case"t":this.styleNode=o,this.styleConnection=a,this.connect=i;break;default:this.styleNode=n,this.styleConnection=r,this.connect=i}}var m={edge:"#555555",coord:"#bbbbbb",error:"#ff0000",anode:"#ff6666",anode_coord:"#ff6666",nnode:"#ffff00",tnode:"#4488ff",tnode_coord:"#ccddff",terminal:"#ffff66",terminal_head:"#90ee90",nonterminal_head:"#90ee90",nonterminal:"#ffffe0",trace:"#aaaaaa",current:"#ff0000",coref_gram:"#c05633",coref_text:"#4c509f",compl:"#629f52",alignment:"#bebebe",coindex:"#ffa500",lex:"#006400",aux:"#ff8c00",parenthesis:"#809080",afun:"#00008b",member:"#0000ff",sentmod:"#006400",subfunctor:"#a02818",nodetype:"#00008b",sempos:"#8b008b",phrase:"#00008b",formeme:"#b000b0",tag:"#004048",tag_feat:"#7098A0",clause0:"#ff00ff",clause1:"#ffa500",clause2:"#0000ff",clause3:"#3cb371",clause4:"#ff0000",clause5:"#9932cc",clause6:"#00008b",clause7:"#006400",clause8:"#8b0000",clause9:"#008b8b"},y=/^(ADVS|APPS|CONFR|CONJ|CONTRA|CSQ|DISJ|GRAD|OPER|REAS)$/,x=3.5,b=7;v.prototype.isCoord=function(t){return"t"!==this.layer?!1:null!==(null!==t?t.data.functor:void 0)&&y.test(t.data.functor)},t.exports=v},function(t,e,n){"use strict";function r(t){this.$top=i.select(t)}var i=n(3),o=n(8),a=n(7),u=n(10),s=n(26);!function(t){function e(t,e,n){t.selectAll("span").remove();var r=t.selectAll("span").data(n.desc);r.enter().append("span").attr("class",function(t){return t.slice(1).map(function(t){return s[t]?s[t]:t}).join(" ")}).each(function(t){var n=i.select(this),r=t[1];"newline"===r?n.append("br"):n.text(function(t){return t[0]}),"label"!=r&&"newline"!=r&&"space"!=r&&(n.classed(s.mouseHighlight,!0),n.on("click",function(t){var n=t.slice(1),r=n.length,o=-1;if(0!=r){for(;++o<r;)n[o]="#"+n[o];e.selectAll(n.join(", ")).each(function(){var t=i.select(this),e=i.select(this.firstChild)||t,n=this.firstChild?this.firstChild.getBBox():this.getBBox(),r=n.width/2,o=n.height/2,a=Math.sqrt(r*r+o*o);t.append("circle").attr("cx",n.x+r).attr("cy",n.y+o).attr("r",a).attr("fill","none").attr("stroke",e.style("fill")||"orange").attr("stroke-width",3).transition().duration(1e3).attr("r",4*a).remove()})}}))}),r.exit().remove()}t.init=function(t){var e=this,n=e.$top;e.$doc=t,e.bundle=0,e.dispatch=i.dispatch("nodeSelect"),e.selectedNode=null,e.desc=null,e.svg=n.append("div").attr("class",s.treeviewGfx).append("svg")},t.description=function(t){this.desc=i.select(t)},t.selectNode=function(t,e){var n=this,r=n.selectedNode;r!==e?(n.deselectNode(!0),n.nodeSelection=i.select(e).append("rect").attr("width",t.width).attr("height",t.height).attr("x",0).attr("y",0).style("fill","#c80000").style("fill-opacity","0.1").style("stroke","#c80000").style("stroke-width","1.5px"),n.selectedNode=e,n.dispatch.nodeSelect(t,e,r)):n.deselectNode()},t.deselectNode=function(t){var e=this;e.nodeSelection&&(e.nodeSelection.remove(),t||e.dispatch.nodeSelect(null,null,e.selectedNode),e.selectedNode=e.nodeSelection=null)},t.onNodeSelect=function(t){this.dispatch.on("nodeSelect",t)},t.nextBundle=function(){var t=this;t.hasNextBundle()&&(t.bundle+=1,t.drawBundle())},t.hasNextBundle=function(){return this.bundle+1<this.$doc.bundles.length},t.previousBundle=function(){var t=this;t.hasPreviousBundle()&&(t.bundle-=1,t.drawBundle())},t.setBundle=function(t){this.bundle=t,this.drawBundle()},t.hasPreviousBundle=function(){return this.bundle>0},t.drawBundle=function(){var t,n,r=this,l=r.$doc.bundles[r.bundle],c=r.desc,f=new a,h=r.svg;r.deselectNode(),c&&e(c,r.svg,l);var p=h.selectAll("."+s.tree).data(l.allTrees(),function(t){return t.language+"-"+t.layer});p.enter().append("g").attr("class",s.tree);var d,g=r;t=n=0,p.each(function(e){var r=i.select(this),a=new u(e),l="p"===e.layer?o.constituency():o.tree(),h=l.nodes(e),p=l.links(h);!r.select("g."+s.link).empty()||r.append("g").attr("class",s.links),!r.select("g."+s.link).empty()||r.append("g").attr("class",s.nodes);var v=r.select("g."+s.links).selectAll("."+s.link).data(p,function(t){return t.source.uid+"|"+t.target.uid});a.styleConnection(v.enter()).attr("class",s.link).order();var m=r.select("g."+s.nodes).selectAll("."+s.node).data(h,function(t){return t.uid});a.styleNode(m.enter().append("g").attr("class",s.node).attr("id",function(t){return t.id})),m.each(function(t){var e=this.getBBox();t.figure=this,t.width=e.width,t.height=e.height});var y;c&&(y=function(t){c.selectAll("span."+t.id).classed(s.highlight,!1),t.hint&&f.hide()},m.on("mouseover",function(t){c.selectAll("span."+t.id).classed(s.highlight,!0),t.hint&&f.show(t.hint)}).on("mousemove",function(t){t.hint&&f.move(i.event)}).on("mouseout",y)),m.on("click",function(t){if(g.selectNode(t,this),y){var e=i.mouse(this);(e[0]<0||e[0]>t.width||e[1]<0||e[1]>t.height)&&y(t)}}),l.computeLayout(h),a.connect(v),v.exit().remove(),m.attr("transform",function(t){return"translate("+t.x+","+t.y+")"}),m.exit().remove();var x=this.getBBox(),b=0;d?(b=d.x+d.width+10,t=b+x.width):t=x.x+x.width,n<x.height&&(n=x.height),x.x=b,r.attr("transform","translate("+x.x+",10)"),d=x}),p.exit().remove(),h.attr("width",t+14).attr("height",n+12)}}(r.prototype),t.exports=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i,o,a,u,s,l=t.exports={},c=n(3);l.documents={};var f="hasOwnProperty";l.parseStyles=function(t){var e={};if(!t)return e;var n=t.match(/#\{[a-zA-Z0-9-:\.#]+\}/g);if(!n)return e;for(var r=0;r<n.length;r++){var i=n[r].slice(2,-1);i=i.split(":");var o=i[0];i=i[1],o=o.split("-");var a=o.length>1?o.shift():"Node";o=o.shift(),e[a]||(e[a]={}),e[a][o]=i}return e},i=function(){this.bundles=[],this.file=""},l.Document=i,l.document=function(){return new i},i.fromJSON=function(t){for(var e=new i,n=-1,r=t.length;++n<r;){var a=t[n],u=o.fromJSON(a);u.document=e,e.bundles.push(u)}return e},o=function(){this.zones={},this.document=null},l.Bundle=o,l.bundle=function(){return new o},o.prototype={allZones:function(){var t=[];for(var e in this.zones)t.push(this.zones[e]);return t},allTrees:function(){var t=[],e=this.zones;for(var n in e)if(e[f](n)){var r=e[n],i=r.trees;for(var o in i)i[f](o)&&t.push(i[o])}return t}},o.fromJSON=function(t){var e=new o,n=t.zones;e.style=l.parseStyles(t.style),e.desc=t.desc;for(var r in n){var i=n[r],u=a.fromJSON(i);u.bundle=e,u.label=r,e.zones[r]=u}return e},a=function(){this.trees={},this.sentence="",this.label="",this.bundle=null},l.Zone=a,l.zone=function(){return new a},a.fromJSON=function(t){var e=new a,n=t.trees;for(var r in n){var i=n[r],o=e.trees[r]=u.fromJSON(i.nodes);o.layer=i.layer,o.language=i.language}return e.sentence=t.sentence,e},u=function(t){this.root=t,this.layer="",this.language=""},l.Tree=u,l.tree=function(t){return new u(t)},u.fromJSON=function(t){for(var e,n,r={},i=[],o=null,a=0,l=t.length;l>a;a++)n=t[a],o=new s(n.id,n.data,n.style),o.labels=n.labels,o.hint=n.hint,o.order=a,r[n.id]=o,i.push(o),null===n.parent&&(e=o);if(!e)throw"Tree has no root!";var c=new u(e);for(c.index=r,c.nodes=i,a=0,l=t.length;l>a;a++)o=i[a],n=t[a],n.firstson&&(o.firstson=r[n.firstson]),n.parent&&(o.parent=r[n.parent]),n.rbrother&&(o.rbrother=r[n.rbrother]);return c},u.prototype={allNodes:function(){return this.nodes}};var h=0,p=function g(t,e){var n=this,i=arguments.length<=2||void 0===arguments[2]?null:arguments[2];r(this,g),this.id=h++,this.name=t,this.parent=i,e&&"object"==typeof e?(this.expand=!0,this.children=c.entries(e).map(function(t){return new g(t.key,t.value,n)})):this.value=e},d=0;s=function(t,e,n){this.id=t,this.data=e||{},this.attributes=c.entries(this.data).map(function(t){return new p(t.key,t.value)}),this.style=l.parseStyles(n),this.parent=null,this.lbrother=null,this.rbrother=null,this.firstson=null,this.order=d++,this.uid="node_"+this.order},l.Node=s,l.node=function(t,e){return new s(t,e)},s.prototype={isLeaf:function(){return null==this.firstson},isRoot:function(){return null==this.parent},root:function(){for(var t=this;t&&null!=t.parent;)t=t.parent;return t},attr:function(t){return this.data[t]},following:function(t){if(this.firstson)return this.firstson;for(var e=this;e;){if(e.uid==t.uid||!e.parent)return null;if(e.rbrother)return e.rbrother;e=e.parent}return null},descendants:function(){for(var t=[],e=this.following(this);e;)t.push(e),e=e.following(this);return t},leftmostDescendant:function(){for(var t=this;t.firstson;)t=t.firstson;return t},rightmostDescendant:function(){for(var t=this;t.firstson;)for(t=t.firstson;t.rbrother;)t=t.rbrother;return t},depth:function(){for(var t=-1,e=this;e;)e=e.parent,t++;return t},children:function v(){for(var v=[],t=this.firstson;t;)v.push(t),t=t.rbrother;return v}}},function(t,e,n){"use strict";function r(){for(var t=["svg","pagination","sentence","attributes"],e=n(27),r=i(n(21)(e)),o={html:r},a=t.length-1;a>=0;a--){var u=t[a];o[u]=r.find("["+u+"]").get(0)}return o}var i=n(4),o=n(12),a=n(11),u=n(9),s=n(6);t.exports=function(t,e){var n=i(t),l=r();n.html(l.html);var c=new a(l.svg);c.init(o.Document.fromJSON(e));var f=new u(l.pagination);f.init(c);var h=new s(l.attributes);c.onNodeSelect(function(t){h.show(t)}),h.onClose(function(){c.deselectNode(!0)}),c.description(l.sentence),c.drawBundle()}},function(t,e,n){e=t.exports=n(1)(),e.push([t.id,"html{width:100%}body,html{min-height:100%}body{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}body.loading{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.cssload-loader{position:relative;width:368px;height:368px;border-radius:50%;-webkit-perspective:4600px;perspective:4600px}.cssload-inner{position:absolute;width:100%;height:100%;box-sizing:border-box;border-radius:50%}.cssload-inner.cssload-one{left:0;top:0;-webkit-animation:cssload-rotate-one 1.15s linear infinite;animation:cssload-rotate-one 1.15s linear infinite;border-bottom:17px solid #000}.cssload-inner.cssload-two{right:0;top:0;-webkit-animation:cssload-rotate-two 1.15s linear infinite;animation:cssload-rotate-two 1.15s linear infinite;border-right:17px solid #000}.cssload-inner.cssload-three{right:0;bottom:0;-webkit-animation:cssload-rotate-three 1.15s linear infinite;animation:cssload-rotate-three 1.15s linear infinite;border-top:17px solid #000}@-webkit-keyframes cssload-rotate-one{0%{-webkit-transform:rotateX(35deg) rotateY(-45deg) rotate(0deg);transform:rotateX(35deg) rotateY(-45deg) rotate(0deg)}to{-webkit-transform:rotateX(35deg) rotateY(-45deg) rotate(1turn);transform:rotateX(35deg) rotateY(-45deg) rotate(1turn)}}@keyframes cssload-rotate-one{0%{-webkit-transform:rotateX(35deg) rotateY(-45deg) rotate(0deg);transform:rotateX(35deg) rotateY(-45deg) rotate(0deg)}to{-webkit-transform:rotateX(35deg) rotateY(-45deg) rotate(1turn);transform:rotateX(35deg) rotateY(-45deg) rotate(1turn)}}@-webkit-keyframes cssload-rotate-two{0%{-webkit-transform:rotateX(50deg) rotateY(10deg) rotate(0deg);transform:rotateX(50deg) rotateY(10deg) rotate(0deg)}to{-webkit-transform:rotateX(50deg) rotateY(10deg) rotate(1turn);transform:rotateX(50deg) rotateY(10deg) rotate(1turn)}}@keyframes cssload-rotate-two{0%{-webkit-transform:rotateX(50deg) rotateY(10deg) rotate(0deg);transform:rotateX(50deg) rotateY(10deg) rotate(0deg)}to{-webkit-transform:rotateX(50deg) rotateY(10deg) rotate(1turn);transform:rotateX(50deg) rotateY(10deg) rotate(1turn)}}@-webkit-keyframes cssload-rotate-three{0%{-webkit-transform:rotateX(35deg) rotateY(55deg) rotate(0deg);transform:rotateX(35deg) rotateY(55deg) rotate(0deg)}to{-webkit-transform:rotateX(35deg) rotateY(55deg) rotate(1turn);transform:rotateX(35deg) rotateY(55deg) rotate(1turn)}}@keyframes cssload-rotate-three{0%{-webkit-transform:rotateX(35deg) rotateY(55deg) rotate(0deg);transform:rotateX(35deg) rotateY(55deg) rotate(0deg)}to{-webkit-transform:rotateX(35deg) rotateY(55deg) rotate(1turn);transform:rotateX(35deg) rotateY(55deg) rotate(1turn)}}",""])},function(t,e,n){e=t.exports=n(1)(),e.push([t.id,"._wyzEJ{width:0;display:none;-webkit-box-flex:0;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;font-size:11px;padding:5px 0 0;margin:5px 5px 0 0;border-top:2px solid #ddd;border-right:2px solid #ddd;border-radius:4px}._wyzEJ ._A_k8H table{width:100%;max-width:100%;border-spacing:0;border-collapse:collapse;table-layout:auto}._wyzEJ ._A_k8H table tbody>tr>td:first-child{font-weight:700;white-space:nowrap}._wyzEJ ._A_k8H table tbody>tr>td:nth-child(2){font-weight:400;word-wrap:break-word;white-space:pre-wrap;white-space:pre-line;width:100%;max-width:150px}._wyzEJ ._A_k8H table tbody>tr>td{border:1px solid #ddd;border-right:none;padding:1px 3px}._wyzEJ ._A_k8H table tbody>tr>td>table{border:none;margin-left:5%;margin-bottom:-1px;width:95%;max-width:95%}._wyzEJ ._1fzUE{padding:1px 0 0 3px!important}._1HZnV{width:300px;min-width:300px;display:block}._3cNrh{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;padding:0 5px}._1mzDu{-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;position:relative;color:#777}._1mzDu label{display:inline-block;min-height:20px;max-width:100%;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}._1mzDu input{position:absolute;margin:4px 0 0 -20px;padding:0;line-height:normal}._26lQ8 span{font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2;cursor:pointer}._26lQ8 span:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}",""]),
e.locals={attributes:"_wyzEJ",table:"_A_k8H",expandable:"_1fzUE",visible:"_1HZnV",controls:"_3cNrh",hideEmptyCheckbox:"_1mzDu",closeButton:"_26lQ8"}},function(t,e,n){e=t.exports=n(1)(),e.push([t.id,"._XDxEE{position:absolute;font-family:Helvetica Neue,Helvetica,Arial,'sans-serif';font-size:14px;line-height:20px;z-index:350;border:1px solid #000;background-color:#faf7aa;padding:4px;border-radius:4px;white-space:nowrap}",""]),e.locals={hint:"_XDxEE"}},function(t,e,n){e=t.exports=n(1)(),e.push([t.id,"._3iZkq{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin:10px 0}._wg-LX{display:inline-block;padding-left:0;border-radius:4px;margin:0 5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._wg-LX>li{display:inline}._wg-LX>li>span{position:relative;float:left;padding:6px 12px;line-height:20px;text-decoration:none;color:#337ab7;background-color:#fff;border:1px solid #ddd;margin-left:-1px;cursor:pointer}._wg-LX>li:first-child>span{margin-left:0}._wg-LX>li>span:focus,._wg-LX>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}._wg-LX>._2fP21>span,._wg-LX>._2fP21>span:focus,._wg-LX>._2fP21>span:hover{z-index:3;color:#23527c;background-color:#eee;border-color:#ddd;cursor:default}._vRJTd{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;color:#23527c;outline:none;cursor:pointer}._vRJTd:hover{color:#337ab7;background-color:#eee;border-color:#ddd}",""]),e.locals={pagination:"_3iZkq",pages:"_wg-LX",active:"_2fP21",button:"_vRJTd"}},function(t,e,n){e=t.exports=n(1)(),e.push([t.id,"._afvzu{font:inherit}._2lieM{display:inline-block;padding:2px 4px;font-size:12px;border-radius:3px;font-weight:700;line-height:16px;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);white-space:nowrap;vertical-align:top;background-color:#999}._1uJ05{background-color:#ff0}._3Wgg1:hover{background-color:#ffa;cursor:pointer}._3criC,._19NMQ{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._19NMQ{cursor:pointer}._1fwq5,._2nS8a,._R_cI5{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}",""]),e.locals={treeviewGfx:"_afvzu",label:"_2lieM",highlight:"_1uJ05",mouseHighlight:"_3Wgg1",nodes:"_3criC",node:"_19NMQ",links:"_R_cI5",link:"_1fwq5",tree:"_2nS8a"}},function(t,e,n){e=t.exports=n(1)(),e.push([t.id,"._k9DtN{font-family:Helvetica Neue,Helvetica,Arial,'sans-serif';font-size:14px;line-height:20px;color:#333;background-color:#fff}._3q5xU{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden}._2nZyh{overflow:auto;min-height:600px}",""]),e.locals={container:"_k9DtN",pane:"_3q5xU",svg:"_2nZyh"}},function(t,e){t.exports=function(t){var e='<div class="'+t.controls+'"> <div class="'+t.hideEmptyCheckbox+'"> <label> <input type="checkbox" name="hide-empty" checked="checked" /> Hide empty attributes </label> </div> <div class="'+t.closeButton+'"> <span close>&times;</span> </div></div><div class="'+t.table+'"> <table> <tbody table></tbody> </table></div>';return e}},function(t,e){t.exports=function(t){var e='<div class="'+t.container+'"> <div pagination></div> <div sentence></div> <div class="'+t.pane+'"> <div attributes></div> <div svg class="'+t.svg+'"></div> </div></div>';return e}},function(t,e,n){var r=n(14);"string"==typeof r&&(r=[[t.id,r,""]]);n(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(15);"string"==typeof r&&(r=[[t.id,r,""]]);n(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(16);"string"==typeof r&&(r=[[t.id,r,""]]);n(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(17);"string"==typeof r&&(r=[[t.id,r,""]]);n(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(18);"string"==typeof r&&(r=[[t.id,r,""]]);n(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(19);"string"==typeof r&&(r=[[t.id,r,""]]);n(2)(r,{});r.locals&&(t.exports=r.locals)},function(t,e){t.exports=require("ipc")}]);
//# sourceMappingURL=index.js.map