| 12 |
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.dagreD3=n():t.dagreD3=n()}(window,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=45)}([function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(3),u=(r=i)&&r.__esModule?r:{default:r};var o=/:/g;function a(t){return t?String(t).replace(o,"\\:"):""}n.default={isSubgraph:function(t,n){return!!t.children(n).length},edgeToId:function(t){return a(t.v)+":"+a(t.w)+":"+a(t.name)},applyStyle:function(t,n){n&&t.attr("style",n)},applyClass:function(t,n,e){n&&t.attr("class",n).attr("class",e+" "+t.attr("class"))},applyTransition:function(t,n){var e=n.graph();if(u.default.isPlainObject(e)){var r=e.transition;if(u.default.isFunction(r))return r(t)}return t}}},function(t,n,e){var r;try{r=e(3)}catch(t){}r||(r=window._),t.exports=r},function(t,n,e){"use strict";e.r(n);var r=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},i=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return r(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)>0?i=u:r=u+1}return r}}};var u=i(r),o=u.right,a=u.left,c=o,f=function(t,n){null==n&&(n=s);for(var e=0,r=t.length-1,i=t[0],u=new Array(r<0?0:r);e<r;)u[e]=n(i,i=t[++e]);return u};function s(t,n){return[t,n]}var l=function(t,n,e){var r,i,u,o,a=t.length,c=n.length,f=new Array(a*c);for(null==e&&(e=s),r=u=0;r<a;++r)for(o=t[r],i=0;i<c;++i,++u)f[u]=e(o,n[i]);return f},h=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,n){var e,r,i=t.length,u=0,o=-1,a=0,c=0;if(null==n)for(;++o<i;)isNaN(e=d(t[o]))||(c+=(r=e-a)*(e-(a+=r/++u)));else for(;++o<i;)isNaN(e=d(n(t[o],o,t)))||(c+=(r=e-a)*(e-(a+=r/++u)));if(u>1)return c/(u-1)},v=function(t,n){var e=p(t,n);return e?Math.sqrt(e):e},g=function(t,n){var e,r,i,u=t.length,o=-1;if(null==n){for(;++o<u;)if(null!=(e=t[o])&&e>=e)for(r=i=e;++o<u;)null!=(e=t[o])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++o<u;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=i=e;++o<u;)null!=(e=n(t[o],o,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]},_=Array.prototype,y=_.slice,m=_.map,x=function(t){return function(){return t}},b=function(t){return t},w=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),u=new Array(i);++r<i;)u[r]=t+r*e;return u},M=Math.sqrt(50),E=Math.sqrt(10),k=Math.sqrt(2),N=function(t,n,e){var r,i,u,o,a=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(o=T(t,n,e))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),n=Math.floor(n/o),u=new Array(i=Math.ceil(n-t+1));++a<i;)u[a]=(t+a)*o;else for(t=Math.floor(t*o),n=Math.ceil(n*o),u=new Array(i=Math.ceil(t-n+1));++a<i;)u[a]=(t-a)/o;return r&&u.reverse(),u};function T(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),u=r/Math.pow(10,i);return i>=0?(u>=M?10:u>=E?5:u>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(u>=M?10:u>=E?5:u>=k?2:1)}function S(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/i;return u>=M?i*=10:u>=E?i*=5:u>=k&&(i*=2),n<t?-i:i}var A=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},C=function(){var t=b,n=g,e=A;function r(r){var i,u,o=r.length,a=new Array(o);for(i=0;i<o;++i)a[i]=t(r[i],i,r);var f=n(a),s=f[0],l=f[1],h=e(a,s,l);Array.isArray(h)||(h=S(s,l,h),h=w(Math.ceil(s/h)*h,Math.floor(l/h)*h,h));for(var d=h.length;h[0]<=s;)h.shift(),--d;for(;h[d-1]>l;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:s,p.x1=i<d?h[i]:l;for(i=0;i<o;++i)s<=(u=a[i])&&u<=l&&v[c(h,u,0,d)].push(r[i]);return v}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:x(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:x([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?x(y.call(t)):x(t),r):e},r},P=function(t,n,e){if(null==e&&(e=d),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,u=Math.floor(i),o=+e(t[u],u,t);return o+(+e(t[u+1],u+1,t)-o)*(i-u)}},O=function(t,n,e){return t=m.call(t,d).sort(r),Math.ceil((e-n)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))},j=function(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))},R=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u<i;)if(null!=(e=t[u])&&e>=e)for(r=e;++u<i;)null!=(e=t[u])&&e>r&&(r=e)}else for(;++u<i;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=e;++u<i;)null!=(e=n(t[u],u,t))&&e>r&&(r=e);return r},L=function(t,n){var e,r=t.length,i=r,u=-1,o=0;if(null==n)for(;++u<r;)isNaN(e=d(t[u]))?--i:o+=e;else for(;++u<r;)isNaN(e=d(n(t[u],u,t)))?--i:o+=e;if(i)return o/i},z=function(t,n){var e,i=t.length,u=-1,o=[];if(null==n)for(;++u<i;)isNaN(e=d(t[u]))||o.push(e);else for(;++u<i;)isNaN(e=d(n(t[u],u,t)))||o.push(e);return P(o.sort(r),.5)},I=function(t){for(var n,e,r,i=t.length,u=-1,o=0;++u<i;)o+=t[u].length;for(e=new Array(o);--i>=0;)for(n=(r=t[i]).length;--n>=0;)e[--o]=r[n];return e},U=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u<i;)if(null!=(e=t[u])&&e>=e)for(r=e;++u<i;)null!=(e=t[u])&&r>e&&(r=e)}else for(;++u<i;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=e;++u<i;)null!=(e=n(t[u],u,t))&&r>e&&(r=e);return r},D=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},q=function(t,n){if(e=t.length){var e,i,u=0,o=0,a=t[o];for(null==n&&(n=r);++u<e;)(n(i=t[u],a)<0||0!==n(a,a))&&(a=i,o=u);return 0===n(a,a)?o:void 0}},B=function(t,n,e){for(var r,i,u=(null==e?t.length:e)-(n=null==n?0:+n);u;)i=Math.random()*u--|0,r=t[u+n],t[u+n]=t[i+n],t[i+n]=r;return t},F=function(t,n){var e,r=t.length,i=-1,u=0;if(null==n)for(;++i<r;)(e=+t[i])&&(u+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(u+=e);return u},Y=function(t){if(!(i=t.length))return[];for(var n=-1,e=U(t,W),r=new Array(e);++n<e;)for(var i,u=-1,o=r[n]=new Array(i);++u<i;)o[u]=t[u][n];return r};function W(t){return t.length}var H=function(){return Y(arguments)},V=Array.prototype.slice,X=function(t){return t},$=1,G=2,Z=3,Q=4,K=1e-6;function J(t){return"translate("+(t+.5)+",0)"}function tt(t){return"translate(0,"+(t+.5)+")"}function nt(){return!this.__axis}function et(t,n){var e=[],r=null,i=null,u=6,o=6,a=3,c=t===$||t===Q?-1:1,f=t===Q||t===G?"x":"y",s=t===$||t===Z?J:tt;function l(l){var h=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,d=null==i?n.tickFormat?n.tickFormat.apply(n,e):X:i,p=Math.max(u,0)+a,v=n.range(),g=+v[0]+.5,_=+v[v.length-1]+.5,y=(n.bandwidth?function(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}:function(t){return function(n){return+t(n)}})(n.copy()),m=l.selection?l.selection():l,x=m.selectAll(".domain").data([null]),b=m.selectAll(".tick").data(h,n).order(),w=b.exit(),M=b.enter().append("g").attr("class","tick"),E=b.select("line"),k=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(M),E=E.merge(M.append("line").attr("stroke","#000").attr(f+"2",c*u)),k=k.merge(M.append("text").attr("fill","#000").attr(f,c*p).attr("dy",t===$?"0em":t===Z?"0.71em":"0.32em")),l!==m&&(x=x.transition(l),b=b.transition(l),E=E.transition(l),k=k.transition(l),w=w.transition(l).attr("opacity",K).attr("transform",function(t){return isFinite(t=y(t))?s(t):this.getAttribute("transform")}),M.attr("opacity",K).attr("transform",function(t){var n=this.parentNode.__axis;return s(n&&isFinite(n=n(t))?n:y(t))})),w.remove(),x.attr("d",t===Q||t==G?"M"+c*o+","+g+"H0.5V"+_+"H"+c*o:"M"+g+","+c*o+"V0.5H"+_+"V"+c*o),b.attr("opacity",1).attr("transform",function(t){return s(y(t))}),E.attr(f+"2",c*u),k.attr(f,c*p).text(d),m.filter(nt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===G?"start":t===Q?"end":"middle"),m.each(function(){this.__axis=y})}return l.scale=function(t){return arguments.length?(n=t,l):n},l.ticks=function(){return e=V.call(arguments),l},l.tickArguments=function(t){return arguments.length?(e=null==t?[]:V.call(t),l):e.slice()},l.tickValues=function(t){return arguments.length?(r=null==t?null:V.call(t),l):r&&r.slice()},l.tickFormat=function(t){return arguments.length?(i=t,l):i},l.tickSize=function(t){return arguments.length?(u=o=+t,l):u},l.tickSizeInner=function(t){return arguments.length?(u=+t,l):u},l.tickSizeOuter=function(t){return arguments.length?(o=+t,l):o},l.tickPadding=function(t){return arguments.length?(a=+t,l):a},l}function rt(t){return et($,t)}function it(t){return et(G,t)}function ut(t){return et(Z,t)}function ot(t){return et(Q,t)}var at={value:function(){}};function ct(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new ft(r)}function ft(t){this._=t}function st(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function lt(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=at,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}ft.prototype=ct.prototype={constructor:ft,on:function(t,n){var e,r,i=this._,u=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");if(e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})),o=-1,a=u.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=u[o]).type)i[e]=lt(i[e],t.name,n);else if(null==n)for(e in i)i[e]=lt(i[e],t.name,null);return this}for(;++o<a;)if((e=(t=u[o]).type)&&(e=st(i[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new ft(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),u=0;u<e;++u)i[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=0,e=(r=this._[t]).length;u<e;++u)r[u].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,u=r.length;i<u;++i)r[i].value.apply(n,e)}};var ht=ct,dt="http://www.w3.org/1999/xhtml",pt={svg:"http://www.w3.org/2000/svg",xhtml:dt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},vt=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),pt.hasOwnProperty(n)?{space:pt[n],local:t}:t};var gt=function(t){var n=vt(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===dt&&n.documentElement.namespaceURI===dt?n.createElement(t):n.createElementNS(e,t)}})(n)};function _t(){}var yt=function(t){return null==t?_t:function(){return this.querySelector(t)}};function mt(){return[]}var xt=function(t){return null==t?mt:function(){return this.querySelectorAll(t)}},bt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var wt=document.documentElement;if(!wt.matches){var Mt=wt.webkitMatchesSelector||wt.msMatchesSelector||wt.mozMatchesSelector||wt.oMatchesSelector;bt=function(t){return function(){return Mt.call(this,t)}}}}var Et=bt,kt=function(t){return new Array(t.length)};function Nt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Nt.prototype={constructor:Nt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Tt="$";function St(t,n,e,r,i,u){for(var o,a=0,c=n.length,f=u.length;a<f;++a)(o=n[a])?(o.__data__=u[a],r[a]=o):e[a]=new Nt(t,u[a]);for(;a<c;++a)(o=n[a])&&(i[a]=o)}function At(t,n,e,r,i,u,o){var a,c,f,s={},l=n.length,h=u.length,d=new Array(l);for(a=0;a<l;++a)(c=n[a])&&(d[a]=f=Tt+o.call(c,c.__data__,a,n),f in s?i[a]=c:s[f]=c);for(a=0;a<h;++a)(c=s[f=Tt+o.call(t,u[a],a,u)])?(r[a]=c,c.__data__=u[a],s[f]=null):e[a]=new Nt(t,u[a]);for(a=0;a<l;++a)(c=n[a])&&s[d[a]]===c&&(i[a]=c)}function Ct(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var Pt=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Ot(t,n){return t.style.getPropertyValue(n)||Pt(t).getComputedStyle(t,null).getPropertyValue(n)}function jt(t){return t.trim().split(/^|\s+/)}function Rt(t){return t.classList||new Lt(t)}function Lt(t){this._node=t,this._names=jt(t.getAttribute("class")||"")}function zt(t,n){for(var e=Rt(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function It(t,n){for(var e=Rt(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}Lt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ut(){this.textContent=""}function Dt(){this.innerHTML=""}function qt(){this.nextSibling&&this.parentNode.appendChild(this)}function Bt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ft(){return null}function Yt(){var t=this.parentNode;t&&t.removeChild(this)}function Wt(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Ht(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Vt={},Xt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Vt={mouseenter:"mouseover",mouseleave:"mouseout"}));function $t(t,n,e){return t=Gt(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Gt(t,n,e){return function(r){var i=Xt;Xt=r;try{t.call(this,this.__data__,n,e)}finally{Xt=i}}}function Zt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r<u;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Qt(t,n,e){var r=Vt.hasOwnProperty(t.type)?$t:Gt;return function(i,u,o){var a,c=this.__on,f=r(n,u,o);if(c)for(var s=0,l=c.length;s<l;++s)if((a=c[s]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=f,a.capture=e),void(a.value=n);this.addEventListener(t.type,f,e),a={type:t.type,name:t.name,value:n,listener:f,capture:e},c?c.push(a):this.__on=[a]}}function Kt(t,n,e,r){var i=Xt;t.sourceEvent=Xt,Xt=t;try{return n.apply(e,r)}finally{Xt=i}}function Jt(t,n,e){var r=Pt(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}var tn=[null];function nn(t,n){this._groups=t,this._parents=n}function en(){return new nn([[document.documentElement]],tn)}nn.prototype=en.prototype={constructor:nn,select:function(t){"function"!=typeof t&&(t=yt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,o,a=n[i],c=a.length,f=r[i]=new Array(c),s=0;s<c;++s)(u=a[s])&&(o=t.call(u,u.__data__,s,a))&&("__data__"in u&&(o.__data__=u.__data__),f[s]=o);return new nn(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=xt(t));for(var n=this._groups,e=n.length,r=[],i=[],u=0;u<e;++u)for(var o,a=n[u],c=a.length,f=0;f<c;++f)(o=a[f])&&(r.push(t.call(o,o.__data__,f,a)),i.push(o));return new nn(r,i)},filter:function(t){"function"!=typeof t&&(t=Et(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,o=n[i],a=o.length,c=r[i]=[],f=0;f<a;++f)(u=o[f])&&t.call(u,u.__data__,f,o)&&c.push(u);return new nn(r,this._parents)},data:function(t,n){if(!t)return p=new Array(this.size()),s=-1,this.each(function(t){p[++s]=t}),p;var e,r=n?At:St,i=this._parents,u=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var o=u.length,a=new Array(o),c=new Array(o),f=new Array(o),s=0;s<o;++s){var l=i[s],h=u[s],d=h.length,p=t.call(l,l&&l.__data__,s,i),v=p.length,g=c[s]=new Array(v),_=a[s]=new Array(v);r(l,h,g,_,f[s]=new Array(d),p,n);for(var y,m,x=0,b=0;x<v;++x)if(y=g[x]){for(x>=b&&(b=x+1);!(m=_[b])&&++b<v;);y._next=m||null}}return(a=new nn(a,i))._enter=c,a._exit=f,a},enter:function(){return new nn(this._enter||this._groups.map(kt),this._parents)},exit:function(){return new nn(this._exit||this._groups.map(kt),this._parents)},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,u=Math.min(r,i),o=new Array(r),a=0;a<u;++a)for(var c,f=n[a],s=e[a],l=f.length,h=o[a]=new Array(l),d=0;d<l;++d)(c=f[d]||s[d])&&(h[d]=c);for(;a<r;++a)o[a]=n[a];return new nn(o,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],u=i.length-1,o=i[u];--u>=0;)(r=i[u])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Ct);for(var e=this._groups,r=e.length,i=new Array(r),u=0;u<r;++u){for(var o,a=e[u],c=a.length,f=i[u]=new Array(c),s=0;s<c;++s)(o=a[s])&&(f[s]=o);f.sort(n)}return new nn(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,u=r.length;i<u;++i){var o=r[i];if(o)return o}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,u=n[e],o=0,a=u.length;o<a;++o)(i=u[o])&&t.call(i,i.__data__,o,u);return this},attr:function(t,n){var e=vt(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?e.local?function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}:function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:e.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):Ot(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=jt(t+"");if(arguments.length<2){for(var r=Rt(this.node()),i=-1,u=e.length;++i<u;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?zt:It)(this,t)}}:n?function(t){return function(){zt(this,t)}}:function(t){return function(){It(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?Ut:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Dt:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(qt)},lower:function(){return this.each(Bt)},append:function(t){var n="function"==typeof t?t:gt(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:gt(t),r=null==n?Ft:"function"==typeof n?n:yt(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Yt)},clone:function(t){return this.select(t?Ht:Wt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,u=function(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),o=u.length;if(!(arguments.length<2)){for(a=n?Qt:Zt,null==e&&(e=!1),r=0;r<o;++r)this.each(a(u[r],n,e));return this}var a=this.node().__on;if(a)for(var c,f=0,s=a.length;f<s;++f)for(r=0,c=a[f];r<o;++r)if((i=u[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return Jt(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return Jt(this,t,n)}})(t,n))}};var rn=en,un=function(t){return"string"==typeof t?new nn([[document.querySelector(t)]],[document.documentElement]):new nn([[t]],tn)},on=function(t){return un(gt(t).call(document.documentElement))},an=0;function cn(){return new fn}function fn(){this._="@"+(++an).toString(36)}fn.prototype=cn.prototype={constructor:fn,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var sn=function(){for(var t,n=Xt;t=n.sourceEvent;)n=t;return n},ln=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},hn=function(t){var n=sn();return n.changedTouches&&(n=n.changedTouches[0]),ln(t,n)},dn=function(t){return"string"==typeof t?new nn([document.querySelectorAll(t)],[document.documentElement]):new nn([null==t?[]:t],tn)},pn=function(t,n,e){arguments.length<3&&(e=n,n=sn().changedTouches);for(var r,i=0,u=n?n.length:0;i<u;++i)if((r=n[i]).identifier===e)return ln(t,r);return null},vn=function(t,n){null==n&&(n=sn().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=ln(t,n[e]);return i};function gn(){Xt.stopImmediatePropagation()}var _n=function(){Xt.preventDefault(),Xt.stopImmediatePropagation()},yn=function(t){var n=t.document.documentElement,e=un(t).on("dragstart.drag",_n,!0);"onselectstart"in n?e.on("selectstart.drag",_n,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")};function mn(t,n){var e=t.document.documentElement,r=un(t).on("dragstart.drag",null);n&&(r.on("click.drag",_n,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}var xn=function(t){return function(){return t}};function bn(t,n,e,r,i,u,o,a,c,f){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=u,this.y=o,this.dx=a,this.dy=c,this._=f}function wn(){return!Xt.button}function Mn(){return this.parentNode}function En(t){return null==t?{x:Xt.x,y:Xt.y}:t}function kn(){return"ontouchstart"in this}bn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Nn=function(){var t,n,e,r,i=wn,u=Mn,o=En,a=kn,c={},f=ht("start","drag","end"),s=0,l=0;function h(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",g).on("touchmove.drag",_).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var o=m("mouse",u.apply(this,arguments),hn,this,arguments);o&&(un(Xt.view).on("mousemove.drag",p,!0).on("mouseup.drag",v,!0),yn(Xt.view),gn(),e=!1,t=Xt.clientX,n=Xt.clientY,o("start"))}}function p(){if(_n(),!e){var r=Xt.clientX-t,i=Xt.clientY-n;e=r*r+i*i>l}c.mouse("drag")}function v(){un(Xt.view).on("mousemove.drag mouseup.drag",null),mn(Xt.view,e),_n(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,n,e=Xt.changedTouches,r=u.apply(this,arguments),o=e.length;for(t=0;t<o;++t)(n=m(e[t].identifier,r,pn,this,arguments))&&(gn(),n("start"))}}function _(){var t,n,e=Xt.changedTouches,r=e.length;for(t=0;t<r;++t)(n=c[e[t].identifier])&&(_n(),n("drag"))}function y(){var t,n,e=Xt.changedTouches,i=e.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<i;++t)(n=c[e[t].identifier])&&(gn(),n("end"))}function m(t,n,e,r,i){var u,a,l,d=e(n,t),p=f.copy();if(Kt(new bn(h,"beforestart",u,t,s,d[0],d[1],0,0,p),function(){return null!=(Xt.subject=u=o.apply(r,i))&&(a=u.x-d[0]||0,l=u.y-d[1]||0,!0)}))return function o(f){var v,g=d;switch(f){case"start":c[t]=o,v=s++;break;case"end":delete c[t],--s;case"drag":d=e(n,t),v=s}Kt(new bn(h,f,u,t,v,d[0]+a,d[1]+l,d[0]-g[0],d[1]-g[1],p),p.apply,p,[f,r,i])}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:xn(!!t),h):i},h.container=function(t){return arguments.length?(u="function"==typeof t?t:xn(t),h):u},h.subject=function(t){return arguments.length?(o="function"==typeof t?t:xn(t),h):o},h.touchable=function(t){return arguments.length?(a="function"==typeof t?t:xn(!!t),h):a},h.on=function(){var t=f.on.apply(f,arguments);return t===f?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h},Tn=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function Sn(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function An(){}var Cn="\\s*([+-]?\\d+)\\s*",Pn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",On="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jn=/^#([0-9a-f]{3})$/,Rn=/^#([0-9a-f]{6})$/,Ln=new RegExp("^rgb\\("+[Cn,Cn,Cn]+"\\)$"),zn=new RegExp("^rgb\\("+[On,On,On]+"\\)$"),In=new RegExp("^rgba\\("+[Cn,Cn,Cn,Pn]+"\\)$"),Un=new RegExp("^rgba\\("+[On,On,On,Pn]+"\\)$"),Dn=new RegExp("^hsl\\("+[Pn,On,On]+"\\)$"),qn=new RegExp("^hsla\\("+[Pn,On,On,Pn]+"\\)$"),Bn={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};function Fn(t){var n;return t=(t+"").trim().toLowerCase(),(n=jn.exec(t))?new Xn((n=parseInt(n[1],16))>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Rn.exec(t))?Yn(parseInt(n[1],16)):(n=Ln.exec(t))?new Xn(n[1],n[2],n[3],1):(n=zn.exec(t))?new Xn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=In.exec(t))?Wn(n[1],n[2],n[3],n[4]):(n=Un.exec(t))?Wn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Dn.exec(t))?$n(n[1],n[2]/100,n[3]/100,1):(n=qn.exec(t))?$n(n[1],n[2]/100,n[3]/100,n[4]):Bn.hasOwnProperty(t)?Yn(Bn[t]):"transparent"===t?new Xn(NaN,NaN,NaN,0):null}function Yn(t){return new Xn(t>>16&255,t>>8&255,255&t,1)}function Wn(t,n,e,r){return r<=0&&(t=n=e=NaN),new Xn(t,n,e,r)}function Hn(t){return t instanceof An||(t=Fn(t)),t?new Xn((t=t.rgb()).r,t.g,t.b,t.opacity):new Xn}function Vn(t,n,e,r){return 1===arguments.length?Hn(t):new Xn(t,n,e,null==r?1:r)}function Xn(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function $n(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Zn(t,n,e,r)}function Gn(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Zn)return new Zn(t.h,t.s,t.l,t.opacity);if(t instanceof An||(t=Fn(t)),!t)return new Zn;if(t instanceof Zn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),u=Math.max(n,e,r),o=NaN,a=u-i,c=(u+i)/2;return a?(o=n===u?(e-r)/a+6*(e<r):e===u?(r-n)/a+2:(n-e)/a+4,a/=c<.5?u+i:2-u-i,o*=60):a=c>0&&c<1?0:o,new Zn(o,a,c,t.opacity)}(t):new Zn(t,n,e,null==r?1:r)}function Zn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Qn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Tn(An,Fn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Tn(Xn,Vn,Sn(An,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Xn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Xn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Tn(Zn,Gn,Sn(An,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Zn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Zn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Xn(Qn(t>=240?t-240:t+120,i,r),Qn(t,i,r),Qn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Kn=Math.PI/180,Jn=180/Math.PI,te=.95047,ne=1,ee=1.08883,re=4/29,ie=6/29,ue=3*ie*ie,oe=ie*ie*ie;function ae(t){if(t instanceof fe)return new fe(t.l,t.a,t.b,t.opacity);if(t instanceof ve){var n=t.h*Kn;return new fe(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Xn||(t=Hn(t));var e=de(t.r),r=de(t.g),i=de(t.b),u=se((.4124564*e+.3575761*r+.1804375*i)/te),o=se((.2126729*e+.7151522*r+.072175*i)/ne);return new fe(116*o-16,500*(u-o),200*(o-se((.0193339*e+.119192*r+.9503041*i)/ee)),t.opacity)}function ce(t,n,e,r){return 1===arguments.length?ae(t):new fe(t,n,e,null==r?1:r)}function fe(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function se(t){return t>oe?Math.pow(t,1/3):t/ue+re}function le(t){return t>ie?t*t*t:ue*(t-re)}function he(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function de(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function pe(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof ve)return new ve(t.h,t.c,t.l,t.opacity);t instanceof fe||(t=ae(t));var n=Math.atan2(t.b,t.a)*Jn;return new ve(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ve(t,n,e,null==r?1:r)}function ve(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Tn(fe,ce,Sn(An,{brighter:function(t){return new fe(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new fe(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=ne*le(t),new Xn(he(3.2404542*(n=te*le(n))-1.5371385*t-.4985314*(e=ee*le(e))),he(-.969266*n+1.8760108*t+.041556*e),he(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Tn(ve,pe,Sn(An,{brighter:function(t){return new ve(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new ve(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return ae(this).rgb()}}));var ge=-.29227,_e=-.90649,ye=1.97294,me=ye*_e,xe=1.78277*ye,be=1.78277*ge- -.14861*_e;function we(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Me)return new Me(t.h,t.s,t.l,t.opacity);t instanceof Xn||(t=Hn(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(be*r+me*n-xe*e)/(be+me-xe),u=r-i,o=(ye*(e-i)-ge*u)/_e,a=Math.sqrt(o*o+u*u)/(ye*i*(1-i)),c=a?Math.atan2(o,u)*Jn-120:NaN;return new Me(c<0?c+360:c,a,i,t.opacity)}(t):new Me(t,n,e,null==r?1:r)}function Me(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ee(t,n,e,r,i){var u=t*t,o=u*t;return((1-3*t+3*u-o)*n+(4-6*u+3*o)*e+(1+3*t+3*u-3*o)*r+o*i)/6}Tn(Me,we,Sn(An,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Me(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Me(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Kn,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Xn(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(ge*r+_e*i)),255*(n+e*(ye*r)),this.opacity)}}));var ke=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],u=t[r+1],o=r>0?t[r-1]:2*i-u,a=r<n-1?t[r+2]:2*u-i;return Ee((e-r/n)*n,o,i,u,a)}},Ne=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],u=t[r%n],o=t[(r+1)%n],a=t[(r+2)%n];return Ee((e-r/n)*n,i,u,o,a)}},Te=function(t){return function(){return t}};function Se(t,n){return function(e){return t+e*n}}function Ae(t,n){var e=n-t;return e?Se(t,e>180||e<-180?e-360*Math.round(e/360):e):Te(isNaN(t)?n:t)}function Ce(t){return 1==(t=+t)?Pe:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Te(isNaN(n)?e:n)}}function Pe(t,n){var e=n-t;return e?Se(t,e):Te(isNaN(t)?n:t)}var Oe=function t(n){var e=Ce(n);function r(t,n){var r=e((t=Vn(t)).r,(n=Vn(n)).r),i=e(t.g,n.g),u=e(t.b,n.b),o=Pe(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=u(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function je(t){return function(n){var e,r,i=n.length,u=new Array(i),o=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=Vn(n[e]),u[e]=r.r||0,o[e]=r.g||0,a[e]=r.b||0;return u=t(u),o=t(o),a=t(a),r.opacity=1,function(t){return r.r=u(t),r.g=o(t),r.b=a(t),r+""}}}var Re=je(ke),Le=je(Ne),ze=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,u=new Array(i),o=new Array(r);for(e=0;e<i;++e)u[e]=Xe(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<i;++e)o[e]=u[e](t);return o}},Ie=function(t,n){var e=new Date;return n-=t=+t,function(r){return e.setTime(t+n*r),e}},Ue=function(t,n){return n-=t=+t,function(e){return t+n*e}},De=function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Xe(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},qe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Be=new RegExp(qe.source,"g");var Fe,Ye,We,He,Ve=function(t,n){var e,r,i,u=qe.lastIndex=Be.lastIndex=0,o=-1,a=[],c=[];for(t+="",n+="";(e=qe.exec(t))&&(r=Be.exec(n));)(i=r.index)>u&&(i=n.slice(u,i),a[o]?a[o]+=i:a[++o]=i),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,c.push({i:o,x:Ue(e,r)})),u=Be.lastIndex;return u<n.length&&(i=n.slice(u),a[o]?a[o]+=i:a[++o]=i),a.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})},Xe=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?Te(n):("number"===r?Ue:"string"===r?(e=Fn(n))?(n=e,Oe):Ve:n instanceof Fn?Oe:n instanceof Date?Ie:Array.isArray(n)?ze:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?De:Ue)(t,n)},$e=function(t,n){return n-=t=+t,function(e){return Math.round(t+n*e)}},Ge=180/Math.PI,Ze={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Qe=function(t,n,e,r,i,u){var o,a,c;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,o=-o),{translateX:i,translateY:u,rotate:Math.atan2(n,t)*Ge,skewX:Math.atan(c)*Ge,scaleX:o,scaleY:a}};function Ke(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(u,o){var a=[],c=[];return u=t(u),o=t(o),function(t,r,i,u,o,a){if(t!==i||r!==u){var c=o.push("translate(",null,n,null,e);a.push({i:c-4,x:Ue(t,i)},{i:c-2,x:Ue(r,u)})}else(i||u)&&o.push("translate("+i+n+u+e)}(u.translateX,u.translateY,o.translateX,o.translateY,a,c),function(t,n,e,u){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),u.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Ue(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(u.rotate,o.rotate,a,c),function(t,n,e,u){t!==n?u.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Ue(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(u.skewX,o.skewX,a,c),function(t,n,e,r,u,o){if(t!==e||n!==r){var a=u.push(i(u)+"scale(",null,",",null,")");o.push({i:a-4,x:Ue(t,e)},{i:a-2,x:Ue(n,r)})}else 1===e&&1===r||u.push(i(u)+"scale("+e+","+r+")")}(u.scaleX,u.scaleY,o.scaleX,o.scaleY,a,c),u=o=null,function(t){for(var n,e=-1,r=c.length;++e<r;)a[(n=c[e]).i]=n.x(t);return a.join("")}}}var Je=Ke(function(t){return"none"===t?Ze:(Fe||(Fe=document.createElement("DIV"),Ye=document.documentElement,We=document.defaultView),Fe.style.transform=t,t=We.getComputedStyle(Ye.appendChild(Fe),null).getPropertyValue("transform"),Ye.removeChild(Fe),t=t.slice(7,-1).split(","),Qe(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),tr=Ke(function(t){return null==t?Ze:(He||(He=document.createElementNS("http://www.w3.org/2000/svg","g")),He.setAttribute("transform",t),(t=He.transform.baseVal.consolidate())?(t=t.matrix,Qe(t.a,t.b,t.c,t.d,t.e,t.f)):Ze)},", ",")",")"),nr=Math.SQRT2;function er(t){return((t=Math.exp(t))+1/t)/2}var rr=function(t,n){var e,r,i=t[0],u=t[1],o=t[2],a=n[0],c=n[1],f=n[2],s=a-i,l=c-u,h=s*s+l*l;if(h<1e-12)r=Math.log(f/o)/nr,e=function(t){return[i+t*s,u+t*l,o*Math.exp(nr*t*r)]};else{var d=Math.sqrt(h),p=(f*f-o*o+4*h)/(2*o*2*d),v=(f*f-o*o-4*h)/(2*f*2*d),g=Math.log(Math.sqrt(p*p+1)-p),_=Math.log(Math.sqrt(v*v+1)-v);r=(_-g)/nr,e=function(t){var n,e=t*r,a=er(g),c=o/(2*d)*(a*(n=nr*e+g,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+c*s,u+c*l,o*a/er(nr*e+g)]}}return e.duration=1e3*r,e};function ir(t){return function(n,e){var r=t((n=Gn(n)).h,(e=Gn(e)).h),i=Pe(n.s,e.s),u=Pe(n.l,e.l),o=Pe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=u(t),n.opacity=o(t),n+""}}}var ur=ir(Ae),or=ir(Pe);function ar(t,n){var e=Pe((t=ce(t)).l,(n=ce(n)).l),r=Pe(t.a,n.a),i=Pe(t.b,n.b),u=Pe(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=u(n),t+""}}function cr(t){return function(n,e){var r=t((n=pe(n)).h,(e=pe(e)).h),i=Pe(n.c,e.c),u=Pe(n.l,e.l),o=Pe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=u(t),n.opacity=o(t),n+""}}}var fr=cr(Ae),sr=cr(Pe);function lr(t){return function n(e){function r(n,r){var i=t((n=we(n)).h,(r=we(r)).h),u=Pe(n.s,r.s),o=Pe(n.l,r.l),a=Pe(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=u(t),n.l=o(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}var hr,dr,pr=lr(Ae),vr=lr(Pe),gr=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e},_r=0,yr=0,mr=0,xr=1e3,br=0,wr=0,Mr=0,Er="object"==typeof performance&&performance.now?performance:Date,kr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Nr(){return wr||(kr(Tr),wr=Er.now()+Mr)}function Tr(){wr=0}function Sr(){this._call=this._time=this._next=null}function Ar(t,n,e){var r=new Sr;return r.restart(t,n,e),r}function Cr(){Nr(),++_r;for(var t,n=hr;n;)(t=wr-n._time)>=0&&n._call.call(null,t),n=n._next;--_r}function Pr(){wr=(br=Er.now())+Mr,_r=yr=0;try{Cr()}finally{_r=0,function(){var t,n,e=hr,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:hr=n);dr=t,jr(r)}(),wr=0}}function Or(){var t=Er.now(),n=t-br;n>xr&&(Mr-=n,br=t)}function jr(t){_r||(yr&&(yr=clearTimeout(yr)),t-wr>24?(t<1/0&&(yr=setTimeout(Pr,t-Er.now()-Mr)),mr&&(mr=clearInterval(mr))):(mr||(br=Er.now(),mr=setInterval(Or,xr)),_r=1,kr(Pr)))}Sr.prototype=Ar.prototype={constructor:Sr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Nr():+e)+(null==n?0:+n),this._next||dr===this||(dr?dr._next=this:hr=this,dr=this),this._call=t,this._time=e,jr()},stop:function(){this._call&&(this._call=null,this._time=1/0,jr())}};var Rr=function(t,n,e){var r=new Sr;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r},Lr=function(t,n,e){var r=new Sr,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?Nr():+e,r.restart(function u(o){o+=i,r.restart(u,i+=n,e),t(o)},n,e),r)},zr=ht("start","end","interrupt"),Ir=[],Ur=0,Dr=1,qr=2,Br=3,Fr=4,Yr=5,Wr=6,Hr=function(t,n,e,r,i,u){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function u(c){var f,s,l,h;if(e.state!==Dr)return a();for(f in i)if((h=i[f]).name===e.name){if(h.state===Br)return Rr(u);h.state===Fr?(h.state=Wr,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[f]):+f<n&&(h.state=Wr,h.timer.stop(),delete i[f])}if(Rr(function(){e.state===Br&&(e.state=Fr,e.timer.restart(o,e.delay,e.time),o(c))}),e.state=qr,e.on.call("start",t,t.__data__,e.index,e.group),e.state===qr){for(e.state=Br,r=new Array(l=e.tween.length),f=0,s=-1;f<l;++f)(h=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(r[++s]=h);r.length=s+1}}function o(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=Yr,1),u=-1,o=r.length;++u<o;)r[u].call(null,i);e.state===Yr&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=Wr,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Ar(function(t){e.state=Dr,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)},0,e.time)}(t,e,{name:n,index:r,group:i,on:zr,tween:Ir,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Ur})};function Vr(t,n){var e=$r(t,n);if(e.state>Ur)throw new Error("too late; already scheduled");return e}function Xr(t,n){var e=$r(t,n);if(e.state>qr)throw new Error("too late; already started");return e}function $r(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var Gr=function(t,n){var e,r,i,u=t.__transition,o=!0;if(u){for(i in n=null==n?null:n+"",u)(e=u[i]).name===n?(r=e.state>qr&&e.state<Yr,e.state=Wr,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete u[i]):o=!1;o&&delete t.__transition}};function Zr(t,n,e){var r=t._id;return t.each(function(){var t=Xr(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return $r(t,r).value[n]}}var Qr=function(t,n){var e;return("number"==typeof n?Ue:n instanceof Fn?Oe:(e=Fn(n))?(n=e,Oe):Ve)(t,n)};var Kr=rn.prototype.constructor;var Jr=0;function ti(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function ni(t){return rn().transition(t)}function ei(){return++Jr}var ri=rn.prototype;function ii(t){return+t}function ui(t){return t*t}function oi(t){return t*(2-t)}function ai(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function ci(t){return t*t*t}function fi(t){return--t*t*t+1}function si(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}ti.prototype=ni.prototype={constructor:ti,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=yt(t));for(var r=this._groups,i=r.length,u=new Array(i),o=0;o<i;++o)for(var a,c,f=r[o],s=f.length,l=u[o]=new Array(s),h=0;h<s;++h)(a=f[h])&&(c=t.call(a,a.__data__,h,f))&&("__data__"in a&&(c.__data__=a.__data__),l[h]=c,Hr(l[h],n,e,h,l,$r(a,e)));return new ti(u,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=xt(t));for(var r=this._groups,i=r.length,u=[],o=[],a=0;a<i;++a)for(var c,f=r[a],s=f.length,l=0;l<s;++l)if(c=f[l]){for(var h,d=t.call(c,c.__data__,l,f),p=$r(c,e),v=0,g=d.length;v<g;++v)(h=d[v])&&Hr(h,n,e,v,d,p);u.push(d),o.push(c)}return new ti(u,o,n,e)},filter:function(t){"function"!=typeof t&&(t=Et(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,o=n[i],a=o.length,c=r[i]=[],f=0;f<a;++f)(u=o[f])&&t.call(u,u.__data__,f,o)&&c.push(u);return new ti(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,u=Math.min(r,i),o=new Array(r),a=0;a<u;++a)for(var c,f=n[a],s=e[a],l=f.length,h=o[a]=new Array(l),d=0;d<l;++d)(c=f[d]||s[d])&&(h[d]=c);for(;a<r;++a)o[a]=n[a];return new ti(o,this._parents,this._name,this._id)},selection:function(){return new Kr(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=ei(),r=this._groups,i=r.length,u=0;u<i;++u)for(var o,a=r[u],c=a.length,f=0;f<c;++f)if(o=a[f]){var s=$r(o,n);Hr(o,t,e,f,a,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new ti(r,this._parents,t,e)},call:ri.call,nodes:ri.nodes,node:ri.node,size:ri.size,empty:ri.empty,each:ri.each,on:function(t,n){var e=this._id;return arguments.length<2?$r(this.node(),e).on.on(t):this.each(function(t,n,e){var r,i,u=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}(n)?Vr:Xr;return function(){var o=u(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(n,e),o.on=i}}(e,t,n))},attr:function(t,n){var e=vt(t),r="transform"===e?tr:Qr;return this.attrTween(t,"function"==typeof n?(e.local?function(t,n,e){var r,i,u;return function(){var o,a=e(this);if(null!=a)return(o=this.getAttributeNS(t.space,t.local))===a?null:o===r&&a===i?u:u=n(r=o,i=a);this.removeAttributeNS(t.space,t.local)}}:function(t,n,e){var r,i,u;return function(){var o,a=e(this);if(null!=a)return(o=this.getAttribute(t))===a?null:o===r&&a===i?u:u=n(r=o,i=a);this.removeAttribute(t)}})(e,r,Zr(this,"attr."+t,n)):null==n?(e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(e):(e.local?function(t,n,e){var r,i;return function(){var u=this.getAttributeNS(t.space,t.local);return u===e?null:u===r?i:i=n(r=u,e)}}:function(t,n,e){var r,i;return function(){var u=this.getAttribute(t);return u===e?null:u===r?i:i=n(r=u,e)}})(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=vt(t);return this.tween(e,(r.local?function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}:function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e})(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Je:Qr;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var u=Ot(this,t),o=(this.style.removeProperty(t),Ot(this,t));return u===o?null:u===e&&o===r?i:i=n(e=u,r=o)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,u;return function(){var o=Ot(this,t),a=e(this);return null==a&&(this.style.removeProperty(t),a=Ot(this,t)),o===a?null:o===r&&a===i?u:u=n(r=o,i=a)}}(t,r,Zr(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var u=Ot(this,t);return u===e?null:u===r?i:i=n(r=u,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Zr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=$r(this.node(),e).tween,u=0,o=i.length;u<o;++u)if((r=i[u]).name===t)return r.value;return null}return this.each((null==n?function(t,n){var e,r;return function(){var i=Xr(this,t),u=i.tween;if(u!==e)for(var o=0,a=(r=e=u).length;o<a;++o)if(r[o].name===n){(r=r.slice()).splice(o,1);break}i.tween=r}}:function(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var u=Xr(this,t),o=u.tween;if(o!==r){i=(r=o).slice();for(var a={name:n,value:e},c=0,f=i.length;c<f;++c)if(i[c].name===n){i[c]=a;break}c===f&&i.push(a)}u.tween=i}})(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){Vr(this,t).delay=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){Vr(this,t).delay=n}})(n,t)):$r(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){Xr(this,t).duration=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){Xr(this,t).duration=n}})(n,t)):$r(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw new Error;return function(){Xr(this,t).ease=n}}(n,t)):$r(this.node(),n).ease}};var li=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),hi=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),di=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),pi=Math.PI,vi=pi/2;function gi(t){return 1-Math.cos(t*vi)}function _i(t){return Math.sin(t*vi)}function yi(t){return(1-Math.cos(pi*t))/2}function mi(t){return Math.pow(2,10*t-10)}function xi(t){return 1-Math.pow(2,-10*t)}function bi(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function wi(t){return 1-Math.sqrt(1-t*t)}function Mi(t){return Math.sqrt(1- --t*t)}function Ei(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var ki=4/11,Ni=6/11,Ti=8/11,Si=.75,Ai=9/11,Ci=10/11,Pi=.9375,Oi=21/22,ji=63/64,Ri=1/ki/ki;function Li(t){return 1-zi(1-t)}function zi(t){return(t=+t)<ki?Ri*t*t:t<Ti?Ri*(t-=Ni)*t+Si:t<Ci?Ri*(t-=Ai)*t+Pi:Ri*(t-=Oi)*t+ji}function Ii(t){return((t*=2)<=1?1-zi(1-t):zi(t-1)+1)/2}var Ui=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(1.70158),Di=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(1.70158),qi=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(1.70158),Bi=2*Math.PI,Fi=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Bi);function i(t){return n*Math.pow(2,10*--t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Bi)},i.period=function(e){return t(n,e)},i}(1,.3),Yi=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Bi);function i(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Bi)},i.period=function(e){return t(n,e)},i}(1,.3),Wi=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Bi);function i(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((r-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Bi)},i.period=function(e){return t(n,e)},i}(1,.3),Hi={time:null,delay:0,duration:250,ease:si};function Vi(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return Hi.time=Nr(),Hi;return e}rn.prototype.interrupt=function(t){return this.each(function(){Gr(this,t)})},rn.prototype.transition=function(t){var n,e;t instanceof ti?(n=t._id,t=t._name):(n=ei(),(e=Hi).time=Nr(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,u=0;u<i;++u)for(var o,a=r[u],c=a.length,f=0;f<c;++f)(o=a[f])&&Hr(o,t,n,f,a,e||Vi(o,n));return new ti(r,this._parents,t,n)};var Xi=[null],$i=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>Dr&&e.name===n)return new ti([[t]],Xi,n,+r);return null},Gi=function(t){return function(){return t}},Zi=function(t,n,e){this.target=t,this.type=n,this.selection=e};function Qi(){Xt.stopImmediatePropagation()}var Ki=function(){Xt.preventDefault(),Xt.stopImmediatePropagation()},Ji={name:"drag"},tu={name:"space"},nu={name:"handle"},eu={name:"center"},ru={name:"x",handles:["e","w"].map(lu),input:function(t,n){return t&&[[t[0],n[0][1]],[t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},iu={name:"y",handles:["n","s"].map(lu),input:function(t,n){return t&&[[n[0][0],t[0]],[n[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},uu={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(lu),input:function(t){return t},output:function(t){return t}},ou={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},au={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},cu={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},fu={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},su={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function lu(t){return{type:t}}function hu(){return!Xt.button}function du(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function pu(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function vu(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function gu(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function _u(){return xu(ru)}function yu(){return xu(iu)}var mu=function(){return xu(uu)};function xu(t){var n,e=du,r=hu,i=ht(o,"start","brush","end"),u=6;function o(n){var e=n.property("__brush",l).selectAll(".overlay").data([lu("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ou.overlay).merge(e).each(function(){var t=pu(this).extent;un(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),n.selectAll(".selection").data([lu("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ou.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,function(t){return t.type});r.exit().remove(),r.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return ou[t.type]}),n.each(a).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",s)}function a(){var t=un(this),n=pu(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-u/2:n[0][0]-u/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-u/2:n[0][1]-u/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+u:u}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+u:u})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,n){return t.__brush.emitter||new f(t,n)}function f(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function s(){if(Xt.touches){if(Xt.changedTouches.length<Xt.touches.length)return Ki()}else if(n)return;if(r.apply(this,arguments)){var e,i,u,o,f,s,l,h,d,p,v,g,_,y=this,m=Xt.target.__data__.type,x="selection"===(Xt.metaKey?m="overlay":m)?Ji:Xt.altKey?eu:nu,b=t===iu?null:fu[m],w=t===ru?null:su[m],M=pu(y),E=M.extent,k=M.selection,N=E[0][0],T=E[0][1],S=E[1][0],A=E[1][1],C=b&&w&&Xt.shiftKey,P=hn(y),O=P,j=c(y,arguments).beforestart();"overlay"===m?M.selection=k=[[e=t===iu?N:P[0],u=t===ru?T:P[1]],[f=t===iu?S:e,l=t===ru?A:u]]:(e=k[0][0],u=k[0][1],f=k[1][0],l=k[1][1]),i=e,o=u,s=f,h=l;var R=un(y).attr("pointer-events","none"),L=R.selectAll(".overlay").attr("cursor",ou[m]);if(Xt.touches)R.on("touchmove.brush",I,!0).on("touchend.brush touchcancel.brush",D,!0);else{var z=un(Xt.view).on("keydown.brush",function(){switch(Xt.keyCode){case 16:C=b&&w;break;case 18:x===nu&&(b&&(f=s-d*b,e=i+d*b),w&&(l=h-p*w,u=o+p*w),x=eu,U());break;case 32:x!==nu&&x!==eu||(b<0?f=s-d:b>0&&(e=i-d),w<0?l=h-p:w>0&&(u=o-p),x=tu,L.attr("cursor",ou.selection),U());break;default:return}Ki()},!0).on("keyup.brush",function(){switch(Xt.keyCode){case 16:C&&(g=_=C=!1,U());break;case 18:x===eu&&(b<0?f=s:b>0&&(e=i),w<0?l=h:w>0&&(u=o),x=nu,U());break;case 32:x===tu&&(Xt.altKey?(b&&(f=s-d*b,e=i+d*b),w&&(l=h-p*w,u=o+p*w),x=eu):(b<0?f=s:b>0&&(e=i),w<0?l=h:w>0&&(u=o),x=nu),L.attr("cursor",ou[m]),U());break;default:return}Ki()},!0).on("mousemove.brush",I,!0).on("mouseup.brush",D,!0);yn(Xt.view)}Qi(),Gr(y),a.call(y),j.start()}function I(){var t=hn(y);!C||g||_||(Math.abs(t[0]-O[0])>Math.abs(t[1]-O[1])?_=!0:g=!0),O=t,v=!0,Ki(),U()}function U(){var t;switch(d=O[0]-P[0],p=O[1]-P[1],x){case tu:case Ji:b&&(d=Math.max(N-e,Math.min(S-f,d)),i=e+d,s=f+d),w&&(p=Math.max(T-u,Math.min(A-l,p)),o=u+p,h=l+p);break;case nu:b<0?(d=Math.max(N-e,Math.min(S-e,d)),i=e+d,s=f):b>0&&(d=Math.max(N-f,Math.min(S-f,d)),i=e,s=f+d),w<0?(p=Math.max(T-u,Math.min(A-u,p)),o=u+p,h=l):w>0&&(p=Math.max(T-l,Math.min(A-l,p)),o=u,h=l+p);break;case eu:b&&(i=Math.max(N,Math.min(S,e-d*b)),s=Math.max(N,Math.min(S,f+d*b))),w&&(o=Math.max(T,Math.min(A,u-p*w)),h=Math.max(T,Math.min(A,l+p*w)))}s<i&&(b*=-1,t=e,e=f,f=t,t=i,i=s,s=t,m in au&&L.attr("cursor",ou[m=au[m]])),h<o&&(w*=-1,t=u,u=l,l=t,t=o,o=h,h=t,m in cu&&L.attr("cursor",ou[m=cu[m]])),M.selection&&(k=M.selection),g&&(i=k[0][0],s=k[1][0]),_&&(o=k[0][1],h=k[1][1]),k[0][0]===i&&k[0][1]===o&&k[1][0]===s&&k[1][1]===h||(M.selection=[[i,o],[s,h]],a.call(y),j.brush())}function D(){if(Qi(),Xt.touches){if(Xt.touches.length)return;n&&clearTimeout(n),n=setTimeout(function(){n=null},500),R.on("touchmove.brush touchend.brush touchcancel.brush",null)}else mn(Xt.view,v),z.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);R.attr("pointer-events","all"),L.attr("cursor",ou.overlay),M.selection&&(k=M.selection),vu(k)&&(M.selection=null,a.call(y)),j.end()}}function l(){var n=this.__brush||{selection:null};return n.extent=e.apply(this,arguments),n.dim=t,n}return o.move=function(n,e){n.selection?n.on("start.brush",function(){c(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){c(this,arguments).end()}).tween("brush",function(){var n=this,r=n.__brush,i=c(n,arguments),u=r.selection,o=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),f=Xe(u,o);function s(t){r.selection=1===t&&vu(o)?null:f(t),a.call(n),i.brush()}return u&&o?s:s(1)}):n.each(function(){var n=arguments,r=this.__brush,i=t.input("function"==typeof e?e.apply(this,n):e,r.extent),u=c(this,n).beforestart();Gr(this),r.selection=null==i||vu(i)?null:i,a.call(this),u.start().brush().end()})},f.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){Kt(new Zi(o,n,t.output(this.state.selection)),i.apply,i,[n,this.that,this.args])}},o.extent=function(t){return arguments.length?(e="function"==typeof t?t:Gi([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),o):e},o.filter=function(t){return arguments.length?(r="function"==typeof t?t:Gi(!!t),o):r},o.handleSize=function(t){return arguments.length?(u=+t,o):u},o.on=function(){var t=i.on.apply(i,arguments);return t===i?o:t},o}var bu=Math.cos,wu=Math.sin,Mu=Math.PI,Eu=Mu/2,ku=2*Mu,Nu=Math.max;var Tu=function(){var t=0,n=null,e=null,r=null;function i(i){var u,o,a,c,f,s,l=i.length,h=[],d=w(l),p=[],v=[],g=v.groups=new Array(l),_=new Array(l*l);for(u=0,f=-1;++f<l;){for(o=0,s=-1;++s<l;)o+=i[f][s];h.push(o),p.push(w(l)),u+=o}for(n&&d.sort(function(t,e){return n(h[t],h[e])}),e&&p.forEach(function(t,n){t.sort(function(t,r){return e(i[n][t],i[n][r])})}),c=(u=Nu(0,ku-t*l)/u)?t:ku/l,o=0,f=-1;++f<l;){for(a=o,s=-1;++s<l;){var y=d[f],m=p[y][s],x=i[y][m],b=o,M=o+=x*u;_[m*l+y]={index:y,subindex:m,startAngle:b,endAngle:M,value:x}}g[y]={index:y,startAngle:a,endAngle:o,value:h[y]},o+=c}for(f=-1;++f<l;)for(s=f-1;++s<l;){var E=_[s*l+f],k=_[f*l+s];(E.value||k.value)&&v.push(E.value<k.value?{source:k,target:E}:{source:E,target:k})}return r?v.sort(r):v}return i.padAngle=function(n){return arguments.length?(t=Nu(0,n),i):t},i.sortGroups=function(t){return arguments.length?(n=t,i):n},i.sortSubgroups=function(t){return arguments.length?(e=t,i):e},i.sortChords=function(t){return arguments.length?(null==t?r=null:(n=t,r=function(t,e){return n(t.source.value+t.target.value,e.source.value+e.target.value)})._=t,i):r&&r._;var n},i},Su=Array.prototype.slice,Au=function(t){return function(){return t}},Cu=Math.PI,Pu=2*Cu,Ou=Pu-1e-6;function ju(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ru(){return new ju}ju.prototype=Ru.prototype={constructor:ju,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,u){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+u)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var u=this._x1,o=this._y1,a=e-t,c=r-n,f=u-t,s=o-n,l=f*f+s*s;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>1e-6)if(Math.abs(s*a-c*f)>1e-6&&i){var h=e-u,d=r-o,p=a*a+c*c,v=h*h+d*d,g=Math.sqrt(p),_=Math.sqrt(l),y=i*Math.tan((Cu-Math.acos((p+l-v)/(2*g*_)))/2),m=y/_,x=y/g;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*f)+","+(n+m*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>f*d)+","+(this._x1=t+x*a)+","+(this._y1=n+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,u){t=+t,n=+n;var o=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+o,f=n+a,s=1^u,l=u?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+f:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+c+","+f),e&&(l<0&&(l=l%Pu+Pu),l>Ou?this._+="A"+e+","+e+",0,1,"+s+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+s+","+(this._x1=c)+","+(this._y1=f):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=Cu)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var Lu=Ru;function zu(t){return t.source}function Iu(t){return t.target}function Uu(t){return t.radius}function Du(t){return t.startAngle}function qu(t){return t.endAngle}var Bu=function(){var t=zu,n=Iu,e=Uu,r=Du,i=qu,u=null;function o(){var o,a=Su.call(arguments),c=t.apply(this,a),f=n.apply(this,a),s=+e.apply(this,(a[0]=c,a)),l=r.apply(this,a)-Eu,h=i.apply(this,a)-Eu,d=s*bu(l),p=s*wu(l),v=+e.apply(this,(a[0]=f,a)),g=r.apply(this,a)-Eu,_=i.apply(this,a)-Eu;if(u||(u=o=Lu()),u.moveTo(d,p),u.arc(0,0,s,l,h),l===g&&h===_||(u.quadraticCurveTo(0,0,v*bu(g),v*wu(g)),u.arc(0,0,v,g,_)),u.quadraticCurveTo(0,0,d,p),u.closePath(),o)return u=null,o+""||null}return o.radius=function(t){return arguments.length?(e="function"==typeof t?t:Au(+t),o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Au(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Au(+t),o):i},o.source=function(n){return arguments.length?(t=n,o):t},o.target=function(t){return arguments.length?(n=t,o):n},o.context=function(t){return arguments.length?(u=null==t?null:t,o):u},o};function Fu(){}function Yu(t,n){var e=new Fu;if(t instanceof Fu)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,u=t.length;if(null==n)for(;++i<u;)e.set(i,t[i]);else for(;++i<u;)e.set(n(r=t[i],i,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}Fu.prototype=Yu.prototype={constructor:Fu,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var Wu=Yu,Hu=function(){var t,n,e,r=[],i=[];function u(e,i,o,a){if(i>=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var c,f,s,l=-1,h=e.length,d=r[i++],p=Wu(),v=o();++l<h;)(s=p.get(c=d(f=e[l])+""))?s.push(f):p.set(c,[f]);return p.each(function(t,n){a(v,n,u(t,i,o,a))}),v}return e={object:function(t){return u(t,0,Vu,Xu)},map:function(t){return u(t,0,$u,Gu)},entries:function(t){return function t(e,u){if(++u>r.length)return e;var o,a=i[u-1];return null!=n&&u>=r.length?o=e.entries():(o=[],e.each(function(n,e){o.push({key:e,values:t(n,u)})})),null!=a?o.sort(function(t,n){return a(t.key,n.key)}):o}(u(t,0,$u,Gu),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function Vu(){return{}}function Xu(t,n,e){t[n]=e}function $u(){return Wu()}function Gu(t,n,e){t.set(n,e)}function Zu(){}var Qu=Wu.prototype;function Ku(t,n){var e=new Zu;if(t instanceof Zu)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}Zu.prototype=Ku.prototype={constructor:Zu,has:Qu.has,add:function(t){return this["$"+(t+="")]=t,this},remove:Qu.remove,clear:Qu.clear,values:Qu.keys,size:Qu.size,empty:Qu.empty,each:Qu.each};var Ju=Ku,to=function(t){var n=[];for(var e in t)n.push(e);return n},no=function(t){var n=[];for(var e in t)n.push(t[e]);return n},eo=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},ro={},io={},uo=34,oo=10,ao=13;function co(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}var fo=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],u=t.length,o=0,a=0,c=u<=0,f=!1;function s(){if(c)return io;if(f)return f=!1,ro;var n,r,i=o;if(t.charCodeAt(i)===uo){for(;o++<u&&t.charCodeAt(o)!==uo||t.charCodeAt(++o)===uo;);return(n=o)>=u?c=!0:(r=t.charCodeAt(o++))===oo?f=!0:r===ao&&(f=!0,t.charCodeAt(o)===oo&&++o),t.slice(i+1,n-1).replace(/""/g,'"')}for(;o<u;){if((r=t.charCodeAt(n=o++))===oo)f=!0;else if(r===ao)f=!0,t.charCodeAt(o)===oo&&++o;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,u)}for(t.charCodeAt(u-1)===oo&&--u,t.charCodeAt(u-1)===ao&&--u;(r=s())!==io;){for(var l=[];r!==ro&&r!==io;)l.push(r),r=s();n&&null==(l=n(l,a++))||i.push(l)}return i}function i(n){return n.map(u).join(t)}function u(t){return null==t?"":n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,u=r(t,function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=co(t);return function(r,i){return n(e(r),i,t)}}(t,n):co(t)});return u.columns=i||[],u},parseRows:r,format:function(n,e){return null==e&&(e=function(t){var n=Object.create(null),e=[];return t.forEach(function(t){for(var r in t)r in n||e.push(n[r]=r)}),e}(n)),[e.map(u).join(t)].concat(n.map(function(n){return e.map(function(t){return u(n[t])}).join(t)})).join("\n")},formatRows:function(t){return t.map(i).join("\n")}}},so=fo(","),lo=so.parse,ho=so.parseRows,po=so.format,vo=so.formatRows,go=fo("\t"),_o=go.parse,yo=go.parseRows,mo=go.format,xo=go.formatRows,bo=function(t,n){var e;function r(){var r,i,u=e.length,o=0,a=0;for(r=0;r<u;++r)o+=(i=e[r]).x,a+=i.y;for(o=o/u-t,a=a/u-n,r=0;r<u;++r)(i=e[r]).x-=o,i.y-=a}return null==t&&(t=0),null==n&&(n=0),r.initialize=function(t){e=t},r.x=function(n){return arguments.length?(t=+n,r):t},r.y=function(t){return arguments.length?(n=+t,r):n},r},wo=function(t){return function(){return t}},Mo=function(){return 1e-6*(Math.random()-.5)};function Eo(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,u,o,a,c,f,s,l,h,d=t._root,p={data:r},v=t._x0,g=t._y0,_=t._x1,y=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((f=n>=(u=(v+_)/2))?v=u:_=u,(s=e>=(o=(g+y)/2))?g=o:y=o,i=d,!(d=d[l=s<<1|f]))return i[l]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===a&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(u=(v+_)/2))?v=u:_=u,(s=e>=(o=(g+y)/2))?g=o:y=o}while((l=s<<1|f)==(h=(c>=o)<<1|a>=u));return i[h]=d,i[l]=p,t}var ko=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function No(t){return t[0]}function To(t){return t[1]}function So(t,n,e){var r=new Ao(null==n?No:n,null==e?To:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ao(t,n,e,r,i,u){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=u,this._root=void 0}function Co(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Po=So.prototype=Ao.prototype;function Oo(t){return t.x+t.vx}function jo(t){return t.y+t.vy}Po.copy=function(){var t,n,e=new Ao(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Co(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Co(n));return e},Po.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Eo(this.cover(n,e),n,e,t)},Po.addAll=function(t){var n,e,r,i,u=t.length,o=new Array(u),a=new Array(u),c=1/0,f=1/0,s=-1/0,l=-1/0;for(e=0;e<u;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(o[e]=r,a[e]=i,r<c&&(c=r),r>s&&(s=r),i<f&&(f=i),i>l&&(l=i));for(s<c&&(c=this._x0,s=this._x1),l<f&&(f=this._y0,l=this._y1),this.cover(c,f).cover(s,l),e=0;e<u;++e)Eo(this,o[e],a[e],t[e]);return this},Po.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,u=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,u=(r=Math.floor(n))+1;else{if(!(e>t||t>i||r>n||n>u))return this;var o,a,c=i-e,f=this._root;switch(a=(n<(r+u)/2)<<1|t<(e+i)/2){case 0:do{(o=new Array(4))[a]=f,f=o}while(u=r+(c*=2),t>(i=e+c)||n>u);break;case 1:do{(o=new Array(4))[a]=f,f=o}while(u=r+(c*=2),(e=i-c)>t||n>u);break;case 2:do{(o=new Array(4))[a]=f,f=o}while(r=u-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(o=new Array(4))[a]=f,f=o}while(r=u-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=f)}return this._x0=e,this._y0=r,this._x1=i,this._y1=u,this},Po.data=function(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},Po.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Po.find=function(t,n,e){var r,i,u,o,a,c,f,s=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new ko(v,s,l,h,d)),null==e?e=1/0:(s=t-e,l=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(u=c.y0)>d||(o=c.x1)<s||(a=c.y1)<l))if(v.length){var g=(i+o)/2,_=(u+a)/2;p.push(new ko(v[3],g,_,o,a),new ko(v[2],i,_,g,a),new ko(v[1],g,u,o,_),new ko(v[0],i,u,g,_)),(f=(n>=_)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=c)}else{var y=t-+this._x.call(null,v.data),m=n-+this._y.call(null,v.data),x=y*y+m*m;if(x<e){var b=Math.sqrt(e=x);s=t-b,l=n-b,h=t+b,d=n+b,r=v.data}}return r},Po.remove=function(t){if(isNaN(u=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var n,e,r,i,u,o,a,c,f,s,l,h,d=this._root,p=this._x0,v=this._y0,g=this._x1,_=this._y1;if(!d)return this;if(d.length)for(;;){if((f=u>=(a=(p+g)/2))?p=a:g=a,(s=o>=(c=(v+_)/2))?v=c:_=c,n=d,!(d=d[l=s<<1|f]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Po.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},Po.root=function(){return this._root},Po.size=function(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t},Po.visit=function(t){var n,e,r,i,u,o,a=[],c=this._root;for(c&&a.push(new ko(c,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,u=n.x1,o=n.y1)&&c.length){var f=(r+u)/2,s=(i+o)/2;(e=c[3])&&a.push(new ko(e,f,s,u,o)),(e=c[2])&&a.push(new ko(e,r,s,f,o)),(e=c[1])&&a.push(new ko(e,f,i,u,s)),(e=c[0])&&a.push(new ko(e,r,i,f,s))}return this},Po.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new ko(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var u,o=n.x0,a=n.y0,c=n.x1,f=n.y1,s=(o+c)/2,l=(a+f)/2;(u=i[0])&&e.push(new ko(u,o,a,s,l)),(u=i[1])&&e.push(new ko(u,s,a,c,l)),(u=i[2])&&e.push(new ko(u,o,l,s,f)),(u=i[3])&&e.push(new ko(u,s,l,c,f))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},Po.x=function(t){return arguments.length?(this._x=t,this):this._x},Po.y=function(t){return arguments.length?(this._y=t,this):this._y};var Ro=function(t){var n,e,r=1,i=1;function u(){for(var t,u,a,c,f,s,l,h=n.length,d=0;d<i;++d)for(u=So(n,Oo,jo).visitAfter(o),t=0;t<h;++t)a=n[t],s=e[a.index],l=s*s,c=a.x+a.vx,f=a.y+a.vy,u.visit(p);function p(t,n,e,i,u){var o=t.data,h=t.r,d=s+h;if(!o)return n>c+d||i<c-d||e>f+d||u<f-d;if(o.index>a.index){var p=c-o.x-o.vx,v=f-o.y-o.vy,g=p*p+v*v;g<d*d&&(0===p&&(g+=(p=Mo())*p),0===v&&(g+=(v=Mo())*v),g=(d-(g=Math.sqrt(g)))/g*r,a.vx+=(p*=g)*(d=(h*=h)/(l+h)),a.vy+=(v*=g)*d,o.vx-=p*(d=1-d),o.vy-=v*d)}}}function o(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function a(){if(n){var r,i,u=n.length;for(e=new Array(u),r=0;r<u;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!=typeof t&&(t=wo(null==t?1:+t)),u.initialize=function(t){n=t,a()},u.iterations=function(t){return arguments.length?(i=+t,u):i},u.strength=function(t){return arguments.length?(r=+t,u):r},u.radius=function(n){return arguments.length?(t="function"==typeof n?n:wo(+n),a(),u):t},u};function Lo(t){return t.index}function zo(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}var Io=function(t){var n,e,r,i,u,o=Lo,a=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},c=wo(30),f=1;function s(r){for(var i=0,o=t.length;i<f;++i)for(var a,c,s,l,h,d,p,v=0;v<o;++v)c=(a=t[v]).source,l=(s=a.target).x+s.vx-c.x-c.vx||Mo(),h=s.y+s.vy-c.y-c.vy||Mo(),l*=d=((d=Math.sqrt(l*l+h*h))-e[v])/d*r*n[v],h*=d,s.vx-=l*(p=u[v]),s.vy-=h*p,c.vx+=l*(p=1-p),c.vy+=h*p}function l(){if(r){var a,c,f=r.length,s=t.length,l=Wu(r,o);for(a=0,i=new Array(f);a<s;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=zo(l,c.source)),"object"!=typeof c.target&&(c.target=zo(l,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,u=new Array(s);a<s;++a)c=t[a],u[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);n=new Array(s),h(),e=new Array(s),d()}}function h(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+a(t[e],e,t)}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}return null==t&&(t=[]),s.initialize=function(t){r=t,l()},s.links=function(n){return arguments.length?(t=n,l(),s):t},s.id=function(t){return arguments.length?(o=t,s):o},s.iterations=function(t){return arguments.length?(f=+t,s):f},s.strength=function(t){return arguments.length?(a="function"==typeof t?t:wo(+t),h(),s):a},s.distance=function(t){return arguments.length?(c="function"==typeof t?t:wo(+t),d(),s):c},s};function Uo(t){return t.x}function Do(t){return t.y}var qo,Bo=10,Fo=Math.PI*(3-Math.sqrt(5)),Yo=function(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),u=0,o=.6,a=Wu(),c=Ar(s),f=ht("tick","end");function s(){l(),f.call("tick",n),e<r&&(c.stop(),f.call("end",n))}function l(){var n,r,c=t.length;for(e+=(u-e)*i,a.each(function(t){t(e)}),n=0;n<c;++n)null==(r=t[n]).fx?r.x+=r.vx*=o:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=o:(r.y=r.fy,r.vy=0)}function h(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,isNaN(n.x)||isNaN(n.y)){var i=Bo*Math.sqrt(e),u=e*Fo;n.x=i*Math.cos(u),n.y=i*Math.sin(u)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function d(n){return n.initialize&&n.initialize(t),n}return null==t&&(t=[]),h(),n={tick:l,restart:function(){return c.restart(s),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,h(),a.each(d),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(u=+t,n):u},velocityDecay:function(t){return arguments.length?(o=1-t,n):1-o},force:function(t,e){return arguments.length>1?(null==e?a.remove(t):a.set(t,d(e)),n):a.get(t)},find:function(n,e,r){var i,u,o,a,c,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f<s;++f)(o=(i=n-(a=t[f]).x)*i+(u=e-a.y)*u)<r&&(c=a,r=o);return c},on:function(t,e){return arguments.length>1?(f.on(t,e),n):f.on(t)}}},Wo=function(){var t,n,e,r,i=wo(-30),u=1,o=1/0,a=.81;function c(r){var i,u=t.length,o=So(t,Uo,Do).visitAfter(s);for(e=r,i=0;i<u;++i)n=t[i],o.visit(l)}function f(){if(t){var n,e,u=t.length;for(r=new Array(u),n=0;n<u;++n)e=t[n],r[e.index]=+i(e,n,t)}}function s(t){var n,e,i,u,o,a=0,c=0;if(t.length){for(i=u=o=0;o<4;++o)(n=t[o])&&(e=Math.abs(n.value))&&(a+=n.value,c+=e,i+=e*n.x,u+=e*n.y);t.x=i/c,t.y=u/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{a+=r[n.data.index]}while(n=n.next)}t.value=a}function l(t,i,c,f){if(!t.value)return!0;var s=t.x-n.x,l=t.y-n.y,h=f-i,d=s*s+l*l;if(h*h/a<d)return d<o&&(0===s&&(d+=(s=Mo())*s),0===l&&(d+=(l=Mo())*l),d<u&&(d=Math.sqrt(u*d)),n.vx+=s*t.value*e/d,n.vy+=l*t.value*e/d),!0;if(!(t.length||d>=o)){(t.data!==n||t.next)&&(0===s&&(d+=(s=Mo())*s),0===l&&(d+=(l=Mo())*l),d<u&&(d=Math.sqrt(u*d)));do{t.data!==n&&(h=r[t.data.index]*e/d,n.vx+=s*h,n.vy+=l*h)}while(t=t.next)}}return c.initialize=function(n){t=n,f()},c.strength=function(t){return arguments.length?(i="function"==typeof t?t:wo(+t),f(),c):i},c.distanceMin=function(t){return arguments.length?(u=t*t,c):Math.sqrt(u)},c.distanceMax=function(t){return arguments.length?(o=t*t,c):Math.sqrt(o)},c.theta=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c},Ho=function(t,n,e){var r,i,u,o=wo(.1);function a(t){for(var o=0,a=r.length;o<a;++o){var c=r[o],f=c.x-n||1e-6,s=c.y-e||1e-6,l=Math.sqrt(f*f+s*s),h=(u[o]-l)*i[o]*t/l;c.vx+=f*h,c.vy+=s*h}}function c(){if(r){var n,e=r.length;for(i=new Array(e),u=new Array(e),n=0;n<e;++n)u[n]=+t(r[n],n,r),i[n]=isNaN(u[n])?0:+o(r[n],n,r)}}return"function"!=typeof t&&(t=wo(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(t){r=t,c()},a.strength=function(t){return arguments.length?(o="function"==typeof t?t:wo(+t),c(),a):o},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:wo(+n),c(),a):t},a.x=function(t){return arguments.length?(n=+t,a):n},a.y=function(t){return arguments.length?(e=+t,a):e},a},Vo=function(t){var n,e,r,i=wo(.1);function u(t){for(var i,u=0,o=n.length;u<o;++u)(i=n[u]).vx+=(r[u]-i.x)*e[u]*t}function o(){if(n){var u,o=n.length;for(e=new Array(o),r=new Array(o),u=0;u<o;++u)e[u]=isNaN(r[u]=+t(n[u],u,n))?0:+i(n[u],u,n)}}return"function"!=typeof t&&(t=wo(null==t?0:+t)),u.initialize=function(t){n=t,o()},u.strength=function(t){return arguments.length?(i="function"==typeof t?t:wo(+t),o(),u):i},u.x=function(n){return arguments.length?(t="function"==typeof n?n:wo(+n),o(),u):t},u},Xo=function(t){var n,e,r,i=wo(.1);function u(t){for(var i,u=0,o=n.length;u<o;++u)(i=n[u]).vy+=(r[u]-i.y)*e[u]*t}function o(){if(n){var u,o=n.length;for(e=new Array(o),r=new Array(o),u=0;u<o;++u)e[u]=isNaN(r[u]=+t(n[u],u,n))?0:+i(n[u],u,n)}}return"function"!=typeof t&&(t=wo(null==t?0:+t)),u.initialize=function(t){n=t,o()},u.strength=function(t){return arguments.length?(i="function"==typeof t?t:wo(+t),o(),u):i},u.y=function(n){return arguments.length?(t="function"==typeof n?n:wo(+n),o(),u):t},u},$o=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},Go=function(t){return(t=$o(Math.abs(t)))?t[1]:NaN},Zo=function(t,n){var e=$o(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Qo={"":function(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,u=-1;i<r;++i)switch(t[i]){case".":u=e=i;break;case"0":0===u&&(u=i),e=i;break;case"e":break t;default:u>0&&(u=0)}return u>0?t.slice(0,u)+t.slice(e+1):t},"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Zo(100*t,n)},r:Zo,s:function(t,n){var e=$o(t,n);if(!e)return t+"";var r=e[0],i=e[1],u=i-(qo=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return u===o?r:u>o?r+new Array(u-o+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+$o(t,Math.max(0,n+u-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Ko=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Jo(t){return new ta(t)}function ta(t){if(!(n=Ko.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",u=n[4]||"",o=!!n[5],a=n[6]&&+n[6],c=!!n[7],f=n[8]&&+n[8].slice(1),s=n[9]||"";"n"===s?(c=!0,s="g"):Qo[s]||(s=""),(o||"0"===e&&"="===r)&&(o=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=u,this.zero=o,this.width=a,this.comma=c,this.precision=f,this.type=s}Jo.prototype=ta.prototype,ta.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var na,ea,ra,ia=function(t){return t},ua=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],oa=function(t){var n,e,r=t.grouping&&t.thousands?(n=t.grouping,e=t.thousands,function(t,r){for(var i=t.length,u=[],o=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),u.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[o=(o+1)%n.length];return u.reverse().join(e)}):ia,i=t.currency,u=t.decimal,o=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}(t.numerals):ia,a=t.percent||"%";function c(t){var n=(t=Jo(t)).fill,e=t.align,c=t.sign,f=t.symbol,s=t.zero,l=t.width,h=t.comma,d=t.precision,p=t.type,v="$"===f?i[0]:"#"===f&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===f?i[1]:/[%p]/.test(p)?a:"",_=Qo[p],y=!p||/[defgprs%]/.test(p);function m(t){var i,a,f,m=v,x=g;if("c"===p)x=_(t)+x,t="";else{var b=(t=+t)<0;if(t=_(Math.abs(t),d),b&&0==+t&&(b=!1),m=(b?"("===c?c:"-":"-"===c||"("===c?"":c)+m,x=("s"===p?ua[8+qo/3]:"")+x+(b&&"("===c?")":""),y)for(i=-1,a=t.length;++i<a;)if(48>(f=t.charCodeAt(i))||f>57){x=(46===f?u+t.slice(i+1):t.slice(i))+x,t=t.slice(0,i);break}}h&&!s&&(t=r(t,1/0));var w=m.length+t.length+x.length,M=w<l?new Array(l-w+1).join(n):"";switch(h&&s&&(t=r(M+t,M.length?l-x.length:1/0),M=""),e){case"<":t=m+t+x+M;break;case"=":t=m+M+t+x;break;case"^":t=M.slice(0,w=M.length>>1)+m+t+x+M.slice(w);break;default:t=M+m+t+x}return o(t)}return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),m.toString=function(){return t+""},m}return{format:c,formatPrefix:function(t,n){var e=c(((t=Jo(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Go(n)/3))),i=Math.pow(10,-r),u=ua[8+r/3];return function(t){return e(i*t)+u}}}};function aa(t){return na=oa(t),ea=na.format,ra=na.formatPrefix,na}aa({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var ca=function(t){return Math.max(0,-Go(Math.abs(t)))},fa=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Go(n)/3)))-Go(Math.abs(t)))},sa=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Go(n)-Go(t))+1},la=function(){return new ha};function ha(){this.reset()}ha.prototype={constructor:ha,reset:function(){this.s=this.t=0},add:function(t){pa(da,t,this.t),pa(this,da.s,this.s),this.s?this.t+=da.t:this.s=da.t},valueOf:function(){return this.s}};var da=new ha;function pa(t,n,e){var r=t.s=n+e,i=r-n,u=r-i;t.t=n-u+(e-i)}var va=1e-6,ga=Math.PI,_a=ga/2,ya=ga/4,ma=2*ga,xa=180/ga,ba=ga/180,wa=Math.abs,Ma=Math.atan,Ea=Math.atan2,ka=Math.cos,Na=Math.ceil,Ta=Math.exp,Sa=(Math.floor,Math.log),Aa=Math.pow,Ca=Math.sin,Pa=Math.sign||function(t){return t>0?1:t<0?-1:0},Oa=Math.sqrt,ja=Math.tan;function Ra(t){return t>1?0:t<-1?ga:Math.acos(t)}function La(t){return t>1?_a:t<-1?-_a:Math.asin(t)}function za(t){return(t=Ca(t/2))*t}function Ia(){}function Ua(t,n){t&&qa.hasOwnProperty(t.type)&&qa[t.type](t,n)}var Da={Feature:function(t,n){Ua(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)Ua(e[r].geometry,n)}},qa={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Ba(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Ba(e[r],n,0)},Polygon:function(t,n){Fa(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Fa(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)Ua(e[r],n)}};function Ba(t,n,e){var r,i=-1,u=t.length-e;for(n.lineStart();++i<u;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function Fa(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Ba(t[e],n,1);n.polygonEnd()}var Ya,Wa,Ha,Va,Xa,$a=function(t,n){t&&Da.hasOwnProperty(t.type)?Da[t.type](t,n):Ua(t,n)},Ga=la(),Za=la(),Qa={point:Ia,lineStart:Ia,lineEnd:Ia,polygonStart:function(){Ga.reset(),Qa.lineStart=Ka,Qa.lineEnd=Ja},polygonEnd:function(){var t=+Ga;Za.add(t<0?ma+t:t),this.lineStart=this.lineEnd=this.point=Ia},sphere:function(){Za.add(ma)}};function Ka(){Qa.point=tc}function Ja(){nc(Ya,Wa)}function tc(t,n){Qa.point=nc,Ya=t,Wa=n,Ha=t*=ba,Va=ka(n=(n*=ba)/2+ya),Xa=Ca(n)}function nc(t,n){n=(n*=ba)/2+ya;var e=(t*=ba)-Ha,r=e>=0?1:-1,i=r*e,u=ka(n),o=Ca(n),a=Xa*o,c=Va*u+a*ka(i),f=a*r*Ca(i);Ga.add(Ea(f,c)),Ha=t,Va=u,Xa=o}var ec=function(t){return Za.reset(),$a(t,Qa),2*Za};function rc(t){return[Ea(t[1],t[0]),La(t[2])]}function ic(t){var n=t[0],e=t[1],r=ka(e);return[r*ka(n),r*Ca(n),Ca(e)]}function uc(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function oc(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function ac(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function cc(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function fc(t){var n=Oa(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var sc,lc,hc,dc,pc,vc,gc,_c,yc,mc,xc=la(),bc={point:wc,lineStart:Ec,lineEnd:kc,polygonStart:function(){bc.point=Nc,bc.lineStart=Tc,bc.lineEnd=Sc,xc.reset(),Qa.polygonStart()},polygonEnd:function(){Qa.polygonEnd(),bc.point=wc,bc.lineStart=Ec,bc.lineEnd=kc,Ga<0?(sc=-(hc=180),lc=-(dc=90)):xc>va?dc=90:xc<-va&&(lc=-90),mc[0]=sc,mc[1]=hc}};function wc(t,n){yc.push(mc=[sc=t,hc=t]),n<lc&&(lc=n),n>dc&&(dc=n)}function Mc(t,n){var e=ic([t*ba,n*ba]);if(_c){var r=oc(_c,e),i=oc([r[1],-r[0],0],r);fc(i),i=rc(i);var u,o=t-pc,a=o>0?1:-1,c=i[0]*xa*a,f=wa(o)>180;f^(a*pc<c&&c<a*t)?(u=i[1]*xa)>dc&&(dc=u):f^(a*pc<(c=(c+360)%360-180)&&c<a*t)?(u=-i[1]*xa)<lc&&(lc=u):(n<lc&&(lc=n),n>dc&&(dc=n)),f?t<pc?Ac(sc,t)>Ac(sc,hc)&&(hc=t):Ac(t,hc)>Ac(sc,hc)&&(sc=t):hc>=sc?(t<sc&&(sc=t),t>hc&&(hc=t)):t>pc?Ac(sc,t)>Ac(sc,hc)&&(hc=t):Ac(t,hc)>Ac(sc,hc)&&(sc=t)}else yc.push(mc=[sc=t,hc=t]);n<lc&&(lc=n),n>dc&&(dc=n),_c=e,pc=t}function Ec(){bc.point=Mc}function kc(){mc[0]=sc,mc[1]=hc,bc.point=wc,_c=null}function Nc(t,n){if(_c){var e=t-pc;xc.add(wa(e)>180?e+(e>0?360:-360):e)}else vc=t,gc=n;Qa.point(t,n),Mc(t,n)}function Tc(){Qa.lineStart()}function Sc(){Nc(vc,gc),Qa.lineEnd(),wa(xc)>va&&(sc=-(hc=180)),mc[0]=sc,mc[1]=hc,_c=null}function Ac(t,n){return(n-=t)<0?n+360:n}function Cc(t,n){return t[0]-n[0]}function Pc(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var Oc,jc,Rc,Lc,zc,Ic,Uc,Dc,qc,Bc,Fc,Yc,Wc,Hc,Vc,Xc,$c=function(t){var n,e,r,i,u,o,a;if(dc=hc=-(sc=lc=1/0),yc=[],$a(t,bc),e=yc.length){for(yc.sort(Cc),n=1,u=[r=yc[0]];n<e;++n)Pc(r,(i=yc[n])[0])||Pc(r,i[1])?(Ac(r[0],i[1])>Ac(r[0],r[1])&&(r[1]=i[1]),Ac(i[0],r[1])>Ac(r[0],r[1])&&(r[0]=i[0])):u.push(r=i);for(o=-1/0,n=0,r=u[e=u.length-1];n<=e;r=i,++n)i=u[n],(a=Ac(r[1],i[0]))>o&&(o=a,sc=i[0],hc=r[1])}return yc=mc=null,sc===1/0||lc===1/0?[[NaN,NaN],[NaN,NaN]]:[[sc,lc],[hc,dc]]},Gc={sphere:Ia,point:Zc,lineStart:Kc,lineEnd:nf,polygonStart:function(){Gc.lineStart=ef,Gc.lineEnd=rf},polygonEnd:function(){Gc.lineStart=Kc,Gc.lineEnd=nf}};function Zc(t,n){t*=ba;var e=ka(n*=ba);Qc(e*ka(t),e*Ca(t),Ca(n))}function Qc(t,n,e){Rc+=(t-Rc)/++Oc,Lc+=(n-Lc)/Oc,zc+=(e-zc)/Oc}function Kc(){Gc.point=Jc}function Jc(t,n){t*=ba;var e=ka(n*=ba);Hc=e*ka(t),Vc=e*Ca(t),Xc=Ca(n),Gc.point=tf,Qc(Hc,Vc,Xc)}function tf(t,n){t*=ba;var e=ka(n*=ba),r=e*ka(t),i=e*Ca(t),u=Ca(n),o=Ea(Oa((o=Vc*u-Xc*i)*o+(o=Xc*r-Hc*u)*o+(o=Hc*i-Vc*r)*o),Hc*r+Vc*i+Xc*u);jc+=o,Ic+=o*(Hc+(Hc=r)),Uc+=o*(Vc+(Vc=i)),Dc+=o*(Xc+(Xc=u)),Qc(Hc,Vc,Xc)}function nf(){Gc.point=Zc}function ef(){Gc.point=uf}function rf(){of(Yc,Wc),Gc.point=Zc}function uf(t,n){Yc=t,Wc=n,t*=ba,n*=ba,Gc.point=of;var e=ka(n);Hc=e*ka(t),Vc=e*Ca(t),Xc=Ca(n),Qc(Hc,Vc,Xc)}function of(t,n){t*=ba;var e=ka(n*=ba),r=e*ka(t),i=e*Ca(t),u=Ca(n),o=Vc*u-Xc*i,a=Xc*r-Hc*u,c=Hc*i-Vc*r,f=Oa(o*o+a*a+c*c),s=La(f),l=f&&-s/f;qc+=l*o,Bc+=l*a,Fc+=l*c,jc+=s,Ic+=s*(Hc+(Hc=r)),Uc+=s*(Vc+(Vc=i)),Dc+=s*(Xc+(Xc=u)),Qc(Hc,Vc,Xc)}var af=function(t){Oc=jc=Rc=Lc=zc=Ic=Uc=Dc=qc=Bc=Fc=0,$a(t,Gc);var n=qc,e=Bc,r=Fc,i=n*n+e*e+r*r;return i<1e-12&&(n=Ic,e=Uc,r=Dc,jc<va&&(n=Rc,e=Lc,r=zc),(i=n*n+e*e+r*r)<1e-12)?[NaN,NaN]:[Ea(e,n)*xa,La(r/Oa(i))*xa]},cf=function(t){return function(){return t}},ff=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e};function sf(t,n){return[t>ga?t-ma:t<-ga?t+ma:t,n]}function lf(t,n,e){return(t%=ma)?n||e?ff(df(t),pf(n,e)):df(t):n||e?pf(n,e):sf}function hf(t){return function(n,e){return[(n+=t)>ga?n-ma:n<-ga?n+ma:n,e]}}function df(t){var n=hf(t);return n.invert=hf(-t),n}function pf(t,n){var e=ka(t),r=Ca(t),i=ka(n),u=Ca(n);function o(t,n){var o=ka(n),a=ka(t)*o,c=Ca(t)*o,f=Ca(n),s=f*e+a*r;return[Ea(c*i-s*u,a*e-f*r),La(s*i+c*u)]}return o.invert=function(t,n){var o=ka(n),a=ka(t)*o,c=Ca(t)*o,f=Ca(n),s=f*i-c*u;return[Ea(c*i+f*u,a*e+s*r),La(s*e-a*r)]},o}sf.invert=sf;var vf=function(t){function n(n){return(n=t(n[0]*ba,n[1]*ba))[0]*=xa,n[1]*=xa,n}return t=lf(t[0]*ba,t[1]*ba,t.length>2?t[2]*ba:0),n.invert=function(n){return(n=t.invert(n[0]*ba,n[1]*ba))[0]*=xa,n[1]*=xa,n},n};function gf(t,n,e,r,i,u){if(e){var o=ka(n),a=Ca(n),c=r*e;null==i?(i=n+r*ma,u=n-c/2):(i=_f(o,i),u=_f(o,u),(r>0?i<u:i>u)&&(i+=r*ma));for(var f,s=i;r>0?s>u:s<u;s-=c)f=rc([o,-a*ka(s),-a*Ca(s)]),t.point(f[0],f[1])}}function _f(t,n){(n=ic(n))[0]-=t,fc(n);var e=Ra(-n[1]);return((-n[2]<0?-e:e)+ma-va)%ma}var yf=function(){var t,n,e=cf([0,0]),r=cf(90),i=cf(6),u={point:function(e,r){t.push(e=n(e,r)),e[0]*=xa,e[1]*=xa}};function o(){var o=e.apply(this,arguments),a=r.apply(this,arguments)*ba,c=i.apply(this,arguments)*ba;return t=[],n=lf(-o[0]*ba,-o[1]*ba,0).invert,gf(u,a,c,1),o={type:"Polygon",coordinates:[t]},t=n=null,o}return o.center=function(t){return arguments.length?(e="function"==typeof t?t:cf([+t[0],+t[1]]),o):e},o.radius=function(t){return arguments.length?(r="function"==typeof t?t:cf(+t),o):r},o.precision=function(t){return arguments.length?(i="function"==typeof t?t:cf(+t),o):i},o},mf=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:Ia,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},xf=function(t,n){return wa(t[0]-n[0])<va&&wa(t[1]-n[1])<va};function bf(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}var wf=function(t,n,e,r,i){var u,o,a=[],c=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],o=t[n];if(xf(r,o)){for(i.lineStart(),u=0;u<n;++u)i.point((r=t[u])[0],r[1]);i.lineEnd()}else a.push(e=new bf(r,t,null,!0)),c.push(e.o=new bf(r,null,e,!1)),a.push(e=new bf(o,t,null,!1)),c.push(e.o=new bf(o,null,e,!0))}}),a.length){for(c.sort(n),Mf(a),Mf(c),u=0,o=c.length;u<o;++u)c[u].e=e=!e;for(var f,s,l=a[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;f=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(u=0,o=f.length;u<o;++u)i.point((s=f[u])[0],s[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(f=h.p.z,u=f.length-1;u>=0;--u)i.point((s=f[u])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}f=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function Mf(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}var Ef=la(),kf=function(t,n){var e=n[0],r=n[1],i=[Ca(e),-ka(e),0],u=0,o=0;Ef.reset();for(var a=0,c=t.length;a<c;++a)if(s=(f=t[a]).length)for(var f,s,l=f[s-1],h=l[0],d=l[1]/2+ya,p=Ca(d),v=ka(d),g=0;g<s;++g,h=y,p=x,v=b,l=_){var _=f[g],y=_[0],m=_[1]/2+ya,x=Ca(m),b=ka(m),w=y-h,M=w>=0?1:-1,E=M*w,k=E>ga,N=p*x;if(Ef.add(Ea(N*M*Ca(E),v*b+N*ka(E))),u+=k?w+M*ma:w,k^h>=e^y>=e){var T=oc(ic(l),ic(_));fc(T);var S=oc(i,T);fc(S);var A=(k^w>=0?-1:1)*La(S[2]);(r>A||r===A&&(T[0]||T[1]))&&(o+=k^w>=0?1:-1)}}return(u<-va||u<va&&Ef<-va)^1&o},Nf=function(t,n,e,r){return function(i){var u,o,a,c=n(i),f=mf(),s=n(f),l=!1,h={point:d,lineStart:v,lineEnd:g,polygonStart:function(){h.point=_,h.lineStart=y,h.lineEnd=m,o=[],u=[]},polygonEnd:function(){h.point=d,h.lineStart=v,h.lineEnd=g,o=I(o);var t=kf(u,r);o.length?(l||(i.polygonStart(),l=!0),wf(o,Sf,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),o=u=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function v(){h.point=p,c.lineStart()}function g(){h.point=d,c.lineEnd()}function _(t,n){a.push([t,n]),s.point(t,n)}function y(){s.lineStart(),a=[]}function m(){_(a[0][0],a[0][1]),s.lineEnd();var t,n,e,r,c=s.clean(),h=f.result(),d=h.length;if(a.pop(),u.push(a),a=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),o.push(h.filter(Tf))}return h}};function Tf(t){return t.length>1}function Sf(t,n){return((t=t.x)[0]<0?t[1]-_a-va:_a-t[1])-((n=n.x)[0]<0?n[1]-_a-va:_a-n[1])}var Af=Nf(function(){return!0},function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(u,o){var a=u>0?ga:-ga,c=wa(u-e);wa(c-ga)<va?(t.point(e,r=(r+o)/2>0?_a:-_a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(u,r),n=0):i!==a&&c>=ga&&(wa(e-i)<va&&(e-=i*va),wa(u-a)<va&&(u-=a*va),r=function(t,n,e,r){var i,u,o=Ca(t-e);return wa(o)>va?Ma((Ca(n)*(u=ka(r))*Ca(e)-Ca(r)*(i=ka(n))*Ca(t))/(i*u*o)):(n+r)/2}(e,r,u,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=u,r=o),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var i;if(null==t)i=e*_a,r.point(-ga,i),r.point(0,i),r.point(ga,i),r.point(ga,0),r.point(ga,-i),r.point(0,-i),r.point(-ga,-i),r.point(-ga,0),r.point(-ga,i);else if(wa(t[0]-n[0])>va){var u=t[0]<n[0]?ga:-ga;i=e*u/2,r.point(-u,i),r.point(0,i),r.point(u,i)}else r.point(n[0],n[1])},[-ga,-_a]);var Cf=function(t){var n=ka(t),e=6*ba,r=n>0,i=wa(n)>va;function u(t,e){return ka(t)*ka(e)>n}function o(t,e,r){var i=[1,0,0],u=oc(ic(t),ic(e)),o=uc(u,u),a=u[0],c=o-a*a;if(!c)return!r&&t;var f=n*o/c,s=-n*a/c,l=oc(i,u),h=cc(i,f);ac(h,cc(u,s));var d=l,p=uc(h,d),v=uc(d,d),g=p*p-v*(uc(h,h)-1);if(!(g<0)){var _=Oa(g),y=cc(d,(-p-_)/v);if(ac(y,h),y=rc(y),!r)return y;var m,x=t[0],b=e[0],w=t[1],M=e[1];b<x&&(m=x,x=b,b=m);var E=b-x,k=wa(E-ga)<va;if(!k&&M<w&&(m=w,w=M,M=m),k||E<va?k?w+M>0^y[1]<(wa(y[0]-x)<va?w:M):w<=y[1]&&y[1]<=M:E>ga^(x<=y[0]&&y[0]<=b)){var N=cc(d,(-p+_)/v);return ac(N,h),[y,rc(N)]}}}function a(n,e){var i=r?t:ga-t,u=0;return n<-i?u|=1:n>i&&(u|=2),e<-i?u|=4:e>i&&(u|=8),u}return Nf(u,function(t){var n,e,c,f,s;return{lineStart:function(){f=c=!1,s=1},point:function(l,h){var d,p=[l,h],v=u(l,h),g=r?v?0:a(l,h):v?a(l+(l<0?ga:-ga),h):0;if(!n&&(f=c=v)&&t.lineStart(),v!==c&&(!(d=o(n,p))||xf(n,d)||xf(p,d))&&(p[0]+=va,p[1]+=va,v=u(p[0],p[1])),v!==c)s=0,v?(t.lineStart(),d=o(p,n),t.point(d[0],d[1])):(d=o(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^v){var _;g&e||!(_=o(p,n,!0))||(s=0,r?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1])))}!v||n&&xf(n,p)||t.point(p[0],p[1]),n=p,c=v,e=g},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return s|(f&&c)<<1}}},function(n,r,i,u){gf(u,t,e,i,n,r)},r?[0,-t]:[-ga,t-ga])},Pf=function(t,n,e,r,i,u){var o,a=t[0],c=t[1],f=0,s=1,l=n[0]-a,h=n[1]-c;if(o=e-a,l||!(o>0)){if(o/=l,l<0){if(o<f)return;o<s&&(s=o)}else if(l>0){if(o>s)return;o>f&&(f=o)}if(o=i-a,l||!(o<0)){if(o/=l,l<0){if(o>s)return;o>f&&(f=o)}else if(l>0){if(o<f)return;o<s&&(s=o)}if(o=r-c,h||!(o>0)){if(o/=h,h<0){if(o<f)return;o<s&&(s=o)}else if(h>0){if(o>s)return;o>f&&(f=o)}if(o=u-c,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>f&&(f=o)}else if(h>0){if(o<f)return;o<s&&(s=o)}return f>0&&(t[0]=a+f*l,t[1]=c+f*h),s<1&&(n[0]=a+s*l,n[1]=c+s*h),!0}}}}},Of=1e9,jf=-Of;function Rf(t,n,e,r){function i(i,u){return t<=i&&i<=e&&n<=u&&u<=r}function u(i,u,a,f){var s=0,l=0;if(null==i||(s=o(i,a))!==(l=o(u,a))||c(i,u)<0^a>0)do{f.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+a+4)%4)!==l);else f.point(u[0],u[1])}function o(r,i){return wa(r[0]-t)<va?i>0?0:3:wa(r[0]-e)<va?i>0?2:1:wa(r[1]-n)<va?i>0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=o(t,1),r=o(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(o){var c,f,s,l,h,d,p,v,g,_,y,m=o,x=mf(),b={point:w,lineStart:function(){b.point=M,f&&f.push(s=[]);_=!0,g=!1,p=v=NaN},lineEnd:function(){c&&(M(l,h),d&&g&&x.rejoin(),c.push(x.result()));b.point=w,g&&m.lineEnd()},polygonStart:function(){m=x,c=[],f=[],y=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=f.length;e<i;++e)for(var u,o,a=f[e],c=1,s=a.length,l=a[0],h=l[0],d=l[1];c<s;++c)u=h,o=d,l=a[c],h=l[0],d=l[1],o<=r?d>r&&(h-u)*(r-o)>(d-o)*(t-u)&&++n:d<=r&&(h-u)*(r-o)<(d-o)*(t-u)&&--n;return n}(),e=y&&n,i=(c=I(c)).length;(e||i)&&(o.polygonStart(),e&&(o.lineStart(),u(null,null,1,o),o.lineEnd()),i&&wf(c,a,n,u,o),o.polygonEnd());m=o,c=f=s=null}};function w(t,n){i(t,n)&&m.point(t,n)}function M(u,o){var a=i(u,o);if(f&&s.push([u,o]),_)l=u,h=o,d=a,_=!1,a&&(m.lineStart(),m.point(u,o));else if(a&&g)m.point(u,o);else{var c=[p=Math.max(jf,Math.min(Of,p)),v=Math.max(jf,Math.min(Of,v))],x=[u=Math.max(jf,Math.min(Of,u)),o=Math.max(jf,Math.min(Of,o))];Pf(c,x,t,n,e,r)?(g||(m.lineStart(),m.point(c[0],c[1])),m.point(x[0],x[1]),a||m.lineEnd(),y=!1):a&&(m.lineStart(),m.point(u,o),y=!1)}p=u,v=o,g=a}return b}}var Lf,zf,If,Uf=function(){var t,n,e,r=0,i=0,u=960,o=500;return e={stream:function(e){return t&&n===e?t:t=Rf(r,i,u,o)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],u=+a[1][0],o=+a[1][1],t=n=null,e):[[r,i],[u,o]]}}},Df=la(),qf={sphere:Ia,point:Ia,lineStart:function(){qf.point=Ff,qf.lineEnd=Bf},lineEnd:Ia,polygonStart:Ia,polygonEnd:Ia};function Bf(){qf.point=qf.lineEnd=Ia}function Ff(t,n){Lf=t*=ba,zf=Ca(n*=ba),If=ka(n),qf.point=Yf}function Yf(t,n){t*=ba;var e=Ca(n*=ba),r=ka(n),i=wa(t-Lf),u=ka(i),o=r*Ca(i),a=If*e-zf*r*u,c=zf*e+If*r*u;Df.add(Ea(Oa(o*o+a*a),c)),Lf=t,zf=e,If=r}var Wf=function(t){return Df.reset(),$a(t,qf),+Df},Hf=[null,null],Vf={type:"LineString",coordinates:Hf},Xf=function(t,n){return Hf[0]=t,Hf[1]=n,Wf(Vf)},$f={Feature:function(t,n){return Zf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(Zf(e[r].geometry,n))return!0;return!1}},Gf={Sphere:function(){return!0},Point:function(t,n){return Qf(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Qf(e[r],n))return!0;return!1},LineString:function(t,n){return Kf(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Kf(e[r],n))return!0;return!1},Polygon:function(t,n){return Jf(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Jf(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(Zf(e[r],n))return!0;return!1}};function Zf(t,n){return!(!t||!Gf.hasOwnProperty(t.type))&&Gf[t.type](t,n)}function Qf(t,n){return 0===Xf(t,n)}function Kf(t,n){var e=Xf(t[0],t[1]);return Xf(t[0],n)+Xf(n,t[1])<=e+va}function Jf(t,n){return!!kf(t.map(ts),ns(n))}function ts(t){return(t=t.map(ns)).pop(),t}function ns(t){return[t[0]*ba,t[1]*ba]}var es=function(t,n){return(t&&$f.hasOwnProperty(t.type)?$f[t.type]:Zf)(t,n)};function rs(t,n,e){var r=w(t,n-va,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function is(t,n,e){var r=w(t,n-va,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function us(){var t,n,e,r,i,u,o,a,c,f,s,l,h=10,d=h,p=90,v=360,g=2.5;function _(){return{type:"MultiLineString",coordinates:y()}}function y(){return w(Na(r/p)*p,e,p).map(s).concat(w(Na(a/v)*v,o,v).map(l)).concat(w(Na(n/h)*h,t,h).filter(function(t){return wa(t%p)>va}).map(c)).concat(w(Na(u/d)*d,i,d).filter(function(t){return wa(t%v)>va}).map(f))}return _.lines=function(){return y().map(function(t){return{type:"LineString",coordinates:t}})},_.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(o).slice(1),s(e).reverse().slice(1),l(a).reverse().slice(1))]}},_.extent=function(t){return arguments.length?_.extentMajor(t).extentMinor(t):_.extentMinor()},_.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),_.precision(g)):[[r,a],[e,o]]},_.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],u=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),u>i&&(e=u,u=i,i=e),_.precision(g)):[[n,u],[t,i]]},_.step=function(t){return arguments.length?_.stepMajor(t).stepMinor(t):_.stepMinor()},_.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],_):[p,v]},_.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],_):[h,d]},_.precision=function(h){return arguments.length?(g=+h,c=rs(u,i,90),f=is(n,t,g),s=rs(a,o,90),l=is(r,e,g),_):g},_.extentMajor([[-180,-90+va],[180,90-va]]).extentMinor([[-180,-80-va],[180,80+va]])}function os(){return us()()}var as,cs,fs,ss,ls=function(t,n){var e=t[0]*ba,r=t[1]*ba,i=n[0]*ba,u=n[1]*ba,o=ka(r),a=Ca(r),c=ka(u),f=Ca(u),s=o*ka(e),l=o*Ca(e),h=c*ka(i),d=c*Ca(i),p=2*La(Oa(za(u-r)+o*c*za(i-e))),v=Ca(p),g=p?function(t){var n=Ca(t*=p)/v,e=Ca(p-t)/v,r=e*s+n*h,i=e*l+n*d,u=e*a+n*f;return[Ea(i,r)*xa,Ea(u,Oa(r*r+i*i))*xa]}:function(){return[e*xa,r*xa]};return g.distance=p,g},hs=function(t){return t},ds=la(),ps=la(),vs={point:Ia,lineStart:Ia,lineEnd:Ia,polygonStart:function(){vs.lineStart=gs,vs.lineEnd=ms},polygonEnd:function(){vs.lineStart=vs.lineEnd=vs.point=Ia,ds.add(wa(ps)),ps.reset()},result:function(){var t=ds/2;return ds.reset(),t}};function gs(){vs.point=_s}function _s(t,n){vs.point=ys,as=fs=t,cs=ss=n}function ys(t,n){ps.add(ss*t-fs*n),fs=t,ss=n}function ms(){ys(as,cs)}var xs=vs,bs=1/0,ws=bs,Ms=-bs,Es=Ms;var ks,Ns,Ts,Ss,As={point:function(t,n){t<bs&&(bs=t);t>Ms&&(Ms=t);n<ws&&(ws=n);n>Es&&(Es=n)},lineStart:Ia,lineEnd:Ia,polygonStart:Ia,polygonEnd:Ia,result:function(){var t=[[bs,ws],[Ms,Es]];return Ms=Es=-(ws=bs=1/0),t}},Cs=0,Ps=0,Os=0,js=0,Rs=0,Ls=0,zs=0,Is=0,Us=0,Ds={point:qs,lineStart:Bs,lineEnd:Ws,polygonStart:function(){Ds.lineStart=Hs,Ds.lineEnd=Vs},polygonEnd:function(){Ds.point=qs,Ds.lineStart=Bs,Ds.lineEnd=Ws},result:function(){var t=Us?[zs/Us,Is/Us]:Ls?[js/Ls,Rs/Ls]:Os?[Cs/Os,Ps/Os]:[NaN,NaN];return Cs=Ps=Os=js=Rs=Ls=zs=Is=Us=0,t}};function qs(t,n){Cs+=t,Ps+=n,++Os}function Bs(){Ds.point=Fs}function Fs(t,n){Ds.point=Ys,qs(Ts=t,Ss=n)}function Ys(t,n){var e=t-Ts,r=n-Ss,i=Oa(e*e+r*r);js+=i*(Ts+t)/2,Rs+=i*(Ss+n)/2,Ls+=i,qs(Ts=t,Ss=n)}function Ws(){Ds.point=qs}function Hs(){Ds.point=Xs}function Vs(){$s(ks,Ns)}function Xs(t,n){Ds.point=$s,qs(ks=Ts=t,Ns=Ss=n)}function $s(t,n){var e=t-Ts,r=n-Ss,i=Oa(e*e+r*r);js+=i*(Ts+t)/2,Rs+=i*(Ss+n)/2,Ls+=i,zs+=(i=Ss*t-Ts*n)*(Ts+t),Is+=i*(Ss+n),Us+=3*i,qs(Ts=t,Ss=n)}var Gs=Ds;function Zs(t){this._context=t}Zs.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,ma)}},result:Ia};var Qs,Ks,Js,tl,nl,el=la(),rl={point:Ia,lineStart:function(){rl.point=il},lineEnd:function(){Qs&&ul(Ks,Js),rl.point=Ia},polygonStart:function(){Qs=!0},polygonEnd:function(){Qs=null},result:function(){var t=+el;return el.reset(),t}};function il(t,n){rl.point=ul,Ks=tl=t,Js=nl=n}function ul(t,n){tl-=t,nl-=n,el.add(Oa(tl*tl+nl*nl)),tl=t,nl=n}var ol=rl;function al(){this._string=[]}function cl(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}al.prototype={_radius:4.5,_circle:cl(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=cl(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var fl=function(t,n){var e,r,i=4.5;function u(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),$a(t,e(r))),r.result()}return u.area=function(t){return $a(t,e(xs)),xs.result()},u.measure=function(t){return $a(t,e(ol)),ol.result()},u.bounds=function(t){return $a(t,e(As)),As.result()},u.centroid=function(t){return $a(t,e(Gs)),Gs.result()},u.projection=function(n){return arguments.length?(e=null==n?(t=null,hs):(t=n).stream,u):t},u.context=function(t){return arguments.length?(r=null==t?(n=null,new al):new Zs(n=t),"function"!=typeof i&&r.pointRadius(i),u):n},u.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),u):i},u.projection(t).context(n)},sl=function(t){return{stream:ll(t)}};function ll(t){return function(n){var e=new hl;for(var r in t)e[r]=t[r];return e.stream=n,e}}function hl(){}function dl(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),$a(e,t.stream(As)),n(As.result()),null!=r&&t.clipExtent(r),t}function pl(t,n,e){return dl(t,function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],u=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),o=+n[0][0]+(r-u*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-u*(e[1][1]+e[0][1]))/2;t.scale(150*u).translate([o,a])},e)}function vl(t,n,e){return pl(t,[[0,0],n],e)}function gl(t,n,e){return dl(t,function(e){var r=+n,i=r/(e[1][0]-e[0][0]),u=(r-i*(e[1][0]+e[0][0]))/2,o=-i*e[0][1];t.scale(150*i).translate([u,o])},e)}function _l(t,n,e){return dl(t,function(e){var r=+n,i=r/(e[1][1]-e[0][1]),u=-i*e[0][0],o=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([u,o])},e)}hl.prototype={constructor:hl,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var yl=16,ml=ka(30*ba),xl=function(t,n){return+n?function(t,n){function e(r,i,u,o,a,c,f,s,l,h,d,p,v,g){var _=f-r,y=s-i,m=_*_+y*y;if(m>4*n&&v--){var x=o+h,b=a+d,w=c+p,M=Oa(x*x+b*b+w*w),E=La(w/=M),k=wa(wa(w)-1)<va||wa(u-l)<va?(u+l)/2:Ea(b,x),N=t(k,E),T=N[0],S=N[1],A=T-r,C=S-i,P=y*A-_*C;(P*P/m>n||wa((_*A+y*C)/m-.5)>.3||o*h+a*d+c*p<ml)&&(e(r,i,u,o,a,c,T,S,k,x/=M,b/=M,w,v,g),g.point(T,S),e(T,S,k,x,b,w,f,s,l,h,d,p,v,g))}}return function(n){var r,i,u,o,a,c,f,s,l,h,d,p,v={point:g,lineStart:_,lineEnd:m,polygonStart:function(){n.polygonStart(),v.lineStart=x},polygonEnd:function(){n.polygonEnd(),v.lineStart=_}};function g(e,r){e=t(e,r),n.point(e[0],e[1])}function _(){s=NaN,v.point=y,n.lineStart()}function y(r,i){var u=ic([r,i]),o=t(r,i);e(s,l,f,h,d,p,s=o[0],l=o[1],f=r,h=u[0],d=u[1],p=u[2],yl,n),n.point(s,l)}function m(){v.point=g,n.lineEnd()}function x(){_(),v.point=b,v.lineEnd=w}function b(t,n){y(r=t,n),i=s,u=l,o=h,a=d,c=p,v.point=y}function w(){e(s,l,f,h,d,p,i,u,r,o,a,c,yl,n),v.lineEnd=m,m()}return v}}(t,n):function(t){return ll({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)};var bl=ll({point:function(t,n){this.stream.point(t*ba,n*ba)}});function wl(t){return Ml(function(){return t})()}function Ml(t){var n,e,r,i,u,o,a,c,f,s,l=150,h=480,d=250,p=0,v=0,g=0,_=0,y=0,m=null,x=Af,b=null,w=hs,M=.5,E=xl(T,M);function k(t){return[(t=u(t[0]*ba,t[1]*ba))[0]*l+e,r-t[1]*l]}function N(t){return(t=u.invert((t[0]-e)/l,(r-t[1])/l))&&[t[0]*xa,t[1]*xa]}function T(t,i){return[(t=n(t,i))[0]*l+e,r-t[1]*l]}function S(){u=ff(i=lf(g,_,y),n);var t=n(p,v);return e=h-t[0]*l,r=d+t[1]*l,A()}function A(){return f=s=null,k}return k.stream=function(t){return f&&s===t?f:f=bl(function(t){return ll({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(i)(x(E(w(s=t)))))},k.preclip=function(t){return arguments.length?(x=t,m=void 0,A()):x},k.postclip=function(t){return arguments.length?(w=t,b=o=a=c=null,A()):w},k.clipAngle=function(t){return arguments.length?(x=+t?Cf(m=t*ba):(m=null,Af),A()):m*xa},k.clipExtent=function(t){return arguments.length?(w=null==t?(b=o=a=c=null,hs):Rf(b=+t[0][0],o=+t[0][1],a=+t[1][0],c=+t[1][1]),A()):null==b?null:[[b,o],[a,c]]},k.scale=function(t){return arguments.length?(l=+t,S()):l},k.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],S()):[h,d]},k.center=function(t){return arguments.length?(p=t[0]%360*ba,v=t[1]%360*ba,S()):[p*xa,v*xa]},k.rotate=function(t){return arguments.length?(g=t[0]%360*ba,_=t[1]%360*ba,y=t.length>2?t[2]%360*ba:0,S()):[g*xa,_*xa,y*xa]},k.precision=function(t){return arguments.length?(E=xl(T,M=t*t),A()):Oa(M)},k.fitExtent=function(t,n){return pl(k,t,n)},k.fitSize=function(t,n){return vl(k,t,n)},k.fitWidth=function(t,n){return gl(k,t,n)},k.fitHeight=function(t,n){return _l(k,t,n)},function(){return n=t.apply(this,arguments),k.invert=n.invert&&N,S()}}function El(t){var n=0,e=ga/3,r=Ml(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*ba,e=t[1]*ba):[n*xa,e*xa]},i}function kl(t,n){var e=Ca(t),r=(e+Ca(n))/2;if(wa(r)<va)return function(t){var n=ka(t);function e(t,e){return[t*n,Ca(e)/n]}return e.invert=function(t,e){return[t/n,La(e*n)]},e}(t);var i=1+e*(2*r-e),u=Oa(i)/r;function o(t,n){var e=Oa(i-2*r*Ca(n))/r;return[e*Ca(t*=r),u-e*ka(t)]}return o.invert=function(t,n){var e=u-n;return[Ea(t,wa(e))/r*Pa(e),La((i-(t*t+e*e)*r*r)/(2*r))]},o}var Nl=function(){return El(kl).scale(155.424).center([0,33.6442])},Tl=function(){return Nl().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var Sl=function(){var t,n,e,r,i,u,o=Tl(),a=Nl().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Nl().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,n){u=[t,n]}};function s(t){var n=t[0],o=t[1];return u=null,e.point(n,o),u||(r.point(n,o),u)||(i.point(n,o),u)}function l(){return t=n=null,s}return s.invert=function(t){var n=o.scale(),e=o.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[o.stream(n=e),a.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e<i;)r[e].point(t,n)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},s.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),c.precision(t),l()):o.precision()},s.scale=function(t){return arguments.length?(o.scale(t),a.scale(.35*t),c.scale(t),s.translate(o.translate())):o.scale()},s.translate=function(t){if(!arguments.length)return o.translate();var n=o.scale(),u=+t[0],s=+t[1];return e=o.translate(t).clipExtent([[u-.455*n,s-.238*n],[u+.455*n,s+.238*n]]).stream(f),r=a.translate([u-.307*n,s+.201*n]).clipExtent([[u-.425*n+va,s+.12*n+va],[u-.214*n-va,s+.234*n-va]]).stream(f),i=c.translate([u-.205*n,s+.212*n]).clipExtent([[u-.214*n+va,s+.166*n+va],[u-.115*n-va,s+.234*n-va]]).stream(f),l()},s.fitExtent=function(t,n){return pl(s,t,n)},s.fitSize=function(t,n){return vl(s,t,n)},s.fitWidth=function(t,n){return gl(s,t,n)},s.fitHeight=function(t,n){return _l(s,t,n)},s.scale(1070)};function Al(t){return function(n,e){var r=ka(n),i=ka(e),u=t(r*i);return[u*i*Ca(n),u*Ca(e)]}}function Cl(t){return function(n,e){var r=Oa(n*n+e*e),i=t(r),u=Ca(i),o=ka(i);return[Ea(n*u,r*o),La(r&&e*u/r)]}}var Pl=Al(function(t){return Oa(2/(1+t))});Pl.invert=Cl(function(t){return 2*La(t/2)});var Ol=function(){return wl(Pl).scale(124.75).clipAngle(179.999)},jl=Al(function(t){return(t=Ra(t))&&t/Ca(t)});jl.invert=Cl(function(t){return t});var Rl=function(){return wl(jl).scale(79.4188).clipAngle(179.999)};function Ll(t,n){return[t,Sa(ja((_a+n)/2))]}Ll.invert=function(t,n){return[t,2*Ma(Ta(n))-_a]};var zl=function(){return Il(Ll).scale(961/ma)};function Il(t){var n,e,r,i=wl(t),u=i.center,o=i.scale,a=i.translate,c=i.clipExtent,f=null;function s(){var u=ga*o(),a=i(vf(i.rotate()).invert([0,0]));return c(null==f?[[a[0]-u,a[1]-u],[a[0]+u,a[1]+u]]:t===Ll?[[Math.max(a[0]-u,f),n],[Math.min(a[0]+u,e),r]]:[[f,Math.max(a[1]-u,n)],[e,Math.min(a[1]+u,r)]])}return i.scale=function(t){return arguments.length?(o(t),s()):o()},i.translate=function(t){return arguments.length?(a(t),s()):a()},i.center=function(t){return arguments.length?(u(t),s()):u()},i.clipExtent=function(t){return arguments.length?(null==t?f=n=e=r=null:(f=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),s()):null==f?null:[[f,n],[e,r]]},s()}function Ul(t){return ja((_a+t)/2)}function Dl(t,n){var e=ka(t),r=t===n?Ca(t):Sa(e/ka(n))/Sa(Ul(n)/Ul(t)),i=e*Aa(Ul(t),r)/r;if(!r)return Ll;function u(t,n){i>0?n<-_a+va&&(n=-_a+va):n>_a-va&&(n=_a-va);var e=i/Aa(Ul(n),r);return[e*Ca(r*t),i-e*ka(r*t)]}return u.invert=function(t,n){var e=i-n,u=Pa(r)*Oa(t*t+e*e);return[Ea(t,wa(e))/r*Pa(e),2*Ma(Aa(i/u,1/r))-_a]},u}var ql=function(){return El(Dl).scale(109.5).parallels([30,30])};function Bl(t,n){return[t,n]}Bl.invert=Bl;var Fl=function(){return wl(Bl).scale(152.63)};function Yl(t,n){var e=ka(t),r=t===n?Ca(t):(e-ka(n))/(n-t),i=e/r+t;if(wa(r)<va)return Bl;function u(t,n){var e=i-n,u=r*t;return[e*Ca(u),i-e*ka(u)]}return u.invert=function(t,n){var e=i-n;return[Ea(t,wa(e))/r*Pa(e),i-Pa(r)*Oa(t*t+e*e)]},u}var Wl=function(){return El(Yl).scale(131.154).center([0,13.9389])};function Hl(t,n){var e=ka(n),r=ka(t)*e;return[e*Ca(t)/r,Ca(n)/r]}Hl.invert=Cl(Ma);var Vl=function(){return wl(Hl).scale(144.049).clipAngle(60)};function Xl(t,n,e,r){return 1===t&&1===n&&0===e&&0===r?hs:ll({point:function(i,u){this.stream.point(i*t+e,u*n+r)}})}var $l=function(){var t,n,e,r,i,u,o=1,a=0,c=0,f=1,s=1,l=hs,h=null,d=hs;function p(){return r=i=null,u}return u={stream:function(t){return r&&i===t?r:r=l(d(i=t))},postclip:function(r){return arguments.length?(d=r,h=t=n=e=null,p()):d},clipExtent:function(r){return arguments.length?(d=null==r?(h=t=n=e=null,hs):Rf(h=+r[0][0],t=+r[0][1],n=+r[1][0],e=+r[1][1]),p()):null==h?null:[[h,t],[n,e]]},scale:function(t){return arguments.length?(l=Xl((o=+t)*f,o*s,a,c),p()):o},translate:function(t){return arguments.length?(l=Xl(o*f,o*s,a=+t[0],c=+t[1]),p()):[a,c]},reflectX:function(t){return arguments.length?(l=Xl(o*(f=t?-1:1),o*s,a,c),p()):f<0},reflectY:function(t){return arguments.length?(l=Xl(o*f,o*(s=t?-1:1),a,c),p()):s<0},fitExtent:function(t,n){return pl(u,t,n)},fitSize:function(t,n){return vl(u,t,n)},fitWidth:function(t,n){return gl(u,t,n)},fitHeight:function(t,n){return _l(u,t,n)}}};function Gl(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}Gl.invert=function(t,n){var e,r=n,i=25;do{var u=r*r,o=u*u;r-=e=(r*(1.007226+u*(.015085+o*(.028874*u-.044475-.005916*o)))-n)/(1.007226+u*(.045255+o*(.259866*u-.311325-.005916*11*o)))}while(wa(e)>va&&--i>0);return[t/(.8707+(u=r*r)*(u*(u*u*u*(.003971-.001529*u)-.013791)-.131979)),r]};var Zl=function(){return wl(Gl).scale(175.295)};function Ql(t,n){return[ka(n)*Ca(t),Ca(n)]}Ql.invert=Cl(La);var Kl=function(){return wl(Ql).scale(249.5).clipAngle(90+va)};function Jl(t,n){var e=ka(n),r=1+ka(t)*e;return[e*Ca(t)/r,Ca(n)/r]}Jl.invert=Cl(function(t){return 2*Ma(t)});var th=function(){return wl(Jl).scale(250).clipAngle(142)};function nh(t,n){return[Sa(ja((_a+n)/2)),-t]}nh.invert=function(t,n){return[-n,2*Ma(Ta(t))-_a]};var eh=function(){var t=Il(nh),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)};function rh(t,n){return t.parent===n.parent?1:2}function ih(t,n){return t+n.x}function uh(t,n){return Math.max(t,n.y)}var oh=function(){var t=rh,n=1,e=1,r=!1;function i(i){var u,o=0;i.eachAfter(function(n){var e=n.children;e?(n.x=function(t){return t.reduce(ih,0)/t.length}(e),n.y=function(t){return 1+t.reduce(uh,0)}(e)):(n.x=u?o+=t(n,u):0,n.y=0,u=n)});var a=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),f=a.x-t(a,c)/2,s=c.x+t(c,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-f)/(s-f)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i};function ah(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function ch(t,n){var e,r,i,u,o,a=new hh(t),c=+t.value&&(a.value=t.value),f=[a];for(null==n&&(n=fh);e=f.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(o=i.length))for(e.children=new Array(o),u=o-1;u>=0;--u)f.push(r=e.children[u]=new hh(i[u])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(lh)}function fh(t){return t.children}function sh(t){t.data=t.data.data}function lh(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function hh(t){this.data=t,this.depth=this.height=0,this.parent=null}hh.prototype=ch.prototype={constructor:hh,count:function(){return this.eachAfter(ah)},each:function(t){var n,e,r,i,u=this,o=[u];do{for(n=o.reverse(),o=[];u=n.pop();)if(t(u),e=u.children)for(r=0,i=e.length;r<i;++r)o.push(e[r])}while(o.length);return this},eachAfter:function(t){for(var n,e,r,i=this,u=[i],o=[];i=u.pop();)if(o.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)u.push(n[e]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},sort:function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function(){return ch(this).eachBefore(sh)}};var dh=Array.prototype.slice;var ph=function(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(dh.call(t))).length,u=[];r<i;)n=t[r],e&&_h(e,n)?++r:(e=mh(u=vh(u,n)),r=0);return e};function vh(t,n){var e,r;if(yh(n,t))return[n];for(e=0;e<t.length;++e)if(gh(n,t[e])&&yh(xh(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(gh(xh(t[e],t[r]),n)&&gh(xh(t[e],n),t[r])&&gh(xh(t[r],n),t[e])&&yh(bh(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function gh(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function _h(t,n){var e=t.r-n.r+1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function yh(t,n){for(var e=0;e<n.length;++e)if(!_h(t,n[e]))return!1;return!0}function mh(t){switch(t.length){case 1:return{x:(n=t[0]).x,y:n.y,r:n.r};case 2:return xh(t[0],t[1]);case 3:return bh(t[0],t[1],t[2])}var n}function xh(t,n){var e=t.x,r=t.y,i=t.r,u=n.x,o=n.y,a=n.r,c=u-e,f=o-r,s=a-i,l=Math.sqrt(c*c+f*f);return{x:(e+u+c/l*s)/2,y:(r+o+f/l*s)/2,r:(l+i+a)/2}}function bh(t,n,e){var r=t.x,i=t.y,u=t.r,o=n.x,a=n.y,c=n.r,f=e.x,s=e.y,l=e.r,h=r-o,d=r-f,p=i-a,v=i-s,g=c-u,_=l-u,y=r*r+i*i-u*u,m=y-o*o-a*a+c*c,x=y-f*f-s*s+l*l,b=d*p-h*v,w=(p*x-v*m)/(2*b)-r,M=(v*g-p*_)/b,E=(d*m-h*x)/(2*b)-i,k=(h*_-d*g)/b,N=M*M+k*k-1,T=2*(u+w*M+E*k),S=w*w+E*E-u*u,A=-(N?(T+Math.sqrt(T*T-4*N*S))/(2*N):S/T);return{x:r+w+M*A,y:i+E+k*A,r:A}}function wh(t,n,e){var r=t.x,i=t.y,u=n.r+e.r,o=t.r+e.r,a=n.x-r,c=n.y-i,f=a*a+c*c;if(f){var s=.5+((o*=o)-(u*=u))/(2*f),l=Math.sqrt(Math.max(0,2*u*(o+f)-(o-=f)*o-u*u))/(2*f);e.x=r+s*a+l*c,e.y=i+s*c-l*a}else e.x=r+o,e.y=i}function Mh(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i-1e-6>e*e+r*r}function Eh(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,u=(n.y*e.r+e.y*n.r)/r;return i*i+u*u}function kh(t){this._=t,this.next=null,this.previous=null}function Nh(t){if(!(i=t.length))return 0;var n,e,r,i,u,o,a,c,f,s,l;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;wh(e,n,r=t[2]),n=new kh(n),e=new kh(e),r=new kh(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a<i;++a){wh(n._,e._,r=t[a]),r=new kh(r),c=e.next,f=n.previous,s=e._.r,l=n._.r;do{if(s<=l){if(Mh(c._,r._)){e=c,n.next=e,e.previous=n,--a;continue t}s+=c._.r,c=c.next}else{if(Mh(f._,r._)){(n=f).next=e,e.previous=n,--a;continue t}l+=f._.r,f=f.previous}}while(c!==f.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,u=Eh(n);(r=r.next)!==e;)(o=Eh(r))<u&&(n=r,u=o);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=ph(n),a=0;a<i;++a)(n=t[a]).x-=r.x,n.y-=r.y;return r.r}var Th=function(t){return Nh(t),t};function Sh(t){if("function"!=typeof t)throw new Error;return t}function Ah(){return 0}var Ch=function(t){return function(){return t}};function Ph(t){return Math.sqrt(t.value)}var Oh=function(){var t=null,n=1,e=1,r=Ah;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(jh(t)).eachAfter(Rh(r,.5)).eachBefore(Lh(1)):i.eachBefore(jh(Ph)).eachAfter(Rh(Ah,1)).eachAfter(Rh(r,i.r/Math.min(n,e))).eachBefore(Lh(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=null==(e=n)?null:Sh(e),i):t;var e},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:Ch(+t),i):r},i};function jh(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function Rh(t,n){return function(e){if(r=e.children){var r,i,u,o=r.length,a=t(e)*n||0;if(a)for(i=0;i<o;++i)r[i].r+=a;if(u=Nh(r),a)for(i=0;i<o;++i)r[i].r-=a;e.r=u+a}}}function Lh(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}var zh=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Ih=function(t,n,e,r,i){for(var u,o=t.children,a=-1,c=o.length,f=t.value&&(r-n)/t.value;++a<c;)(u=o[a]).y0=e,u.y1=i,u.x0=n,u.x1=n+=u.value*f},Uh=function(){var t=1,n=1,e=0,r=!1;function i(i){var u=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/u,i.eachBefore(function(t,n){return function(r){r.children&&Ih(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,u=r.y0,o=r.x1-e,a=r.y1-e;o<i&&(i=o=(i+o)/2),a<u&&(u=a=(u+a)/2),r.x0=i,r.y0=u,r.x1=o,r.y1=a}}(n,u)),r&&i.eachBefore(zh),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i},Dh="$",qh={depth:-1},Bh={};function Fh(t){return t.id}function Yh(t){return t.parentId}var Wh=function(){var t=Fh,n=Yh;function e(e){var r,i,u,o,a,c,f,s=e.length,l=new Array(s),h={};for(i=0;i<s;++i)r=e[i],a=l[i]=new hh(r),null!=(c=t(r,i,e))&&(c+="")&&(h[f=Dh+(a.id=c)]=f in h?Bh:a);for(i=0;i<s;++i)if(a=l[i],null!=(c=n(e[i],i,e))&&(c+="")){if(!(o=h[Dh+c]))throw new Error("missing: "+c);if(o===Bh)throw new Error("ambiguous: "+c);o.children?o.children.push(a):o.children=[a],a.parent=o}else{if(u)throw new Error("multiple roots");u=a}if(!u)throw new Error("no root");if(u.parent=qh,u.eachBefore(function(t){t.depth=t.parent.depth+1,--s}).eachBefore(lh),u.parent=null,s>0)throw new Error("cycle");return u}return e.id=function(n){return arguments.length?(t=Sh(n),e):t},e.parentId=function(t){return arguments.length?(n=Sh(t),e):n},e};function Hh(t,n){return t.parent===n.parent?1:2}function Vh(t){var n=t.children;return n?n[0]:t.t}function Xh(t){var n=t.children;return n?n[n.length-1]:t.t}function $h(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Gh(t,n,e){return t.a.parent===n.parent?t.a:e}function Zh(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}Zh.prototype=Object.create(hh.prototype);var Qh=function(){var t=Hh,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,u,o=new Zh(t,0),a=[o];n=a.pop();)if(r=n._.children)for(n.children=new Array(u=r.length),i=u-1;i>=0;--i)a.push(e=n.children[i]=new Zh(r[i],i)),e.parent=n;return(o.parent=new Zh(null,0)).children=[o],o}(i);if(c.eachAfter(u),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(a);else{var f=i,s=i,l=i;i.eachBefore(function(t){t.x<f.x&&(f=t),t.x>s.x&&(s=t),t.depth>l.depth&&(l=t)});var h=f===s?1:t(f,s)/2,d=h-f.x,p=n/(s.x+h+d),v=e/(l.depth||1);i.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*v})}return i}function u(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,u=i.length;--u>=0;)(n=i[u]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var u=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-u):n.z=u}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,u=n,o=n,a=e,c=u.parent.children[0],f=u.m,s=o.m,l=a.m,h=c.m;a=Xh(a),u=Vh(u),a&&u;)c=Vh(c),(o=Xh(o)).a=n,(i=a.z+l-u.z-f+t(a._,u._))>0&&($h(Gh(a,n,r),n,i),f+=i,s+=i),l+=a.m,f+=u.m,h+=c.m,s+=o.m;a&&!Xh(o)&&(o.t=a,o.m+=l-s),u&&!Vh(c)&&(c.t=u,c.m+=f-h,r=n)}return r}(n,i,n.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},Kh=function(t,n,e,r,i){for(var u,o=t.children,a=-1,c=o.length,f=t.value&&(i-e)/t.value;++a<c;)(u=o[a]).x0=n,u.x1=r,u.y0=e,u.y1=e+=u.value*f},Jh=(1+Math.sqrt(5))/2;function td(t,n,e,r,i,u){for(var o,a,c,f,s,l,h,d,p,v,g,_=[],y=n.children,m=0,x=0,b=y.length,w=n.value;m<b;){c=i-e,f=u-r;do{s=y[x++].value}while(!s&&x<b);for(l=h=s,g=s*s*(v=Math.max(f/c,c/f)/(w*t)),p=Math.max(h/g,g/l);x<b;++x){if(s+=a=y[x].value,a<l&&(l=a),a>h&&(h=a),g=s*s*v,(d=Math.max(h/g,g/l))>p){s-=a;break}p=d}_.push(o={value:s,dice:c<f,children:y.slice(m,x)}),o.dice?Ih(o,e,r,i,w?r+=f*s/w:u):Kh(o,e,r,w?e+=c*s/w:i,u),w-=s,m=x}return _}var nd=function t(n){function e(t,e,r,i,u){td(n,t,e,r,i,u)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Jh),ed=function(){var t=nd,n=!1,e=1,r=1,i=[0],u=Ah,o=Ah,a=Ah,c=Ah,f=Ah;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(zh),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l<r&&(r=l=(r+l)/2),h<s&&(s=h=(s+h)/2),n.x0=r,n.y0=s,n.x1=l,n.y1=h,n.children&&(e=i[n.depth+1]=u(n)/2,r+=f(n)-e,s+=o(n)-e,l-=a(n)-e,h-=c(n)-e,l<r&&(r=l=(r+l)/2),h<s&&(s=h=(s+h)/2),t(n,r,s,l,h))}return s.round=function(t){return arguments.length?(n=!!t,s):n},s.size=function(t){return arguments.length?(e=+t[0],r=+t[1],s):[e,r]},s.tile=function(n){return arguments.length?(t=Sh(n),s):t},s.padding=function(t){return arguments.length?s.paddingInner(t).paddingOuter(t):s.paddingInner()},s.paddingInner=function(t){return arguments.length?(u="function"==typeof t?t:Ch(+t),s):u},s.paddingOuter=function(t){return arguments.length?s.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):s.paddingTop()},s.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:Ch(+t),s):o},s.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:Ch(+t),s):a},s.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Ch(+t),s):c},s.paddingLeft=function(t){return arguments.length?(f="function"==typeof t?t:Ch(+t),s):f},s},rd=function(t,n,e,r,i){var u,o,a=t.children,c=a.length,f=new Array(c+1);for(f[0]=o=u=0;u<c;++u)f[u+1]=o+=a[u].value;!function t(n,e,r,i,u,o,c){if(n>=e-1){var s=a[n];return s.x0=i,s.y0=u,s.x1=o,void(s.y1=c)}var l=f[n],h=r/2+l,d=n+1,p=e-1;for(;d<p;){var v=d+p>>>1;f[v]<h?d=v+1:p=v}h-f[d-1]<f[d]-h&&n+1<d&&--d;var g=f[d]-l,_=r-g;if(o-i>c-u){var y=(i*_+o*g)/r;t(n,d,g,i,u,y,c),t(d,e,_,y,u,o,c)}else{var m=(u*_+c*g)/r;t(n,d,g,i,u,o,m),t(d,e,_,i,m,o,c)}}(0,c,t.value,n,e,r,i)},id=function(t,n,e,r,i){(1&t.depth?Kh:Ih)(t,n,e,r,i)},ud=function t(n){function e(t,e,r,i,u){if((o=t._squarify)&&o.ratio===n)for(var o,a,c,f,s,l=-1,h=o.length,d=t.value;++l<h;){for(c=(a=o[l]).children,f=a.value=0,s=c.length;f<s;++f)a.value+=c[f].value;a.dice?Ih(a,e,r,i,r+=(u-r)*a.value/d):Kh(a,e,r,e+=(i-e)*a.value/d,u),d-=a.value}else t._squarify=o=td(n,t,e,r,i,u),o.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Jh),od=function(t){for(var n,e=-1,r=t.length,i=t[r-1],u=0;++e<r;)n=i,i=t[e],u+=n[1]*i[0]-n[0]*i[1];return u/2},ad=function(t){for(var n,e,r=-1,i=t.length,u=0,o=0,a=t[i-1],c=0;++r<i;)n=a,a=t[r],c+=e=n[0]*a[1]-a[0]*n[1],u+=(n[0]+a[0])*e,o+=(n[1]+a[1])*e;return[u/(c*=3),o/c]},cd=function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])};function fd(t,n){return t[0]-n[0]||t[1]-n[1]}function sd(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;++i){for(;r>1&&cd(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}var ld=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(fd),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var u=sd(r),o=sd(i),a=o[0]===u[0],c=o[o.length-1]===u[u.length-1],f=[];for(n=u.length-1;n>=0;--n)f.push(t[r[u[n]][2]]);for(n=+a;n<o.length-c;++n)f.push(t[r[o[n]][2]]);return f},hd=function(t,n){for(var e,r,i=t.length,u=t[i-1],o=n[0],a=n[1],c=u[0],f=u[1],s=!1,l=0;l<i;++l)e=(u=t[l])[0],(r=u[1])>a!=f>a&&o<(c-e)*(a-r)/(f-r)+e&&(s=!s),c=e,f=r;return s},dd=function(t){for(var n,e,r=-1,i=t.length,u=t[i-1],o=u[0],a=u[1],c=0;++r<i;)n=o,e=a,n-=o=(u=t[r])[0],e-=a=u[1],c+=Math.sqrt(n*n+e*e);return c},pd=[].slice,vd={};function gd(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function _d(t){if(!t._start)try{!function(t){for(;t._start=t._waiting&&t._active<t._size;){var n=t._ended+t._active,e=t._tasks[n],r=e.length-1,i=e[r];e[r]=yd(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||vd)}}(t)}catch(n){if(t._tasks[t._ended+t._active-1])md(t,n);else if(!t._data)throw n}}function yd(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?md(t,e):(t._data[n]=r,t._waiting?_d(t):xd(t))))}}function md(t,n){var e,r=t._tasks.length;for(t._error=n,t._data=void 0,t._waiting=NaN;--r>=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,xd(t)}function xd(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function bd(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new gd(t)}gd.prototype=bd.prototype={constructor:gd,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=pd.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),_d(this),this},abort:function(){return null==this._error&&md(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(n,e){t.apply(null,[n].concat(e))},xd(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,xd(this),this}};var wd=function(){return Math.random()},Md=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(wd),Ed=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var u;if(null!=r)u=r,r=null;else do{r=2*n()-1,u=2*n()-1,i=r*r+u*u}while(!i||i>1);return t+e*u*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(wd),kd=function t(n){function e(){var t=Ed.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(wd),Nd=function t(n){function e(t){return function(){for(var e=0,r=0;r<t;++r)e+=n();return e}}return e.source=t,e}(wd),Td=function t(n){function e(t){var e=Nd.source(n)(t);return function(){return e()/t}}return e.source=t,e}(wd),Sd=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(wd),Ad=function(t,n){var e,r,i,u,o=ht("beforesend","progress","load","error"),a=Wu(),c=new XMLHttpRequest,f=null,s=null,l=0;function h(t){var n,r=c.status;if(!r&&function(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}(c)||r>=200&&r<300||304===r){if(i)try{n=i.call(e,c)}catch(t){return void o.call("error",e,t)}else n=c;o.call("load",e,n)}else o.call("error",e,t)}if("undefined"==typeof XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(t)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=c.ontimeout=h:c.onreadystatechange=function(t){c.readyState>3&&h(t)},c.onprogress=function(t){o.call("progress",e,t)},e={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?a.get(t):(null==n?a.remove(t):a.set(t,n+""),e)},mimeType:function(t){return arguments.length?(r=null==t?null:t+"",e):r},responseType:function(t){return arguments.length?(u=t,e):u},timeout:function(t){return arguments.length?(l=+t,e):l},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",e)},password:function(t){return arguments.length<1?s:(s=null==t?null:t+"",e)},response:function(t){return i=t,e},get:function(t,n){return e.send("GET",t,n)},post:function(t,n){return e.send("POST",t,n)},send:function(n,i,h){return c.open(n,t,!0,f,s),null==r||a.has("accept")||a.set("accept",r+",*/*"),c.setRequestHeader&&a.each(function(t,n){c.setRequestHeader(n,t)}),null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=u&&(c.responseType=u),l>0&&(c.timeout=l),null==h&&"function"==typeof i&&(h=i,i=null),null!=h&&1===h.length&&(h=function(t){return function(n,e){t(null==n?e:null)}}(h)),null!=h&&e.on("error",h).on("load",function(t){h(null,t)}),o.call("beforesend",e,c),c.send(null==i?null:i),e},abort:function(){return c.abort(),e},on:function(){var t=o.on.apply(o,arguments);return t===o?e:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return e.get(n)}return e};var Cd=function(t,n){return function(e,r){var i=Ad(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},Pd=Cd("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),Od=Cd("application/json",function(t){return JSON.parse(t.responseText)}),jd=Cd("text/plain",function(t){return t.responseText}),Rd=Cd("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),Ld=function(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var u=Ad(e).mimeType(t);return u.row=function(t){return arguments.length?u.response(function(t,n){return function(e){return t(e.responseText,n)}}(n,r=t)):r},u.row(r),i?u.get(i):u}};var zd=Ld("text/csv",lo),Id=Ld("text/tab-separated-values",_o),Ud=Array.prototype,Dd=Ud.map,qd=Ud.slice,Bd={name:"implicit"};function Fd(t){var n=Wu(),e=[],r=Bd;function i(i){var u=i+"",o=n.get(u);if(!o){if(r!==Bd)return r;n.set(u,o=e.push(i))}return t[(o-1)%t.length]}return t=null==t?[]:qd.call(t),i.domain=function(t){if(!arguments.length)return e.slice();e=[],n=Wu();for(var r,u,o=-1,a=t.length;++o<a;)n.has(u=(r=t[o])+"")||n.set(u,e.push(r));return i},i.range=function(n){return arguments.length?(t=qd.call(n),i):t.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Fd().domain(e).range(t).unknown(r)},i}function Yd(){var t,n,e=Fd().unknown(void 0),r=e.domain,i=e.range,u=[0,1],o=!1,a=0,c=0,f=.5;function s(){var e=r().length,s=u[1]<u[0],l=u[s-0],h=u[1-s];t=(h-l)/Math.max(1,e-a+2*c),o&&(t=Math.floor(t)),l+=(h-l-t*(e-a))*f,n=t*(1-a),o&&(l=Math.round(l),n=Math.round(n));var d=w(e).map(function(n){return l+t*n});return i(s?d.reverse():d)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),s()):r()},e.range=function(t){return arguments.length?(u=[+t[0],+t[1]],s()):u.slice()},e.rangeRound=function(t){return u=[+t[0],+t[1]],o=!0,s()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(o=!!t,s()):o},e.padding=function(t){return arguments.length?(a=c=Math.max(0,Math.min(1,t)),s()):a},e.paddingInner=function(t){return arguments.length?(a=Math.max(0,Math.min(1,t)),s()):a},e.paddingOuter=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),s()):c},e.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),s()):f},e.copy=function(){return Yd().domain(r()).range(u).round(o).paddingInner(a).paddingOuter(c).align(f)},s()}function Wd(){return function t(n){var e=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return t(e())},n}(Yd().paddingInner(1))}var Hd=function(t){return function(){return t}},Vd=function(t){return+t},Xd=[0,1];function $d(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Hd(n)}function Gd(t,n,e,r){var i=t[0],u=t[1],o=n[0],a=n[1];return u<i?(i=e(u,i),o=r(a,o)):(i=e(i,u),o=r(o,a)),function(t){return o(i(t))}}function Zd(t,n,e,r){var i=Math.min(t.length,n.length)-1,u=new Array(i),o=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<i;)u[a]=e(t[a],t[a+1]),o[a]=r(n[a],n[a+1]);return function(n){var e=c(t,n,1,i)-1;return o[e](u[e](n))}}function Qd(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function Kd(t,n){var e,r,i,u=Xd,o=Xd,a=Xe,c=!1;function f(){return e=Math.min(u.length,o.length)>2?Zd:Gd,r=i=null,s}function s(n){return(r||(r=e(u,o,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,a)))(+n)}return s.invert=function(t){return(i||(i=e(o,u,$d,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},s.domain=function(t){return arguments.length?(u=Dd.call(t,Vd),f()):u.slice()},s.range=function(t){return arguments.length?(o=qd.call(t),f()):o.slice()},s.rangeRound=function(t){return o=qd.call(t),a=$e,f()},s.clamp=function(t){return arguments.length?(c=!!t,f()):c},s.interpolate=function(t){return arguments.length?(a=t,f()):a},f()}var Jd=function(t,n,e){var r,i=t[0],u=t[t.length-1],o=S(i,u,null==n?10:n);switch((e=Jo(null==e?",f":e)).type){case"s":var a=Math.max(Math.abs(i),Math.abs(u));return null!=e.precision||isNaN(r=fa(o,a))||(e.precision=r),ra(e,a);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=sa(o,Math.max(Math.abs(i),Math.abs(u))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=ca(o))||(e.precision=r-2*("%"===e.type))}return ea(e)};function tp(t){var n=t.domain;return t.ticks=function(t){var e=n();return N(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return Jd(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),u=0,o=i.length-1,a=i[u],c=i[o];return c<a&&(r=a,a=c,c=r,r=u,u=o,o=r),(r=T(a,c,e))>0?r=T(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=T(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[u]=Math.floor(a/r)*r,i[o]=Math.ceil(c/r)*r,n(i)):r<0&&(i[u]=Math.ceil(a*r)/r,i[o]=Math.floor(c*r)/r,n(i)),t},t}function np(){var t=Kd($d,Ue);return t.copy=function(){return Qd(t,np())},tp(t)}function ep(){var t=[0,1];function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Dd.call(e,Vd),n):t.slice()},n.copy=function(){return ep().domain(t)},tp(n)}var rp=function(t,n){var e,r=0,i=(t=t.slice()).length-1,u=t[r],o=t[i];return o<u&&(e=r,r=i,i=e,e=u,u=o,o=e),t[r]=n.floor(u),t[i]=n.ceil(o),t};function ip(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:Hd(n)}function up(t,n){return t<0?function(e){return-Math.pow(-n,e)*Math.pow(-t,1-e)}:function(e){return Math.pow(n,e)*Math.pow(t,1-e)}}function op(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ap(t){return 10===t?op:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function cp(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function fp(t){return function(n){return-t(-n)}}function sp(){var t=Kd(ip,up).domain([1,10]),n=t.domain,e=10,r=cp(10),i=ap(10);function u(){return r=cp(e),i=ap(e),n()[0]<0&&(r=fp(r),i=fp(i)),t}return t.base=function(t){return arguments.length?(e=+t,u()):e},t.domain=function(t){return arguments.length?(n(t),u()):n()},t.ticks=function(t){var u,o=n(),a=o[0],c=o[o.length-1];(u=c<a)&&(h=a,a=c,c=h);var f,s,l,h=r(a),d=r(c),p=null==t?10:+t,v=[];if(!(e%1)&&d-h<p){if(h=Math.round(h)-1,d=Math.round(d)+1,a>0){for(;h<d;++h)for(s=1,f=i(h);s<e;++s)if(!((l=f*s)<a)){if(l>c)break;v.push(l)}}else for(;h<d;++h)for(s=e-1,f=i(h);s>=1;--s)if(!((l=f*s)<a)){if(l>c)break;v.push(l)}}else v=N(h,d,Math.min(d-h,p)).map(i);return u?v.reverse():v},t.tickFormat=function(n,u){if(null==u&&(u=10===e?".0e":","),"function"!=typeof u&&(u=ea(u)),n===1/0)return u;null==n&&(n=10);var o=Math.max(1,e*n/t.ticks().length);return function(t){var n=t/i(Math.round(r(t)));return n*e<e-.5&&(n*=e),n<=o?u(t):""}},t.nice=function(){return n(rp(n(),{floor:function(t){return i(Math.floor(r(t)))},ceil:function(t){return i(Math.ceil(r(t)))}}))},t.copy=function(){return Qd(t,sp().base(e))},t}function lp(t,n){return t<0?-Math.pow(-t,n):Math.pow(t,n)}function hp(){var t=1,n=Kd(function(n,e){return(e=lp(e,t)-(n=lp(n,t)))?function(r){return(lp(r,t)-n)/e}:Hd(e)},function(n,e){return e=lp(e,t)-(n=lp(n,t)),function(r){return lp(n+e*r,1/t)}}),e=n.domain;return n.exponent=function(n){return arguments.length?(t=+n,e(e())):t},n.copy=function(){return Qd(n,hp().exponent(t))},tp(n)}function dp(){return hp().exponent(.5)}function pp(){var t=[],n=[],e=[];function i(){var r=0,i=Math.max(1,n.length);for(e=new Array(i-1);++r<i;)e[r-1]=P(t,r/i);return u}function u(t){if(!isNaN(t=+t))return n[c(e,t)]}return u.invertExtent=function(r){var i=n.indexOf(r);return i<0?[NaN,NaN]:[i>0?e[i-1]:t[0],i<e.length?e[i]:t[t.length-1]]},u.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var e,u=0,o=n.length;u<o;++u)null==(e=n[u])||isNaN(e=+e)||t.push(e);return t.sort(r),i()},u.range=function(t){return arguments.length?(n=qd.call(t),i()):n.slice()},u.quantiles=function(){return e.slice()},u.copy=function(){return pp().domain(t).range(n)},u}function vp(){var t=0,n=1,e=1,r=[.5],i=[0,1];function u(t){if(t<=t)return i[c(r,t,0,e)]}function o(){var i=-1;for(r=new Array(e);++i<e;)r[i]=((i+1)*n-(i-e)*t)/(e+1);return u}return u.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],o()):[t,n]},u.range=function(t){return arguments.length?(e=(i=qd.call(t)).length-1,o()):i.slice()},u.invertExtent=function(u){var o=i.indexOf(u);return o<0?[NaN,NaN]:o<1?[t,r[0]]:o>=e?[r[e-1],n]:[r[o-1],r[o]]},u.copy=function(){return vp().domain([t,n]).range(i)},tp(u)}function gp(){var t=[.5],n=[0,1],e=1;function r(r){if(r<=r)return n[c(t,r,0,e)]}return r.domain=function(i){return arguments.length?(t=qd.call(i),e=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(i){return arguments.length?(n=qd.call(i),e=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},r.copy=function(){return gp().domain(t).range(n)},r}var _p=new Date,yp=new Date;function mp(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,u){var o,a=[];if(e=i.ceil(e),u=null==u?1:Math.floor(u),!(e<r&&u>0))return a;do{a.push(o=new Date(+e)),n(e,u),t(e)}while(o<e&&e<r);return a},i.filter=function(e){return mp(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return _p.setTime(+n),yp.setTime(+r),t(_p),t(yp),Math.floor(e(_p,yp))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var xp=mp(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});xp.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?mp(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):xp:null};var bp=xp,wp=xp.range,Mp=6e4,Ep=6048e5,kp=mp(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()}),Np=kp,Tp=kp.range,Sp=mp(function(t){t.setTime(Math.floor(t/Mp)*Mp)},function(t,n){t.setTime(+t+n*Mp)},function(t,n){return(n-t)/Mp},function(t){return t.getMinutes()}),Ap=Sp,Cp=Sp.range,Pp=mp(function(t){var n=t.getTimezoneOffset()*Mp%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()}),Op=Pp,jp=Pp.range,Rp=mp(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Mp)/864e5},function(t){return t.getDate()-1}),Lp=Rp,zp=Rp.range;function Ip(t){return mp(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Mp)/Ep})}var Up=Ip(0),Dp=Ip(1),qp=Ip(2),Bp=Ip(3),Fp=Ip(4),Yp=Ip(5),Wp=Ip(6),Hp=Up.range,Vp=Dp.range,Xp=qp.range,$p=Bp.range,Gp=Fp.range,Zp=Yp.range,Qp=Wp.range,Kp=mp(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),Jp=Kp,tv=Kp.range,nv=mp(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});nv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?mp(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var ev=nv,rv=nv.range,iv=mp(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Mp)},function(t,n){return(n-t)/Mp},function(t){return t.getUTCMinutes()}),uv=iv,ov=iv.range,av=mp(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getUTCHours()}),cv=av,fv=av.range,sv=mp(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}),lv=sv,hv=sv.range;function dv(t){return mp(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/Ep})}var pv=dv(0),vv=dv(1),gv=dv(2),_v=dv(3),yv=dv(4),mv=dv(5),xv=dv(6),bv=pv.range,wv=vv.range,Mv=gv.range,Ev=_v.range,kv=yv.range,Nv=mv.range,Tv=xv.range,Sv=mp(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Av=Sv,Cv=Sv.range,Pv=mp(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Pv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?mp(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var Ov=Pv,jv=Pv.range;function Rv(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Lv(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function zv(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Iv(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,u=t.days,o=t.shortDays,a=t.months,c=t.shortMonths,f=Gv(i),s=Zv(i),l=Gv(u),h=Zv(u),d=Gv(o),p=Zv(o),v=Gv(a),g=Zv(a),_=Gv(c),y=Zv(c),m={a:function(t){return o[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:gg,e:gg,f:bg,H:_g,I:yg,j:mg,L:xg,m:wg,M:Mg,p:function(t){return i[+(t.getHours()>=12)]},Q:Qg,s:Kg,S:Eg,u:kg,U:Ng,V:Tg,w:Sg,W:Ag,x:null,X:null,y:Cg,Y:Pg,Z:Og,"%":Zg},x={a:function(t){return o[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:jg,e:jg,f:Ug,H:Rg,I:Lg,j:zg,L:Ig,m:Dg,M:qg,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Qg,s:Kg,S:Bg,u:Fg,U:Yg,V:Wg,w:Hg,W:Vg,x:null,X:null,y:Xg,Y:$g,Z:Gg,"%":Zg},b={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=_.exec(n.slice(e));return r?(t.m=y[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=g[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return E(t,n,e,r)},d:og,e:og,f:hg,H:cg,I:cg,j:ag,L:lg,m:ug,M:fg,p:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},Q:pg,s:vg,S:sg,u:Kv,U:Jv,V:tg,w:Qv,W:ng,x:function(t,n,r){return E(t,e,n,r)},X:function(t,n,e){return E(t,r,n,e)},y:rg,Y:eg,Z:ig,"%":dg};function w(t,n){return function(e){var r,i,u,o=[],a=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++a<f;)37===t.charCodeAt(a)&&(o.push(t.slice(c,a)),null!=(i=Yv[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(u=n[r])&&(r=u(e,i)),o.push(r),c=a+1);return o.push(t.slice(c,a)),o.join("")}}function M(t,n){return function(e){var r,i,u=zv(1900);if(E(u,t,e+="",0)!=e.length)return null;if("Q"in u)return new Date(u.Q);if("p"in u&&(u.H=u.H%12+12*u.p),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(r=(i=(r=Lv(zv(u.y))).getUTCDay())>4||0===i?vv.ceil(r):vv(r),r=lv.offset(r,7*(u.V-1)),u.y=r.getUTCFullYear(),u.m=r.getUTCMonth(),u.d=r.getUTCDate()+(u.w+6)%7):(r=(i=(r=n(zv(u.y))).getDay())>4||0===i?Dp.ceil(r):Dp(r),r=Lp.offset(r,7*(u.V-1)),u.y=r.getFullYear(),u.m=r.getMonth(),u.d=r.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),i="Z"in u?Lv(zv(u.y)).getUTCDay():n(zv(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(i+5)%7:u.w+7*u.U-(i+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,Lv(u)):n(u)}}function E(t,n,e,r){for(var i,u,o=0,a=n.length,c=e.length;o<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(u=b[i in Yv?n.charAt(o++):i])||(r=u(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return m.x=w(e,m),m.X=w(r,m),m.c=w(n,m),x.x=w(e,x),x.X=w(r,x),x.c=w(n,x),{format:function(t){var n=w(t+="",m);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",Rv);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t,Lv);return n.toString=function(){return t},n}}}var Uv,Dv,qv,Bv,Fv,Yv={"-":"",_:" ",0:"0"},Wv=/^\s*\d+/,Hv=/^%/,Vv=/[\\^$*+?|[\]().{}]/g;function Xv(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",u=i.length;return r+(u<e?new Array(e-u+1).join(n)+i:i)}function $v(t){return t.replace(Vv,"\\$&")}function Gv(t){return new RegExp("^(?:"+t.map($v).join("|")+")","i")}function Zv(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Qv(t,n,e){var r=Wv.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Kv(t,n,e){var r=Wv.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Jv(t,n,e){var r=Wv.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function tg(t,n,e){var r=Wv.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function ng(t,n,e){var r=Wv.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function eg(t,n,e){var r=Wv.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function rg(t,n,e){var r=Wv.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function ig(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function ug(t,n,e){var r=Wv.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function og(t,n,e){var r=Wv.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function ag(t,n,e){var r=Wv.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function cg(t,n,e){var r=Wv.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function fg(t,n,e){var r=Wv.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function sg(t,n,e){var r=Wv.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function lg(t,n,e){var r=Wv.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function hg(t,n,e){var r=Wv.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function dg(t,n,e){var r=Hv.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function pg(t,n,e){var r=Wv.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function vg(t,n,e){var r=Wv.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function gg(t,n){return Xv(t.getDate(),n,2)}function _g(t,n){return Xv(t.getHours(),n,2)}function yg(t,n){return Xv(t.getHours()%12||12,n,2)}function mg(t,n){return Xv(1+Lp.count(ev(t),t),n,3)}function xg(t,n){return Xv(t.getMilliseconds(),n,3)}function bg(t,n){return xg(t,n)+"000"}function wg(t,n){return Xv(t.getMonth()+1,n,2)}function Mg(t,n){return Xv(t.getMinutes(),n,2)}function Eg(t,n){return Xv(t.getSeconds(),n,2)}function kg(t){var n=t.getDay();return 0===n?7:n}function Ng(t,n){return Xv(Up.count(ev(t),t),n,2)}function Tg(t,n){var e=t.getDay();return t=e>=4||0===e?Fp(t):Fp.ceil(t),Xv(Fp.count(ev(t),t)+(4===ev(t).getDay()),n,2)}function Sg(t){return t.getDay()}function Ag(t,n){return Xv(Dp.count(ev(t),t),n,2)}function Cg(t,n){return Xv(t.getFullYear()%100,n,2)}function Pg(t,n){return Xv(t.getFullYear()%1e4,n,4)}function Og(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Xv(n/60|0,"0",2)+Xv(n%60,"0",2)}function jg(t,n){return Xv(t.getUTCDate(),n,2)}function Rg(t,n){return Xv(t.getUTCHours(),n,2)}function Lg(t,n){return Xv(t.getUTCHours()%12||12,n,2)}function zg(t,n){return Xv(1+lv.count(Ov(t),t),n,3)}function Ig(t,n){return Xv(t.getUTCMilliseconds(),n,3)}function Ug(t,n){return Ig(t,n)+"000"}function Dg(t,n){return Xv(t.getUTCMonth()+1,n,2)}function qg(t,n){return Xv(t.getUTCMinutes(),n,2)}function Bg(t,n){return Xv(t.getUTCSeconds(),n,2)}function Fg(t){var n=t.getUTCDay();return 0===n?7:n}function Yg(t,n){return Xv(pv.count(Ov(t),t),n,2)}function Wg(t,n){var e=t.getUTCDay();return t=e>=4||0===e?yv(t):yv.ceil(t),Xv(yv.count(Ov(t),t)+(4===Ov(t).getUTCDay()),n,2)}function Hg(t){return t.getUTCDay()}function Vg(t,n){return Xv(vv.count(Ov(t),t),n,2)}function Xg(t,n){return Xv(t.getUTCFullYear()%100,n,2)}function $g(t,n){return Xv(t.getUTCFullYear()%1e4,n,4)}function Gg(){return"+0000"}function Zg(){return"%"}function Qg(t){return+t}function Kg(t){return Math.floor(+t/1e3)}function Jg(t){return Uv=Iv(t),Dv=Uv.format,qv=Uv.parse,Bv=Uv.utcFormat,Fv=Uv.utcParse,Uv}Jg({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var t_=Date.prototype.toISOString?function(t){return t.toISOString()}:Bv("%Y-%m-%dT%H:%M:%S.%LZ");var n_=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Fv("%Y-%m-%dT%H:%M:%S.%LZ"),e_=1e3,r_=60*e_,i_=60*r_,u_=24*i_,o_=7*u_,a_=30*u_,c_=365*u_;function f_(t){return new Date(t)}function s_(t){return t instanceof Date?+t:+new Date(+t)}function l_(t,n,e,r,u,o,a,c,f){var s=Kd($d,Ue),l=s.invert,h=s.domain,d=f(".%L"),p=f(":%S"),v=f("%I:%M"),g=f("%I %p"),_=f("%a %d"),y=f("%b %d"),m=f("%B"),x=f("%Y"),b=[[a,1,e_],[a,5,5*e_],[a,15,15*e_],[a,30,30*e_],[o,1,r_],[o,5,5*r_],[o,15,15*r_],[o,30,30*r_],[u,1,i_],[u,3,3*i_],[u,6,6*i_],[u,12,12*i_],[r,1,u_],[r,2,2*u_],[e,1,o_],[n,1,a_],[n,3,3*a_],[t,1,c_]];function w(i){return(a(i)<i?d:o(i)<i?p:u(i)<i?v:r(i)<i?g:n(i)<i?e(i)<i?_:y:t(i)<i?m:x)(i)}function M(n,e,r,u){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(r-e)/n,a=i(function(t){return t[2]}).right(b,o);a===b.length?(u=S(e/c_,r/c_,n),n=t):a?(u=(a=b[o/b[a-1][2]<b[a][2]/o?a-1:a])[1],n=a[0]):(u=Math.max(S(e,r,n),1),n=c)}return null==u?n:n.every(u)}return s.invert=function(t){return new Date(l(t))},s.domain=function(t){return arguments.length?h(Dd.call(t,s_)):h().map(f_)},s.ticks=function(t,n){var e,r=h(),i=r[0],u=r[r.length-1],o=u<i;return o&&(e=i,i=u,u=e),e=(e=M(t,i,u,n))?e.range(i,u+1):[],o?e.reverse():e},s.tickFormat=function(t,n){return null==n?w:f(n)},s.nice=function(t,n){var e=h();return(t=M(t,e[0],e[e.length-1],n))?h(rp(e,t)):s},s.copy=function(){return Qd(s,l_(t,n,e,r,u,o,a,c,f))},s}var h_=function(){return l_(ev,Jp,Up,Lp,Op,Ap,Np,bp,Dv).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},d_=function(){return l_(Ov,Av,pv,lv,cv,uv,Np,bp,Bv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},p_=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},v_=p_("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),g_=p_("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),__=p_("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),y_=p_("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),m_=vr(we(300,.5,0),we(-240,.5,1)),x_=vr(we(-100,.75,.35),we(80,1.5,.8)),b_=vr(we(260,.75,.35),we(80,1.5,.8)),w_=we(),M_=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return w_.h=360*t-100,w_.s=1.5-1.5*n,w_.l=.8-.9*n,w_+""};function E_(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var k_=E_(p_("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),N_=E_(p_("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),T_=E_(p_("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),S_=E_(p_("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function A_(t){var n=0,e=1,r=!1;function i(i){var u=(i-n)/(e-n);return t(r?Math.max(0,Math.min(1,u)):u)}return i.domain=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.clamp=function(t){return arguments.length?(r=!!t,i):r},i.interpolator=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return A_(t).domain([n,e]).clamp(r)},tp(i)}var C_=function(t){return function(){return t}},P_=Math.abs,O_=Math.atan2,j_=Math.cos,R_=Math.max,L_=Math.min,z_=Math.sin,I_=Math.sqrt,U_=1e-12,D_=Math.PI,q_=D_/2,B_=2*D_;function F_(t){return t>=1?q_:t<=-1?-q_:Math.asin(t)}function Y_(t){return t.innerRadius}function W_(t){return t.outerRadius}function H_(t){return t.startAngle}function V_(t){return t.endAngle}function X_(t){return t&&t.padAngle}function $_(t,n,e,r,i,u,o){var a=t-e,c=n-r,f=(o?u:-u)/I_(a*a+c*c),s=f*c,l=-f*a,h=t+s,d=n+l,p=e+s,v=r+l,g=(h+p)/2,_=(d+v)/2,y=p-h,m=v-d,x=y*y+m*m,b=i-u,w=h*v-p*d,M=(m<0?-1:1)*I_(R_(0,b*b*x-w*w)),E=(w*m-y*M)/x,k=(-w*y-m*M)/x,N=(w*m+y*M)/x,T=(-w*y+m*M)/x,S=E-g,A=k-_,C=N-g,P=T-_;return S*S+A*A>C*C+P*P&&(E=N,k=T),{cx:E,cy:k,x01:-s,y01:-l,x11:E*(i/b-1),y11:k*(i/b-1)}}var G_=function(){var t=Y_,n=W_,e=C_(0),r=null,i=H_,u=V_,o=X_,a=null;function c(){var c,f,s,l=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-q_,p=u.apply(this,arguments)-q_,v=P_(p-d),g=p>d;if(a||(a=c=Lu()),h<l&&(f=h,h=l,l=f),h>U_)if(v>B_-U_)a.moveTo(h*j_(d),h*z_(d)),a.arc(0,0,h,d,p,!g),l>U_&&(a.moveTo(l*j_(p),l*z_(p)),a.arc(0,0,l,p,d,g));else{var _,y,m=d,x=p,b=d,w=p,M=v,E=v,k=o.apply(this,arguments)/2,N=k>U_&&(r?+r.apply(this,arguments):I_(l*l+h*h)),T=L_(P_(h-l)/2,+e.apply(this,arguments)),S=T,A=T;if(N>U_){var C=F_(N/l*z_(k)),P=F_(N/h*z_(k));(M-=2*C)>U_?(b+=C*=g?1:-1,w-=C):(M=0,b=w=(d+p)/2),(E-=2*P)>U_?(m+=P*=g?1:-1,x-=P):(E=0,m=x=(d+p)/2)}var O=h*j_(m),j=h*z_(m),R=l*j_(w),L=l*z_(w);if(T>U_){var z=h*j_(x),I=h*z_(x),U=l*j_(b),D=l*z_(b);if(v<D_){var q=M>U_?function(t,n,e,r,i,u,o,a){var c=e-t,f=r-n,s=o-i,l=a-u,h=(s*(n-u)-l*(t-i))/(l*c-s*f);return[t+h*c,n+h*f]}(O,j,U,D,z,I,R,L):[R,L],B=O-q[0],F=j-q[1],Y=z-q[0],W=I-q[1],H=1/z_(((s=(B*Y+F*W)/(I_(B*B+F*F)*I_(Y*Y+W*W)))>1?0:s<-1?D_:Math.acos(s))/2),V=I_(q[0]*q[0]+q[1]*q[1]);S=L_(T,(l-V)/(H-1)),A=L_(T,(h-V)/(H+1))}}E>U_?A>U_?(_=$_(U,D,O,j,h,A,g),y=$_(z,I,R,L,h,A,g),a.moveTo(_.cx+_.x01,_.cy+_.y01),A<T?a.arc(_.cx,_.cy,A,O_(_.y01,_.x01),O_(y.y01,y.x01),!g):(a.arc(_.cx,_.cy,A,O_(_.y01,_.x01),O_(_.y11,_.x11),!g),a.arc(0,0,h,O_(_.cy+_.y11,_.cx+_.x11),O_(y.cy+y.y11,y.cx+y.x11),!g),a.arc(y.cx,y.cy,A,O_(y.y11,y.x11),O_(y.y01,y.x01),!g))):(a.moveTo(O,j),a.arc(0,0,h,m,x,!g)):a.moveTo(O,j),l>U_&&M>U_?S>U_?(_=$_(R,L,z,I,l,-S,g),y=$_(O,j,U,D,l,-S,g),a.lineTo(_.cx+_.x01,_.cy+_.y01),S<T?a.arc(_.cx,_.cy,S,O_(_.y01,_.x01),O_(y.y01,y.x01),!g):(a.arc(_.cx,_.cy,S,O_(_.y01,_.x01),O_(_.y11,_.x11),!g),a.arc(0,0,l,O_(_.cy+_.y11,_.cx+_.x11),O_(y.cy+y.y11,y.cx+y.x11),g),a.arc(y.cx,y.cy,S,O_(y.y11,y.x11),O_(y.y01,y.x01),!g))):a.arc(0,0,l,w,b,g):a.lineTo(R,L)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +u.apply(this,arguments))/2-D_/2;return[j_(r)*e,z_(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:C_(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:C_(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:C_(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:C_(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:C_(+t),c):i},c.endAngle=function(t){return arguments.length?(u="function"==typeof t?t:C_(+t),c):u},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:C_(+t),c):o},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c};function Z_(t){this._context=t}Z_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Q_=function(t){return new Z_(t)};function K_(t){return t[0]}function J_(t){return t[1]}var ty=function(){var t=K_,n=J_,e=C_(!0),r=null,i=Q_,u=null;function o(o){var a,c,f,s=o.length,l=!1;for(null==r&&(u=i(f=Lu())),a=0;a<=s;++a)!(a<s&&e(c=o[a],a,o))===l&&((l=!l)?u.lineStart():u.lineEnd()),l&&u.point(+t(c,a,o),+n(c,a,o));if(f)return u=null,f+""||null}return o.x=function(n){return arguments.length?(t="function"==typeof n?n:C_(+n),o):t},o.y=function(t){return arguments.length?(n="function"==typeof t?t:C_(+t),o):n},o.defined=function(t){return arguments.length?(e="function"==typeof t?t:C_(!!t),o):e},o.curve=function(t){return arguments.length?(i=t,null!=r&&(u=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=u=null:u=i(r=t),o):r},o},ny=function(){var t=K_,n=null,e=C_(0),r=J_,i=C_(!0),u=null,o=Q_,a=null;function c(c){var f,s,l,h,d,p=c.length,v=!1,g=new Array(p),_=new Array(p);for(null==u&&(a=o(d=Lu())),f=0;f<=p;++f){if(!(f<p&&i(h=c[f],f,c))===v)if(v=!v)s=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),l=f-1;l>=s;--l)a.point(g[l],_[l]);a.lineEnd(),a.areaEnd()}v&&(g[f]=+t(h,f,c),_[f]=+e(h,f,c),a.point(n?+n(h,f,c):g[f],r?+r(h,f,c):_[f]))}if(d)return a=null,d+""||null}function f(){return ty().defined(i).curve(o).context(u)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:C_(+e),n=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:C_(+n),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:C_(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:C_(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:C_(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:C_(+t),c):r},c.lineX0=c.lineY0=function(){return f().x(t).y(e)},c.lineY1=function(){return f().x(t).y(r)},c.lineX1=function(){return f().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:C_(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=u&&(a=o(u)),c):o},c.context=function(t){return arguments.length?(null==t?u=a=null:a=o(u=t),c):u},c},ey=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},ry=function(t){return t},iy=function(){var t=ry,n=ey,e=null,r=C_(0),i=C_(B_),u=C_(0);function o(o){var a,c,f,s,l,h=o.length,d=0,p=new Array(h),v=new Array(h),g=+r.apply(this,arguments),_=Math.min(B_,Math.max(-B_,i.apply(this,arguments)-g)),y=Math.min(Math.abs(_)/h,u.apply(this,arguments)),m=y*(_<0?-1:1);for(a=0;a<h;++a)(l=v[p[a]=a]=+t(o[a],a,o))>0&&(d+=l);for(null!=n?p.sort(function(t,e){return n(v[t],v[e])}):null!=e&&p.sort(function(t,n){return e(o[t],o[n])}),a=0,f=d?(_-h*m)/d:0;a<h;++a,g=s)c=p[a],s=g+((l=v[c])>0?l*f:0)+m,v[c]={data:o[c],index:a,value:l,startAngle:g,endAngle:s,padAngle:y};return v}return o.value=function(n){return arguments.length?(t="function"==typeof n?n:C_(+n),o):t},o.sortValues=function(t){return arguments.length?(n=t,e=null,o):n},o.sort=function(t){return arguments.length?(e=t,n=null,o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:C_(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:C_(+t),o):i},o.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:C_(+t),o):u},o},uy=ay(Q_);function oy(t){this._curve=t}function ay(t){function n(n){return new oy(t(n))}return n._curve=t,n}function cy(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(ay(t)):n()._curve},t}oy.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var fy=function(){return cy(ty().curve(uy))},sy=function(){var t=ny().curve(uy),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,u=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return cy(e())},delete t.lineX0,t.lineEndAngle=function(){return cy(r())},delete t.lineX1,t.lineInnerRadius=function(){return cy(i())},delete t.lineY0,t.lineOuterRadius=function(){return cy(u())},delete t.lineY1,t.curve=function(t){return arguments.length?n(ay(t)):n()._curve},t},ly=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},hy=Array.prototype.slice;function dy(t){return t.source}function py(t){return t.target}function vy(t){var n=dy,e=py,r=K_,i=J_,u=null;function o(){var o,a=hy.call(arguments),c=n.apply(this,a),f=e.apply(this,a);if(u||(u=o=Lu()),t(u,+r.apply(this,(a[0]=c,a)),+i.apply(this,a),+r.apply(this,(a[0]=f,a)),+i.apply(this,a)),o)return u=null,o+""||null}return o.source=function(t){return arguments.length?(n=t,o):n},o.target=function(t){return arguments.length?(e=t,o):e},o.x=function(t){return arguments.length?(r="function"==typeof t?t:C_(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:C_(+t),o):i},o.context=function(t){return arguments.length?(u=null==t?null:t,o):u},o}function gy(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function _y(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function yy(t,n,e,r,i){var u=ly(n,e),o=ly(n,e=(e+i)/2),a=ly(r,e),c=ly(r,i);t.moveTo(u[0],u[1]),t.bezierCurveTo(o[0],o[1],a[0],a[1],c[0],c[1])}function my(){return vy(gy)}function xy(){return vy(_y)}function by(){var t=vy(yy);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var wy={draw:function(t,n){var e=Math.sqrt(n/D_);t.moveTo(e,0),t.arc(0,0,e,0,B_)}},My={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},Ey=Math.sqrt(1/3),ky=2*Ey,Ny={draw:function(t,n){var e=Math.sqrt(n/ky),r=e*Ey;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Ty=Math.sin(D_/10)/Math.sin(7*D_/10),Sy=Math.sin(B_/10)*Ty,Ay=-Math.cos(B_/10)*Ty,Cy={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Sy*e,i=Ay*e;t.moveTo(0,-e),t.lineTo(r,i);for(var u=1;u<5;++u){var o=B_*u/5,a=Math.cos(o),c=Math.sin(o);t.lineTo(c*e,-a*e),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},Py={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Oy=Math.sqrt(3),jy={draw:function(t,n){var e=-Math.sqrt(n/(3*Oy));t.moveTo(0,2*e),t.lineTo(-Oy*e,-e),t.lineTo(Oy*e,-e),t.closePath()}},Ry=Math.sqrt(3)/2,Ly=1/Math.sqrt(12),zy=3*(Ly/2+1),Iy={draw:function(t,n){var e=Math.sqrt(n/zy),r=e/2,i=e*Ly,u=r,o=e*Ly+e,a=-u,c=o;t.moveTo(r,i),t.lineTo(u,o),t.lineTo(a,c),t.lineTo(-.5*r-Ry*i,Ry*r+-.5*i),t.lineTo(-.5*u-Ry*o,Ry*u+-.5*o),t.lineTo(-.5*a-Ry*c,Ry*a+-.5*c),t.lineTo(-.5*r+Ry*i,-.5*i-Ry*r),t.lineTo(-.5*u+Ry*o,-.5*o-Ry*u),t.lineTo(-.5*a+Ry*c,-.5*c-Ry*a),t.closePath()}},Uy=[wy,My,Ny,Py,Cy,jy,Iy],Dy=function(){var t=C_(wy),n=C_(64),e=null;function r(){var r;if(e||(e=r=Lu()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:C_(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:C_(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r},qy=function(){};function By(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Fy(t){this._context=t}Fy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:By(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:By(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Yy=function(t){return new Fy(t)};function Wy(t){this._context=t}Wy.prototype={areaStart:qy,areaEnd:qy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:By(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Hy=function(t){return new Wy(t)};function Vy(t){this._context=t}Vy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:By(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Xy=function(t){return new Vy(t)};function $y(t,n){this._basis=new Fy(t),this._beta=n}$y.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],u=n[0],o=t[e]-i,a=n[e]-u,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*n[c]+(1-this._beta)*(u+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Gy=function t(n){function e(t){return 1===n?new Fy(t):new $y(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Zy(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Qy(t,n){this._context=t,this._k=(1-n)/6}Qy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Zy(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Zy(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ky=function t(n){function e(t){return new Qy(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Jy(t,n){this._context=t,this._k=(1-n)/6}Jy.prototype={areaStart:qy,areaEnd:qy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Zy(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var tm=function t(n){function e(t){return new Jy(t,n)}return e.tension=function(n){return t(+n)},e}(0);function nm(t,n){this._context=t,this._k=(1-n)/6}nm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Zy(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var em=function t(n){function e(t){return new nm(t,n)}return e.tension=function(n){return t(+n)},e}(0);function rm(t,n,e){var r=t._x1,i=t._y1,u=t._x2,o=t._y2;if(t._l01_a>U_){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>U_){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);u=(u*f+t._x1*t._l23_2a-n*t._l12_2a)/s,o=(o*f+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,u,o,t._x2,t._y2)}function im(t,n){this._context=t,this._alpha=n}im.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:rm(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var um=function t(n){function e(t){return n?new im(t,n):new Qy(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function om(t,n){this._context=t,this._alpha=n}om.prototype={areaStart:qy,areaEnd:qy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:rm(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var am=function t(n){function e(t){return n?new om(t,n):new Jy(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function cm(t,n){this._context=t,this._alpha=n}cm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rm(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var fm=function t(n){function e(t){return n?new cm(t,n):new nm(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function sm(t){this._context=t}sm.prototype={areaStart:qy,areaEnd:qy,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var lm=function(t){return new sm(t)};function hm(t){return t<0?-1:1}function dm(t,n,e){var r=t._x1-t._x0,i=n-t._x1,u=(t._y1-t._y0)/(r||i<0&&-0),o=(e-t._y1)/(i||r<0&&-0),a=(u*i+o*r)/(r+i);return(hm(u)+hm(o))*Math.min(Math.abs(u),Math.abs(o),.5*Math.abs(a))||0}function pm(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function vm(t,n,e){var r=t._x0,i=t._y0,u=t._x1,o=t._y1,a=(u-r)/3;t._context.bezierCurveTo(r+a,i+a*n,u-a,o-a*e,u,o)}function gm(t){this._context=t}function _m(t){this._context=new ym(t)}function ym(t){this._context=t}function mm(t){return new gm(t)}function xm(t){return new _m(t)}function bm(t){this._context=t}function wm(t){var n,e,r=t.length-1,i=new Array(r),u=new Array(r),o=new Array(r);for(i[0]=0,u[0]=2,o[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,u[n]=4,o[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,u[r-1]=7,o[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/u[n-1],u[n]-=e,o[n]-=e*o[n-1];for(i[r-1]=o[r-1]/u[r-1],n=r-2;n>=0;--n)i[n]=(o[n]-i[n+1])/u[n];for(u[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)u[n]=2*t[n+1]-i[n+1];return[i,u]}gm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vm(this,this._t0,pm(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,vm(this,pm(this,e=dm(this,t,n)),e);break;default:vm(this,this._t0,e=dm(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(_m.prototype=Object.create(gm.prototype)).point=function(t,n){gm.prototype.point.call(this,n,t)},ym.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,u){this._context.bezierCurveTo(n,t,r,e,u,i)}},bm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=wm(t),i=wm(n),u=0,o=1;o<e;++u,++o)this._context.bezierCurveTo(r[0][u],i[0][u],r[1][u],i[1][u],t[o],n[o]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Mm=function(t){return new bm(t)};function Em(t,n){this._context=t,this._t=n}Em.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var km=function(t){return new Em(t,.5)};function Nm(t){return new Em(t,0)}function Tm(t){return new Em(t,1)}var Sm=function(t,n){if((i=t.length)>1)for(var e,r,i,u=1,o=t[n[0]],a=o.length;u<i;++u)for(r=o,o=t[n[u]],e=0;e<a;++e)o[e][1]+=o[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]},Am=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e};function Cm(t,n){return t[n]}var Pm=function(){var t=C_([]),n=Am,e=Sm,r=Cm;function i(i){var u,o,a=t.apply(this,arguments),c=i.length,f=a.length,s=new Array(f);for(u=0;u<f;++u){for(var l,h=a[u],d=s[u]=new Array(c),p=0;p<c;++p)d[p]=l=[0,+r(i[p],h,p,i)],l.data=i[p];d.key=h}for(u=0,o=n(s);u<f;++u)s[o[u]].index=u;return e(s,o),s}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:C_(hy.call(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:C_(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?Am:"function"==typeof t?t:C_(hy.call(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?Sm:t,i):e},i},Om=function(t,n){if((r=t.length)>0){for(var e,r,i,u=0,o=t[0].length;u<o;++u){for(i=e=0;e<r;++e)i+=t[e][u][1]||0;if(i)for(e=0;e<r;++e)t[e][u][1]/=i}Sm(t,n)}},jm=function(t,n){if((a=t.length)>1)for(var e,r,i,u,o,a,c=0,f=t[n[0]].length;c<f;++c)for(u=o=0,e=0;e<a;++e)(i=(r=t[n[e]][c])[1]-r[0])>=0?(r[0]=u,r[1]=u+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=u},Rm=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],u=i.length;r<u;++r){for(var o=0,a=0;o<e;++o)a+=t[o][r][1]||0;i[r][1]+=i[r][0]=-a/2}Sm(t,n)}},Lm=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,u=0,o=1;o<r;++o){for(var a=0,c=0,f=0;a<i;++a){for(var s=t[n[a]],l=s[o][1]||0,h=(l-(s[o-1][1]||0))/2,d=0;d<a;++d){var p=t[n[d]];h+=(p[o][1]||0)-(p[o-1][1]||0)}c+=l,f+=h*l}e[o-1][1]+=e[o-1][0]=u,c&&(u-=f/c)}e[o-1][1]+=e[o-1][0]=u,Sm(t,n)}},zm=function(t){var n=t.map(Im);return Am(t).sort(function(t,e){return n[t]-n[e]})};function Im(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}var Um=function(t){return zm(t).reverse()},Dm=function(t){var n,e,r=t.length,i=t.map(Im),u=Am(t).sort(function(t,n){return i[n]-i[t]}),o=0,a=0,c=[],f=[];for(n=0;n<r;++n)e=u[n],o<a?(o+=i[e],c.push(e)):(a+=i[e],f.push(e));return f.reverse().concat(c)},qm=function(t){return Am(t).reverse()},Bm=function(t){return function(){return t}};function Fm(t){return t[0]}function Ym(t){return t[1]}function Wm(){this._=null}function Hm(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Vm(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Xm(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function $m(t){for(;t.L;)t=t.L;return t}Wm.prototype={constructor:Wm,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=$m(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Vm(this,e),e=(t=e).U),e.C=!1,r.C=!0,Xm(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Xm(this,e),e=(t=e).U),e.C=!1,r.C=!0,Vm(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,u=t.L,o=t.R;if(e=u?o?$m(o):u:o,i?i.L===t?i.L=e:i.R=e:this._=e,u&&o?(r=e.C,e.C=t.C,e.L=u,u.U=e,e!==o?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=o,o.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,Vm(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Xm(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Vm(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,Xm(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Vm(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Xm(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var Gm=Wm;function Zm(t,n,e,r){var i=[null,null],u=yx.push(i)-1;return i.left=t,i.right=n,e&&Km(i,t,n,e),r&&Km(i,n,t,r),gx[t.index].halfedges.push(u),gx[n.index].halfedges.push(u),i}function Qm(t,n,e){var r=[n,e];return r.left=t,r}function Km(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function Jm(t,n,e,r,i){var u,o=t[0],a=t[1],c=o[0],f=o[1],s=0,l=1,h=a[0]-c,d=a[1]-f;if(u=n-c,h||!(u>0)){if(u/=h,h<0){if(u<s)return;u<l&&(l=u)}else if(h>0){if(u>l)return;u>s&&(s=u)}if(u=r-c,h||!(u<0)){if(u/=h,h<0){if(u>l)return;u>s&&(s=u)}else if(h>0){if(u<s)return;u<l&&(l=u)}if(u=e-f,d||!(u>0)){if(u/=d,d<0){if(u<s)return;u<l&&(l=u)}else if(d>0){if(u>l)return;u>s&&(s=u)}if(u=i-f,d||!(u<0)){if(u/=d,d<0){if(u>l)return;u>s&&(s=u)}else if(d>0){if(u<s)return;u<l&&(l=u)}return!(s>0||l<1)||(s>0&&(t[0]=[c+s*h,f+s*d]),l<1&&(t[1]=[c+l*h,f+l*d]),!0)}}}}}function tx(t,n,e,r,i){var u=t[1];if(u)return!0;var o,a,c=t[0],f=t.left,s=t.right,l=f[0],h=f[1],d=s[0],p=s[1],v=(l+d)/2,g=(h+p)/2;if(p===h){if(v<n||v>=r)return;if(l>d){if(c){if(c[1]>=i)return}else c=[v,e];u=[v,i]}else{if(c){if(c[1]<e)return}else c=[v,i];u=[v,e]}}else if(a=g-(o=(l-d)/(p-h))*v,o<-1||o>1)if(l>d){if(c){if(c[1]>=i)return}else c=[(e-a)/o,e];u=[(i-a)/o,i]}else{if(c){if(c[1]<e)return}else c=[(i-a)/o,i];u=[(e-a)/o,e]}else if(h<p){if(c){if(c[0]>=r)return}else c=[n,o*n+a];u=[r,o*r+a]}else{if(c){if(c[0]<n)return}else c=[r,o*r+a];u=[n,o*n+a]}return t[0]=c,t[1]=u,!0}function nx(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function ex(t,n){return n[+(n.left!==t.site)]}function rx(t,n){return n[+(n.left===t.site)]}var ix,ux=[];function ox(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,u=e.site;if(r!==u){var o=i[0],a=i[1],c=r[0]-o,f=r[1]-a,s=u[0]-o,l=u[1]-a,h=2*(c*l-f*s);if(!(h>=-xx)){var d=c*c+f*f,p=s*s+l*l,v=(l*d-f*p)/h,g=(c*p-s*d)/h,_=ux.pop()||new function(){Hm(this),this.x=this.y=this.arc=this.site=this.cy=null};_.arc=t,_.site=i,_.x=v+o,_.y=(_.cy=g+a)+Math.sqrt(v*v+g*g),t.circle=_;for(var y=null,m=_x._;m;)if(_.y<m.y||_.y===m.y&&_.x<=m.x){if(!m.L){y=m.P;break}m=m.L}else{if(!m.R){y=m;break}m=m.R}_x.insert(y,_),y||(ix=_)}}}}function ax(t){var n=t.circle;n&&(n.P||(ix=n.N),_x.remove(n),ux.push(n),Hm(n),t.circle=null)}var cx=[];function fx(t){var n=cx.pop()||new function(){Hm(this),this.edge=this.site=this.circle=null};return n.site=t,n}function sx(t){ax(t),vx.remove(t),cx.push(t),Hm(t)}function lx(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],u=t.P,o=t.N,a=[t];sx(t);for(var c=u;c.circle&&Math.abs(e-c.circle.x)<mx&&Math.abs(r-c.circle.cy)<mx;)u=c.P,a.unshift(c),sx(c),c=u;a.unshift(c),ax(c);for(var f=o;f.circle&&Math.abs(e-f.circle.x)<mx&&Math.abs(r-f.circle.cy)<mx;)o=f.N,a.push(f),sx(f),f=o;a.push(f),ax(f);var s,l=a.length;for(s=1;s<l;++s)f=a[s],c=a[s-1],Km(f.edge,c.site,f.site,i);c=a[0],(f=a[l-1]).edge=Zm(c.site,f.site,null,i),ox(c),ox(f)}function hx(t){for(var n,e,r,i,u=t[0],o=t[1],a=vx._;a;)if((r=dx(a,o)-u)>mx)a=a.L;else{if(!((i=u-px(a,o))>mx)){r>-mx?(n=a.P,e=a):i>-mx?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){gx[t.index]={site:t,halfedges:[]}}(t);var c=fx(t);if(vx.insert(n,c),n||e){if(n===e)return ax(n),e=fx(n.site),vx.insert(c,e),c.edge=e.edge=Zm(n.site,c.site),ox(n),void ox(e);if(e){ax(n),ax(e);var f=n.site,s=f[0],l=f[1],h=t[0]-s,d=t[1]-l,p=e.site,v=p[0]-s,g=p[1]-l,_=2*(h*g-d*v),y=h*h+d*d,m=v*v+g*g,x=[(g*y-d*m)/_+s,(h*m-v*y)/_+l];Km(e.edge,f,p,x),c.edge=Zm(f,t,null,x),e.edge=Zm(t,p,null,x),ox(n),ox(e)}else c.edge=Zm(n.site,c.site)}}function dx(t,n){var e=t.site,r=e[0],i=e[1],u=i-n;if(!u)return r;var o=t.P;if(!o)return-1/0;var a=(e=o.site)[0],c=e[1],f=c-n;if(!f)return a;var s=a-r,l=1/u-1/f,h=s/f;return l?(-h+Math.sqrt(h*h-2*l*(s*s/(-2*f)-c+f/2+i-u/2)))/l+r:(r+a)/2}function px(t,n){var e=t.N;if(e)return dx(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var vx,gx,_x,yx,mx=1e-6,xx=1e-12;function bx(t,n){return n[1]-t[1]||n[0]-t[0]}function wx(t,n){var e,r,i,u=t.sort(bx).pop();for(yx=[],gx=new Array(t.length),vx=new Gm,_x=new Gm;;)if(i=ix,u&&(!i||u[1]<i.y||u[1]===i.y&&u[0]<i.x))u[0]===e&&u[1]===r||(hx(u),e=u[0],r=u[1]),u=t.pop();else{if(!i)break;lx(i.arc)}if(function(){for(var t,n,e,r,i=0,u=gx.length;i<u;++i)if((t=gx[i])&&(r=(n=t.halfedges).length)){var o=new Array(r),a=new Array(r);for(e=0;e<r;++e)o[e]=e,a[e]=nx(t,yx[n[e]]);for(o.sort(function(t,n){return a[n]-a[t]}),e=0;e<r;++e)a[e]=n[o[e]];for(e=0;e<r;++e)n[e]=a[e]}}(),n){var o=+n[0][0],a=+n[0][1],c=+n[1][0],f=+n[1][1];!function(t,n,e,r){for(var i,u=yx.length;u--;)tx(i=yx[u],t,n,e,r)&&Jm(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>mx||Math.abs(i[0][1]-i[1][1])>mx)||delete yx[u]}(o,a,c,f),function(t,n,e,r){var i,u,o,a,c,f,s,l,h,d,p,v,g=gx.length,_=!0;for(i=0;i<g;++i)if(u=gx[i]){for(o=u.site,a=(c=u.halfedges).length;a--;)yx[c[a]]||c.splice(a,1);for(a=0,f=c.length;a<f;)p=(d=rx(u,yx[c[a]]))[0],v=d[1],l=(s=ex(u,yx[c[++a%f]]))[0],h=s[1],(Math.abs(p-l)>mx||Math.abs(v-h)>mx)&&(c.splice(a,0,yx.push(Qm(o,d,Math.abs(p-t)<mx&&r-v>mx?[t,Math.abs(l-t)<mx?h:r]:Math.abs(v-r)<mx&&e-p>mx?[Math.abs(h-r)<mx?l:e,r]:Math.abs(p-e)<mx&&v-n>mx?[e,Math.abs(l-e)<mx?h:n]:Math.abs(v-n)<mx&&p-t>mx?[Math.abs(h-n)<mx?l:t,n]:null))-1),++f);f&&(_=!1)}if(_){var y,m,x,b=1/0;for(i=0,_=null;i<g;++i)(u=gx[i])&&(x=(y=(o=u.site)[0]-t)*y+(m=o[1]-n)*m)<b&&(b=x,_=u);if(_){var w=[t,n],M=[t,r],E=[e,r],k=[e,n];_.halfedges.push(yx.push(Qm(o=_.site,w,M))-1,yx.push(Qm(o,M,E))-1,yx.push(Qm(o,E,k))-1,yx.push(Qm(o,k,w))-1)}}for(i=0;i<g;++i)(u=gx[i])&&(u.halfedges.length||delete gx[i])}(o,a,c,f)}this.edges=yx,this.cells=gx,vx=_x=yx=gx=null}wx.prototype={constructor:wx,polygons:function(){var t=this.edges;return this.cells.map(function(n){var e=n.halfedges.map(function(e){return ex(n,t[e])});return e.data=n.site.data,e})},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(e,r){if(u=(i=e.halfedges).length)for(var i,u,o,a,c,f,s=e.site,l=-1,h=n[i[u-1]],d=h.left===s?h.right:h.left;++l<u;)o=d,d=(h=n[i[l]]).left===s?h.right:h.left,o&&d&&r<o.index&&r<d.index&&(c=o,f=d,((a=s)[0]-f[0])*(c[1]-a[1])-(a[0]-c[0])*(f[1]-a[1])<0)&&t.push([s.data,o.data,d.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,n,e){for(var r,i,u=this,o=u._found||0,a=u.cells.length;!(i=u.cells[o]);)if(++o>=a)return null;var c=t-i.site[0],f=n-i.site[1],s=c*c+f*f;do{i=u.cells[r=o],o=null,i.halfedges.forEach(function(e){var r=u.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var c=t-a[0],f=n-a[1],l=c*c+f*f;l<s&&(s=l,o=a.index)}})}while(null!==o);return u._found=r,null==e||s<=e*e?i.site:null}};var Mx=function(){var t=Fm,n=Ym,e=null;function r(r){return new wx(r.map(function(e,i){var u=[Math.round(t(e,i,r)/mx)*mx,Math.round(n(e,i,r)/mx)*mx];return u.index=i,u.data=e,u}),e)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(n){return arguments.length?(t="function"==typeof n?n:Bm(+n),r):t},r.y=function(t){return arguments.length?(n="function"==typeof t?t:Bm(+t),r):n},r.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},r.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],r):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},r},Ex=function(t){return function(){return t}};function kx(t,n,e){this.k=t,this.x=n,this.y=e}kx.prototype={constructor:kx,scale:function(t){return 1===t?this:new kx(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new kx(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Nx=new kx(1,0,0);function Tx(t){return t.__zoom||Nx}function Sx(){Xt.stopImmediatePropagation()}Tx.prototype=kx.prototype;var Ax=function(){Xt.preventDefault(),Xt.stopImmediatePropagation()};function Cx(){return!Xt.button}function Px(){var t,n,e=this;return e instanceof SVGElement?(t=(e=e.ownerSVGElement||e).width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function Ox(){return this.__zoom||Nx}function jx(){return-Xt.deltaY*(Xt.deltaMode?120:1)/500}function Rx(){return"ontouchstart"in this}function Lx(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],u=t.invertY(n[0][1])-e[0][1],o=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>u?(u+o)/2:Math.min(0,u)||Math.max(0,o))}var zx=function(){var t,n,e=Cx,r=Px,i=Lx,u=jx,o=Rx,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],f=250,s=rr,l=[],h=ht("start","zoom","end"),d=500,p=150,v=0;function g(t){t.property("__zoom",Ox).on("wheel.zoom",M).on("mousedown.zoom",E).on("dblclick.zoom",k).filter(o).on("touchstart.zoom",N).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(t,n){return(n=Math.max(a[0],Math.min(a[1],n)))===t.k?t:new kx(n,t.x,t.y)}function y(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new kx(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,n,e){t.on("start.zoom",function(){b(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).end()}).tween("zoom",function(){var t=arguments,i=b(this,t),u=r.apply(this,t),o=e||m(u),a=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),c=this.__zoom,f="function"==typeof n?n.apply(this,t):n,l=s(c.invert(o).concat(a/c.k),f.invert(o).concat(a/f.k));return function(t){if(1===t)t=f;else{var n=l(t),e=a/n[2];t=new kx(e,o[0]-n[0]*e,o[1]-n[1]*e)}i.zoom(null,t)}})}function b(t,n){for(var e,r=0,i=l.length;r<i;++r)if((e=l[r]).that===t)return e;return new w(t,n)}function w(t,n){this.that=t,this.args=n,this.index=-1,this.active=0,this.extent=r.apply(t,n)}function M(){if(e.apply(this,arguments)){var t=b(this,arguments),n=this.__zoom,r=Math.max(a[0],Math.min(a[1],n.k*Math.pow(2,u.apply(this,arguments)))),o=hn(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=n.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(n.k===r)return;t.mouse=[o,n.invert(o)],Gr(this),t.start()}Ax(),t.wheel=setTimeout(function(){t.wheel=null,t.end()},p),t.zoom("mouse",i(y(_(n,r),t.mouse[0],t.mouse[1]),t.extent,c))}}function E(){if(!n&&e.apply(this,arguments)){var t=b(this,arguments),r=un(Xt.view).on("mousemove.zoom",function(){if(Ax(),!t.moved){var n=Xt.clientX-o,e=Xt.clientY-a;t.moved=n*n+e*e>v}t.zoom("mouse",i(y(t.that.__zoom,t.mouse[0]=hn(t.that),t.mouse[1]),t.extent,c))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),mn(Xt.view,t.moved),Ax(),t.end()},!0),u=hn(this),o=Xt.clientX,a=Xt.clientY;yn(Xt.view),Sx(),t.mouse=[u,this.__zoom.invert(u)],Gr(this),t.start()}}function k(){if(e.apply(this,arguments)){var t=this.__zoom,n=hn(this),u=t.invert(n),o=t.k*(Xt.shiftKey?.5:2),a=i(y(_(t,o),n,u),r.apply(this,arguments),c);Ax(),f>0?un(this).transition().duration(f).call(x,a,n):un(this).call(g.transform,a)}}function N(){if(e.apply(this,arguments)){var n,r,i,u,o=b(this,arguments),a=Xt.changedTouches,c=a.length;for(Sx(),r=0;r<c;++r)i=a[r],u=[u=pn(this,a,i.identifier),this.__zoom.invert(u),i.identifier],o.touch0?o.touch1||(o.touch1=u):(o.touch0=u,n=!0);if(t&&(t=clearTimeout(t),!o.touch1))return o.end(),void((u=un(this).on("dblclick.zoom"))&&u.apply(this,arguments));n&&(t=setTimeout(function(){t=null},d),Gr(this),o.start())}}function T(){var n,e,r,u,o=b(this,arguments),a=Xt.changedTouches,f=a.length;for(Ax(),t&&(t=clearTimeout(t)),n=0;n<f;++n)e=a[n],r=pn(this,a,e.identifier),o.touch0&&o.touch0[2]===e.identifier?o.touch0[0]=r:o.touch1&&o.touch1[2]===e.identifier&&(o.touch1[0]=r);if(e=o.that.__zoom,o.touch1){var s=o.touch0[0],l=o.touch0[1],h=o.touch1[0],d=o.touch1[1],p=(p=h[0]-s[0])*p+(p=h[1]-s[1])*p,v=(v=d[0]-l[0])*v+(v=d[1]-l[1])*v;e=_(e,Math.sqrt(p/v)),r=[(s[0]+h[0])/2,(s[1]+h[1])/2],u=[(l[0]+d[0])/2,(l[1]+d[1])/2]}else{if(!o.touch0)return;r=o.touch0[0],u=o.touch0[1]}o.zoom("touch",i(y(e,r,u),o.extent,c))}function S(){var t,e,r=b(this,arguments),i=Xt.changedTouches,u=i.length;for(Sx(),n&&clearTimeout(n),n=setTimeout(function(){n=null},d),t=0;t<u;++t)e=i[t],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0?r.touch0[1]=this.__zoom.invert(r.touch0[0]):r.end()}return g.transform=function(t,n){var e=t.selection?t.selection():t;e.property("__zoom",Ox),t!==e?x(t,n):e.interrupt().each(function(){b(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},g.scaleBy=function(t,n){g.scaleTo(t,function(){return this.__zoom.k*("function"==typeof n?n.apply(this,arguments):n)})},g.scaleTo=function(t,n){g.transform(t,function(){var t=r.apply(this,arguments),e=this.__zoom,u=m(t),o=e.invert(u),a="function"==typeof n?n.apply(this,arguments):n;return i(y(_(e,a),u,o),t,c)})},g.translateBy=function(t,n,e){g.transform(t,function(){return i(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),r.apply(this,arguments),c)})},g.translateTo=function(t,n,e){g.transform(t,function(){var t=r.apply(this,arguments),u=this.__zoom,o=m(t);return i(Nx.translate(o[0],o[1]).scale(u.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,c)})},w.prototype={start:function(){return 1==++this.active&&(this.index=l.push(this)-1,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(l.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){Kt(new function(t,n,e){this.target=t,this.type=n,this.transform=e}(g,t,this.that.__zoom),h.apply,h,[t,this.that,this.args])}},g.wheelDelta=function(t){return arguments.length?(u="function"==typeof t?t:Ex(+t),g):u},g.filter=function(t){return arguments.length?(e="function"==typeof t?t:Ex(!!t),g):e},g.touchable=function(t){return arguments.length?(o="function"==typeof t?t:Ex(!!t),g):o},g.extent=function(t){return arguments.length?(r="function"==typeof t?t:Ex([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),g):r},g.scaleExtent=function(t){return arguments.length?(a[0]=+t[0],a[1]=+t[1],g):[a[0],a[1]]},g.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],g):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},g.constrain=function(t){return arguments.length?(i=t,g):i},g.duration=function(t){return arguments.length?(f=+t,g):f},g.interpolate=function(t){return arguments.length?(s=t,g):s},g.on=function(){var t=h.on.apply(h,arguments);return t===h?g:t},g.clickDistance=function(t){return arguments.length?(v=(t=+t)*t,g):Math.sqrt(v)},g};e.d(n,"version",function(){return"4.13.0"}),e.d(n,"bisect",function(){return c}),e.d(n,"bisectRight",function(){return o}),e.d(n,"bisectLeft",function(){return a}),e.d(n,"ascending",function(){return r}),e.d(n,"bisector",function(){return i}),e.d(n,"cross",function(){return l}),e.d(n,"descending",function(){return h}),e.d(n,"deviation",function(){return v}),e.d(n,"extent",function(){return g}),e.d(n,"histogram",function(){return C}),e.d(n,"thresholdFreedmanDiaconis",function(){return O}),e.d(n,"thresholdScott",function(){return j}),e.d(n,"thresholdSturges",function(){return A}),e.d(n,"max",function(){return R}),e.d(n,"mean",function(){return L}),e.d(n,"median",function(){return z}),e.d(n,"merge",function(){return I}),e.d(n,"min",function(){return U}),e.d(n,"pairs",function(){return f}),e.d(n,"permute",function(){return D}),e.d(n,"quantile",function(){return P}),e.d(n,"range",function(){return w}),e.d(n,"scan",function(){return q}),e.d(n,"shuffle",function(){return B}),e.d(n,"sum",function(){return F}),e.d(n,"ticks",function(){return N}),e.d(n,"tickIncrement",function(){return T}),e.d(n,"tickStep",function(){return S}),e.d(n,"transpose",function(){return Y}),e.d(n,"variance",function(){return p}),e.d(n,"zip",function(){return H}),e.d(n,"axisTop",function(){return rt}),e.d(n,"axisRight",function(){return it}),e.d(n,"axisBottom",function(){return ut}),e.d(n,"axisLeft",function(){return ot}),e.d(n,"brush",function(){return mu}),e.d(n,"brushX",function(){return _u}),e.d(n,"brushY",function(){return yu}),e.d(n,"brushSelection",function(){return gu}),e.d(n,"chord",function(){return Tu}),e.d(n,"ribbon",function(){return Bu}),e.d(n,"nest",function(){return Hu}),e.d(n,"set",function(){return Ju}),e.d(n,"map",function(){return Wu}),e.d(n,"keys",function(){return to}),e.d(n,"values",function(){return no}),e.d(n,"entries",function(){return eo}),e.d(n,"color",function(){return Fn}),e.d(n,"rgb",function(){return Vn}),e.d(n,"hsl",function(){return Gn}),e.d(n,"lab",function(){return ce}),e.d(n,"hcl",function(){return pe}),e.d(n,"cubehelix",function(){return we}),e.d(n,"dispatch",function(){return ht}),e.d(n,"drag",function(){return Nn}),e.d(n,"dragDisable",function(){return yn}),e.d(n,"dragEnable",function(){return mn}),e.d(n,"dsvFormat",function(){return fo}),e.d(n,"csvParse",function(){return lo}),e.d(n,"csvParseRows",function(){return ho}),e.d(n,"csvFormat",function(){return po}),e.d(n,"csvFormatRows",function(){return vo}),e.d(n,"tsvParse",function(){return _o}),e.d(n,"tsvParseRows",function(){return yo}),e.d(n,"tsvFormat",function(){return mo}),e.d(n,"tsvFormatRows",function(){return xo}),e.d(n,"easeLinear",function(){return ii}),e.d(n,"easeQuad",function(){return ai}),e.d(n,"easeQuadIn",function(){return ui}),e.d(n,"easeQuadOut",function(){return oi}),e.d(n,"easeQuadInOut",function(){return ai}),e.d(n,"easeCubic",function(){return si}),e.d(n,"easeCubicIn",function(){return ci}),e.d(n,"easeCubicOut",function(){return fi}),e.d(n,"easeCubicInOut",function(){return si}),e.d(n,"easePoly",function(){return di}),e.d(n,"easePolyIn",function(){return li}),e.d(n,"easePolyOut",function(){return hi}),e.d(n,"easePolyInOut",function(){return di}),e.d(n,"easeSin",function(){return yi}),e.d(n,"easeSinIn",function(){return gi}),e.d(n,"easeSinOut",function(){return _i}),e.d(n,"easeSinInOut",function(){return yi}),e.d(n,"easeExp",function(){return bi}),e.d(n,"easeExpIn",function(){return mi}),e.d(n,"easeExpOut",function(){return xi}),e.d(n,"easeExpInOut",function(){return bi}),e.d(n,"easeCircle",function(){return Ei}),e.d(n,"easeCircleIn",function(){return wi}),e.d(n,"easeCircleOut",function(){return Mi}),e.d(n,"easeCircleInOut",function(){return Ei}),e.d(n,"easeBounce",function(){return zi}),e.d(n,"easeBounceIn",function(){return Li}),e.d(n,"easeBounceOut",function(){return zi}),e.d(n,"easeBounceInOut",function(){return Ii}),e.d(n,"easeBack",function(){return qi}),e.d(n,"easeBackIn",function(){return Ui}),e.d(n,"easeBackOut",function(){return Di}),e.d(n,"easeBackInOut",function(){return qi}),e.d(n,"easeElastic",function(){return Yi}),e.d(n,"easeElasticIn",function(){return Fi}),e.d(n,"easeElasticOut",function(){return Yi}),e.d(n,"easeElasticInOut",function(){return Wi}),e.d(n,"forceCenter",function(){return bo}),e.d(n,"forceCollide",function(){return Ro}),e.d(n,"forceLink",function(){return Io}),e.d(n,"forceManyBody",function(){return Wo}),e.d(n,"forceRadial",function(){return Ho}),e.d(n,"forceSimulation",function(){return Yo}),e.d(n,"forceX",function(){return Vo}),e.d(n,"forceY",function(){return Xo}),e.d(n,"formatDefaultLocale",function(){return aa}),e.d(n,"format",function(){return ea}),e.d(n,"formatPrefix",function(){return ra}),e.d(n,"formatLocale",function(){return oa}),e.d(n,"formatSpecifier",function(){return Jo}),e.d(n,"precisionFixed",function(){return ca}),e.d(n,"precisionPrefix",function(){return fa}),e.d(n,"precisionRound",function(){return sa}),e.d(n,"geoArea",function(){return ec}),e.d(n,"geoBounds",function(){return $c}),e.d(n,"geoCentroid",function(){return af}),e.d(n,"geoCircle",function(){return yf}),e.d(n,"geoClipAntimeridian",function(){return Af}),e.d(n,"geoClipCircle",function(){return Cf}),e.d(n,"geoClipExtent",function(){return Uf}),e.d(n,"geoClipRectangle",function(){return Rf}),e.d(n,"geoContains",function(){return es}),e.d(n,"geoDistance",function(){return Xf}),e.d(n,"geoGraticule",function(){return us}),e.d(n,"geoGraticule10",function(){return os}),e.d(n,"geoInterpolate",function(){return ls}),e.d(n,"geoLength",function(){return Wf}),e.d(n,"geoPath",function(){return fl}),e.d(n,"geoAlbers",function(){return Tl}),e.d(n,"geoAlbersUsa",function(){return Sl}),e.d(n,"geoAzimuthalEqualArea",function(){return Ol}),e.d(n,"geoAzimuthalEqualAreaRaw",function(){return Pl}),e.d(n,"geoAzimuthalEquidistant",function(){return Rl}),e.d(n,"geoAzimuthalEquidistantRaw",function(){return jl}),e.d(n,"geoConicConformal",function(){return ql}),e.d(n,"geoConicConformalRaw",function(){return Dl}),e.d(n,"geoConicEqualArea",function(){return Nl}),e.d(n,"geoConicEqualAreaRaw",function(){return kl}),e.d(n,"geoConicEquidistant",function(){return Wl}),e.d(n,"geoConicEquidistantRaw",function(){return Yl}),e.d(n,"geoEquirectangular",function(){return Fl}),e.d(n,"geoEquirectangularRaw",function(){return Bl}),e.d(n,"geoGnomonic",function(){return Vl}),e.d(n,"geoGnomonicRaw",function(){return Hl}),e.d(n,"geoIdentity",function(){return $l}),e.d(n,"geoProjection",function(){return wl}),e.d(n,"geoProjectionMutator",function(){return Ml}),e.d(n,"geoMercator",function(){return zl}),e.d(n,"geoMercatorRaw",function(){return Ll}),e.d(n,"geoNaturalEarth1",function(){return Zl}),e.d(n,"geoNaturalEarth1Raw",function(){return Gl}),e.d(n,"geoOrthographic",function(){return Kl}),e.d(n,"geoOrthographicRaw",function(){return Ql}),e.d(n,"geoStereographic",function(){return th}),e.d(n,"geoStereographicRaw",function(){return Jl}),e.d(n,"geoTransverseMercator",function(){return eh}),e.d(n,"geoTransverseMercatorRaw",function(){return nh}),e.d(n,"geoRotation",function(){return vf}),e.d(n,"geoStream",function(){return $a}),e.d(n,"geoTransform",function(){return sl}),e.d(n,"cluster",function(){return oh}),e.d(n,"hierarchy",function(){return ch}),e.d(n,"pack",function(){return Oh}),e.d(n,"packSiblings",function(){return Th}),e.d(n,"packEnclose",function(){return ph}),e.d(n,"partition",function(){return Uh}),e.d(n,"stratify",function(){return Wh}),e.d(n,"tree",function(){return Qh}),e.d(n,"treemap",function(){return ed}),e.d(n,"treemapBinary",function(){return rd}),e.d(n,"treemapDice",function(){return Ih}),e.d(n,"treemapSlice",function(){return Kh}),e.d(n,"treemapSliceDice",function(){return id}),e.d(n,"treemapSquarify",function(){return nd}),e.d(n,"treemapResquarify",function(){return ud}),e.d(n,"interpolate",function(){return Xe}),e.d(n,"interpolateArray",function(){return ze}),e.d(n,"interpolateBasis",function(){return ke}),e.d(n,"interpolateBasisClosed",function(){return Ne}),e.d(n,"interpolateDate",function(){return Ie}),e.d(n,"interpolateNumber",function(){return Ue}),e.d(n,"interpolateObject",function(){return De}),e.d(n,"interpolateRound",function(){return $e}),e.d(n,"interpolateString",function(){return Ve}),e.d(n,"interpolateTransformCss",function(){return Je}),e.d(n,"interpolateTransformSvg",function(){return tr}),e.d(n,"interpolateZoom",function(){return rr}),e.d(n,"interpolateRgb",function(){return Oe}),e.d(n,"interpolateRgbBasis",function(){return Re}),e.d(n,"interpolateRgbBasisClosed",function(){return Le}),e.d(n,"interpolateHsl",function(){return ur}),e.d(n,"interpolateHslLong",function(){return or}),e.d(n,"interpolateLab",function(){return ar}),e.d(n,"interpolateHcl",function(){return fr}),e.d(n,"interpolateHclLong",function(){return sr}),e.d(n,"interpolateCubehelix",function(){return pr}),e.d(n,"interpolateCubehelixLong",function(){return vr}),e.d(n,"quantize",function(){return gr}),e.d(n,"path",function(){return Lu}),e.d(n,"polygonArea",function(){return od}),e.d(n,"polygonCentroid",function(){return ad}),e.d(n,"polygonHull",function(){return ld}),e.d(n,"polygonContains",function(){return hd}),e.d(n,"polygonLength",function(){return dd}),e.d(n,"quadtree",function(){return So}),e.d(n,"queue",function(){return bd}),e.d(n,"randomUniform",function(){return Md}),e.d(n,"randomNormal",function(){return Ed}),e.d(n,"randomLogNormal",function(){return kd}),e.d(n,"randomBates",function(){return Td}),e.d(n,"randomIrwinHall",function(){return Nd}),e.d(n,"randomExponential",function(){return Sd}),e.d(n,"request",function(){return Ad}),e.d(n,"html",function(){return Pd}),e.d(n,"json",function(){return Od}),e.d(n,"text",function(){return jd}),e.d(n,"xml",function(){return Rd}),e.d(n,"csv",function(){return zd}),e.d(n,"tsv",function(){return Id}),e.d(n,"scaleBand",function(){return Yd}),e.d(n,"scalePoint",function(){return Wd}),e.d(n,"scaleIdentity",function(){return ep}),e.d(n,"scaleLinear",function(){return np}),e.d(n,"scaleLog",function(){return sp}),e.d(n,"scaleOrdinal",function(){return Fd}),e.d(n,"scaleImplicit",function(){return Bd}),e.d(n,"scalePow",function(){return hp}),e.d(n,"scaleSqrt",function(){return dp}),e.d(n,"scaleQuantile",function(){return pp}),e.d(n,"scaleQuantize",function(){return vp}),e.d(n,"scaleThreshold",function(){return gp}),e.d(n,"scaleTime",function(){return h_}),e.d(n,"scaleUtc",function(){return d_}),e.d(n,"schemeCategory10",function(){return v_}),e.d(n,"schemeCategory20b",function(){return g_}),e.d(n,"schemeCategory20c",function(){return __}),e.d(n,"schemeCategory20",function(){return y_}),e.d(n,"interpolateCubehelixDefault",function(){return m_}),e.d(n,"interpolateRainbow",function(){return M_}),e.d(n,"interpolateWarm",function(){return x_}),e.d(n,"interpolateCool",function(){return b_}),e.d(n,"interpolateViridis",function(){return k_}),e.d(n,"interpolateMagma",function(){return N_}),e.d(n,"interpolateInferno",function(){return T_}),e.d(n,"interpolatePlasma",function(){return S_}),e.d(n,"scaleSequential",function(){return A_}),e.d(n,"create",function(){return on}),e.d(n,"creator",function(){return gt}),e.d(n,"local",function(){return cn}),e.d(n,"matcher",function(){return Et}),e.d(n,"mouse",function(){return hn}),e.d(n,"namespace",function(){return vt}),e.d(n,"namespaces",function(){return pt}),e.d(n,"clientPoint",function(){return ln}),e.d(n,"select",function(){return un}),e.d(n,"selectAll",function(){return dn}),e.d(n,"selection",function(){return rn}),e.d(n,"selector",function(){return yt}),e.d(n,"selectorAll",function(){return xt}),e.d(n,"style",function(){return Ot}),e.d(n,"touch",function(){return pn}),e.d(n,"touches",function(){return vn}),e.d(n,"window",function(){return Pt}),e.d(n,"event",function(){return Xt}),e.d(n,"customEvent",function(){return Kt}),e.d(n,"arc",function(){return G_}),e.d(n,"area",function(){return ny}),e.d(n,"line",function(){return ty}),e.d(n,"pie",function(){return iy}),e.d(n,"areaRadial",function(){return sy}),e.d(n,"radialArea",function(){return sy}),e.d(n,"lineRadial",function(){return fy}),e.d(n,"radialLine",function(){return fy}),e.d(n,"pointRadial",function(){return ly}),e.d(n,"linkHorizontal",function(){return my}),e.d(n,"linkVertical",function(){return xy}),e.d(n,"linkRadial",function(){return by}),e.d(n,"symbol",function(){return Dy}),e.d(n,"symbols",function(){return Uy}),e.d(n,"symbolCircle",function(){return wy}),e.d(n,"symbolCross",function(){return My}),e.d(n,"symbolDiamond",function(){return Ny}),e.d(n,"symbolSquare",function(){return Py}),e.d(n,"symbolStar",function(){return Cy}),e.d(n,"symbolTriangle",function(){return jy}),e.d(n,"symbolWye",function(){return Iy}),e.d(n,"curveBasisClosed",function(){return Hy}),e.d(n,"curveBasisOpen",function(){return Xy}),e.d(n,"curveBasis",function(){return Yy}),e.d(n,"curveBundle",function(){return Gy}),e.d(n,"curveCardinalClosed",function(){return tm}),e.d(n,"curveCardinalOpen",function(){return em}),e.d(n,"curveCardinal",function(){return Ky}),e.d(n,"curveCatmullRomClosed",function(){return am}),e.d(n,"curveCatmullRomOpen",function(){return fm}),e.d(n,"curveCatmullRom",function(){return um}),e.d(n,"curveLinearClosed",function(){return lm}),e.d(n,"curveLinear",function(){return Q_}),e.d(n,"curveMonotoneX",function(){return mm}),e.d(n,"curveMonotoneY",function(){return xm}),e.d(n,"curveNatural",function(){return Mm}),e.d(n,"curveStep",function(){return km}),e.d(n,"curveStepAfter",function(){return Tm}),e.d(n,"curveStepBefore",function(){return Nm}),e.d(n,"stack",function(){return Pm}),e.d(n,"stackOffsetExpand",function(){return Om}),e.d(n,"stackOffsetDiverging",function(){return jm}),e.d(n,"stackOffsetNone",function(){return Sm}),e.d(n,"stackOffsetSilhouette",function(){return Rm}),e.d(n,"stackOffsetWiggle",function(){return Lm}),e.d(n,"stackOrderAscending",function(){return zm}),e.d(n,"stackOrderDescending",function(){return Um}),e.d(n,"stackOrderInsideOut",function(){return Dm}),e.d(n,"stackOrderNone",function(){return Am}),e.d(n,"stackOrderReverse",function(){return qm}),e.d(n,"timeInterval",function(){return mp}),e.d(n,"timeMillisecond",function(){return bp}),e.d(n,"timeMilliseconds",function(){return wp}),e.d(n,"utcMillisecond",function(){return bp}),e.d(n,"utcMilliseconds",function(){return wp}),e.d(n,"timeSecond",function(){return Np}),e.d(n,"timeSeconds",function(){return Tp}),e.d(n,"utcSecond",function(){return Np}),e.d(n,"utcSeconds",function(){return Tp}),e.d(n,"timeMinute",function(){return Ap}),e.d(n,"timeMinutes",function(){return Cp}),e.d(n,"timeHour",function(){return Op}),e.d(n,"timeHours",function(){return jp}),e.d(n,"timeDay",function(){return Lp}),e.d(n,"timeDays",function(){return zp}),e.d(n,"timeWeek",function(){return Up}),e.d(n,"timeWeeks",function(){return Hp}),e.d(n,"timeSunday",function(){return Up}),e.d(n,"timeSundays",function(){return Hp}),e.d(n,"timeMonday",function(){return Dp}),e.d(n,"timeMondays",function(){return Vp}),e.d(n,"timeTuesday",function(){return qp}),e.d(n,"timeTuesdays",function(){return Xp}),e.d(n,"timeWednesday",function(){return Bp}),e.d(n,"timeWednesdays",function(){return $p}),e.d(n,"timeThursday",function(){return Fp}),e.d(n,"timeThursdays",function(){return Gp}),e.d(n,"timeFriday",function(){return Yp}),e.d(n,"timeFridays",function(){return Zp}),e.d(n,"timeSaturday",function(){return Wp}),e.d(n,"timeSaturdays",function(){return Qp}),e.d(n,"timeMonth",function(){return Jp}),e.d(n,"timeMonths",function(){return tv}),e.d(n,"timeYear",function(){return ev}),e.d(n,"timeYears",function(){return rv}),e.d(n,"utcMinute",function(){return uv}),e.d(n,"utcMinutes",function(){return ov}),e.d(n,"utcHour",function(){return cv}),e.d(n,"utcHours",function(){return fv}),e.d(n,"utcDay",function(){return lv}),e.d(n,"utcDays",function(){return hv}),e.d(n,"utcWeek",function(){return pv}),e.d(n,"utcWeeks",function(){return bv}),e.d(n,"utcSunday",function(){return pv}),e.d(n,"utcSundays",function(){return bv}),e.d(n,"utcMonday",function(){return vv}),e.d(n,"utcMondays",function(){return wv}),e.d(n,"utcTuesday",function(){return gv}),e.d(n,"utcTuesdays",function(){return Mv}),e.d(n,"utcWednesday",function(){return _v}),e.d(n,"utcWednesdays",function(){return Ev}),e.d(n,"utcThursday",function(){return yv}),e.d(n,"utcThursdays",function(){return kv}),e.d(n,"utcFriday",function(){return mv}),e.d(n,"utcFridays",function(){return Nv}),e.d(n,"utcSaturday",function(){return xv}),e.d(n,"utcSaturdays",function(){return Tv}),e.d(n,"utcMonth",function(){return Av}),e.d(n,"utcMonths",function(){return Cv}),e.d(n,"utcYear",function(){return Ov}),e.d(n,"utcYears",function(){return jv}),e.d(n,"timeFormatDefaultLocale",function(){return Jg}),e.d(n,"timeFormat",function(){return Dv}),e.d(n,"timeParse",function(){return qv}),e.d(n,"utcFormat",function(){return Bv}),e.d(n,"utcParse",function(){return Fv}),e.d(n,"timeFormatLocale",function(){return Iv}),e.d(n,"isoFormat",function(){return t_}),e.d(n,"isoParse",function(){return n_}),e.d(n,"now",function(){return Nr}),e.d(n,"timer",function(){return Ar}),e.d(n,"timerFlush",function(){return Cr}),e.d(n,"timeout",function(){return Rr}),e.d(n,"interval",function(){return Lr}),e.d(n,"transition",function(){return ni}),e.d(n,"active",function(){return $i}),e.d(n,"interrupt",function(){return Gr}),e.d(n,"voronoi",function(){return Mx}),e.d(n,"zoom",function(){return zx}),e.d(n,"zoomTransform",function(){return Tx}),e.d(n,"zoomIdentity",function(){return Nx})},function(t,n,e){(function(t,r){var i;(function(){var u,o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="__lodash_hash_undefined__",s=500,l="__lodash_placeholder__",h=1,d=2,p=4,v=1,g=2,_=1,y=2,m=4,x=8,b=16,w=32,M=64,E=128,k=256,N=512,T=30,S="...",A=800,C=16,P=1,O=2,j=1/0,R=9007199254740991,L=1.7976931348623157e308,z=NaN,I=4294967295,U=I-1,D=I>>>1,q=[["ary",E],["bind",_],["bindKey",y],["curry",x],["curryRight",b],["flip",N],["partial",w],["partialRight",M],["rearg",k]],B="[object Arguments]",F="[object Array]",Y="[object AsyncFunction]",W="[object Boolean]",H="[object Date]",V="[object DOMException]",X="[object Error]",$="[object Function]",G="[object GeneratorFunction]",Z="[object Map]",Q="[object Number]",K="[object Null]",J="[object Object]",tt="[object Proxy]",nt="[object RegExp]",et="[object Set]",rt="[object String]",it="[object Symbol]",ut="[object Undefined]",ot="[object WeakMap]",at="[object WeakSet]",ct="[object ArrayBuffer]",ft="[object DataView]",st="[object Float32Array]",lt="[object Float64Array]",ht="[object Int8Array]",dt="[object Int16Array]",pt="[object Int32Array]",vt="[object Uint8Array]",gt="[object Uint8ClampedArray]",_t="[object Uint16Array]",yt="[object Uint32Array]",mt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,Mt=/[&<>"']/g,Et=RegExp(wt.source),kt=RegExp(Mt.source),Nt=/<%-([\s\S]+?)%>/g,Tt=/<%([\s\S]+?)%>/g,St=/<%=([\s\S]+?)%>/g,At=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ct=/^\w*$/,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ot=/[\\^$.*+?()[\]{}|]/g,jt=RegExp(Ot.source),Rt=/^\s+|\s+$/g,Lt=/^\s+/,zt=/\s+$/,It=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ut=/\{\n\/\* \[wrapped with (.+)\] \*/,Dt=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,Wt=/^[-+]0x[0-9a-f]+$/i,Ht=/^0b[01]+$/i,Vt=/^\[object .+?Constructor\]$/,Xt=/^0o[0-7]+$/i,$t=/^(?:0|[1-9]\d*)$/,Gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zt=/($^)/,Qt=/['\n\r\u2028\u2029\\]/g,Kt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Jt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tn="[\\ud800-\\udfff]",nn="["+Jt+"]",en="["+Kt+"]",rn="\\d+",un="[\\u2700-\\u27bf]",on="[a-z\\xdf-\\xf6\\xf8-\\xff]",an="[^\\ud800-\\udfff"+Jt+rn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",cn="\\ud83c[\\udffb-\\udfff]",fn="[^\\ud800-\\udfff]",sn="(?:\\ud83c[\\udde6-\\uddff]){2}",ln="[\\ud800-\\udbff][\\udc00-\\udfff]",hn="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dn="(?:"+on+"|"+an+")",pn="(?:"+hn+"|"+an+")",vn="(?:"+en+"|"+cn+")"+"?",gn="[\\ufe0e\\ufe0f]?"+vn+("(?:\\u200d(?:"+[fn,sn,ln].join("|")+")[\\ufe0e\\ufe0f]?"+vn+")*"),_n="(?:"+[un,sn,ln].join("|")+")"+gn,yn="(?:"+[fn+en+"?",en,sn,ln,tn].join("|")+")",mn=RegExp("['’]","g"),xn=RegExp(en,"g"),bn=RegExp(cn+"(?="+cn+")|"+yn+gn,"g"),wn=RegExp([hn+"?"+on+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[nn,hn,"$"].join("|")+")",pn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[nn,hn+dn,"$"].join("|")+")",hn+"?"+dn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",hn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rn,_n].join("|"),"g"),Mn=RegExp("[\\u200d\\ud800-\\udfff"+Kt+"\\ufe0e\\ufe0f]"),En=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nn=-1,Tn={};Tn[st]=Tn[lt]=Tn[ht]=Tn[dt]=Tn[pt]=Tn[vt]=Tn[gt]=Tn[_t]=Tn[yt]=!0,Tn[B]=Tn[F]=Tn[ct]=Tn[W]=Tn[ft]=Tn[H]=Tn[X]=Tn[$]=Tn[Z]=Tn[Q]=Tn[J]=Tn[nt]=Tn[et]=Tn[rt]=Tn[ot]=!1;var Sn={};Sn[B]=Sn[F]=Sn[ct]=Sn[ft]=Sn[W]=Sn[H]=Sn[st]=Sn[lt]=Sn[ht]=Sn[dt]=Sn[pt]=Sn[Z]=Sn[Q]=Sn[J]=Sn[nt]=Sn[et]=Sn[rt]=Sn[it]=Sn[vt]=Sn[gt]=Sn[_t]=Sn[yt]=!0,Sn[X]=Sn[$]=Sn[ot]=!1;var An={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cn=parseFloat,Pn=parseInt,On="object"==typeof t&&t&&t.Object===Object&&t,jn="object"==typeof self&&self&&self.Object===Object&&self,Rn=On||jn||Function("return this")(),Ln="object"==typeof n&&n&&!n.nodeType&&n,zn=Ln&&"object"==typeof r&&r&&!r.nodeType&&r,In=zn&&zn.exports===Ln,Un=In&&On.process,Dn=function(){try{return Un&&Un.binding&&Un.binding("util")}catch(t){}}(),qn=Dn&&Dn.isArrayBuffer,Bn=Dn&&Dn.isDate,Fn=Dn&&Dn.isMap,Yn=Dn&&Dn.isRegExp,Wn=Dn&&Dn.isSet,Hn=Dn&&Dn.isTypedArray;function Vn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function Xn(t,n,e,r){for(var i=-1,u=null==t?0:t.length;++i<u;){var o=t[i];n(r,o,e(o),t)}return r}function $n(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}function Gn(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}function Zn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function Qn(t,n){for(var e=-1,r=null==t?0:t.length,i=0,u=[];++e<r;){var o=t[e];n(o,e,t)&&(u[i++]=o)}return u}function Kn(t,n){return!!(null==t?0:t.length)&&ce(t,n,0)>-1}function Jn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}function te(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}function ne(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function ee(t,n,e,r){var i=-1,u=null==t?0:t.length;for(r&&u&&(e=t[++i]);++i<u;)e=n(e,t[i],i,t);return e}function re(t,n,e,r){var i=null==t?0:t.length;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function ie(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}var ue=he("length");function oe(t,n,e){var r;return e(t,function(t,e,i){if(n(t,e,i))return r=e,!1}),r}function ae(t,n,e,r){for(var i=t.length,u=e+(r?1:-1);r?u--:++u<i;)if(n(t[u],u,t))return u;return-1}function ce(t,n,e){return n==n?function(t,n,e){var r=e-1,i=t.length;for(;++r<i;)if(t[r]===n)return r;return-1}(t,n,e):ae(t,se,e)}function fe(t,n,e,r){for(var i=e-1,u=t.length;++i<u;)if(r(t[i],n))return i;return-1}function se(t){return t!=t}function le(t,n){var e=null==t?0:t.length;return e?ve(t,n)/e:z}function he(t){return function(n){return null==n?u:n[t]}}function de(t){return function(n){return null==t?u:t[n]}}function pe(t,n,e,r,i){return i(t,function(t,i,u){e=r?(r=!1,t):n(e,t,i,u)}),e}function ve(t,n){for(var e,r=-1,i=t.length;++r<i;){var o=n(t[r]);o!==u&&(e=e===u?o:e+o)}return e}function ge(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function _e(t){return function(n){return t(n)}}function ye(t,n){return te(n,function(n){return t[n]})}function me(t,n){return t.has(n)}function xe(t,n){for(var e=-1,r=t.length;++e<r&&ce(n,t[e],0)>-1;);return e}function be(t,n){for(var e=t.length;e--&&ce(n,t[e],0)>-1;);return e}var we=de({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Me=de({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ee(t){return"\\"+An[t]}function ke(t){return Mn.test(t)}function Ne(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function Te(t,n){return function(e){return t(n(e))}}function Se(t,n){for(var e=-1,r=t.length,i=0,u=[];++e<r;){var o=t[e];o!==n&&o!==l||(t[e]=l,u[i++]=e)}return u}function Ae(t,n){return"__proto__"==n?u:t[n]}function Ce(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=t}),e}function Pe(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=[t,t]}),e}function Oe(t){return ke(t)?function(t){var n=bn.lastIndex=0;for(;bn.test(t);)++n;return n}(t):ue(t)}function je(t){return ke(t)?function(t){return t.match(bn)||[]}(t):function(t){return t.split("")}(t)}var Re=de({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Le=function t(n){var e,r=(n=null==n?Rn:Le.defaults(Rn.Object(),n,Le.pick(Rn,kn))).Array,i=n.Date,Kt=n.Error,Jt=n.Function,tn=n.Math,nn=n.Object,en=n.RegExp,rn=n.String,un=n.TypeError,on=r.prototype,an=Jt.prototype,cn=nn.prototype,fn=n["__core-js_shared__"],sn=an.toString,ln=cn.hasOwnProperty,hn=0,dn=(e=/[^.]+$/.exec(fn&&fn.keys&&fn.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",pn=cn.toString,vn=sn.call(nn),gn=Rn._,_n=en("^"+sn.call(ln).replace(Ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yn=In?n.Buffer:u,bn=n.Symbol,Mn=n.Uint8Array,An=yn?yn.allocUnsafe:u,On=Te(nn.getPrototypeOf,nn),jn=nn.create,Ln=cn.propertyIsEnumerable,zn=on.splice,Un=bn?bn.isConcatSpreadable:u,Dn=bn?bn.iterator:u,ue=bn?bn.toStringTag:u,de=function(){try{var t=Du(nn,"defineProperty");return t({},"",{}),t}catch(t){}}(),ze=n.clearTimeout!==Rn.clearTimeout&&n.clearTimeout,Ie=i&&i.now!==Rn.Date.now&&i.now,Ue=n.setTimeout!==Rn.setTimeout&&n.setTimeout,De=tn.ceil,qe=tn.floor,Be=nn.getOwnPropertySymbols,Fe=yn?yn.isBuffer:u,Ye=n.isFinite,We=on.join,He=Te(nn.keys,nn),Ve=tn.max,Xe=tn.min,$e=i.now,Ge=n.parseInt,Ze=tn.random,Qe=on.reverse,Ke=Du(n,"DataView"),Je=Du(n,"Map"),tr=Du(n,"Promise"),nr=Du(n,"Set"),er=Du(n,"WeakMap"),rr=Du(nn,"create"),ir=er&&new er,ur={},or=so(Ke),ar=so(Je),cr=so(tr),fr=so(nr),sr=so(er),lr=bn?bn.prototype:u,hr=lr?lr.valueOf:u,dr=lr?lr.toString:u;function pr(t){if(Sa(t)&&!_a(t)&&!(t instanceof yr)){if(t instanceof _r)return t;if(ln.call(t,"__wrapped__"))return lo(t)}return new _r(t)}var vr=function(){function t(){}return function(n){if(!Ta(n))return{};if(jn)return jn(n);t.prototype=n;var e=new t;return t.prototype=u,e}}();function gr(){}function _r(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=u}function yr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=I,this.__views__=[]}function mr(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function xr(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function br(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function wr(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new br;++n<e;)this.add(t[n])}function Mr(t){var n=this.__data__=new xr(t);this.size=n.size}function Er(t,n){var e=_a(t),r=!e&&ga(t),i=!e&&!r&&ba(t),u=!e&&!r&&!i&&za(t),o=e||r||i||u,a=o?ge(t.length,rn):[],c=a.length;for(var f in t)!n&&!ln.call(t,f)||o&&("length"==f||i&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Vu(f,c))||a.push(f);return a}function kr(t){var n=t.length;return n?t[wi(0,n-1)]:u}function Nr(t,n){return ao(ru(t),Lr(n,0,t.length))}function Tr(t){return ao(ru(t))}function Sr(t,n,e){(e===u||da(t[n],e))&&(e!==u||n in t)||jr(t,n,e)}function Ar(t,n,e){var r=t[n];ln.call(t,n)&&da(r,e)&&(e!==u||n in t)||jr(t,n,e)}function Cr(t,n){for(var e=t.length;e--;)if(da(t[e][0],n))return e;return-1}function Pr(t,n,e,r){return qr(t,function(t,i,u){n(r,t,e(t),u)}),r}function Or(t,n){return t&&iu(n,ic(n),t)}function jr(t,n,e){"__proto__"==n&&de?de(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function Rr(t,n){for(var e=-1,i=n.length,o=r(i),a=null==t;++e<i;)o[e]=a?u:Ja(t,n[e]);return o}function Lr(t,n,e){return t==t&&(e!==u&&(t=t<=e?t:e),n!==u&&(t=t>=n?t:n)),t}function zr(t,n,e,r,i,o){var a,c=n&h,f=n&d,s=n&p;if(e&&(a=i?e(t,r,i,o):e(t)),a!==u)return a;if(!Ta(t))return t;var l=_a(t);if(l){if(a=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&ln.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!c)return ru(t,a)}else{var v=Fu(t),g=v==$||v==G;if(ba(t))return Qi(t,c);if(v==J||v==B||g&&!i){if(a=f||g?{}:Wu(t),!c)return f?function(t,n){return iu(t,Bu(t),n)}(t,function(t,n){return t&&iu(n,uc(n),t)}(a,t)):function(t,n){return iu(t,qu(t),n)}(t,Or(a,t))}else{if(!Sn[v])return i?t:{};a=function(t,n,e){var r,i,u,o=t.constructor;switch(n){case ct:return Ki(t);case W:case H:return new o(+t);case ft:return function(t,n){var e=n?Ki(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case st:case lt:case ht:case dt:case pt:case vt:case gt:case _t:case yt:return Ji(t,e);case Z:return new o;case Q:case rt:return new o(t);case nt:return(u=new(i=t).constructor(i.source,Yt.exec(i))).lastIndex=i.lastIndex,u;case et:return new o;case it:return r=t,hr?nn(hr.call(r)):{}}}(t,v,c)}}o||(o=new Mr);var _=o.get(t);if(_)return _;if(o.set(t,a),ja(t))return t.forEach(function(r){a.add(zr(r,n,e,r,t,o))}),a;if(Aa(t))return t.forEach(function(r,i){a.set(i,zr(r,n,e,i,t,o))}),a;var y=l?u:(s?f?Ou:Pu:f?uc:ic)(t);return $n(y||t,function(r,i){y&&(r=t[i=r]),Ar(a,i,zr(r,n,e,i,t,o))}),a}function Ir(t,n,e){var r=e.length;if(null==t)return!r;for(t=nn(t);r--;){var i=e[r],o=n[i],a=t[i];if(a===u&&!(i in t)||!o(a))return!1}return!0}function Ur(t,n,e){if("function"!=typeof t)throw new un(c);return ro(function(){t.apply(u,e)},n)}function Dr(t,n,e,r){var i=-1,u=Kn,a=!0,c=t.length,f=[],s=n.length;if(!c)return f;e&&(n=te(n,_e(e))),r?(u=Jn,a=!1):n.length>=o&&(u=me,a=!1,n=new wr(n));t:for(;++i<c;){var l=t[i],h=null==e?l:e(l);if(l=r||0!==l?l:0,a&&h==h){for(var d=s;d--;)if(n[d]===h)continue t;f.push(l)}else u(n,h,r)||f.push(l)}return f}pr.templateSettings={escape:Nt,evaluate:Tt,interpolate:St,variable:"",imports:{_:pr}},pr.prototype=gr.prototype,pr.prototype.constructor=pr,_r.prototype=vr(gr.prototype),_r.prototype.constructor=_r,yr.prototype=vr(gr.prototype),yr.prototype.constructor=yr,mr.prototype.clear=function(){this.__data__=rr?rr(null):{},this.size=0},mr.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},mr.prototype.get=function(t){var n=this.__data__;if(rr){var e=n[t];return e===f?u:e}return ln.call(n,t)?n[t]:u},mr.prototype.has=function(t){var n=this.__data__;return rr?n[t]!==u:ln.call(n,t)},mr.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=rr&&n===u?f:n,this},xr.prototype.clear=function(){this.__data__=[],this.size=0},xr.prototype.delete=function(t){var n=this.__data__,e=Cr(n,t);return!(e<0||(e==n.length-1?n.pop():zn.call(n,e,1),--this.size,0))},xr.prototype.get=function(t){var n=this.__data__,e=Cr(n,t);return e<0?u:n[e][1]},xr.prototype.has=function(t){return Cr(this.__data__,t)>-1},xr.prototype.set=function(t,n){var e=this.__data__,r=Cr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},br.prototype.clear=function(){this.size=0,this.__data__={hash:new mr,map:new(Je||xr),string:new mr}},br.prototype.delete=function(t){var n=Iu(this,t).delete(t);return this.size-=n?1:0,n},br.prototype.get=function(t){return Iu(this,t).get(t)},br.prototype.has=function(t){return Iu(this,t).has(t)},br.prototype.set=function(t,n){var e=Iu(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},wr.prototype.add=wr.prototype.push=function(t){return this.__data__.set(t,f),this},wr.prototype.has=function(t){return this.__data__.has(t)},Mr.prototype.clear=function(){this.__data__=new xr,this.size=0},Mr.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Mr.prototype.get=function(t){return this.__data__.get(t)},Mr.prototype.has=function(t){return this.__data__.has(t)},Mr.prototype.set=function(t,n){var e=this.__data__;if(e instanceof xr){var r=e.__data__;if(!Je||r.length<o-1)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new br(r)}return e.set(t,n),this.size=e.size,this};var qr=au($r),Br=au(Gr,!0);function Fr(t,n){var e=!0;return qr(t,function(t,r,i){return e=!!n(t,r,i)}),e}function Yr(t,n,e){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=n(o);if(null!=a&&(c===u?a==a&&!La(a):e(a,c)))var c=a,f=o}return f}function Wr(t,n){var e=[];return qr(t,function(t,r,i){n(t,r,i)&&e.push(t)}),e}function Hr(t,n,e,r,i){var u=-1,o=t.length;for(e||(e=Hu),i||(i=[]);++u<o;){var a=t[u];n>0&&e(a)?n>1?Hr(a,n-1,e,r,i):ne(i,a):r||(i[i.length]=a)}return i}var Vr=cu(),Xr=cu(!0);function $r(t,n){return t&&Vr(t,n,ic)}function Gr(t,n){return t&&Xr(t,n,ic)}function Zr(t,n){return Qn(n,function(n){return Ea(t[n])})}function Qr(t,n){for(var e=0,r=(n=Xi(n,t)).length;null!=t&&e<r;)t=t[fo(n[e++])];return e&&e==r?t:u}function Kr(t,n,e){var r=n(t);return _a(t)?r:ne(r,e(t))}function Jr(t){return null==t?t===u?ut:K:ue&&ue in nn(t)?function(t){var n=ln.call(t,ue),e=t[ue];try{t[ue]=u;var r=!0}catch(t){}var i=pn.call(t);return r&&(n?t[ue]=e:delete t[ue]),i}(t):function(t){return pn.call(t)}(t)}function ti(t,n){return t>n}function ni(t,n){return null!=t&&ln.call(t,n)}function ei(t,n){return null!=t&&n in nn(t)}function ri(t,n,e){for(var i=e?Jn:Kn,o=t[0].length,a=t.length,c=a,f=r(a),s=1/0,l=[];c--;){var h=t[c];c&&n&&(h=te(h,_e(n))),s=Xe(h.length,s),f[c]=!e&&(n||o>=120&&h.length>=120)?new wr(c&&h):u}h=t[0];var d=-1,p=f[0];t:for(;++d<o&&l.length<s;){var v=h[d],g=n?n(v):v;if(v=e||0!==v?v:0,!(p?me(p,g):i(l,g,e))){for(c=a;--c;){var _=f[c];if(!(_?me(_,g):i(t[c],g,e)))continue t}p&&p.push(g),l.push(v)}}return l}function ii(t,n,e){var r=null==(t=no(t,n=Xi(n,t)))?t:t[fo(Mo(n))];return null==r?u:Vn(r,t,e)}function ui(t){return Sa(t)&&Jr(t)==B}function oi(t,n,e,r,i){return t===n||(null==t||null==n||!Sa(t)&&!Sa(n)?t!=t&&n!=n:function(t,n,e,r,i,o){var a=_a(t),c=_a(n),f=a?F:Fu(t),s=c?F:Fu(n),l=(f=f==B?J:f)==J,h=(s=s==B?J:s)==J,d=f==s;if(d&&ba(t)){if(!ba(n))return!1;a=!0,l=!1}if(d&&!l)return o||(o=new Mr),a||za(t)?Au(t,n,e,r,i,o):function(t,n,e,r,i,u,o){switch(e){case ft:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case ct:return!(t.byteLength!=n.byteLength||!u(new Mn(t),new Mn(n)));case W:case H:case Q:return da(+t,+n);case X:return t.name==n.name&&t.message==n.message;case nt:case rt:return t==n+"";case Z:var a=Ne;case et:var c=r&v;if(a||(a=Ce),t.size!=n.size&&!c)return!1;var f=o.get(t);if(f)return f==n;r|=g,o.set(t,n);var s=Au(a(t),a(n),r,i,u,o);return o.delete(t),s;case it:if(hr)return hr.call(t)==hr.call(n)}return!1}(t,n,f,e,r,i,o);if(!(e&v)){var p=l&&ln.call(t,"__wrapped__"),_=h&&ln.call(n,"__wrapped__");if(p||_){var y=p?t.value():t,m=_?n.value():n;return o||(o=new Mr),i(y,m,e,r,o)}}return!!d&&(o||(o=new Mr),function(t,n,e,r,i,o){var a=e&v,c=Pu(t),f=c.length,s=Pu(n).length;if(f!=s&&!a)return!1;for(var l=f;l--;){var h=c[l];if(!(a?h in n:ln.call(n,h)))return!1}var d=o.get(t);if(d&&o.get(n))return d==n;var p=!0;o.set(t,n),o.set(n,t);for(var g=a;++l<f;){h=c[l];var _=t[h],y=n[h];if(r)var m=a?r(y,_,h,n,t,o):r(_,y,h,t,n,o);if(!(m===u?_===y||i(_,y,e,r,o):m)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var x=t.constructor,b=n.constructor;x!=b&&"constructor"in t&&"constructor"in n&&!("function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b)&&(p=!1)}return o.delete(t),o.delete(n),p}(t,n,e,r,i,o))}(t,n,e,r,oi,i))}function ai(t,n,e,r){var i=e.length,o=i,a=!r;if(null==t)return!o;for(t=nn(t);i--;){var c=e[i];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<o;){var f=(c=e[i])[0],s=t[f],l=c[1];if(a&&c[2]){if(s===u&&!(f in t))return!1}else{var h=new Mr;if(r)var d=r(s,l,f,t,n,h);if(!(d===u?oi(l,s,v|g,r,h):d))return!1}}return!0}function ci(t){return!(!Ta(t)||dn&&dn in t)&&(Ea(t)?_n:Vt).test(so(t))}function fi(t){return"function"==typeof t?t:null==t?Cc:"object"==typeof t?_a(t)?vi(t[0],t[1]):pi(t):Dc(t)}function si(t){if(!Qu(t))return He(t);var n=[];for(var e in nn(t))ln.call(t,e)&&"constructor"!=e&&n.push(e);return n}function li(t){if(!Ta(t))return function(t){var n=[];if(null!=t)for(var e in nn(t))n.push(e);return n}(t);var n=Qu(t),e=[];for(var r in t)("constructor"!=r||!n&&ln.call(t,r))&&e.push(r);return e}function hi(t,n){return t<n}function di(t,n){var e=-1,i=ma(t)?r(t.length):[];return qr(t,function(t,r,u){i[++e]=n(t,r,u)}),i}function pi(t){var n=Uu(t);return 1==n.length&&n[0][2]?Ju(n[0][0],n[0][1]):function(e){return e===t||ai(e,t,n)}}function vi(t,n){return $u(t)&&Ku(n)?Ju(fo(t),n):function(e){var r=Ja(e,t);return r===u&&r===n?tc(e,t):oi(n,r,v|g)}}function gi(t,n,e,r,i){t!==n&&Vr(n,function(o,a){if(Ta(o))i||(i=new Mr),function(t,n,e,r,i,o,a){var c=Ae(t,e),f=Ae(n,e),s=a.get(f);if(s)Sr(t,e,s);else{var l=o?o(c,f,e+"",t,n,a):u,h=l===u;if(h){var d=_a(f),p=!d&&ba(f),v=!d&&!p&&za(f);l=f,d||p||v?_a(c)?l=c:xa(c)?l=ru(c):p?(h=!1,l=Qi(f,!0)):v?(h=!1,l=Ji(f,!0)):l=[]:Pa(f)||ga(f)?(l=c,ga(c)?l=Wa(c):(!Ta(c)||r&&Ea(c))&&(l=Wu(f))):h=!1}h&&(a.set(f,l),i(l,f,r,o,a),a.delete(f)),Sr(t,e,l)}}(t,n,a,e,gi,r,i);else{var c=r?r(Ae(t,a),o,a+"",t,n,i):u;c===u&&(c=o),Sr(t,a,c)}},uc)}function _i(t,n){var e=t.length;if(e)return Vu(n+=n<0?e:0,e)?t[n]:u}function yi(t,n,e){var r=-1;return n=te(n.length?n:[Cc],_e(zu())),function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}(di(t,function(t,e,i){return{criteria:te(n,function(n){return n(t)}),index:++r,value:t}}),function(t,n){return function(t,n,e){for(var r=-1,i=t.criteria,u=n.criteria,o=i.length,a=e.length;++r<o;){var c=tu(i[r],u[r]);if(c){if(r>=a)return c;var f=e[r];return c*("desc"==f?-1:1)}}return t.index-n.index}(t,n,e)})}function mi(t,n,e){for(var r=-1,i=n.length,u={};++r<i;){var o=n[r],a=Qr(t,o);e(a,o)&&Ti(u,Xi(o,t),a)}return u}function xi(t,n,e,r){var i=r?fe:ce,u=-1,o=n.length,a=t;for(t===n&&(n=ru(n)),e&&(a=te(t,_e(e)));++u<o;)for(var c=0,f=n[u],s=e?e(f):f;(c=i(a,s,c,r))>-1;)a!==t&&zn.call(a,c,1),zn.call(t,c,1);return t}function bi(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==u){var u=i;Vu(i)?zn.call(t,i,1):Di(t,i)}}return t}function wi(t,n){return t+qe(Ze()*(n-t+1))}function Mi(t,n){var e="";if(!t||n<1||n>R)return e;do{n%2&&(e+=t),(n=qe(n/2))&&(t+=t)}while(n);return e}function Ei(t,n){return io(to(t,n,Cc),t+"")}function ki(t){return kr(dc(t))}function Ni(t,n){var e=dc(t);return ao(e,Lr(n,0,e.length))}function Ti(t,n,e,r){if(!Ta(t))return t;for(var i=-1,o=(n=Xi(n,t)).length,a=o-1,c=t;null!=c&&++i<o;){var f=fo(n[i]),s=e;if(i!=a){var l=c[f];(s=r?r(l,f,c):u)===u&&(s=Ta(l)?l:Vu(n[i+1])?[]:{})}Ar(c,f,s),c=c[f]}return t}var Si=ir?function(t,n){return ir.set(t,n),t}:Cc,Ai=de?function(t,n){return de(t,"toString",{configurable:!0,enumerable:!1,value:Tc(n),writable:!0})}:Cc;function Ci(t){return ao(dc(t))}function Pi(t,n,e){var i=-1,u=t.length;n<0&&(n=-n>u?0:u+n),(e=e>u?u:e)<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var o=r(u);++i<u;)o[i]=t[i+n];return o}function Oi(t,n){var e;return qr(t,function(t,r,i){return!(e=n(t,r,i))}),!!e}function ji(t,n,e){var r=0,i=null==t?r:t.length;if("number"==typeof n&&n==n&&i<=D){for(;r<i;){var u=r+i>>>1,o=t[u];null!==o&&!La(o)&&(e?o<=n:o<n)?r=u+1:i=u}return i}return Ri(t,n,Cc,e)}function Ri(t,n,e,r){n=e(n);for(var i=0,o=null==t?0:t.length,a=n!=n,c=null===n,f=La(n),s=n===u;i<o;){var l=qe((i+o)/2),h=e(t[l]),d=h!==u,p=null===h,v=h==h,g=La(h);if(a)var _=r||v;else _=s?v&&(r||d):c?v&&d&&(r||!p):f?v&&d&&!p&&(r||!g):!p&&!g&&(r?h<=n:h<n);_?i=l+1:o=l}return Xe(o,U)}function Li(t,n){for(var e=-1,r=t.length,i=0,u=[];++e<r;){var o=t[e],a=n?n(o):o;if(!e||!da(a,c)){var c=a;u[i++]=0===o?0:o}}return u}function zi(t){return"number"==typeof t?t:La(t)?z:+t}function Ii(t){if("string"==typeof t)return t;if(_a(t))return te(t,Ii)+"";if(La(t))return dr?dr.call(t):"";var n=t+"";return"0"==n&&1/t==-j?"-0":n}function Ui(t,n,e){var r=-1,i=Kn,u=t.length,a=!0,c=[],f=c;if(e)a=!1,i=Jn;else if(u>=o){var s=n?null:Mu(t);if(s)return Ce(s);a=!1,i=me,f=new wr}else f=n?[]:c;t:for(;++r<u;){var l=t[r],h=n?n(l):l;if(l=e||0!==l?l:0,a&&h==h){for(var d=f.length;d--;)if(f[d]===h)continue t;n&&f.push(h),c.push(l)}else i(f,h,e)||(f!==c&&f.push(h),c.push(l))}return c}function Di(t,n){return null==(t=no(t,n=Xi(n,t)))||delete t[fo(Mo(n))]}function qi(t,n,e,r){return Ti(t,n,e(Qr(t,n)),r)}function Bi(t,n,e,r){for(var i=t.length,u=r?i:-1;(r?u--:++u<i)&&n(t[u],u,t););return e?Pi(t,r?0:u,r?u+1:i):Pi(t,r?u+1:0,r?i:u)}function Fi(t,n){var e=t;return e instanceof yr&&(e=e.value()),ee(n,function(t,n){return n.func.apply(n.thisArg,ne([t],n.args))},e)}function Yi(t,n,e){var i=t.length;if(i<2)return i?Ui(t[0]):[];for(var u=-1,o=r(i);++u<i;)for(var a=t[u],c=-1;++c<i;)c!=u&&(o[u]=Dr(o[u]||a,t[c],n,e));return Ui(Hr(o,1),n,e)}function Wi(t,n,e){for(var r=-1,i=t.length,o=n.length,a={};++r<i;){var c=r<o?n[r]:u;e(a,t[r],c)}return a}function Hi(t){return xa(t)?t:[]}function Vi(t){return"function"==typeof t?t:Cc}function Xi(t,n){return _a(t)?t:$u(t,n)?[t]:co(Ha(t))}var $i=Ei;function Gi(t,n,e){var r=t.length;return e=e===u?r:e,!n&&e>=r?t:Pi(t,n,e)}var Zi=ze||function(t){return Rn.clearTimeout(t)};function Qi(t,n){if(n)return t.slice();var e=t.length,r=An?An(e):new t.constructor(e);return t.copy(r),r}function Ki(t){var n=new t.constructor(t.byteLength);return new Mn(n).set(new Mn(t)),n}function Ji(t,n){var e=n?Ki(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function tu(t,n){if(t!==n){var e=t!==u,r=null===t,i=t==t,o=La(t),a=n!==u,c=null===n,f=n==n,s=La(n);if(!c&&!s&&!o&&t>n||o&&a&&f&&!c&&!s||r&&a&&f||!e&&f||!i)return 1;if(!r&&!o&&!s&&t<n||s&&e&&i&&!r&&!o||c&&e&&i||!a&&i||!f)return-1}return 0}function nu(t,n,e,i){for(var u=-1,o=t.length,a=e.length,c=-1,f=n.length,s=Ve(o-a,0),l=r(f+s),h=!i;++c<f;)l[c]=n[c];for(;++u<a;)(h||u<o)&&(l[e[u]]=t[u]);for(;s--;)l[c++]=t[u++];return l}function eu(t,n,e,i){for(var u=-1,o=t.length,a=-1,c=e.length,f=-1,s=n.length,l=Ve(o-c,0),h=r(l+s),d=!i;++u<l;)h[u]=t[u];for(var p=u;++f<s;)h[p+f]=n[f];for(;++a<c;)(d||u<o)&&(h[p+e[a]]=t[u++]);return h}function ru(t,n){var e=-1,i=t.length;for(n||(n=r(i));++e<i;)n[e]=t[e];return n}function iu(t,n,e,r){var i=!e;e||(e={});for(var o=-1,a=n.length;++o<a;){var c=n[o],f=r?r(e[c],t[c],c,e,t):u;f===u&&(f=t[c]),i?jr(e,c,f):Ar(e,c,f)}return e}function uu(t,n){return function(e,r){var i=_a(e)?Xn:Pr,u=n?n():{};return i(e,t,zu(r,2),u)}}function ou(t){return Ei(function(n,e){var r=-1,i=e.length,o=i>1?e[i-1]:u,a=i>2?e[2]:u;for(o=t.length>3&&"function"==typeof o?(i--,o):u,a&&Xu(e[0],e[1],a)&&(o=i<3?u:o,i=1),n=nn(n);++r<i;){var c=e[r];c&&t(n,c,r,o)}return n})}function au(t,n){return function(e,r){if(null==e)return e;if(!ma(e))return t(e,r);for(var i=e.length,u=n?i:-1,o=nn(e);(n?u--:++u<i)&&!1!==r(o[u],u,o););return e}}function cu(t){return function(n,e,r){for(var i=-1,u=nn(n),o=r(n),a=o.length;a--;){var c=o[t?a:++i];if(!1===e(u[c],c,u))break}return n}}function fu(t){return function(n){var e=ke(n=Ha(n))?je(n):u,r=e?e[0]:n.charAt(0),i=e?Gi(e,1).join(""):n.slice(1);return r[t]()+i}}function su(t){return function(n){return ee(Ec(gc(n).replace(mn,"")),t,"")}}function lu(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=vr(t.prototype),r=t.apply(e,n);return Ta(r)?r:e}}function hu(t){return function(n,e,r){var i=nn(n);if(!ma(n)){var o=zu(e,3);n=ic(n),e=function(t){return o(i[t],t,i)}}var a=t(n,e,r);return a>-1?i[o?n[a]:a]:u}}function du(t){return Cu(function(n){var e=n.length,r=e,i=_r.prototype.thru;for(t&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new un(c);if(i&&!a&&"wrapper"==Ru(o))var a=new _r([],!0)}for(r=a?r:e;++r<e;){var f=Ru(o=n[r]),s="wrapper"==f?ju(o):u;a=s&&Gu(s[0])&&s[1]==(E|x|w|k)&&!s[4].length&&1==s[9]?a[Ru(s[0])].apply(a,s[3]):1==o.length&&Gu(o)?a[f]():a.thru(o)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&_a(r))return a.plant(r).value();for(var i=0,u=e?n[i].apply(this,t):r;++i<e;)u=n[i].call(this,u);return u}})}function pu(t,n,e,i,o,a,c,f,s,l){var h=n&E,d=n&_,p=n&y,v=n&(x|b),g=n&N,m=p?u:lu(t);return function _(){for(var y=arguments.length,x=r(y),b=y;b--;)x[b]=arguments[b];if(v)var w=Lu(_),M=function(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}(x,w);if(i&&(x=nu(x,i,o,v)),a&&(x=eu(x,a,c,v)),y-=M,v&&y<l){var E=Se(x,w);return bu(t,n,pu,_.placeholder,e,x,E,f,s,l-y)}var k=d?e:this,N=p?k[t]:t;return y=x.length,f?x=function(t,n){for(var e=t.length,r=Xe(n.length,e),i=ru(t);r--;){var o=n[r];t[r]=Vu(o,e)?i[o]:u}return t}(x,f):g&&y>1&&x.reverse(),h&&s<y&&(x.length=s),this&&this!==Rn&&this instanceof _&&(N=m||lu(N)),N.apply(k,x)}}function vu(t,n){return function(e,r){return function(t,n,e,r){return $r(t,function(t,i,u){n(r,e(t),i,u)}),r}(e,t,n(r),{})}}function gu(t,n){return function(e,r){var i;if(e===u&&r===u)return n;if(e!==u&&(i=e),r!==u){if(i===u)return r;"string"==typeof e||"string"==typeof r?(e=Ii(e),r=Ii(r)):(e=zi(e),r=zi(r)),i=t(e,r)}return i}}function _u(t){return Cu(function(n){return n=te(n,_e(zu())),Ei(function(e){var r=this;return t(n,function(t){return Vn(t,r,e)})})})}function yu(t,n){var e=(n=n===u?" ":Ii(n)).length;if(e<2)return e?Mi(n,t):n;var r=Mi(n,De(t/Oe(n)));return ke(n)?Gi(je(r),0,t).join(""):r.slice(0,t)}function mu(t){return function(n,e,i){return i&&"number"!=typeof i&&Xu(n,e,i)&&(e=i=u),n=qa(n),e===u?(e=n,n=0):e=qa(e),function(t,n,e,i){for(var u=-1,o=Ve(De((n-t)/(e||1)),0),a=r(o);o--;)a[i?o:++u]=t,t+=e;return a}(n,e,i=i===u?n<e?1:-1:qa(i),t)}}function xu(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=Ya(n),e=Ya(e)),t(n,e)}}function bu(t,n,e,r,i,o,a,c,f,s){var l=n&x;n|=l?w:M,(n&=~(l?M:w))&m||(n&=~(_|y));var h=[t,n,i,l?o:u,l?a:u,l?u:o,l?u:a,c,f,s],d=e.apply(u,h);return Gu(t)&&eo(d,h),d.placeholder=r,uo(d,t,n)}function wu(t){var n=tn[t];return function(t,e){if(t=Ya(t),e=null==e?0:Xe(Ba(e),292)){var r=(Ha(t)+"e").split("e");return+((r=(Ha(n(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return n(t)}}var Mu=nr&&1/Ce(new nr([,-0]))[1]==j?function(t){return new nr(t)}:Lc;function Eu(t){return function(n){var e=Fu(n);return e==Z?Ne(n):e==et?Pe(n):function(t,n){return te(n,function(n){return[n,t[n]]})}(n,t(n))}}function ku(t,n,e,i,o,a,f,s){var h=n&y;if(!h&&"function"!=typeof t)throw new un(c);var d=i?i.length:0;if(d||(n&=~(w|M),i=o=u),f=f===u?f:Ve(Ba(f),0),s=s===u?s:Ba(s),d-=o?o.length:0,n&M){var p=i,v=o;i=o=u}var g=h?u:ju(t),N=[t,n,e,i,o,p,v,a,f,s];if(g&&function(t,n){var e=t[1],r=n[1],i=e|r,u=i<(_|y|E),o=r==E&&e==x||r==E&&e==k&&t[7].length<=n[8]||r==(E|k)&&n[7].length<=n[8]&&e==x;if(!u&&!o)return t;r&_&&(t[2]=n[2],i|=e&_?0:m);var a=n[3];if(a){var c=t[3];t[3]=c?nu(c,a,n[4]):a,t[4]=c?Se(t[3],l):n[4]}(a=n[5])&&(c=t[5],t[5]=c?eu(c,a,n[6]):a,t[6]=c?Se(t[5],l):n[6]),(a=n[7])&&(t[7]=a),r&E&&(t[8]=null==t[8]?n[8]:Xe(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=i}(N,g),t=N[0],n=N[1],e=N[2],i=N[3],o=N[4],!(s=N[9]=N[9]===u?h?0:t.length:Ve(N[9]-d,0))&&n&(x|b)&&(n&=~(x|b)),n&&n!=_)T=n==x||n==b?function(t,n,e){var i=lu(t);return function o(){for(var a=arguments.length,c=r(a),f=a,s=Lu(o);f--;)c[f]=arguments[f];var l=a<3&&c[0]!==s&&c[a-1]!==s?[]:Se(c,s);return(a-=l.length)<e?bu(t,n,pu,o.placeholder,u,c,l,u,u,e-a):Vn(this&&this!==Rn&&this instanceof o?i:t,this,c)}}(t,n,s):n!=w&&n!=(_|w)||o.length?pu.apply(u,N):function(t,n,e,i){var u=n&_,o=lu(t);return function n(){for(var a=-1,c=arguments.length,f=-1,s=i.length,l=r(s+c),h=this&&this!==Rn&&this instanceof n?o:t;++f<s;)l[f]=i[f];for(;c--;)l[f++]=arguments[++a];return Vn(h,u?e:this,l)}}(t,n,e,i);else var T=function(t,n,e){var r=n&_,i=lu(t);return function n(){return(this&&this!==Rn&&this instanceof n?i:t).apply(r?e:this,arguments)}}(t,n,e);return uo((g?Si:eo)(T,N),t,n)}function Nu(t,n,e,r){return t===u||da(t,cn[e])&&!ln.call(r,e)?n:t}function Tu(t,n,e,r,i,o){return Ta(t)&&Ta(n)&&(o.set(n,t),gi(t,n,u,Tu,o),o.delete(n)),t}function Su(t){return Pa(t)?u:t}function Au(t,n,e,r,i,o){var a=e&v,c=t.length,f=n.length;if(c!=f&&!(a&&f>c))return!1;var s=o.get(t);if(s&&o.get(n))return s==n;var l=-1,h=!0,d=e&g?new wr:u;for(o.set(t,n),o.set(n,t);++l<c;){var p=t[l],_=n[l];if(r)var y=a?r(_,p,l,n,t,o):r(p,_,l,t,n,o);if(y!==u){if(y)continue;h=!1;break}if(d){if(!ie(n,function(t,n){if(!me(d,n)&&(p===t||i(p,t,e,r,o)))return d.push(n)})){h=!1;break}}else if(p!==_&&!i(p,_,e,r,o)){h=!1;break}}return o.delete(t),o.delete(n),h}function Cu(t){return io(to(t,u,yo),t+"")}function Pu(t){return Kr(t,ic,qu)}function Ou(t){return Kr(t,uc,Bu)}var ju=ir?function(t){return ir.get(t)}:Lc;function Ru(t){for(var n=t.name+"",e=ur[n],r=ln.call(ur,n)?e.length:0;r--;){var i=e[r],u=i.func;if(null==u||u==t)return i.name}return n}function Lu(t){return(ln.call(pr,"placeholder")?pr:t).placeholder}function zu(){var t=pr.iteratee||Pc;return t=t===Pc?fi:t,arguments.length?t(arguments[0],arguments[1]):t}function Iu(t,n){var e,r,i=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?i["string"==typeof n?"string":"hash"]:i.map}function Uu(t){for(var n=ic(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,Ku(i)]}return n}function Du(t,n){var e=function(t,n){return null==t?u:t[n]}(t,n);return ci(e)?e:u}var qu=Be?function(t){return null==t?[]:(t=nn(t),Qn(Be(t),function(n){return Ln.call(t,n)}))}:Fc,Bu=Be?function(t){for(var n=[];t;)ne(n,qu(t)),t=On(t);return n}:Fc,Fu=Jr;function Yu(t,n,e){for(var r=-1,i=(n=Xi(n,t)).length,u=!1;++r<i;){var o=fo(n[r]);if(!(u=null!=t&&e(t,o)))break;t=t[o]}return u||++r!=i?u:!!(i=null==t?0:t.length)&&Na(i)&&Vu(o,i)&&(_a(t)||ga(t))}function Wu(t){return"function"!=typeof t.constructor||Qu(t)?{}:vr(On(t))}function Hu(t){return _a(t)||ga(t)||!!(Un&&t&&t[Un])}function Vu(t,n){var e=typeof t;return!!(n=null==n?R:n)&&("number"==e||"symbol"!=e&&$t.test(t))&&t>-1&&t%1==0&&t<n}function Xu(t,n,e){if(!Ta(e))return!1;var r=typeof n;return!!("number"==r?ma(e)&&Vu(n,e.length):"string"==r&&n in e)&&da(e[n],t)}function $u(t,n){if(_a(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!La(t))||Ct.test(t)||!At.test(t)||null!=n&&t in nn(n)}function Gu(t){var n=Ru(t),e=pr[n];if("function"!=typeof e||!(n in yr.prototype))return!1;if(t===e)return!0;var r=ju(e);return!!r&&t===r[0]}(Ke&&Fu(new Ke(new ArrayBuffer(1)))!=ft||Je&&Fu(new Je)!=Z||tr&&"[object Promise]"!=Fu(tr.resolve())||nr&&Fu(new nr)!=et||er&&Fu(new er)!=ot)&&(Fu=function(t){var n=Jr(t),e=n==J?t.constructor:u,r=e?so(e):"";if(r)switch(r){case or:return ft;case ar:return Z;case cr:return"[object Promise]";case fr:return et;case sr:return ot}return n});var Zu=fn?Ea:Yc;function Qu(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||cn)}function Ku(t){return t==t&&!Ta(t)}function Ju(t,n){return function(e){return null!=e&&e[t]===n&&(n!==u||t in nn(e))}}function to(t,n,e){return n=Ve(n===u?t.length-1:n,0),function(){for(var i=arguments,u=-1,o=Ve(i.length-n,0),a=r(o);++u<o;)a[u]=i[n+u];u=-1;for(var c=r(n+1);++u<n;)c[u]=i[u];return c[n]=e(a),Vn(t,this,c)}}function no(t,n){return n.length<2?t:Qr(t,Pi(n,0,-1))}var eo=oo(Si),ro=Ue||function(t,n){return Rn.setTimeout(t,n)},io=oo(Ai);function uo(t,n,e){var r=n+"";return io(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(It,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return $n(q,function(e){var r="_."+e[0];n&e[1]&&!Kn(t,r)&&t.push(r)}),t.sort()}(function(t){var n=t.match(Ut);return n?n[1].split(Dt):[]}(r),e)))}function oo(t){var n=0,e=0;return function(){var r=$e(),i=C-(r-e);if(e=r,i>0){if(++n>=A)return arguments[0]}else n=0;return t.apply(u,arguments)}}function ao(t,n){var e=-1,r=t.length,i=r-1;for(n=n===u?r:n;++e<n;){var o=wi(e,i),a=t[o];t[o]=t[e],t[e]=a}return t.length=n,t}var co=function(t){var n=aa(t,function(t){return e.size===s&&e.clear(),t}),e=n.cache;return n}(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(Pt,function(t,e,r,i){n.push(r?i.replace(Bt,"$1"):e||t)}),n});function fo(t){if("string"==typeof t||La(t))return t;var n=t+"";return"0"==n&&1/t==-j?"-0":n}function so(t){if(null!=t){try{return sn.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function lo(t){if(t instanceof yr)return t.clone();var n=new _r(t.__wrapped__,t.__chain__);return n.__actions__=ru(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}var ho=Ei(function(t,n){return xa(t)?Dr(t,Hr(n,1,xa,!0)):[]}),po=Ei(function(t,n){var e=Mo(n);return xa(e)&&(e=u),xa(t)?Dr(t,Hr(n,1,xa,!0),zu(e,2)):[]}),vo=Ei(function(t,n){var e=Mo(n);return xa(e)&&(e=u),xa(t)?Dr(t,Hr(n,1,xa,!0),u,e):[]});function go(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:Ba(e);return i<0&&(i=Ve(r+i,0)),ae(t,zu(n,3),i)}function _o(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return e!==u&&(i=Ba(e),i=e<0?Ve(r+i,0):Xe(i,r-1)),ae(t,zu(n,3),i,!0)}function yo(t){return null!=t&&t.length?Hr(t,1):[]}function mo(t){return t&&t.length?t[0]:u}var xo=Ei(function(t){var n=te(t,Hi);return n.length&&n[0]===t[0]?ri(n):[]}),bo=Ei(function(t){var n=Mo(t),e=te(t,Hi);return n===Mo(e)?n=u:e.pop(),e.length&&e[0]===t[0]?ri(e,zu(n,2)):[]}),wo=Ei(function(t){var n=Mo(t),e=te(t,Hi);return(n="function"==typeof n?n:u)&&e.pop(),e.length&&e[0]===t[0]?ri(e,u,n):[]});function Mo(t){var n=null==t?0:t.length;return n?t[n-1]:u}var Eo=Ei(ko);function ko(t,n){return t&&t.length&&n&&n.length?xi(t,n):t}var No=Cu(function(t,n){var e=null==t?0:t.length,r=Rr(t,n);return bi(t,te(n,function(t){return Vu(t,e)?+t:t}).sort(tu)),r});function To(t){return null==t?t:Qe.call(t)}var So=Ei(function(t){return Ui(Hr(t,1,xa,!0))}),Ao=Ei(function(t){var n=Mo(t);return xa(n)&&(n=u),Ui(Hr(t,1,xa,!0),zu(n,2))}),Co=Ei(function(t){var n=Mo(t);return n="function"==typeof n?n:u,Ui(Hr(t,1,xa,!0),u,n)});function Po(t){if(!t||!t.length)return[];var n=0;return t=Qn(t,function(t){if(xa(t))return n=Ve(t.length,n),!0}),ge(n,function(n){return te(t,he(n))})}function Oo(t,n){if(!t||!t.length)return[];var e=Po(t);return null==n?e:te(e,function(t){return Vn(n,u,t)})}var jo=Ei(function(t,n){return xa(t)?Dr(t,n):[]}),Ro=Ei(function(t){return Yi(Qn(t,xa))}),Lo=Ei(function(t){var n=Mo(t);return xa(n)&&(n=u),Yi(Qn(t,xa),zu(n,2))}),zo=Ei(function(t){var n=Mo(t);return n="function"==typeof n?n:u,Yi(Qn(t,xa),u,n)}),Io=Ei(Po);var Uo=Ei(function(t){var n=t.length,e=n>1?t[n-1]:u;return Oo(t,e="function"==typeof e?(t.pop(),e):u)});function Do(t){var n=pr(t);return n.__chain__=!0,n}function qo(t,n){return n(t)}var Bo=Cu(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return Rr(n,t)};return!(n>1||this.__actions__.length)&&r instanceof yr&&Vu(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:qo,args:[i],thisArg:u}),new _r(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(u),t})):this.thru(i)});var Fo=uu(function(t,n,e){ln.call(t,e)?++t[e]:jr(t,e,1)});var Yo=hu(go),Wo=hu(_o);function Ho(t,n){return(_a(t)?$n:qr)(t,zu(n,3))}function Vo(t,n){return(_a(t)?Gn:Br)(t,zu(n,3))}var Xo=uu(function(t,n,e){ln.call(t,e)?t[e].push(n):jr(t,e,[n])});var $o=Ei(function(t,n,e){var i=-1,u="function"==typeof n,o=ma(t)?r(t.length):[];return qr(t,function(t){o[++i]=u?Vn(n,t,e):ii(t,n,e)}),o}),Go=uu(function(t,n,e){jr(t,e,n)});function Zo(t,n){return(_a(t)?te:di)(t,zu(n,3))}var Qo=uu(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]});var Ko=Ei(function(t,n){if(null==t)return[];var e=n.length;return e>1&&Xu(t,n[0],n[1])?n=[]:e>2&&Xu(n[0],n[1],n[2])&&(n=[n[0]]),yi(t,Hr(n,1),[])}),Jo=Ie||function(){return Rn.Date.now()};function ta(t,n,e){return n=e?u:n,n=t&&null==n?t.length:n,ku(t,E,u,u,u,u,n)}function na(t,n){var e;if("function"!=typeof n)throw new un(c);return t=Ba(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=u),e}}var ea=Ei(function(t,n,e){var r=_;if(e.length){var i=Se(e,Lu(ea));r|=w}return ku(t,r,n,e,i)}),ra=Ei(function(t,n,e){var r=_|y;if(e.length){var i=Se(e,Lu(ra));r|=w}return ku(n,r,t,e,i)});function ia(t,n,e){var r,i,o,a,f,s,l=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new un(c);function v(n){var e=r,o=i;return r=i=u,l=n,a=t.apply(o,e)}function g(t){var e=t-s;return s===u||e>=n||e<0||d&&t-l>=o}function _(){var t=Jo();if(g(t))return y(t);f=ro(_,function(t){var e=n-(t-s);return d?Xe(e,o-(t-l)):e}(t))}function y(t){return f=u,p&&r?v(t):(r=i=u,a)}function m(){var t=Jo(),e=g(t);if(r=arguments,i=this,s=t,e){if(f===u)return function(t){return l=t,f=ro(_,n),h?v(t):a}(s);if(d)return f=ro(_,n),v(s)}return f===u&&(f=ro(_,n)),a}return n=Ya(n)||0,Ta(e)&&(h=!!e.leading,o=(d="maxWait"in e)?Ve(Ya(e.maxWait)||0,n):o,p="trailing"in e?!!e.trailing:p),m.cancel=function(){f!==u&&Zi(f),l=0,r=s=i=f=u},m.flush=function(){return f===u?a:y(Jo())},m}var ua=Ei(function(t,n){return Ur(t,1,n)}),oa=Ei(function(t,n,e){return Ur(t,Ya(n)||0,e)});function aa(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new un(c);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var o=t.apply(this,r);return e.cache=u.set(i,o)||u,o};return e.cache=new(aa.Cache||br),e}function ca(t){if("function"!=typeof t)throw new un(c);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}aa.Cache=br;var fa=$i(function(t,n){var e=(n=1==n.length&&_a(n[0])?te(n[0],_e(zu())):te(Hr(n,1),_e(zu()))).length;return Ei(function(r){for(var i=-1,u=Xe(r.length,e);++i<u;)r[i]=n[i].call(this,r[i]);return Vn(t,this,r)})}),sa=Ei(function(t,n){var e=Se(n,Lu(sa));return ku(t,w,u,n,e)}),la=Ei(function(t,n){var e=Se(n,Lu(la));return ku(t,M,u,n,e)}),ha=Cu(function(t,n){return ku(t,k,u,u,u,n)});function da(t,n){return t===n||t!=t&&n!=n}var pa=xu(ti),va=xu(function(t,n){return t>=n}),ga=ui(function(){return arguments}())?ui:function(t){return Sa(t)&&ln.call(t,"callee")&&!Ln.call(t,"callee")},_a=r.isArray,ya=qn?_e(qn):function(t){return Sa(t)&&Jr(t)==ct};function ma(t){return null!=t&&Na(t.length)&&!Ea(t)}function xa(t){return Sa(t)&&ma(t)}var ba=Fe||Yc,wa=Bn?_e(Bn):function(t){return Sa(t)&&Jr(t)==H};function Ma(t){if(!Sa(t))return!1;var n=Jr(t);return n==X||n==V||"string"==typeof t.message&&"string"==typeof t.name&&!Pa(t)}function Ea(t){if(!Ta(t))return!1;var n=Jr(t);return n==$||n==G||n==Y||n==tt}function ka(t){return"number"==typeof t&&t==Ba(t)}function Na(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=R}function Ta(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Sa(t){return null!=t&&"object"==typeof t}var Aa=Fn?_e(Fn):function(t){return Sa(t)&&Fu(t)==Z};function Ca(t){return"number"==typeof t||Sa(t)&&Jr(t)==Q}function Pa(t){if(!Sa(t)||Jr(t)!=J)return!1;var n=On(t);if(null===n)return!0;var e=ln.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&sn.call(e)==vn}var Oa=Yn?_e(Yn):function(t){return Sa(t)&&Jr(t)==nt};var ja=Wn?_e(Wn):function(t){return Sa(t)&&Fu(t)==et};function Ra(t){return"string"==typeof t||!_a(t)&&Sa(t)&&Jr(t)==rt}function La(t){return"symbol"==typeof t||Sa(t)&&Jr(t)==it}var za=Hn?_e(Hn):function(t){return Sa(t)&&Na(t.length)&&!!Tn[Jr(t)]};var Ia=xu(hi),Ua=xu(function(t,n){return t<=n});function Da(t){if(!t)return[];if(ma(t))return Ra(t)?je(t):ru(t);if(Dn&&t[Dn])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Dn]());var n=Fu(t);return(n==Z?Ne:n==et?Ce:dc)(t)}function qa(t){return t?(t=Ya(t))===j||t===-j?(t<0?-1:1)*L:t==t?t:0:0===t?t:0}function Ba(t){var n=qa(t),e=n%1;return n==n?e?n-e:n:0}function Fa(t){return t?Lr(Ba(t),0,I):0}function Ya(t){if("number"==typeof t)return t;if(La(t))return z;if(Ta(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Ta(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Rt,"");var e=Ht.test(t);return e||Xt.test(t)?Pn(t.slice(2),e?2:8):Wt.test(t)?z:+t}function Wa(t){return iu(t,uc(t))}function Ha(t){return null==t?"":Ii(t)}var Va=ou(function(t,n){if(Qu(n)||ma(n))iu(n,ic(n),t);else for(var e in n)ln.call(n,e)&&Ar(t,e,n[e])}),Xa=ou(function(t,n){iu(n,uc(n),t)}),$a=ou(function(t,n,e,r){iu(n,uc(n),t,r)}),Ga=ou(function(t,n,e,r){iu(n,ic(n),t,r)}),Za=Cu(Rr);var Qa=Ei(function(t,n){t=nn(t);var e=-1,r=n.length,i=r>2?n[2]:u;for(i&&Xu(n[0],n[1],i)&&(r=1);++e<r;)for(var o=n[e],a=uc(o),c=-1,f=a.length;++c<f;){var s=a[c],l=t[s];(l===u||da(l,cn[s])&&!ln.call(t,s))&&(t[s]=o[s])}return t}),Ka=Ei(function(t){return t.push(u,Tu),Vn(ac,u,t)});function Ja(t,n,e){var r=null==t?u:Qr(t,n);return r===u?e:r}function tc(t,n){return null!=t&&Yu(t,n,ei)}var nc=vu(function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=pn.call(n)),t[n]=e},Tc(Cc)),ec=vu(function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=pn.call(n)),ln.call(t,n)?t[n].push(e):t[n]=[e]},zu),rc=Ei(ii);function ic(t){return ma(t)?Er(t):si(t)}function uc(t){return ma(t)?Er(t,!0):li(t)}var oc=ou(function(t,n,e){gi(t,n,e)}),ac=ou(function(t,n,e,r){gi(t,n,e,r)}),cc=Cu(function(t,n){var e={};if(null==t)return e;var r=!1;n=te(n,function(n){return n=Xi(n,t),r||(r=n.length>1),n}),iu(t,Ou(t),e),r&&(e=zr(e,h|d|p,Su));for(var i=n.length;i--;)Di(e,n[i]);return e});var fc=Cu(function(t,n){return null==t?{}:function(t,n){return mi(t,n,function(n,e){return tc(t,e)})}(t,n)});function sc(t,n){if(null==t)return{};var e=te(Ou(t),function(t){return[t]});return n=zu(n),mi(t,e,function(t,e){return n(t,e[0])})}var lc=Eu(ic),hc=Eu(uc);function dc(t){return null==t?[]:ye(t,ic(t))}var pc=su(function(t,n,e){return n=n.toLowerCase(),t+(e?vc(n):n)});function vc(t){return Mc(Ha(t).toLowerCase())}function gc(t){return(t=Ha(t))&&t.replace(Gt,we).replace(xn,"")}var _c=su(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),yc=su(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),mc=fu("toLowerCase");var xc=su(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()});var bc=su(function(t,n,e){return t+(e?" ":"")+Mc(n)});var wc=su(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),Mc=fu("toUpperCase");function Ec(t,n,e){return t=Ha(t),(n=e?u:n)===u?function(t){return En.test(t)}(t)?function(t){return t.match(wn)||[]}(t):function(t){return t.match(qt)||[]}(t):t.match(n)||[]}var kc=Ei(function(t,n){try{return Vn(t,u,n)}catch(t){return Ma(t)?t:new Kt(t)}}),Nc=Cu(function(t,n){return $n(n,function(n){n=fo(n),jr(t,n,ea(t[n],t))}),t});function Tc(t){return function(){return t}}var Sc=du(),Ac=du(!0);function Cc(t){return t}function Pc(t){return fi("function"==typeof t?t:zr(t,h))}var Oc=Ei(function(t,n){return function(e){return ii(e,t,n)}}),jc=Ei(function(t,n){return function(e){return ii(t,e,n)}});function Rc(t,n,e){var r=ic(n),i=Zr(n,r);null!=e||Ta(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=Zr(n,ic(n)));var u=!(Ta(e)&&"chain"in e&&!e.chain),o=Ea(t);return $n(i,function(e){var r=n[e];t[e]=r,o&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__);return(e.__actions__=ru(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,ne([this.value()],arguments))})}),t}function Lc(){}var zc=_u(te),Ic=_u(Zn),Uc=_u(ie);function Dc(t){return $u(t)?he(fo(t)):function(t){return function(n){return Qr(n,t)}}(t)}var qc=mu(),Bc=mu(!0);function Fc(){return[]}function Yc(){return!1}var Wc=gu(function(t,n){return t+n},0),Hc=wu("ceil"),Vc=gu(function(t,n){return t/n},1),Xc=wu("floor");var $c,Gc=gu(function(t,n){return t*n},1),Zc=wu("round"),Qc=gu(function(t,n){return t-n},0);return pr.after=function(t,n){if("function"!=typeof n)throw new un(c);return t=Ba(t),function(){if(--t<1)return n.apply(this,arguments)}},pr.ary=ta,pr.assign=Va,pr.assignIn=Xa,pr.assignInWith=$a,pr.assignWith=Ga,pr.at=Za,pr.before=na,pr.bind=ea,pr.bindAll=Nc,pr.bindKey=ra,pr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return _a(t)?t:[t]},pr.chain=Do,pr.chunk=function(t,n,e){n=(e?Xu(t,n,e):n===u)?1:Ve(Ba(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,a=0,c=r(De(i/n));o<i;)c[a++]=Pi(t,o,o+=n);return c},pr.compact=function(t){for(var n=-1,e=null==t?0:t.length,r=0,i=[];++n<e;){var u=t[n];u&&(i[r++]=u)}return i},pr.concat=function(){var t=arguments.length;if(!t)return[];for(var n=r(t-1),e=arguments[0],i=t;i--;)n[i-1]=arguments[i];return ne(_a(e)?ru(e):[e],Hr(n,1))},pr.cond=function(t){var n=null==t?0:t.length,e=zu();return t=n?te(t,function(t){if("function"!=typeof t[1])throw new un(c);return[e(t[0]),t[1]]}):[],Ei(function(e){for(var r=-1;++r<n;){var i=t[r];if(Vn(i[0],this,e))return Vn(i[1],this,e)}})},pr.conforms=function(t){return function(t){var n=ic(t);return function(e){return Ir(e,t,n)}}(zr(t,h))},pr.constant=Tc,pr.countBy=Fo,pr.create=function(t,n){var e=vr(t);return null==n?e:Or(e,n)},pr.curry=function t(n,e,r){var i=ku(n,x,u,u,u,u,u,e=r?u:e);return i.placeholder=t.placeholder,i},pr.curryRight=function t(n,e,r){var i=ku(n,b,u,u,u,u,u,e=r?u:e);return i.placeholder=t.placeholder,i},pr.debounce=ia,pr.defaults=Qa,pr.defaultsDeep=Ka,pr.defer=ua,pr.delay=oa,pr.difference=ho,pr.differenceBy=po,pr.differenceWith=vo,pr.drop=function(t,n,e){var r=null==t?0:t.length;return r?Pi(t,(n=e||n===u?1:Ba(n))<0?0:n,r):[]},pr.dropRight=function(t,n,e){var r=null==t?0:t.length;return r?Pi(t,0,(n=r-(n=e||n===u?1:Ba(n)))<0?0:n):[]},pr.dropRightWhile=function(t,n){return t&&t.length?Bi(t,zu(n,3),!0,!0):[]},pr.dropWhile=function(t,n){return t&&t.length?Bi(t,zu(n,3),!0):[]},pr.fill=function(t,n,e,r){var i=null==t?0:t.length;return i?(e&&"number"!=typeof e&&Xu(t,n,e)&&(e=0,r=i),function(t,n,e,r){var i=t.length;for((e=Ba(e))<0&&(e=-e>i?0:i+e),(r=r===u||r>i?i:Ba(r))<0&&(r+=i),r=e>r?0:Fa(r);e<r;)t[e++]=n;return t}(t,n,e,r)):[]},pr.filter=function(t,n){return(_a(t)?Qn:Wr)(t,zu(n,3))},pr.flatMap=function(t,n){return Hr(Zo(t,n),1)},pr.flatMapDeep=function(t,n){return Hr(Zo(t,n),j)},pr.flatMapDepth=function(t,n,e){return e=e===u?1:Ba(e),Hr(Zo(t,n),e)},pr.flatten=yo,pr.flattenDeep=function(t){return null!=t&&t.length?Hr(t,j):[]},pr.flattenDepth=function(t,n){return null!=t&&t.length?Hr(t,n=n===u?1:Ba(n)):[]},pr.flip=function(t){return ku(t,N)},pr.flow=Sc,pr.flowRight=Ac,pr.fromPairs=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r},pr.functions=function(t){return null==t?[]:Zr(t,ic(t))},pr.functionsIn=function(t){return null==t?[]:Zr(t,uc(t))},pr.groupBy=Xo,pr.initial=function(t){return null!=t&&t.length?Pi(t,0,-1):[]},pr.intersection=xo,pr.intersectionBy=bo,pr.intersectionWith=wo,pr.invert=nc,pr.invertBy=ec,pr.invokeMap=$o,pr.iteratee=Pc,pr.keyBy=Go,pr.keys=ic,pr.keysIn=uc,pr.map=Zo,pr.mapKeys=function(t,n){var e={};return n=zu(n,3),$r(t,function(t,r,i){jr(e,n(t,r,i),t)}),e},pr.mapValues=function(t,n){var e={};return n=zu(n,3),$r(t,function(t,r,i){jr(e,r,n(t,r,i))}),e},pr.matches=function(t){return pi(zr(t,h))},pr.matchesProperty=function(t,n){return vi(t,zr(n,h))},pr.memoize=aa,pr.merge=oc,pr.mergeWith=ac,pr.method=Oc,pr.methodOf=jc,pr.mixin=Rc,pr.negate=ca,pr.nthArg=function(t){return t=Ba(t),Ei(function(n){return _i(n,t)})},pr.omit=cc,pr.omitBy=function(t,n){return sc(t,ca(zu(n)))},pr.once=function(t){return na(2,t)},pr.orderBy=function(t,n,e,r){return null==t?[]:(_a(n)||(n=null==n?[]:[n]),_a(e=r?u:e)||(e=null==e?[]:[e]),yi(t,n,e))},pr.over=zc,pr.overArgs=fa,pr.overEvery=Ic,pr.overSome=Uc,pr.partial=sa,pr.partialRight=la,pr.partition=Qo,pr.pick=fc,pr.pickBy=sc,pr.property=Dc,pr.propertyOf=function(t){return function(n){return null==t?u:Qr(t,n)}},pr.pull=Eo,pr.pullAll=ko,pr.pullAllBy=function(t,n,e){return t&&t.length&&n&&n.length?xi(t,n,zu(e,2)):t},pr.pullAllWith=function(t,n,e){return t&&t.length&&n&&n.length?xi(t,n,u,e):t},pr.pullAt=No,pr.range=qc,pr.rangeRight=Bc,pr.rearg=ha,pr.reject=function(t,n){return(_a(t)?Qn:Wr)(t,ca(zu(n,3)))},pr.remove=function(t,n){var e=[];if(!t||!t.length)return e;var r=-1,i=[],u=t.length;for(n=zu(n,3);++r<u;){var o=t[r];n(o,r,t)&&(e.push(o),i.push(r))}return bi(t,i),e},pr.rest=function(t,n){if("function"!=typeof t)throw new un(c);return Ei(t,n=n===u?n:Ba(n))},pr.reverse=To,pr.sampleSize=function(t,n,e){return n=(e?Xu(t,n,e):n===u)?1:Ba(n),(_a(t)?Nr:Ni)(t,n)},pr.set=function(t,n,e){return null==t?t:Ti(t,n,e)},pr.setWith=function(t,n,e,r){return r="function"==typeof r?r:u,null==t?t:Ti(t,n,e,r)},pr.shuffle=function(t){return(_a(t)?Tr:Ci)(t)},pr.slice=function(t,n,e){var r=null==t?0:t.length;return r?(e&&"number"!=typeof e&&Xu(t,n,e)?(n=0,e=r):(n=null==n?0:Ba(n),e=e===u?r:Ba(e)),Pi(t,n,e)):[]},pr.sortBy=Ko,pr.sortedUniq=function(t){return t&&t.length?Li(t):[]},pr.sortedUniqBy=function(t,n){return t&&t.length?Li(t,zu(n,2)):[]},pr.split=function(t,n,e){return e&&"number"!=typeof e&&Xu(t,n,e)&&(n=e=u),(e=e===u?I:e>>>0)?(t=Ha(t))&&("string"==typeof n||null!=n&&!Oa(n))&&!(n=Ii(n))&&ke(t)?Gi(je(t),0,e):t.split(n,e):[]},pr.spread=function(t,n){if("function"!=typeof t)throw new un(c);return n=null==n?0:Ve(Ba(n),0),Ei(function(e){var r=e[n],i=Gi(e,0,n);return r&&ne(i,r),Vn(t,this,i)})},pr.tail=function(t){var n=null==t?0:t.length;return n?Pi(t,1,n):[]},pr.take=function(t,n,e){return t&&t.length?Pi(t,0,(n=e||n===u?1:Ba(n))<0?0:n):[]},pr.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?Pi(t,(n=r-(n=e||n===u?1:Ba(n)))<0?0:n,r):[]},pr.takeRightWhile=function(t,n){return t&&t.length?Bi(t,zu(n,3),!1,!0):[]},pr.takeWhile=function(t,n){return t&&t.length?Bi(t,zu(n,3)):[]},pr.tap=function(t,n){return n(t),t},pr.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new un(c);return Ta(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),ia(t,n,{leading:r,maxWait:n,trailing:i})},pr.thru=qo,pr.toArray=Da,pr.toPairs=lc,pr.toPairsIn=hc,pr.toPath=function(t){return _a(t)?te(t,fo):La(t)?[t]:ru(co(Ha(t)))},pr.toPlainObject=Wa,pr.transform=function(t,n,e){var r=_a(t),i=r||ba(t)||za(t);if(n=zu(n,4),null==e){var u=t&&t.constructor;e=i?r?new u:[]:Ta(t)&&Ea(u)?vr(On(t)):{}}return(i?$n:$r)(t,function(t,r,i){return n(e,t,r,i)}),e},pr.unary=function(t){return ta(t,1)},pr.union=So,pr.unionBy=Ao,pr.unionWith=Co,pr.uniq=function(t){return t&&t.length?Ui(t):[]},pr.uniqBy=function(t,n){return t&&t.length?Ui(t,zu(n,2)):[]},pr.uniqWith=function(t,n){return n="function"==typeof n?n:u,t&&t.length?Ui(t,u,n):[]},pr.unset=function(t,n){return null==t||Di(t,n)},pr.unzip=Po,pr.unzipWith=Oo,pr.update=function(t,n,e){return null==t?t:qi(t,n,Vi(e))},pr.updateWith=function(t,n,e,r){return r="function"==typeof r?r:u,null==t?t:qi(t,n,Vi(e),r)},pr.values=dc,pr.valuesIn=function(t){return null==t?[]:ye(t,uc(t))},pr.without=jo,pr.words=Ec,pr.wrap=function(t,n){return sa(Vi(n),t)},pr.xor=Ro,pr.xorBy=Lo,pr.xorWith=zo,pr.zip=Io,pr.zipObject=function(t,n){return Wi(t||[],n||[],Ar)},pr.zipObjectDeep=function(t,n){return Wi(t||[],n||[],Ti)},pr.zipWith=Uo,pr.entries=lc,pr.entriesIn=hc,pr.extend=Xa,pr.extendWith=$a,Rc(pr,pr),pr.add=Wc,pr.attempt=kc,pr.camelCase=pc,pr.capitalize=vc,pr.ceil=Hc,pr.clamp=function(t,n,e){return e===u&&(e=n,n=u),e!==u&&(e=(e=Ya(e))==e?e:0),n!==u&&(n=(n=Ya(n))==n?n:0),Lr(Ya(t),n,e)},pr.clone=function(t){return zr(t,p)},pr.cloneDeep=function(t){return zr(t,h|p)},pr.cloneDeepWith=function(t,n){return zr(t,h|p,n="function"==typeof n?n:u)},pr.cloneWith=function(t,n){return zr(t,p,n="function"==typeof n?n:u)},pr.conformsTo=function(t,n){return null==n||Ir(t,n,ic(n))},pr.deburr=gc,pr.defaultTo=function(t,n){return null==t||t!=t?n:t},pr.divide=Vc,pr.endsWith=function(t,n,e){t=Ha(t),n=Ii(n);var r=t.length,i=e=e===u?r:Lr(Ba(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},pr.eq=da,pr.escape=function(t){return(t=Ha(t))&&kt.test(t)?t.replace(Mt,Me):t},pr.escapeRegExp=function(t){return(t=Ha(t))&&jt.test(t)?t.replace(Ot,"\\$&"):t},pr.every=function(t,n,e){var r=_a(t)?Zn:Fr;return e&&Xu(t,n,e)&&(n=u),r(t,zu(n,3))},pr.find=Yo,pr.findIndex=go,pr.findKey=function(t,n){return oe(t,zu(n,3),$r)},pr.findLast=Wo,pr.findLastIndex=_o,pr.findLastKey=function(t,n){return oe(t,zu(n,3),Gr)},pr.floor=Xc,pr.forEach=Ho,pr.forEachRight=Vo,pr.forIn=function(t,n){return null==t?t:Vr(t,zu(n,3),uc)},pr.forInRight=function(t,n){return null==t?t:Xr(t,zu(n,3),uc)},pr.forOwn=function(t,n){return t&&$r(t,zu(n,3))},pr.forOwnRight=function(t,n){return t&&Gr(t,zu(n,3))},pr.get=Ja,pr.gt=pa,pr.gte=va,pr.has=function(t,n){return null!=t&&Yu(t,n,ni)},pr.hasIn=tc,pr.head=mo,pr.identity=Cc,pr.includes=function(t,n,e,r){t=ma(t)?t:dc(t),e=e&&!r?Ba(e):0;var i=t.length;return e<0&&(e=Ve(i+e,0)),Ra(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&ce(t,n,e)>-1},pr.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:Ba(e);return i<0&&(i=Ve(r+i,0)),ce(t,n,i)},pr.inRange=function(t,n,e){return n=qa(n),e===u?(e=n,n=0):e=qa(e),function(t,n,e){return t>=Xe(n,e)&&t<Ve(n,e)}(t=Ya(t),n,e)},pr.invoke=rc,pr.isArguments=ga,pr.isArray=_a,pr.isArrayBuffer=ya,pr.isArrayLike=ma,pr.isArrayLikeObject=xa,pr.isBoolean=function(t){return!0===t||!1===t||Sa(t)&&Jr(t)==W},pr.isBuffer=ba,pr.isDate=wa,pr.isElement=function(t){return Sa(t)&&1===t.nodeType&&!Pa(t)},pr.isEmpty=function(t){if(null==t)return!0;if(ma(t)&&(_a(t)||"string"==typeof t||"function"==typeof t.splice||ba(t)||za(t)||ga(t)))return!t.length;var n=Fu(t);if(n==Z||n==et)return!t.size;if(Qu(t))return!si(t).length;for(var e in t)if(ln.call(t,e))return!1;return!0},pr.isEqual=function(t,n){return oi(t,n)},pr.isEqualWith=function(t,n,e){var r=(e="function"==typeof e?e:u)?e(t,n):u;return r===u?oi(t,n,u,e):!!r},pr.isError=Ma,pr.isFinite=function(t){return"number"==typeof t&&Ye(t)},pr.isFunction=Ea,pr.isInteger=ka,pr.isLength=Na,pr.isMap=Aa,pr.isMatch=function(t,n){return t===n||ai(t,n,Uu(n))},pr.isMatchWith=function(t,n,e){return e="function"==typeof e?e:u,ai(t,n,Uu(n),e)},pr.isNaN=function(t){return Ca(t)&&t!=+t},pr.isNative=function(t){if(Zu(t))throw new Kt(a);return ci(t)},pr.isNil=function(t){return null==t},pr.isNull=function(t){return null===t},pr.isNumber=Ca,pr.isObject=Ta,pr.isObjectLike=Sa,pr.isPlainObject=Pa,pr.isRegExp=Oa,pr.isSafeInteger=function(t){return ka(t)&&t>=-R&&t<=R},pr.isSet=ja,pr.isString=Ra,pr.isSymbol=La,pr.isTypedArray=za,pr.isUndefined=function(t){return t===u},pr.isWeakMap=function(t){return Sa(t)&&Fu(t)==ot},pr.isWeakSet=function(t){return Sa(t)&&Jr(t)==at},pr.join=function(t,n){return null==t?"":We.call(t,n)},pr.kebabCase=_c,pr.last=Mo,pr.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return e!==u&&(i=(i=Ba(e))<0?Ve(r+i,0):Xe(i,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):ae(t,se,i,!0)},pr.lowerCase=yc,pr.lowerFirst=mc,pr.lt=Ia,pr.lte=Ua,pr.max=function(t){return t&&t.length?Yr(t,Cc,ti):u},pr.maxBy=function(t,n){return t&&t.length?Yr(t,zu(n,2),ti):u},pr.mean=function(t){return le(t,Cc)},pr.meanBy=function(t,n){return le(t,zu(n,2))},pr.min=function(t){return t&&t.length?Yr(t,Cc,hi):u},pr.minBy=function(t,n){return t&&t.length?Yr(t,zu(n,2),hi):u},pr.stubArray=Fc,pr.stubFalse=Yc,pr.stubObject=function(){return{}},pr.stubString=function(){return""},pr.stubTrue=function(){return!0},pr.multiply=Gc,pr.nth=function(t,n){return t&&t.length?_i(t,Ba(n)):u},pr.noConflict=function(){return Rn._===this&&(Rn._=gn),this},pr.noop=Lc,pr.now=Jo,pr.pad=function(t,n,e){t=Ha(t);var r=(n=Ba(n))?Oe(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return yu(qe(i),e)+t+yu(De(i),e)},pr.padEnd=function(t,n,e){t=Ha(t);var r=(n=Ba(n))?Oe(t):0;return n&&r<n?t+yu(n-r,e):t},pr.padStart=function(t,n,e){t=Ha(t);var r=(n=Ba(n))?Oe(t):0;return n&&r<n?yu(n-r,e)+t:t},pr.parseInt=function(t,n,e){return e||null==n?n=0:n&&(n=+n),Ge(Ha(t).replace(Lt,""),n||0)},pr.random=function(t,n,e){if(e&&"boolean"!=typeof e&&Xu(t,n,e)&&(n=e=u),e===u&&("boolean"==typeof n?(e=n,n=u):"boolean"==typeof t&&(e=t,t=u)),t===u&&n===u?(t=0,n=1):(t=qa(t),n===u?(n=t,t=0):n=qa(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var i=Ze();return Xe(t+i*(n-t+Cn("1e-"+((i+"").length-1))),n)}return wi(t,n)},pr.reduce=function(t,n,e){var r=_a(t)?ee:pe,i=arguments.length<3;return r(t,zu(n,4),e,i,qr)},pr.reduceRight=function(t,n,e){var r=_a(t)?re:pe,i=arguments.length<3;return r(t,zu(n,4),e,i,Br)},pr.repeat=function(t,n,e){return n=(e?Xu(t,n,e):n===u)?1:Ba(n),Mi(Ha(t),n)},pr.replace=function(){var t=arguments,n=Ha(t[0]);return t.length<3?n:n.replace(t[1],t[2])},pr.result=function(t,n,e){var r=-1,i=(n=Xi(n,t)).length;for(i||(i=1,t=u);++r<i;){var o=null==t?u:t[fo(n[r])];o===u&&(r=i,o=e),t=Ea(o)?o.call(t):o}return t},pr.round=Zc,pr.runInContext=t,pr.sample=function(t){return(_a(t)?kr:ki)(t)},pr.size=function(t){if(null==t)return 0;if(ma(t))return Ra(t)?Oe(t):t.length;var n=Fu(t);return n==Z||n==et?t.size:si(t).length},pr.snakeCase=xc,pr.some=function(t,n,e){var r=_a(t)?ie:Oi;return e&&Xu(t,n,e)&&(n=u),r(t,zu(n,3))},pr.sortedIndex=function(t,n){return ji(t,n)},pr.sortedIndexBy=function(t,n,e){return Ri(t,n,zu(e,2))},pr.sortedIndexOf=function(t,n){var e=null==t?0:t.length;if(e){var r=ji(t,n);if(r<e&&da(t[r],n))return r}return-1},pr.sortedLastIndex=function(t,n){return ji(t,n,!0)},pr.sortedLastIndexBy=function(t,n,e){return Ri(t,n,zu(e,2),!0)},pr.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var e=ji(t,n,!0)-1;if(da(t[e],n))return e}return-1},pr.startCase=bc,pr.startsWith=function(t,n,e){return t=Ha(t),e=null==e?0:Lr(Ba(e),0,t.length),n=Ii(n),t.slice(e,e+n.length)==n},pr.subtract=Qc,pr.sum=function(t){return t&&t.length?ve(t,Cc):0},pr.sumBy=function(t,n){return t&&t.length?ve(t,zu(n,2)):0},pr.template=function(t,n,e){var r=pr.templateSettings;e&&Xu(t,n,e)&&(n=u),t=Ha(t),n=$a({},n,r,Nu);var i,o,a=$a({},n.imports,r.imports,Nu),c=ic(a),f=ye(a,c),s=0,l=n.interpolate||Zt,h="__p += '",d=en((n.escape||Zt).source+"|"+l.source+"|"+(l===St?Ft:Zt).source+"|"+(n.evaluate||Zt).source+"|$","g"),p="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Nn+"]")+"\n";t.replace(d,function(n,e,r,u,a,c){return r||(r=u),h+=t.slice(s,c).replace(Qt,Ee),e&&(i=!0,h+="' +\n__e("+e+") +\n'"),a&&(o=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+n.length,n}),h+="';\n";var v=n.variable;v||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(mt,""):h).replace(xt,"$1").replace(bt,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=kc(function(){return Jt(c,p+"return "+h).apply(u,f)});if(g.source=h,Ma(g))throw g;return g},pr.times=function(t,n){if((t=Ba(t))<1||t>R)return[];var e=I,r=Xe(t,I);n=zu(n),t-=I;for(var i=ge(r,n);++e<t;)n(e);return i},pr.toFinite=qa,pr.toInteger=Ba,pr.toLength=Fa,pr.toLower=function(t){return Ha(t).toLowerCase()},pr.toNumber=Ya,pr.toSafeInteger=function(t){return t?Lr(Ba(t),-R,R):0===t?t:0},pr.toString=Ha,pr.toUpper=function(t){return Ha(t).toUpperCase()},pr.trim=function(t,n,e){if((t=Ha(t))&&(e||n===u))return t.replace(Rt,"");if(!t||!(n=Ii(n)))return t;var r=je(t),i=je(n);return Gi(r,xe(r,i),be(r,i)+1).join("")},pr.trimEnd=function(t,n,e){if((t=Ha(t))&&(e||n===u))return t.replace(zt,"");if(!t||!(n=Ii(n)))return t;var r=je(t);return Gi(r,0,be(r,je(n))+1).join("")},pr.trimStart=function(t,n,e){if((t=Ha(t))&&(e||n===u))return t.replace(Lt,"");if(!t||!(n=Ii(n)))return t;var r=je(t);return Gi(r,xe(r,je(n))).join("")},pr.truncate=function(t,n){var e=T,r=S;if(Ta(n)){var i="separator"in n?n.separator:i;e="length"in n?Ba(n.length):e,r="omission"in n?Ii(n.omission):r}var o=(t=Ha(t)).length;if(ke(t)){var a=je(t);o=a.length}if(e>=o)return t;var c=e-Oe(r);if(c<1)return r;var f=a?Gi(a,0,c).join(""):t.slice(0,c);if(i===u)return f+r;if(a&&(c+=f.length-c),Oa(i)){if(t.slice(c).search(i)){var s,l=f;for(i.global||(i=en(i.source,Ha(Yt.exec(i))+"g")),i.lastIndex=0;s=i.exec(l);)var h=s.index;f=f.slice(0,h===u?c:h)}}else if(t.indexOf(Ii(i),c)!=c){var d=f.lastIndexOf(i);d>-1&&(f=f.slice(0,d))}return f+r},pr.unescape=function(t){return(t=Ha(t))&&Et.test(t)?t.replace(wt,Re):t},pr.uniqueId=function(t){var n=++hn;return Ha(t)+n},pr.upperCase=wc,pr.upperFirst=Mc,pr.each=Ho,pr.eachRight=Vo,pr.first=mo,Rc(pr,($c={},$r(pr,function(t,n){ln.call(pr.prototype,n)||($c[n]=t)}),$c),{chain:!1}),pr.VERSION="4.17.5",$n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){pr[t].placeholder=pr}),$n(["drop","take"],function(t,n){yr.prototype[t]=function(e){e=e===u?1:Ve(Ba(e),0);var r=this.__filtered__&&!n?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Xe(e,r.__takeCount__):r.__views__.push({size:Xe(e,I),type:t+(r.__dir__<0?"Right":"")}),r},yr.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),$n(["filter","map","takeWhile"],function(t,n){var e=n+1,r=e==P||3==e;yr.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:zu(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),$n(["head","last"],function(t,n){var e="take"+(n?"Right":"");yr.prototype[t]=function(){return this[e](1).value()[0]}}),$n(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");yr.prototype[t]=function(){return this.__filtered__?new yr(this):this[e](1)}}),yr.prototype.compact=function(){return this.filter(Cc)},yr.prototype.find=function(t){return this.filter(t).head()},yr.prototype.findLast=function(t){return this.reverse().find(t)},yr.prototype.invokeMap=Ei(function(t,n){return"function"==typeof t?new yr(this):this.map(function(e){return ii(e,t,n)})}),yr.prototype.reject=function(t){return this.filter(ca(zu(t)))},yr.prototype.slice=function(t,n){t=Ba(t);var e=this;return e.__filtered__&&(t>0||n<0)?new yr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==u&&(e=(n=Ba(n))<0?e.dropRight(-n):e.take(n-t)),e)},yr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},yr.prototype.toArray=function(){return this.take(I)},$r(yr.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=pr[r?"take"+("last"==n?"Right":""):n],o=r||/^find/.test(n);i&&(pr.prototype[n]=function(){var n=this.__wrapped__,a=r?[1]:arguments,c=n instanceof yr,f=a[0],s=c||_a(n),l=function(t){var n=i.apply(pr,ne([t],a));return r&&h?n[0]:n};s&&e&&"function"==typeof f&&1!=f.length&&(c=s=!1);var h=this.__chain__,d=!!this.__actions__.length,p=o&&!h,v=c&&!d;if(!o&&s){n=v?n:new yr(this);var g=t.apply(n,a);return g.__actions__.push({func:qo,args:[l],thisArg:u}),new _r(g,h)}return p&&v?t.apply(this,a):(g=this.thru(l),p?r?g.value()[0]:g.value():g)})}),$n(["pop","push","shift","sort","splice","unshift"],function(t){var n=on[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);pr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(_a(i)?i:[],t)}return this[e](function(e){return n.apply(_a(e)?e:[],t)})}}),$r(yr.prototype,function(t,n){var e=pr[n];if(e){var r=e.name+"";(ur[r]||(ur[r]=[])).push({name:n,func:e})}}),ur[pu(u,y).name]=[{name:"wrapper",func:u}],yr.prototype.clone=function(){var t=new yr(this.__wrapped__);return t.__actions__=ru(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ru(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ru(this.__views__),t},yr.prototype.reverse=function(){if(this.__filtered__){var t=new yr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},yr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=_a(t),r=n<0,i=e?t.length:0,u=function(t,n,e){for(var r=-1,i=e.length;++r<i;){var u=e[r],o=u.size;switch(u.type){case"drop":t+=o;break;case"dropRight":n-=o;break;case"take":n=Xe(n,t+o);break;case"takeRight":t=Ve(t,n-o)}}return{start:t,end:n}}(0,i,this.__views__),o=u.start,a=u.end,c=a-o,f=r?a:o-1,s=this.__iteratees__,l=s.length,h=0,d=Xe(c,this.__takeCount__);if(!e||!r&&i==c&&d==c)return Fi(t,this.__actions__);var p=[];t:for(;c--&&h<d;){for(var v=-1,g=t[f+=n];++v<l;){var _=s[v],y=_.iteratee,m=_.type,x=y(g);if(m==O)g=x;else if(!x){if(m==P)continue t;break t}}p[h++]=g}return p},pr.prototype.at=Bo,pr.prototype.chain=function(){return Do(this)},pr.prototype.commit=function(){return new _r(this.value(),this.__chain__)},pr.prototype.next=function(){this.__values__===u&&(this.__values__=Da(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?u:this.__values__[this.__index__++]}},pr.prototype.plant=function(t){for(var n,e=this;e instanceof gr;){var r=lo(e);r.__index__=0,r.__values__=u,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},pr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof yr){var n=t;return this.__actions__.length&&(n=new yr(this)),(n=n.reverse()).__actions__.push({func:qo,args:[To],thisArg:u}),new _r(n,this.__chain__)}return this.thru(To)},pr.prototype.toJSON=pr.prototype.valueOf=pr.prototype.value=function(){return Fi(this.__wrapped__,this.__actions__)},pr.prototype.first=pr.prototype.head,Dn&&(pr.prototype[Dn]=function(){return this}),pr}();Rn._=Le,(i=function(){return Le}.call(n,e,n,r))===u||(r.exports=i)}).call(this)}).call(this,e(41),e(40)(t))},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=o(e(23)),i=o(e(22)),u=o(e(21));function o(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,n,e){var o=n.label,a=t.append("g");"svg"===n.labelType?(0,u.default)(a,n):"string"!=typeof o||"html"===n.labelType?(0,i.default)(a,n):(0,r.default)(a,n);var c=a.node().getBBox(),f=void 0;switch(e){case"top":f=-n.height/2;break;case"bottom":f=n.height/2-c.height;break;default:f=-c.height/2}return a.attr("transform","translate("+-c.width/2+","+f+")"),a}},function(t,n,e){const r=e(1);t.exports=a;const i="\0",u="\0",o="";function a(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[u]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function c(t,n){t[n]?t[n]++:t[n]=1}function f(t,n){--t[n]||delete t[n]}function s(t,n,e,u){var a=""+n,c=""+e;if(!t&&a>c){var f=a;a=c,c=f}return a+o+c+o+(r.isUndefined(u)?i:u)}function l(t,n){return s(t,n.v,n.w,n.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(t){return this._label=t,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(n){return r.isEmpty(t._in[n])})},a.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(n){return r.isEmpty(t._out[n])})},a.prototype.setNodes=function(t,n){var e=arguments,i=this;return r.each(t,function(t){e.length>1?i.setNode(t,n):i.setNode(t)}),this},a.prototype.setNode=function(t,n){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=u,this._children[t]={},this._children[u][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},a.prototype.node=function(t){return this._nodes[t]},a.prototype.hasNode=function(t){return r.has(this._nodes,t)},a.prototype.removeNode=function(t){var n=this;if(r.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){n.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},a.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(n))n=u;else{for(var e=n+="";!r.isUndefined(e);e=this.parent(e))if(e===t)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},a.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},a.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==u)return n}},a.prototype.children=function(t){if(r.isUndefined(t)&&(t=u),this._isCompound){var n=this._children[t];if(n)return r.keys(n)}else{if(t===u)return this.nodes();if(this.hasNode(t))return[]}},a.prototype.predecessors=function(t){var n=this._preds[t];if(n)return r.keys(n)},a.prototype.successors=function(t){var n=this._sucs[t];if(n)return r.keys(n)},a.prototype.neighbors=function(t){var n=this.predecessors(t);if(n)return r.union(n,this.successors(t))},a.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},a.prototype.filterNodes=function(t){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var e=this;r.each(this._nodes,function(e,r){t(r)&&n.setNode(r,e)}),r.each(this._edgeObjs,function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,e.edge(t))});var i={};return this._isCompound&&r.each(n.nodes(),function(t){n.setParent(t,function t(r){var u=e.parent(r);return void 0===u||n.hasNode(u)?(i[r]=u,u):u in i?i[u]:t(u)}(t))}),n},a.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(t,n){const e=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?e.setEdge(t,r,n):e.setEdge(t,r),r}),this},a.prototype.setEdge=function(){let t,n,e,i,u=!1;const o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,n=o.w,e=o.name,2===arguments.length&&(i=arguments[1],u=!0)):(t=o,n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],u=!0)),t=""+t,n=""+n,r.isUndefined(e)||(e=""+e);var a=s(this._isDirected,t,n,e);if(r.has(this._edgeLabels,a))return u&&(this._edgeLabels[a]=i),this;if(!r.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[a]=u?i:this._defaultEdgeLabelFn(t,n,e);var f=function(t,n,e,r){var i=""+n,u=""+e;if(!t&&i>u){var o=i;i=u,u=o}var a={v:i,w:u};r&&(a.name=r);return a}(this._isDirected,t,n,e);return t=f.v,n=f.w,Object.freeze(f),this._edgeObjs[a]=f,c(this._preds[n],t),c(this._sucs[t],n),this._in[n][a]=f,this._out[t][a]=f,this._edgeCount++,this},a.prototype.edge=function(t,n,e){var r=1===arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,t,n,e);return this._edgeLabels[r]},a.prototype.hasEdge=function(t,n,e){var i=1===arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,t,n,e);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(t,n,e){const r=1===arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,t,n,e),i=this._edgeObjs[r];return i&&(t=i.v,n=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],f(this._preds[n],t),f(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},a.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var i=r.values(e);return n?r.filter(i,function(t){return t.v===n}):i}},a.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var i=r.values(e);return n?r.filter(i,function(t){return t.w===n}):i}},a.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);if(e)return e.concat(this.outEdges(t,n))}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,n,e,r){var i=t.x,u=t.y,o=i-r.x,a=u-r.y,c=Math.sqrt(n*n*a*a+e*e*o*o),f=Math.abs(n*e*o/c);r.x<i&&(f=-f);var s=Math.abs(n*e*a/c);return r.y<u&&(s=-s),{x:i+f,y:u+s}}},function(t,n,e){var r=e(1);t.exports=function(t,n,e){r.isArray(n)||(n=[n]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t);const u=[],o={};return r.each(n,function(n){if(!t.hasNode(n))throw new Error("Graph does not have node: "+n);!function t(n,e,i,u,o,a){r.has(u,e)||(u[e]=!0,i||a.push(e),r.each(o(e),function(e){t(n,e,i,u,o,a)}),i&&a.push(e))}(t,n,"post"===e,o,i,u)}),u}},function(t,n,e){const r=e(1);function i(t){const n={},e={},i=[];if(r.each(t.sinks(),function o(a){if(r.has(e,a))throw new u;r.has(n,a)||(e[a]=!0,n[a]=!0,r.each(t.predecessors(a),o),delete e[a],i.push(a))}),r.size(n)!==t.nodeCount())throw new u;return i}function u(){}t.exports=i,i.CycleException=u,u.prototype=new Error},function(t,n,e){var r=e(1);t.exports=function(t){let n=0;const e=[],i={},u=[];return t.nodes().forEach(function(o){r.has(i,o)||function o(a){var c=i[a]={onStack:!0,lowlink:n,index:n++};if(e.push(a),t.successors(a).forEach(function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(o(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))}),c.lowlink===c.index){const t=[];let n;do{n=e.pop(),i[n].onStack=!1,t.push(n)}while(a!==n);u.push(t)}}(o)}),u}},function(t,n,e){const r=e(1);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var n=this._keyIndices[t];if(void 0!==n)return this._arr[n].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,u=i.length;return e[t]=u,i.push({key:t,priority:n}),this._decrease(u),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[e].priority+" New: "+n);this._arr[e].priority=n,this._decrease(e)},i.prototype._heapify=function(t){const n=this._arr,e=2*t,r=e+1;let i=t;e<n.length&&(i=n[e].priority<n[i].priority?e:i,r<n.length&&(i=n[r].priority<n[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var n,e=this._arr,r=e[t].priority;0!==t&&!(e[n=t>>1].priority<r);)this._swap(t,n),t=n},i.prototype._swap=function(t,n){var e=this._arr,r=this._keyIndices,i=e[t],u=e[n];e[t]=u,e[n]=i,r[u.key]=t,r[i.key]=n}},function(t,n,e){const r=e(1),i=e(10);t.exports=function(t,n,e,r){return function(t,n,e,r){const u={},o=new i;let a,c;var f=function(t){const n=t.v!==a?t.v:t.w,r=u[n],i=e(t),f=c.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);f<r.distance&&(r.distance=f,r.predecessor=a,o.decrease(n,f))};t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;u[t]={distance:e},o.add(t,e)});for(;o.size()>0&&(a=o.removeMin(),(c=u[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(f);return u}(t,String(n),e||u,r||function(n){return t.outEdges(n)})};var u=r.constant(1)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,n){var e=t.x,r=t.y,i=n.x-e,u=n.y-r,o=t.width/2,a=t.height/2,c=void 0,f=void 0;return Math.abs(u)*o>Math.abs(i)*a?(u<0&&(a=-a),c=0===u?0:a*i/u,f=a):(i<0&&(o=-o),c=o,f=0===i?0:o*u/i),{x:e+c,y:r+f}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(43),u=(r=i)&&r.__esModule?r:{default:r};n.default=function(t,n,e){var r=t.x,i=t.y,o=[],a=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;n.forEach(function(t){a=Math.min(a,t.x),c=Math.min(c,t.y)});for(var f=r-t.width/2-a,s=i-t.height/2-c,l=0;l<n.length;l+=1){var h=n[l],d=n[l<n.length-1?l+1:0],p=(0,u.default)(t,e,{x:f+h.x,y:s+h.y},{x:f+d.x,y:s+d.y});p&&o.push(p)}return o.length?(o.length>1&&o.sort(function(t,n){var r=t.x-e.x,i=t.y-e.y,u=Math.sqrt(r*r+i*i),o=n.x-e.x,a=n.y-e.y,c=Math.sqrt(o*o+a*a);return u<c?-1:u===c?0:1}),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(6),u=(r=i)&&r.__esModule?r:{default:r};n.default=function(t,n,e){return(0,u.default)(t,n,n,e)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,n){return t.intersect(n)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(0),u=(r=i)&&r.__esModule?r:{default:r};function o(t,n,e,r){var i=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");u.default.applyStyle(i,e[r+"Style"]),e[r+"Class"]&&i.attr("class",e[r+"Class"])}n.default={normal:o,vee:function(t,n,e,r){var i=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");u.default.applyStyle(i,e[r+"Style"]),e[r+"Class"]&&i.attr("class",e[r+"Class"])},undirected:function(t,n,e,r){var i=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");u.default.applyStyle(i,e[r+"Style"]),e[r+"Class"]&&i.attr("class",e[r+"Class"])},default:o}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=a(e(12)),i=a(e(6)),u=a(e(14)),o=a(e(13));function a(t){return t&&t.__esModule?t:{default:t}}n.default={rect:function(t,n,e){var i=t.insert("rect",":first-child").attr("rx",e.rx).attr("ry",e.ry).attr("x",-n.width/2).attr("y",-n.height/2).attr("width",n.width).attr("height",n.height);return e.intersect=function(t){return(0,r.default)(e,t)},i},ellipse:function(t,n,e){var r=n.width/2,u=n.height/2,o=t.insert("ellipse",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("rx",r).attr("ry",u);return e.intersect=function(t){return(0,i.default)(e,r,u,t)},o},circle:function(t,n,e){var r=Math.max(n.width,n.height)/2,i=t.insert("circle",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("r",r);return e.intersect=function(t){return(0,u.default)(e,r,t)},i},diamond:function(t,n,e){var r=n.width*Math.SQRT2/2,i=n.height*Math.SQRT2/2,u=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],a=t.insert("polygon",":first-child").attr("points",u.map(function(t){return t.x+","+t.y}).join(" "));return e.intersect=function(t){return(0,o.default)(e,u,t)},a}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(2)),i=a(e(3)),u=a(e(15)),o=a(e(0));function a(t){return t&&t.__esModule?t:{default:t}}function c(t,n){var e=r.line().x(function(t){return t.x}).y(function(t){return t.y});return e.curve(t.curve),e(n)}n.default=function(t,n,e){var a=t.selectAll("g.edgePath").data(n.edges(),function(t){return o.default.edgeToId(t)}).classed("update",!0);return function(t,n){var e=t.enter().append("g").attr("class","edgePath").style("opacity",0);e.append("path").attr("class","path").attr("d",function(t){var e=n.edge(t),r=n.node(t.v).elem,u=i.default.range(e.points.length).map(function(){return n=(t=r).getBBox(),{x:(e=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(n.width/2,n.height/2)).e,y:e.f};var t,n,e});return c(e,u)}),e.append("defs")}(a,n),function(t,n){var e=t.exit();o.default.applyTransition(e,n).style("opacity",0).remove(),o.default.applyTransition(e.select("path.path"),n).attr("d",function(t){var e=n.node(t.v);if(e){var u=i.default.range(this.getTotalLength()).map(function(){return e});return c({},u)}return r.select(this).attr("d")})}(a,n),a=t.selectAll("g.edgePath"),o.default.applyTransition(a,n).style("opacity",1),a.each(function(t){var e=r.select(this),i=n.edge(t);i.elem=this,i.id&&e.attr("id",i.id),o.default.applyClass(e,i.class,(e.classed("update")?"update ":"")+"edgePath")}),a.selectAll("path.path").each(function(t){var e=n.edge(t);e.arrowheadId=i.default.uniqueId("arrowhead");var a=r.select(this).attr("marker-end",function(){return"url(#"+e.arrowheadId+")"}).style("fill","none");o.default.applyTransition(a,n).attr("d",function(t){return function(t,n){var e=t.edge(n),r=t.node(n.v),i=t.node(n.w),o=e.points.slice(1,e.points.length-1);return o.unshift((0,u.default)(r,o[0])),o.push((0,u.default)(i,o[o.length-1])),c(e,o)}(n,t)}),o.default.applyStyle(a,e.style)}),a.selectAll("defs *").remove(),a.selectAll("defs").each(function(t){var i=n.edge(t);(0,e[i.arrowhead])(r.select(this),i.arrowheadId,i,"arrowhead")}),a}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(2)),i=a(e(3)),u=a(e(4)),o=a(e(0));function a(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,n){var e=t.selectAll("g.edgeLabel").data(n.edges(),function(t){return o.default.edgeToId(t)}).classed("update",!0);return e.selectAll("*").remove(),e.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(e=t.selectAll("g.edgeLabel")).each(function(t){var e=n.edge(t),o=(0,u.default)(r.select(this),n.edge(t),0,0).classed("label",!0),a=o.node().getBBox();e.labelId&&o.attr("id",e.labelId),i.default.has(e,"width")||(e.width=a.width),i.default.has(e,"height")||(e.height=a.height)}),o.default.applyTransition(e.exit(),n).style("opacity",0).remove(),e}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(2)),i=o(e(0)),u=o(e(4));function o(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,n){var e=n.nodes().filter(function(t){return i.default.isSubgraph(n,t)}),o=t.selectAll("g.cluster").data(e,function(t){return t});return o.selectAll("*").remove(),o.enter().append("g").attr("class","cluster").attr("id",function(t){return n.node(t).id}).style("opacity",0),o=t.selectAll("g.cluster"),i.default.applyTransition(o,n).style("opacity",1),o.each(function(t){var e=n.node(t),i=r.select(this);r.select(this).append("rect");var o=i.append("g").attr("class","label");(0,u.default)(o,e,e.clusterLabelPos)}),o.selectAll("rect").each(function(t){var e=n.node(t),u=r.select(this);i.default.applyStyle(u,e.style)}),i.default.applyTransition(o.exit(),n).style("opacity",0).remove(),o}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(0),u=(r=i)&&r.__esModule?r:{default:r};n.default=function(t,n){var e=t;return e.node().appendChild(n.label),u.default.applyStyle(e,n.labelStyle),e}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=e(0),o=(r=u)&&r.__esModule?r:{default:r};n.default=function(t,n){var e=t.append("foreignObject").attr("width","100000"),r=e.append("xhtml:div");r.attr("xmlns","http://www.w3.org/1999/xhtml");var u=n.label;switch(void 0===u?"undefined":i(u)){case"function":r.insert(u);break;case"object":r.insert(function(){return u});break;default:r.html(u)}o.default.applyStyle(r,n.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap");var a=r.node().getBoundingClientRect();return e.attr("width",a.width).attr("height",a.height),e}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(0),u=(r=i)&&r.__esModule?r:{default:r};n.default=function(t,n){for(var e=t.append("text"),r=function(t){for(var n="",e=!1,r=null,i=0;i<t.length;i+=1)if(r=t[i],e){switch(r){case"n":n+="\n";break;default:n+=r}e=!1}else"\\"===r?e=!0:n+=r;return n}(n.label).split("\n"),i=0;i<r.length;i+=1)e.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(r[i]);return u.default.applyStyle(e,n.labelStyle),e}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=a(e(3)),i=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(2)),u=a(e(4)),o=a(e(0));function a(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,n,e){var a=n.nodes().filter(function(t){return!o.default.isSubgraph(n,t)}),c=t.selectAll("g.node").data(a,function(t){return t}).classed("update",!0);return c.selectAll("*").remove(),c.enter().append("g").attr("class","node").style("opacity",0),(c=t.selectAll("g.node")).each(function(t){var a=n.node(t),c=i.select(this);o.default.applyClass(c,a.class,(c.classed("update")?"update ":"")+"node");var f=c.append("g").attr("class","label"),s=(0,u.default)(f,a),l=e[a.shape],h=r.default.pick(s.node().getBBox(),"width","height");a.elem=this,a.id&&c.attr("id",a.id),a.labelId&&f.attr("id",a.labelId),r.default.has(a,"width")&&(h.width=a.width),r.default.has(a,"height")&&(h.height=a.height),h.width+=a.paddingLeft+a.paddingRight,h.height+=a.paddingTop+a.paddingBottom,f.attr("transform","translate("+(a.paddingLeft-a.paddingRight)/2+","+(a.paddingTop-a.paddingBottom)/2+")");var d=l(i.select(this),h,a);o.default.applyStyle(d,a.style);var p=d.node().getBBox();a.width=p.width,a.height=p.height}),o.default.applyTransition(c.exit(),n).style("opacity",0).remove(),c}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(2)),u=e(0),o=(r=u)&&r.__esModule?r:{default:r};n.default=function(t,n){var e=t.filter(function(){return!i.select(this).classed("update")});function r(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}e.attr("transform",r),o.default.applyTransition(t,n).style("opacity",1).attr("transform",r),o.default.applyTransition(e.selectAll("rect"),n).attr("width",function(t){return n.node(t).width}).attr("height",function(t){return n.node(t).height}).attr("x",function(t){return-n.node(t).width/2}).attr("y",function(t){return-n.node(t).height/2})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(2)),i=o(e(3)),u=o(e(0));function o(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,n){function e(t){var e=n.edge(t);return i.default.has(e,"x")?"translate("+e.x+","+e.y+")":""}t.filter(function(){return!r.select(this).classed("update")}).attr("transform",e),u.default.applyTransition(t,n).style("opacity",1).attr("transform",e)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(2)),u=e(0),o=(r=u)&&r.__esModule?r:{default:r};n.default=function(t,n){function e(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}t.filter(function(){return!i.select(this).classed("update")}).attr("transform",e),o.default.applyTransition(t,n).style("opacity",1).attr("transform",e)}},function(t,n,e){const r=e(1),i=e(5),u=e(10);t.exports=function(t,n){const e=new i,o={},a=new u;let c;function f(t){const e=t.v===c?t.w:t.v,r=a.priority(e);if(void 0!==r){var i=n(t);i<r&&(o[e]=c,a.decrease(e,i))}}if(0===t.nodeCount())return e;r.each(t.nodes(),function(t){a.add(t,Number.POSITIVE_INFINITY),e.setNode(t)}),a.decrease(t.nodes()[0],0);var s=!1;for(;a.size()>0;){if(c=a.removeMin(),r.has(o,c))e.setEdge(c,o[c]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(c).forEach(f)}return e}},function(t,n,e){var r=e(7);t.exports=function(t,n){return r(t,n,"pre")}},function(t,n,e){var r=e(7);t.exports=function(t,n){return r(t,n,"post")}},function(t,n,e){var r=e(8);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},function(t,n,e){var r=e(1);t.exports=function(t,n,e){return function(t,n,e){const r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})}),e(t).forEach(function(e){const i=e.v===t?e.w:e.v,u=n(e);r[t][i]={distance:u,predecessor:t}})}),i.forEach(function(t){var n=r[t];i.forEach(function(e){var u=r[e];i.forEach(function(e){var r=u[t],i=n[e],o=u[e],a=r.distance+i.distance;a<o.distance&&(o.distance=a,o.predecessor=i.predecessor)})})}),r}(t,n||i,e||function(n){return t.outEdges(n)})};var i=r.constant(1)},function(t,n,e){const r=e(1),i=e(9);t.exports=function(t){return r.filter(i(t),function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])})}},function(t,n,e){const r=e(11),i=e(1);t.exports=function(t,n,e){return i.transform(t.nodes(),function(i,u){i[u]=r(t,u,n,e)},{})}},function(t,n,e){var r=e(1);t.exports=function(t){const n={},e=[];let i;function u(e){r.has(n,e)||(n[e]=!0,i.push(e),r.each(t.successors(e),u),r.each(t.predecessors(e),u))}return r.each(t.nodes(),function(t){i=[],u(t),i.length&&e.push(i)}),e}},function(t,n,e){t.exports={components:e(35),dijkstra:e(11),dijkstraAll:e(34),findCycles:e(33),floydWarshall:e(32),isAcyclic:e(31),postorder:e(30),preorder:e(29),prim:e(28),tarjan:e(9),topsort:e(8)}},function(t,n,e){const r=e(1),i=e(5);t.exports={write:function(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return r.map(t.nodes(),function(n){const e=t.node(n),i=t.parent(n),u={v:n};return r.isUndefined(e)||(u.value=e),r.isUndefined(i)||(u.parent=i),u})}(t),edges:function(t){return r.map(t.edges(),function(n){const e=t.edge(n),i={v:n.v,w:n.w};return r.isUndefined(n.name)||(i.name=n.name),r.isUndefined(e)||(i.value=e),i})}(t)};r.isUndefined(t.graph())||(n.value=r.clone(t.graph()));return n},read:function(t){var n=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)}),r.each(t.edges,function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),n}}},function(t,n,e){t.exports={Graph:e(5),json:e(37),alg:e(36)}},function(t,n,e){t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e.w={},e(e.s=27)}([function(t,n){t.exports=e(3)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addDummyNode=o,n.simplify=a,n.asNonCompoundGraph=c,n.successorWeights=f,n.predecessorWeights=s,n.intersectRect=l,n.buildLayerMatrix=h,n.normalizeRanks=d,n.removeEmptyRanks=p,n.addBorderNode=v,n.maxRank=g,n.partition=_,n.time=y,n.notime=m;var r,i=(r=e(0))&&r.__esModule?r:{default:r},u=e(2);function o(t,n,e,r){var u=void 0;do{u=i.default.uniqueId(r)}while(t.hasNode(u));return e.dummy=n,t.setNode(u,e),u}function a(t){var n=(new u.Graph).setGraph(t.graph());return i.default.forEach(t.nodes(),function(e){n.setNode(e,t.node(e))}),i.default.forEach(t.edges(),function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),n}function c(t){var n=new u.Graph({multigraph:t.isMultigraph()}).setGraph(t.graph());return i.default.forEach(t.nodes(),function(e){t.children(e).length||n.setNode(e,t.node(e))}),i.default.forEach(t.edges(),function(e){n.setEdge(e,t.edge(e))}),n}function f(t){var n=i.default.map(t.nodes(),function(n){var e={};return i.default.forEach(t.outEdges(n),function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight}),e});return i.default.zipObject(t.nodes(),n)}function s(t){var n=i.default.map(t.nodes(),function(n){var e={};return i.default.forEach(t.inEdges(n),function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight}),e});return i.default.zipObject(t.nodes(),n)}function l(t,n){var e=t.x,r=t.y,i=n.x-e,u=n.y-r,o=t.width/2,a=t.height/2;if(!i&&!u)throw new Error("Not possible to find intersection inside of the rectangle");var c=void 0,f=void 0;return Math.abs(u)*o>Math.abs(i)*a?(u<0&&(a=-a),c=a*i/u,f=a):(i<0&&(o=-o),c=o,f=o*u/i),{x:e+c,y:r+f}}function h(t){var n=i.default.map(i.default.range(g(t)+1),function(){return[]});return i.default.forEach(t.nodes(),function(e){var r=t.node(e),u=r.rank;i.default.isUndefined(u)||(n[u][r.order]=e)}),n}function d(t){var n=i.default.min(i.default.map(t.nodes(),function(n){return t.node(n).rank}));i.default.forEach(t.nodes(),function(e){var r=t.node(e);i.default.has(r,"rank")&&(r.rank-=n)})}function p(t){var n=i.default.min(i.default.map(t.nodes(),function(n){return t.node(n).rank})),e=[];i.default.forEach(t.nodes(),function(r){var i=t.node(r).rank-n;e[i]||(e[i]=[]),e[i].push(r)});var r=0,u=t.graph().nodeRankFactor;i.default.forEach(e,function(n,e){i.default.isUndefined(n)&&e%u!=0?--r:r&&i.default.forEach(n,function(n){t.node(n).rank+=r})})}function v(t,n,e,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=e,i.order=r),o(t,"border",i,n)}function g(t){return i.default.max(i.default.map(t.nodes(),function(n){var e=t.node(n).rank;if(!i.default.isUndefined(e))return e}))}function _(t,n){var e={lhs:[],rhs:[]};return i.default.forEach(t,function(t){n(t)?e.lhs.push(t):e.rhs.push(t)}),e}function y(t,n){var e=i.default.now();try{return n()}finally{console.log(t+" time: "+(i.default.now()-e)+"ms")}}function m(t,n){return n()}n.default={addDummyNode:o,simplify:a,asNonCompoundGraph:c,successorWeights:f,predecessorWeights:s,intersectRect:l,buildLayerMatrix:h,normalizeRanks:d,removeEmptyRanks:p,addBorderNode:v,maxRank:g,partition:_,time:y,notime:m}},function(t,n){t.exports=e(38)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.longestPath=u,n.slack=o;var r,i=(r=e(0))&&r.__esModule?r:{default:r};function u(t){var n={};i.default.forEach(t.sources(),function e(r){var u=t.node(r);if(i.default.has(n,r))return u.rank;n[r]=!0;var o=i.default.min(i.default.map(t.outEdges(r),function(n){return e(n.w)-t.edge(n).minlen}))||0;return u.rank=o})}function o(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}n.default={longestPath:u,slack:o}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(0))&&r.__esModule?r:{default:r},u=e(2),o=e(3);function a(t,n){return i.default.forEach(t.nodes(),function e(r){i.default.forEach(n.nodeEdges(r),function(i){var u=i.v,a=r===u?i.w:u;t.hasNode(a)||(0,o.slack)(n,i)||(t.setNode(a,{}),t.setEdge(r,a,{}),e(a))})}),t.nodeCount()}function c(t,n){return i.default.minBy(n.edges(),function(e){if(t.hasNode(e.v)!==t.hasNode(e.w))return(0,o.slack)(n,e)})}function f(t,n,e){i.default.forEach(t.nodes(),function(t){n.node(t).rank+=e})}n.default=function(t){var n=new u.Graph({directed:!1}),e=t.nodes()[0],r=t.nodeCount();n.setNode(e,{});for(var i=void 0;a(n,t)<r;)i=c(n,t),f(n,t,n.hasNode(i.v)?(0,o.slack)(t,i):-(0,o.slack)(t,i));return n}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.positionX=g;var r=o(e(0)),i=e(2),u=o(e(1));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,n){var e={};return r.default.reduce(n,function(n,i){var u=0,o=0,a=n.length,c=r.default.last(i);return r.default.forEach(i,function(n,s){var l=function(t,n){if(t.node(n).dummy)return r.default.find(t.predecessors(n),function(n){return t.node(n).dummy})}(t,n),h=l?t.node(l).order:a;(l||n===c)&&(r.default.forEach(i.slice(o,s+1),function(n){r.default.forEach(t.predecessors(n),function(r){var i=t.node(r),o=i.order;!(o<u||h<o)||i.dummy&&t.node(n).dummy||f(e,r,n)})}),o=s+1,u=h)}),i}),e}function c(t,n){var e={};function i(n,i,u,o,a){var c=void 0;r.default.forEach(r.default.range(i,u),function(i){c=n[i],t.node(c).dummy&&r.default.forEach(t.predecessors(c),function(n){var r=t.node(n);r.dummy&&(r.order<o||r.order>a)&&f(e,n,c)})})}return r.default.reduce(n,function(n,e){var u=-1,o=void 0,a=0;return r.default.forEach(e,function(r,c){if("border"===t.node(r).dummy){var f=t.predecessors(r);f.length&&(o=t.node(f[0]).order,i(e,a,c,u,o),a=c,u=o)}i(e,a,e.length,o,n.length)}),e}),e}function f(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function s(t,n,e){if(n>e){var i=n;n=e,e=i}return r.default.has(t[n],e)}function l(t,n,e,i){var u={},o={},a={};return r.default.forEach(n,function(t){r.default.forEach(t,function(t,n){u[t]=t,o[t]=t,a[t]=n})}),r.default.forEach(n,function(t){var n=-1;r.default.forEach(t,function(t){var c=i(t);if(c.length)for(var f=((c=r.default.sortBy(c,function(t){return a[t]})).length-1)/2,l=Math.floor(f),h=Math.ceil(f);l<=h;++l){var d=c[l];o[t]===t&&n<a[d]&&!s(e,t,d)&&(o[d]=t,o[t]=u[t]=u[d],n=a[d])}})}),{root:u,align:o}}function h(t,n,e,u,o){var a={},c=function(t,n,e,u){var o=new i.Graph,a=t.graph(),c=function(t,n,e){return function(i,u,o){var a=i.node(u),c=i.node(o),f=0,s=void 0;if(f+=a.width/2,r.default.has(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":s=-a.width/2;break;case"r":s=a.width/2}if(s&&(f+=e?s:-s),s=0,f+=(a.dummy?n:t)/2,f+=(c.dummy?n:t)/2,f+=c.width/2,r.default.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2}return s&&(f+=e?s:-s),s=0,f}}(a.nodesep,a.edgesep,u);return r.default.forEach(n,function(n){var i=void 0;r.default.forEach(n,function(n){var r=e[n];if(o.setNode(r),i){var u=e[i],a=o.edge(u,r);o.setEdge(u,r,Math.max(c(t,n,i),a||0))}i=n})}),o}(t,n,e,o),f={};r.default.forEach(c.nodes(),function t(n){r.default.has(f,n)||(f[n]=!0,a[n]=r.default.reduce(c.inEdges(n),function(n,e){return t(e.v),Math.max(n,a[e.v]+c.edge(e))},0))});var s=o?"borderLeft":"borderRight";return r.default.forEach(c.nodes(),function n(e){if(2!==f[e]){f[e]++;var i=t.node(e),u=r.default.reduce(c.outEdges(e),function(t,e){return n(e.w),Math.min(t,a[e.w]-c.edge(e))},Number.POSITIVE_INFINITY);u!==Number.POSITIVE_INFINITY&&i.borderType!==s&&(a[e]=Math.max(a[e],u))}}),r.default.forEach(u,function(t){a[t]=a[e[t]]}),a}function d(t,n){return r.default.minBy(r.default.values(n),function(n){var e=(r.default.minBy(r.default.toPairs(n),function(n){return n[1]-_(t,n[0])/2})||["k",0])[1];return(r.default.maxBy(r.default.toPairs(n),function(n){return n[1]+_(t,n[0])/2})||["k",0])[1]-e})}function p(t,n){var e=r.default.values(n),i=r.default.min(e),u=r.default.max(e);r.default.forEach(["u","d"],function(e){r.default.forEach(["l","r"],function(o){var a=e+o,c=t[a];if(c!==n){var f=r.default.values(c),s="l"===o?i-r.default.min(f):u-r.default.max(f);s&&(t[a]=r.default.mapValues(c,function(t){return t+s}))}})})}function v(t,n){return r.default.mapValues(t.ul,function(e,i){if(n)return t[n.toLowerCase()][i];var u=r.default.sortBy(r.default.map(t,i));return(u[1]+u[2])/2})}function g(t){var n=u.default.buildLayerMatrix(t),e=r.default.merge(a(t,n),c(t,n)),i={},o=void 0;r.default.forEach(["u","d"],function(u){o="u"===u?n:r.default.values(n).reverse(),r.default.forEach(["l","r"],function(n){"r"===n&&(o=r.default.map(o,function(t){return r.default.values(t).reverse()}));var a=r.default.bind("u"===u?t.predecessors:t.successors,t),c=l(0,o,e,a),f=h(t,o,c.root,c.align,"r"===n);"r"===n&&(f=r.default.mapValues(f,function(t){return-t})),i[u+n]=f})});var f=d(t,i);return p(i,f),v(i,t.graph().align)}function _(t,n){return t.node(n).width}n.default={positionX:g,findType1Conflicts:a,findType2Conflicts:c,addConflict:f,hasConflict:s,verticalAlignment:l,horizontalCompaction:h,alignCoordinates:p,findSmallestWidthAlignment:d,balance:v}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=o(e(0)),i=o(e(1)),u=e(5);function o(t){return t&&t.__esModule?t:{default:t}}n.default=function(t){(function(t){var n=i.default.buildLayerMatrix(t),e=t.graph().ranksep,u=0;r.default.forEach(n,function(n){var i=r.default.max(r.default.map(n,function(n){return t.node(n).height}));r.default.forEach(n,function(n){t.node(n).y=u+i/2}),u+=i+e})})(t=i.default.asNonCompoundGraph(t)),r.default.forEach((0,u.positionX)(t),function(n,e){t.node(e).x=n})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(0))&&r.__esModule?r:{default:r};n.default=function(t,n,e){var r={},u=void 0;i.default.forEach(e,function(e){for(var i=t.parent(e),o=void 0,a=void 0;i;){if((o=t.parent(i))?(a=r[o],r[o]=i):(a=u,u=i),a&&a!==i)return void n.setEdge(a,i);i=o}})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(0))&&r.__esModule?r:{default:r},u=e(2);n.default=function(t,n,e){var r=function(t){for(var n=void 0;t.hasNode(n=i.default.uniqueId("_root")););return n}(t),o=new u.Graph({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(n){return t.node(n)});return i.default.forEach(t.nodes(),function(u){var a=t.node(u),c=t.parent(u);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(o.setNode(u),o.setParent(u,c||r),i.default.forEach(t[e](u),function(n){var e=n.v===u?n.w:n.v,r=o.edge(e,u),a=i.default.isUndefined(r)?0:r.weight;o.setEdge(e,u,{weight:t.edge(n).weight+a})}),i.default.has(a,"minRank")&&o.setNode(u,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),o}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=u(e(0)),i=u(e(1));function u(t){return t&&t.__esModule?t:{default:t}}function o(t,n,e){for(var i=void 0;n.length&&(i=r.default.last(n)).i<=e;)n.pop(),t.push(i.vs),e++;return e}n.default=function(t,n){var e,u=i.default.partition(t,function(t){return r.default.has(t,"barycenter")}),a=u.lhs,c=r.default.sortBy(u.rhs,function(t){return-t.i}),f=[],s=0,l=0,h=0;a.sort((e=!!n,function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i})),h=o(f,c,h),r.default.forEach(a,function(t){h+=t.vs.length,f.push(t.vs),s+=t.barycenter*t.weight,l+=t.weight,h=o(f,c,h)});var d={vs:r.default.flatten(f,!0)};return l&&(d.barycenter=s/l,d.weight=l),d}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(0))&&r.__esModule?r:{default:r};n.default=function(t,n){var e={};return i.default.forEach(t,function(t,n){var r=e[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:n};i.default.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),i.default.forEach(n.edges(),function(t){var n=e[t.v],r=e[t.w];i.default.isUndefined(n)||i.default.isUndefined(r)||(r.indegree++,n.out.push(e[t.w]))}),function(t){var n=[];function e(t){return function(n){var e,r,u,o;n.merged||(i.default.isUndefined(n.barycenter)||i.default.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&(r=n,u=0,o=0,(e=t).weight&&(u+=e.barycenter*e.weight,o+=e.weight),r.weight&&(u+=r.barycenter*r.weight,o+=r.weight),e.vs=r.vs.concat(e.vs),e.barycenter=u/o,e.weight=o,e.i=Math.min(r.i,e.i),r.merged=!0)}}function r(n){return function(e){e.in.push(n),0==--e.indegree&&t.push(e)}}for(;t.length;){var u=t.pop();n.push(u),i.default.forEach(u.in.reverse(),e(u)),i.default.forEach(u.out,r(u))}return i.default.chain(n).filter(function(t){return!t.merged}).map(function(t){return i.default.pick(t,["vs","i","barycenter","weight"])}).value()}(i.default.filter(e,function(t){return!t.indegree}))}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(0))&&r.__esModule?r:{default:r};n.default=function(t,n){return i.default.map(n,function(n){var e=t.inEdges(n);if(e.length){var r=i.default.reduce(e,function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:r.sum/r.weight,weight:r.weight}}return{v:n}})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=a(e(0)),i=a(e(11)),u=a(e(10)),o=a(e(9));function a(t){return t&&t.__esModule?t:{default:t}}n.default=function t(n,e,a,c){var f=n.children(e),s=n.node(e),l=s?s.borderLeft:void 0,h=s?s.borderRight:void 0,d={};l&&(f=r.default.filter(f,function(t){return t!==l&&t!==h}));var p=(0,i.default)(n,f);r.default.forEach(p,function(e){if(n.children(e.v).length){var i=t(n,e.v,a,c);d[e.v]=i,r.default.has(i,"barycenter")&&(u=e,o=i,r.default.isUndefined(u.barycenter)?(u.barycenter=o.barycenter,u.weight=o.weight):(u.barycenter=(u.barycenter*u.weight+o.barycenter*o.weight)/(u.weight+o.weight),u.weight+=o.weight))}var u,o});var v=(0,u.default)(p,a);!function(t,n){r.default.forEach(t,function(t){t.vs=r.default.flatten(t.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}(v,d);var g=(0,o.default)(v,c);if(l&&(g.vs=r.default.flatten([l,g.vs,h],!0),n.predecessors(l).length)){var _=n.node(n.predecessors(l)[0]),y=n.node(n.predecessors(h)[0]);r.default.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+_.order+y.order)/(g.weight+2),g.weight+=2}return g}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(0))&&r.__esModule?r:{default:r};function u(t,n,e){for(var r=i.default.zipObject(e,i.default.map(e,function(t,n){return n})),u=i.default.flatten(i.default.map(n,function(n){return i.default.chain(t.outEdges(n)).map(function(n){return{pos:r[n.w],weight:t.edge(n).weight}}).sortBy("pos").value()}),!0),o=1;o<e.length;)o<<=1;var a=2*o-1;o-=1;var c=i.default.map(new Array(a),function(){return 0}),f=0;return i.default.forEach(u.forEach(function(t){var n=t.pos+o;c[n]+=t.weight;for(var e=0;n>0;)n%2&&(e+=c[n+1]),c[n=n-1>>1]+=t.weight;f+=t.weight*e})),f}n.default=function(t,n){for(var e=0,r=1;r<n.length;++r)e+=u(t,n[r-1],n[r]);return e}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(0))&&r.__esModule?r:{default:r};n.default=function(t){var n={},e=i.default.filter(t.nodes(),function(n){return!t.children(n).length}),r=i.default.max(i.default.map(e,function(n){return t.node(n).rank})),u=i.default.map(i.default.range(r+1),function(){return[]}),o=i.default.sortBy(e,function(n){return t.node(n).rank});return i.default.forEach(o,function e(r){if(!i.default.has(n,r)){n[r]=!0;var o=t.node(r);u[o.rank].push(r),i.default.forEach(t.successors(r),e)}}),u}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=l(e(0)),i=e(2),u=l(e(14)),o=l(e(13)),a=l(e(12)),c=l(e(8)),f=l(e(7)),s=l(e(1));function l(t){return t&&t.__esModule?t:{default:t}}function h(t,n,e){return r.default.map(n,function(n){return(0,c.default)(t,n,e)})}function d(t,n){var e=new i.Graph;r.default.forEach(t,function(t){var i=t.graph().root,u=(0,a.default)(t,i,e,n);r.default.forEach(u.vs,function(n,e){t.node(n).order=e}),(0,f.default)(t,e,u.vs)})}function p(t,n){r.default.forEach(n,function(n){r.default.forEach(n,function(n,e){t.node(n).order=e})})}n.default=function(t){var n=s.default.maxRank(t),e=h(t,r.default.range(1,n+1),"inEdges"),i=h(t,r.default.range(n-1,-1,-1),"outEdges"),a=(0,u.default)(t);p(t,a);for(var c=Number.POSITIVE_INFINITY,f=void 0,l=0,v=0;v<4;++l,++v){d(l%2?e:i,l%4>=2),a=s.default.buildLayerMatrix(t);var g=(0,o.default)(t,a);g<c&&(v=0,f=r.default.cloneDeep(a),c=g)}p(t,f)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(0))&&r.__esModule?r:{default:r};function u(t){i.default.forEach(t.nodes(),function(n){o(t.node(n))}),i.default.forEach(t.edges(),function(n){o(t.edge(n))})}function o(t){var n=t.width;t.width=t.height,t.height=n}function a(t){t.y=-t.y}function c(t){var n=t.x;t.x=t.y,t.y=n}n.default={adjust:function(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||u(t)},undo:function(t){var n=t.graph().rankdir.toLowerCase();"bt"!==n&&"rl"!==n||function(t){i.default.forEach(t.nodes(),function(n){a(t.node(n))}),i.default.forEach(t.edges(),function(n){var e=t.edge(n);i.default.forEach(e.points,a),i.default.has(e,"y")&&a(e)})}(t),"lr"!==n&&"rl"!==n||(function(t){i.default.forEach(t.nodes(),function(n){c(t.node(n))}),i.default.forEach(t.edges(),function(n){var e=t.edge(n);i.default.forEach(e.points,c),i.default.has(e,"x")&&c(e)})}(t),u(t))}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=u(e(0)),i=u(e(1));function u(t){return t&&t.__esModule?t:{default:t}}function o(t,n,e,r,u,o){var a={width:0,height:0,rank:o,borderType:n},c=u[n][o-1],f=i.default.addDummyNode(t,"border",a,e);u[n][o]=f,t.setParent(f,r),c&&t.setEdge(c,f,{weight:1})}n.default=function(t){r.default.forEach(t.children(),function n(e){var i=t.children(e),u=t.node(e);if(i.length&&r.default.forEach(i,n),r.default.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var a=u.minRank,c=u.maxRank+1;a<c;++a)o(t,"borderLeft","_bl",e,u,a),o(t,"borderRight","_br",e,u,a)}})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=u(e(0)),i=u(e(1));function u(t){return t&&t.__esModule?t:{default:t}}n.default={run:function(t){var n=i.default.addDummyNode(t,"root",{},"_root"),e=function(t){var n={};return r.default.forEach(t.children(),function(e){!function e(i,u){var o=t.children(i);o&&o.length&&r.default.forEach(o,function(t){e(t,u+1)}),n[i]=u}(e,1)}),n}(t),u=r.default.max(r.default.values(e))-1,o=2*u+1;t.graph().nestingRoot=n,r.default.forEach(t.edges(),function(n){t.edge(n).minlen*=o});var a=function(t){return r.default.reduce(t.edges(),function(n,e){return n+t.edge(e).weight},0)}(t)+1;r.default.forEach(t.children(),function(c){!function t(n,e,u,o,a,c,f){var s=n.children(f);if(s.length){var l=i.default.addBorderNode(n,"_bt"),h=i.default.addBorderNode(n,"_bb"),d=n.node(f);n.setParent(l,f),d.borderTop=l,n.setParent(h,f),d.borderBottom=h,r.default.forEach(s,function(r){t(n,e,u,o,a,c,r);var i=n.node(r),s=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,v=s!==d?1:a-c[f]+1;n.setEdge(l,s,{weight:p,minlen:v,nestingEdge:!0}),n.setEdge(d,h,{weight:p,minlen:v,nestingEdge:!0})}),n.parent(f)||n.setEdge(e,l,{weight:0,minlen:a+c[f]})}else f!==e&&n.setEdge(e,f,{weight:0,minlen:u})}(t,n,o,a,u,e,c)}),t.graph().nodeRankFactor=o},cleanup:function(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,r.default.forEach(t.edges(),function(n){t.edge(n).nestingEdge&&t.removeEdge(n)})}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(0))&&r.__esModule?r:{default:r};n.default=function(t){var n=function(t){var n={},e=0;return i.default.forEach(t.children(),function r(u){var o=e;i.default.forEach(t.children(u),r),n[u]={low:o,lim:e++}}),n}(t);i.default.forEach(t.graph().dummyChains,function(e){for(var r=t.node(e),i=r.edgeObj,u=function(t,n,e,r){var i,u=[],o=[],a=Math.min(n[e].low,n[r].low),c=Math.max(n[e].lim,n[r].lim),f=void 0;f=e;do{f=t.parent(f),u.push(f)}while(f&&(n[f].low>a||c>n[f].lim));for(i=f,f=r;(f=t.parent(f))!==i;)o.push(f);return{path:u.concat(o.reverse()),lca:i}}(t,n,i.v,i.w),o=u.path,a=u.lca,c=0,f=o[c],s=!0;e!==i.w;){if(r=t.node(e),s){for(;(f=o[c])!==a&&t.node(f).maxRank<r.rank;)c++;f===a&&(s=!1)}if(!s){for(;c<o.length-1&&t.node(f=o[c+1]).minRank<=r.rank;)c++;f=o[c]}t.setParent(e,f),e=t.successors(e)[0]}})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=c(e(0)),i=e(2),u=c(e(4)),o=e(3),a=e(1);function c(t){return t&&t.__esModule?t:{default:t}}var f=i.alg.preorder,s=i.alg.postorder;function l(t){t=(0,a.simplify)(t),(0,o.longestPath)(t);var n=(0,u.default)(t);p(n),h(n,t);for(var e=void 0;e=v(n);)_(n,t,e,g(n,t,e))}function h(t,n){var e=s(t,t.nodes());e=e.slice(0,e.length-1),r.default.forEach(e,function(e){!function(t,n,e){var r=t.node(e).parent;t.edge(e,r).cutvalue=d(t,n,e)}(t,n,e)})}function d(t,n,e){var i=t.node(e).parent,u=!0,o=n.edge(e,i),a=0;return o||(u=!1,o=n.edge(i,e)),a=o.weight,r.default.forEach(n.nodeEdges(e),function(r){var o,c,f=r.v===e,s=f?r.w:r.v;if(s!==i){var l=f===u,h=n.edge(r).weight;if(a+=l?h:-h,o=e,c=s,t.hasEdge(o,c)){var d=t.edge(e,s).cutvalue;a+=l?-d:d}}}),a}function p(t,n){arguments.length<2&&(n=t.nodes()[0]),function t(n,e,i,u,o){var a=i,c=n.node(u);return e[u]=!0,r.default.forEach(n.neighbors(u),function(o){r.default.has(e,o)||(i=t(n,e,i,o,u))}),c.low=a,c.lim=i++,o?c.parent=o:delete c.parent,i}(t,{},1,n)}function v(t){return r.default.find(t.edges(),function(n){return t.edge(n).cutvalue<0})}function g(t,n,e){var i=e.v,u=e.w;n.hasEdge(i,u)||(i=e.w,u=e.v);var a=t.node(i),c=t.node(u),f=a,s=!1;a.lim>c.lim&&(f=c,s=!0);var l=r.default.filter(n.edges(),function(n){return s===y(t,t.node(n.v),f)&&s!==y(t,t.node(n.w),f)});return r.default.minBy(l,function(t){return(0,o.slack)(n,t)})}function _(t,n,e,i){var u=e.v,o=e.w;t.removeEdge(u,o),t.setEdge(i.v,i.w,{}),p(t),h(t,n),function(t,n){var e=r.default.find(t.nodes(),function(t){return!n.node(t).parent}),i=f(t,e);i=i.slice(1),r.default.forEach(i,function(e){var r=t.node(e).parent,i=n.edge(e,r),u=!1;i||(i=n.edge(r,e),u=!0),n.node(e).rank=n.node(r).rank+(u?i.minlen:-i.minlen)})}(t,n)}function y(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}l.initLowLimValues=p,l.initCutValues=h,l.calcCutValue=d,l.leaveEdge=v,l.enterEdge=g,l.exchangeEdges=_,n.default=l},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(3),i=o(e(4)),u=o(e(20));function o(t){return t&&t.__esModule?t:{default:t}}var a=r.longestPath;function c(t){(0,u.default)(t)}n.default=function(t){switch(t.graph().ranker){case"network-simplex":c(t);break;case"tight-tree":!function(t){(0,r.longestPath)(t),(0,i.default)(t)}(t);break;case"longest-path":a(t);break;default:c(t)}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=u(e(0)),i=u(e(1));function u(t){return t&&t.__esModule?t:{default:t}}n.default={run:function(t){t.graph().dummyChains=[],r.default.forEach(t.edges(),function(n){!function(t,n){var e=n.v,r=t.node(e).rank,u=n.w,o=t.node(u).rank,a=n.name,c=t.edge(n),f=c.labelRank;if(o!==r+1){t.removeEdge(n);var s=void 0,l=void 0,h=void 0;for(h=0,++r;r<o;++h,++r)c.points=[],l={width:0,height:0,edgeLabel:c,edgeObj:n,rank:r},s=i.default.addDummyNode(t,"edge",l,"_d"),r===f&&(l.width=c.width,l.height=c.height,l.dummy="edge-label",l.labelpos=c.labelpos),t.setEdge(e,s,{weight:c.weight},a),0===h&&t.graph().dummyChains.push(s),e=s;t.setEdge(e,u,{weight:c.weight},a)}}(t,n)})},undo:function(t){r.default.forEach(t.graph().dummyChains,function(n){var e=t.node(n),r=e.edgeLabel,i=null;for(t.setEdge(e.edgeObj,r);e.dummy;)i=t.successors(n)[0],t.removeNode(n),r.points.push({x:e.x,y:e.y}),"edge-label"===e.dummy&&(r.x=e.x,r.y=e.y,r.width=e.width,r.height=e.height),n=i,e=t.node(n)})}}},function(t,n,e){"use strict";function r(){var t={};t._next=t._prev=t,this._sentinel=t}function i(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function u(t,n){if("_next"!==t&&"_prev"!==t)return n}Object.defineProperty(n,"__esModule",{value:!0}),r.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return i(n),n},r.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&i(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},r.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,u)),e=e._prev;return"["+t.join(", ")+"]"},n.default=r},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=o(e(0)),i=e(2),u=o(e(23));function o(t){return t&&t.__esModule?t:{default:t}}var a=r.default.constant(1);function c(t,n,e,i,u){var o=u?[]:void 0;return r.default.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),a=t.node(r.v);u&&o.push({v:r.v,w:r.w}),a.out-=i,f(n,e,a)}),r.default.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),u=r.w,o=t.node(u);o.in-=i,f(n,e,o)}),t.removeNode(i.v),o}function f(t,n,e){e.out?e.in?t[e.out-e.in+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}n.default=function(t,n){if(t.nodeCount()<=1)return[];var e=function(t,n){var e=new i.Graph,o=0,a=0;r.default.forEach(t.nodes(),function(t){e.setNode(t,{v:t,in:0,out:0})}),r.default.forEach(t.edges(),function(t){var r=e.edge(t.v,t.w)||0,i=n(t),u=r+i;e.setEdge(t.v,t.w,u),a=Math.max(a,e.node(t.v).out+=i),o=Math.max(o,e.node(t.w).in+=i)});var c=r.default.range(a+o+3).map(function(){return new u.default}),s=o+1;return r.default.forEach(e.nodes(),function(t){f(c,s,e.node(t))}),{graph:e,buckets:c,zeroIdx:s}}(t,n||a),o=function(t,n,e){for(var r=[],i=n[n.length-1],u=n[0],o=void 0;t.nodeCount();){for(;o=u.dequeue();)c(t,n,e,o);for(;o=i.dequeue();)c(t,n,e,o);if(t.nodeCount())for(var a=n.length-2;a>0;--a)if(o=n[a].dequeue()){r=r.concat(c(t,n,e,o,!0));break}}return r}(e.graph,e.buckets,e.zeroIdx);return r.default.flatten(r.default.map(o,function(n){return t.outEdges(n.v,n.w)}),!0)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=u(e(0)),i=u(e(24));function u(t){return t&&t.__esModule?t:{default:t}}n.default={run:function(t){var n="greedy"===t.graph().acyclicer?(0,i.default)(t,function(t){return function(n){return t.edge(n).weight}}(t)):function(t){var n=[],e={},i={};return r.default.forEach(t.nodes(),function u(o){r.default.has(i,o)||(i[o]=!0,e[o]=!0,r.default.forEach(t.outEdges(o),function(t){r.default.has(e,t.w)?n.push(t):u(t.w)}),delete e[o])}),n}(t);r.default.forEach(n,function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,r.default.uniqueId("rev"))})},undo:function(t){r.default.forEach(t.edges(),function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}})}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=g(e(0)),i=e(2),u=g(e(25)),o=g(e(22)),a=g(e(21)),c=e(1),f=g(c),s=g(e(19)),l=g(e(18)),h=g(e(17)),d=g(e(16)),p=g(e(15)),v=g(e(6));function g(t){return t&&t.__esModule?t:{default:t}}var _=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},m=["acyclicer","ranker","rankdir","align"],x=["width","height"],b={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],M={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function k(t,n){return r.default.mapValues(r.default.pick(t,n),Number)}function N(t){var n={};return r.default.forEach(t,function(t,e){n[e.toLowerCase()]=t}),n}n.default=function(t,n){var e=n&&n.debugTiming?f.default.time:f.default.notime;e("layout",function(){var n=e(" buildLayoutGraph",function(){return function(t){var n=new i.Graph({multigraph:!0,compound:!0}),e=N(t.graph());return n.setGraph(r.default.merge({},y,k(e,_),r.default.pick(e,m))),r.default.forEach(t.nodes(),function(e){var i=N(t.node(e));n.setNode(e,r.default.defaults(k(i,x),b)),n.setParent(e,t.parent(e))}),r.default.forEach(t.edges(),function(e){var i=N(t.edge(e));n.setEdge(e,r.default.merge({},M,k(i,w),r.default.pick(i,E)))}),n}(t)});e(" runLayout",function(){!function(t,n){n(" makeSpaceForEdgeLabels",function(){!function(t){var n=t.graph();n.ranksep/=2,r.default.forEach(t.edges(),function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),n(" removeSelfEdges",function(){!function(t){r.default.forEach(t.edges(),function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}})}(t)}),n(" acyclic",function(){u.default.run(t)}),n(" nestingGraph.run",function(){l.default.run(t)}),n(" rank",function(){(0,a.default)(f.default.asNonCompoundGraph(t))}),n(" injectEdgeLabelProxies",function(){!function(t){r.default.forEach(t.edges(),function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i={rank:(t.node(n.w).rank-r.rank)/2+r.rank,e:n};f.default.addDummyNode(t,"edge-proxy",i,"_ep")}})}(t)}),n(" removeEmptyRanks",function(){(0,c.removeEmptyRanks)(t)}),n(" nestingGraph.cleanup",function(){l.default.cleanup(t)}),n(" normalizeRanks",function(){(0,c.normalizeRanks)(t)}),n(" assignRankMinMax",function(){!function(t){var n=0;r.default.forEach(t.nodes(),function(e){var r=t.node(e);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,n=Math.max(n,r.maxRank))}),t.graph().maxRank=n}(t)}),n(" removeEdgeLabelProxies",function(){!function(t){r.default.forEach(t.nodes(),function(n){var e=t.node(n);"edge-proxy"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))})}(t)}),n(" normalize.run",function(){o.default.run(t)}),n(" parentDummyChains",function(){(0,s.default)(t)}),n(" addBorderSegments",function(){(0,h.default)(t)}),n(" order",function(){(0,p.default)(t)}),n(" insertSelfEdges",function(){!function(t){var n=f.default.buildLayerMatrix(t);r.default.forEach(n,function(n){var e=0;r.default.forEach(n,function(n,i){var u=t.node(n);u.order=i+e,r.default.forEach(u.selfEdges,function(n){f.default.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:u.rank,order:i+ ++e,e:n.e,label:n.label},"_se")}),delete u.selfEdges})})}(t)}),n(" adjustCoordinateSystem",function(){d.default.adjust(t)}),n(" position",function(){(0,v.default)(t)}),n(" positionSelfEdges",function(){!function(t){r.default.forEach(t.nodes(),function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,u=r.y,o=e.x-i,a=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*o/3,y:u-a},{x:i+5*o/6,y:u-a},{x:i+o,y:u},{x:i+5*o/6,y:u+a},{x:i+2*o/3,y:u+a}],e.label.x=e.x,e.label.y=e.y}})}(t)}),n(" removeBorderNodes",function(){!function(t){r.default.forEach(t.nodes(),function(n){if(t.children(n).length){var e=t.node(n),i=t.node(e.borderTop),u=t.node(e.borderBottom),o=t.node(r.default.last(e.borderLeft)),a=t.node(r.default.last(e.borderRight));e.width=Math.abs(a.x-o.x),e.height=Math.abs(u.y-i.y),e.x=o.x+e.width/2,e.y=i.y+e.height/2}}),r.default.forEach(t.nodes(),function(n){"border"===t.node(n).dummy&&t.removeNode(n)})}(t)}),n(" normalize.undo",function(){o.default.undo(t)}),n(" fixupEdgeLabelCoords",function(){!function(t){r.default.forEach(t.edges(),function(n){var e=t.edge(n);if(r.default.has(e,"x"))switch("l"!==e.labelpos&&"r"!==e.labelpos||(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset}})}(t)}),n(" undoCoordinateSystem",function(){d.default.undo(t)}),n(" translateGraph",function(){!function(t){var n=Number.POSITIVE_INFINITY,e=0,i=Number.POSITIVE_INFINITY,u=0,o=t.graph(),a=o.marginx||0,c=o.marginy||0;function f(t){var r=t.x,o=t.y,a=t.width,c=t.height;n=Math.min(n,r-a/2),e=Math.max(e,r+a/2),i=Math.min(i,o-c/2),u=Math.max(u,o+c/2)}r.default.forEach(t.nodes(),function(n){f(t.node(n))}),r.default.forEach(t.edges(),function(n){var e=t.edge(n);r.default.has(e,"x")&&f(e)}),n-=a,i-=c,r.default.forEach(t.nodes(),function(e){var r=t.node(e);r.x-=n,r.y-=i}),r.default.forEach(t.edges(),function(e){var u=t.edge(e);r.default.forEach(u.points,function(t){t.x-=n,t.y-=i}),r.default.has(u,"x")&&(u.x-=n),r.default.has(u,"y")&&(u.y-=i)}),o.width=e-n+a,o.height=u-i+c}(t)}),n(" assignNodeIntersects",function(){!function(t){r.default.forEach(t.edges(),function(n){var e=t.edge(n),r=t.node(n.v),i=t.node(n.w),u=null,o=null;e.points?(u=e.points[0],o=e.points[e.points.length-1]):(e.points=[],u=i,o=r),e.points.unshift(f.default.intersectRect(r,u)),e.points.push(f.default.intersectRect(i,o))})}(t)}),n(" reversePoints",function(){!function(t){r.default.forEach(t.edges(),function(n){var e=t.edge(n);e.reversed&&e.points.reverse()})}(t)}),n(" acyclic.undo",function(){u.default.undo(t)})}(n,e)}),e(" updateInputGraph",function(){!function(t,n){r.default.forEach(t.nodes(),function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))}),r.default.forEach(t.edges(),function(e){var i=t.edge(e),u=n.edge(e);i.points=u.points,r.default.has(u,"x")&&(i.x=u.x,i.y=u.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height}(t,n)})})}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=(r=e(26))&&r.__esModule?r:{default:r};n.default={layout:i.default}}])},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=v(e(3)),i=v(e(39)),u=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}(e(2)),o=v(e(27)),a=v(e(26)),c=v(e(25)),f=v(e(24)),s=v(e(20)),l=v(e(19)),h=v(e(18)),d=v(e(17)),p=v(e(16));function v(t){return t&&t.__esModule?t:{default:t}}var g={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},_={arrowhead:"normal",curve:u.curveLinear};function y(t,n){var e=t.select("g."+n);return e.empty()&&(e=t.append("g").attr("class",n)),e}n.default=function(){var t=f.default,n=s.default,e=l.default,u=h.default,v=d.default,m=p.default,x=function(f,s){!function(t){t.nodes().forEach(function(n){var e=t.node(n);r.default.has(e,"label")||t.children(n).length||(e.label=n),r.default.has(e,"paddingX")&&r.default.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),r.default.has(e,"paddingY")&&r.default.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),r.default.has(e,"padding")&&r.default.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),r.default.defaults(e,g),r.default.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(t){e[t]=Number(e[t])}),r.default.has(e,"width")&&(e._prevWidth=e.width),r.default.has(e,"height")&&(e._prevHeight=e.height)}),t.edges().forEach(function(n){var e=t.edge(n);r.default.has(e,"label")||(e.label=""),r.default.defaults(e,_)})}(s),f.selectAll("*").remove();var l=y(f,"output"),h=y(l,"clusters"),d=y(l,"edgePaths"),p=e(y(l,"edgeLabels"),s),x=t(y(l,"nodes"),s,v);i.default.layout(s);var b=1e3,w=1e3,M=-1e3,E=-1e3,k=s;k.nodes().map(function(t){return k.node(t)}).forEach(function(t){b=Math.min(b,t.x-t.width/2),w=Math.min(w,t.y-t.height/2),M=Math.max(M,t.x+t.width/2),E=Math.max(E,t.y+t.height/2)}),k.edges().forEach(function(t){var n=k.edge(t);void 0!==n.label&&void 0!==n.x&&void 0!==n.y&&(b=Math.min(b,n.x-n.width/2),w=Math.min(w,n.y-n.height/2),M=Math.max(M,n.x+n.width/2),E=Math.max(E,n.y+n.height/2));for(var e=n.points.slice(1,n.points.length-1),r=0;r<e.length;r++){var i=e[r];b=Math.min(b,i.x),w=Math.min(w,i.y),M=Math.max(M,i.x),E=Math.max(E,i.y)}}),k.minX=b,k.minY=w,k.maxX=M,k.maxY=E,(0,o.default)(x,s),(0,a.default)(p,s),u(d,s,m);var N=n(h,s);(0,c.default)(N,s),function(t){r.default.each(t.nodes(),function(n){var e=t.node(n);r.default.has(e,"_prevWidth")?e.width=e._prevWidth:delete e.width,r.default.has(e,"_prevHeight")?e.height=e._prevHeight:delete e.height,delete e._prevWidth,delete e._prevHeight})}(s)};return x.createNodes=function(n){return arguments.length?(t=n,x):t},x.createClusters=function(t){return arguments.length?(n=t,x):n},x.createEdgeLabels=function(t){return arguments.length?(e=t,x):e},x.createEdgePaths=function(t){return arguments.length?(u=t,x):u},x.shapes=function(t){return arguments.length?(v=t,x):v},x.arrows=function(t){return arguments.length?(m=t,x):m},x}},function(t,n,e){"use strict";function r(t,n){return t*n>0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,n,e,i){var u=n.y-t.y,o=t.x-n.x,a=n.x*t.y-t.x*n.y,c=u*e.x+o*e.y+a,f=u*i.x+o*i.y+a;if(0===c||0===f||!r(c,f)){var s=i.y-e.y,l=e.x-i.x,h=i.x*e.y-e.x*i.y,d=s*t.x+l*t.y+h,p=s*n.x+l*n.y+h;if(0===d||0===p||!r(d,p)){var v=u*l-s*o;if(0!==v){var g=Math.abs(v/2),_=o*h-l*a;return{x:_<0?(_-g)/v:(_+g)/v,y:(_=s*a-u*h)<0?(_-g)/v:(_+g)/v}}}}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=c(e(15)),i=c(e(14)),u=c(e(6)),o=c(e(13)),a=c(e(12));function c(t){return t&&t.__esModule?t:{default:t}}n.default={node:r.default,circle:i.default,ellipse:u.default,polygon:o.default,rect:a.default}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=o(e(44)),i=o(e(42)),u=o(e(0));function o(t){return t&&t.__esModule?t:{default:t}}n.default={intersect:r.default,render:i.default,util:u.default}}]).default});
- //# sourceMappingURL=dagre-d3.js.map
|