attractor 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3016d4221c3d040c80c4a7f37fc5725a9a1ed3a697fec681c16a2efa1c7d5ec
4
- data.tar.gz: 66a8cbad82ef080dacca1a1674fed165d8b4edf12f8261377c627f77c9141391
3
+ metadata.gz: 289e70e622620b2fef2ba171ca651598f81453a61d56ca876a1e6f690ef2e987
4
+ data.tar.gz: c1d115527b60482a6d40a1a43c2ad25b84ef1fe1eef9b2dee764d0d0e6884a9e
5
5
  SHA512:
6
- metadata.gz: c9e22bcc6b7a24f84e5f8612e8019770e1ac01cba9c61328e63a0c26eaa017db902232ce0925e02fc5705de16f3652d3856f7209b74f27b7f5db8246c485f828
7
- data.tar.gz: 38a3d222173cb75f0a09bfe504d82eec3edb7539e38361bacd19ed99231b4fd7d6ce58c33478a6e299d85acf430018c715fd846a36ced090182e2a51ffaba08e
6
+ metadata.gz: 842cbd8c6dcf45b5b4e3d82e041dc5bcf1d4036414c46235219dfd017ca436ffaf4bf15182f69bb34860a78daeb9953640527272c92553c832b20da990c92b9f
7
+ data.tar.gz: 411a944f1646a3f850ea33c388330389444960c237a963961938a5080ccbe8ef059f7ac2c0a06c9d5abe9f2191830f23e8795a675598fb110918f3a5ad51de86
@@ -1,3 +1,7 @@
1
+ ## RELEASE 2.0.3
2
+
3
+ * ENHANCEMENT: fetch from relative path, prepare for attractor-rails
4
+
1
5
  ## RELEASE 2.0.2
2
6
 
3
7
  * FIX: Require forwardable
@@ -35,4 +35,4 @@ object-assign
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case f:case h:case o:case u:case l:case d:return t;default:switch(t=t&&t.$$typeof){case c:case p:case s:return t;default:return e}}case v:case y:case a:return e}}}function x(t){return w(t)===h}e.typeOf=w,e.AsyncMode=f,e.ConcurrentMode=h,e.ContextConsumer=c,e.ContextProvider=s,e.Element=i,e.ForwardRef=p,e.Fragment=o,e.Lazy=v,e.Memo=y,e.Portal=a,e.Profiler=u,e.StrictMode=l,e.Suspense=d,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===h||t===u||t===l||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===y||t.$$typeof===s||t.$$typeof===c||t.$$typeof===p||t.$$typeof===g||t.$$typeof===_||t.$$typeof===b)},e.isAsyncMode=function(t){return x(t)||w(t)===f},e.isConcurrentMode=x,e.isContextConsumer=function(t){return w(t)===c},e.isContextProvider=function(t){return w(t)===s},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return w(t)===p},e.isFragment=function(t){return w(t)===o},e.isLazy=function(t){return w(t)===v},e.isMemo=function(t){return w(t)===y},e.isPortal=function(t){return w(t)===a},e.isProfiler=function(t){return w(t)===u},e.isStrictMode=function(t){return w(t)===l},e.isSuspense=function(t){return w(t)===d}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r),a=n(40),o=n.n(a),l=n(2),u=n.n(l),s=n(3),c=n.n(s),f=n(5),h=n.n(f),p=n(11),d=n(1),m=n.n(d);function y(t){return(y="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})(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function b(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0||!Array.isArray(e)&&e?v({},t,e):{}}function T(t){var e=t.icon,n=t.mask,r=t.symbol,i=t.className,a=t.title,o=k(e),l=E("classes",[].concat(b(function(t){var e,n=t.spin,r=t.pulse,i=t.fixedWidth,a=t.inverse,o=t.border,l=t.listItem,u=t.flip,s=t.size,c=t.rotation,f=t.pull,h=(v(e={"fa-spin":n,"fa-pulse":r,"fa-fw":i,"fa-inverse":a,"fa-border":o,"fa-li":l,"fa-flip-horizontal":"horizontal"===u||"both"===u,"fa-flip-vertical":"vertical"===u||"both"===u},"fa-".concat(s),void 0!==s),v(e,"fa-rotate-".concat(c),void 0!==c),v(e,"fa-pull-".concat(f),void 0!==f),v(e,"fa-swap-opacity",t.swapOpacity),e);return Object.keys(h).map((function(t){return h[t]?t:null})).filter((function(t){return t}))}(t)),b(i.split(" ")))),u=E("transform","string"==typeof t.transform?p.b.transform(t.transform):t.transform),s=E("mask",k(n)),c=Object(p.a)(o,g({},l,u,s,{symbol:r,title:a}));if(!c)return function(){var t;!x&&console&&"function"==typeof console.error&&(t=console).error.apply(t,arguments)}("Could not find icon",o),null;var f=c.abstract,h={};return Object.keys(t).forEach((function(e){T.defaultProps.hasOwnProperty(e)||(h[e]=t[e])})),S(f[0],h)}T.displayName="FontAwesomeIcon",T.propTypes={border:m.a.bool,className:m.a.string,mask:m.a.oneOfType([m.a.object,m.a.array,m.a.string]),fixedWidth:m.a.bool,inverse:m.a.bool,flip:m.a.oneOf(["horizontal","vertical","both"]),icon:m.a.oneOfType([m.a.object,m.a.array,m.a.string]),listItem:m.a.bool,pull:m.a.oneOf(["right","left"]),pulse:m.a.bool,rotation:m.a.oneOf([90,180,270]),size:m.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:m.a.bool,symbol:m.a.oneOfType([m.a.bool,m.a.string]),title:m.a.string,transform:m.a.oneOfType([m.a.string,m.a.object]),swapOpacity:m.a.bool},T.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var S=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return t(e,n)})),a=Object.keys(n.attributes||{}).reduce((function(t,e){var r=n.attributes[e];switch(e){case"class":t.attrs.className=r,delete n.attributes.class;break;case"style":t.attrs.style=function(t){return t.split(";").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n,r=e.indexOf(":"),i=w(e.slice(0,r)),a=e.slice(r+1).trim();return i.startsWith("webkit")?t[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:t[i]=a,t}),{})}(r);break;default:0===e.indexOf("aria-")||0===e.indexOf("data-")?t.attrs[e.toLowerCase()]=r:t.attrs[w(e)]=r}return t}),{attrs:{}}),o=r.style,l=void 0===o?{}:o,u=_(r,["style"]);return a.attrs.style=g({},a.attrs.style,l),e.apply(void 0,[n.tag,g({},a.attrs,u)].concat(b(i)))}.bind(null,i.a.createElement),C={prefix:"fas",iconName:"arrow-right",icon:[448,512,[],"f061","M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"]},M={prefix:"fas",iconName:"sad-tear",icon:[496,512,[],"f5b4","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM152 416c-26.5 0-48-21-48-47 0-20 28.5-60.4 41.6-77.8 3.2-4.3 9.6-4.3 12.8 0C171.5 308.6 200 349 200 369c0 26-21.5 47-48 47zm16-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm170.2 154.2C315.8 367.4 282.9 352 248 352c-21.2 0-21.2-32 0-32 44.4 0 86.3 19.6 114.7 53.8 13.8 16.4-11.2 36.5-24.5 20.4z"]},N=function(t,e){return te?1:t>=e?0:NaN},P=function(t){return null===t?NaN:+t};function O(t,e,n){return(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n))).sort(N),function(t,e,n=P){if(!(r=t.length))return;if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),l=+n(t[a+1],a+1,t);return o+(l-o)*(i-a)}(t,e)}function A(){var t=Object(r.useState)(95),e=u()(t,2),n=e[0],a=e[1],o=Object(r.useState)([]),l=u()(o,2),s=l[0],f=l[1],p=function(){var t=h()(c.a.mark((function t(e){var n,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.values){t.next=5;break}r=O(window.values,e/100,(function(t){return t.x*t.y})),n=window.values.filter((function(t){return t.x*t.y>r})),t.next=10;break;case 5:return t.next=7,fetch("/suggestions?t=".concat(e));case 7:return t.next=9,t.sent.json();case 9:n=t.sent;case 10:f(n);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){p(n)}),[]),i.a.createElement("div",{className:"card"},i.a.createElement("div",{className:"card-body"},i.a.createElement("div",{className:"d-flex justify-content-between"},i.a.createElement("div",null,i.a.createElement("h5",{className:"card-title"},"Refactoring Candidates"),i.a.createElement("h6",{className:"card-subtitle text-muted"},"Top 95 Percentile of Churn * Complexity")),i.a.createElement("div",{id:"percentile-input-group"},i.a.createElement("label",{htmlFor:"percentile",className:"text-muted"},i.a.createElement("small",null,"Percentile")),i.a.createElement("div",{className:"input-group align-items-start"},i.a.createElement("input",{type:"text",className:"form-control",placeholder:"","aria-label":"","aria-describedby":"percentile-button",id:"percentile",value:n,onChange:function(t){return a(t.target.value)}}),i.a.createElement("div",{className:"input-group-append"},i.a.createElement("button",{className:"btn btn-dark",type:"button",id:"percentile-button",onClick:function(t){t.preventDefault(),p(n)}},i.a.createElement(T,{icon:C})))))),i.a.createElement("table",{className:"table mt-4"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",{scope:"col"},"File Path"),i.a.createElement("th",{scope:"col"},"Churn"),i.a.createElement("th",{scope:"col"},"Complexity"),i.a.createElement("th",{scope:"col"},"Churn * Complexity"))),i.a.createElement("tbody",{id:"suggestions-table"},s.length>0&&s.map((function(t){return i.a.createElement("tr",{key:t.file_path},i.a.createElement("td",null,t.file_path),i.a.createElement("td",null,t.x),i.a.createElement("td",null,Math.round(t.y)),i.a.createElement("td",null,Math.round(t.x*t.y)))}))))))}var L=n(8),R=n.n(L),F=function(t){var e=t.activeFile,n=t.handleClose;return i.a.createElement("div",{className:"col-4"},i.a.createElement("div",{className:"card"},i.a.createElement("div",{className:"card-header"},i.a.createElement("h5",{className:"card-title"},e.file_path),i.a.createElement("h6",{className:"text-muted"},"Additional information"),i.a.createElement("button",{type:"button",className:"close","aria-label":"Close",onClick:n},i.a.createElement("span",{"aria-hidden":"true"},"×"))),i.a.createElement("div",{className:"card-body"},i.a.createElement("h6",{className:"text-muted"},i.a.createElement("strong",null,"Method Teardown")),i.a.createElement("table",{className:"table table-borderless mt-0 method-table"},i.a.createElement("tbody",null,Object.entries(e.details).map((function(t){var e=u()(t,2),n=e[0],r=e[1];return i.a.createElement("tr",{className:"row",key:n},i.a.createElement("td",{className:"px-3 py-1 col-9 text-truncate"},n),i.a.createElement("td",{className:"px-3 py-1 col-3"},Math.round(100*r)/100))})))),i.a.createElement("h6",{className:"text-muted mt-3"},"Git history (last 10 commits)"),i.a.createElement("table",{className:"table table-borderless mt-0 method-table"},i.a.createElement("tbody",null,e.history.map((function(t){var e=u()(t,2),n=e[0],r=e[1];return i.a.createElement("tr",{className:"row",key:n},i.a.createElement("td",{className:"px-3 py-1 col-3 text-truncate"},n),i.a.createElement("td",{className:"px-3 py-1 col-8 text-truncate"},r))})))))))},z=function(t){var e=t.state,n=t.dispatch,r=t.activePlot;return i.a.createElement("div",{className:"mt-3"},i.a.createElement("h6",{className:"text-muted"},i.a.createElement("strong",null,"Display options")),i.a.createElement("form",null,i.a.createElement("div",{className:"form-row"},i.a.createElement("div",{className:"form-group col-2"},i.a.createElement("input",{checked:e.displayFilenames,className:"form-check-input",type:"checkbox",id:"filenames-check",onChange:function(){n({type:"SET_DISPLAY_FILENAMES",displayFilenames:!e.displayFilenames})}}),i.a.createElement("label",{className:"form-check-label text-muted",htmlFor:"filenames-check"},i.a.createElement("small",null,"Display filenames"))),i.a.createElement("div",{className:"form-group col-2"},i.a.createElement("input",{checked:e.displayRegression,className:"form-check-input",type:"checkbox",id:"regression-check",disabled:r!==jf.SCATTER_PLOT,onChange:function(){n({type:"SET_DISPLAY_REGRESSION",displayRegression:!e.displayRegression})}}),i.a.createElement("label",{className:"form-check-label text-muted",htmlFor:"regression-check"},i.a.createElement("small",null,"Display regression"))),i.a.createElement("div",{className:"form-group col-3"},i.a.createElement("label",{htmlFor:"regression-type",className:"text-muted ".concat(r===jf.TREE_MAP&&"disabled")},i.a.createElement("small",null,"Regression Type")),i.a.createElement("select",{id:"regression-type",className:"form-control",disabled:r!==jf.SCATTER_PLOT,onChange:function(t){n({type:"SET_REGRESSION_TYPE",regressionType:parseInt(t.currentTarget.value)})}},i.a.createElement("option",{selected:!0,value:"0"},"Power Law"),i.a.createElement("option",{value:"1"},"Linear"))))))},I=function(t,e){return te?1:t>=e?0:NaN};var j,U,D=(1===(j=I).length&&(U=j,j=function(t,e){return I(U(t),e)}),{left:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;j(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;j(t[i],e)>0?r=i:n=i+1}return n}}),H=D.right;var W=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i=X?h*=10:p>=Q?h*=5:p>=K&&(h*=2),v=sy;)v.pop(),--g;var _,b=new Array(g+1);for(i=0;i<=g;++i)(_=b[i]=[]).x0=i>0?v[i-1]:m,_.x1=i=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r};var tt=Array.prototype.slice,et=function(t){return t},nt=1,rt=2,it=3,at=4,ot=1e-6;function lt(t){return"translate("+(t+.5)+",0)"}function ut(t){return"translate(0,"+(t+.5)+")"}function st(t){return function(e){return+t(e)}}function ct(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function ft(){return!this.__axis}function ht(t,e){var n=[],r=null,i=null,a=6,o=6,l=3,u=t===nt||t===at?-1:1,s=t===at||t===rt?"x":"y",c=t===nt||t===it?lt:ut;function f(f){var h=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):et:i,d=Math.max(a,0)+l,m=e.range(),y=+m[0]+.5,v=+m[m.length-1]+.5,g=(e.bandwidth?ct:st)(e.copy()),_=f.selection?f.selection():f,b=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(h,e).order(),x=w.exit(),k=w.enter().append("g").attr("class","tick"),E=w.select("line"),T=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(k),E=E.merge(k.append("line").attr("stroke","currentColor").attr(s+"2",u*a)),T=T.merge(k.append("text").attr("fill","currentColor").attr(s,u*d).attr("dy",t===nt?"0em":t===it?"0.71em":"0.32em")),f!==_&&(b=b.transition(f),w=w.transition(f),E=E.transition(f),T=T.transition(f),x=x.transition(f).attr("opacity",ot).attr("transform",(function(t){return isFinite(t=g(t))?c(t):this.getAttribute("transform")})),k.attr("opacity",ot).attr("transform",(function(t){var e=this.parentNode.__axis;return c(e&&isFinite(e=e(t))?e:g(t))}))),x.remove(),b.attr("d",t===at||t==rt?o?"M"+u*o+","+y+"H0.5V"+v+"H"+u*o:"M0.5,"+y+"V"+v:o?"M"+y+","+u*o+"V0.5H"+v+"V"+u*o:"M"+y+",0.5H"+v),w.attr("opacity",1).attr("transform",(function(t){return c(g(t))})),E.attr(s+"2",u*a),T.attr(s,u*d).text(p),_.filter(ft).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===rt?"start":t===at?"end":"middle"),_.each((function(){this.__axis=g}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=tt.call(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:tt.call(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(r=null==t?null:tt.call(t),f):r&&r.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(a=o=+t,f):a},f.tickSizeInner=function(t){return arguments.length?(a=+t,f):a},f.tickSizeOuter=function(t){return arguments.length?(o=+t,f):o},f.tickPadding=function(t){return arguments.length?(l=+t,f):l},f}function pt(t){return ht(it,t)}function dt(t){return ht(at,t)}var mt={value:function(){}};function yt(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function _t(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),kt.hasOwnProperty(e)?{space:kt[e],local:t}:t};function Tt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===xt&&e.documentElement.namespaceURI===xt?e.createElement(t):e.createElementNS(n,t)}}function St(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Ct=function(t){var e=Et(t);return(e.local?St:Tt)(e)};function Mt(){}var Nt=function(t){return null==t?Mt:function(){return this.querySelector(t)}};function Pt(){return[]}var Ot=function(t){return null==t?Pt:function(){return this.querySelectorAll(t)}},At=function(t){return function(){return this.matches(t)}},Lt=function(t){return new Array(t.length)};function Rt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Rt.prototype={constructor:Rt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ft="$";function zt(t,e,n,r,i,a){for(var o,l=0,u=e.length,s=a.length;le?1:t>=e?0:NaN}function Ut(t){return function(){this.removeAttribute(t)}}function Dt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ht(t,e){return function(){this.setAttribute(t,e)}}function Wt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function $t(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Yt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Bt=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function qt(t){return function(){this.style.removeProperty(t)}}function Vt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Xt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Qt(t,e){return t.style.getPropertyValue(e)||Bt(t).getComputedStyle(t,null).getPropertyValue(e)}function Kt(t){return function(){delete this[t]}}function Gt(t,e){return function(){this[t]=e}}function Zt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Jt(t){return t.trim().split(/^|\s+/)}function te(t){return t.classList||new ee(t)}function ee(t){this._node=t,this._names=Jt(t.getAttribute("class")||"")}function ne(t,e){for(var n=te(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function le(){this.textContent=""}function ue(t){return function(){this.textContent=t}}function se(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ce(){this.innerHTML=""}function fe(t){return function(){this.innerHTML=t}}function he(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function pe(){this.nextSibling&&this.parentNode.appendChild(this)}function de(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function me(){return null}function ye(){var t=this.parentNode;t&&t.removeChild(this)}function ve(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function ge(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var _e={},be=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(_e={mouseenter:"mouseover",mouseleave:"mouseout"}));function we(t,e,n){return t=xe(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function xe(t,e,n){return function(r){var i=be;be=r;try{t.call(this,this.__data__,e,n)}finally{be=i}}}function ke(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ee(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=w&&(w=b+1);!(_=v[w])&&++w=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=jt);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?qt:"function"==typeof e?Xt:Vt)(t,e,null==n?"":n)):Qt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Kt:"function"==typeof e?Zt:Gt)(t,e)):this.node()[t]},classed:function(t,e){var n=Jt(t+"");if(arguments.length<2){for(var r=te(this.node()),i=-1,a=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new an(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new an(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ye.exec(t))?new an(e[1],e[2],e[3],1):(e=Be.exec(t))?new an(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qe.exec(t))?en(e[1],e[2],e[3],e[4]):(e=Ve.exec(t))?en(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Xe.exec(t))?sn(e[1],e[2]/100,e[3]/100,1):(e=Qe.exec(t))?sn(e[1],e[2]/100,e[3]/100,e[4]):Ke.hasOwnProperty(t)?tn(Ke[t]):"transparent"===t?new an(NaN,NaN,NaN,0):null}function tn(t){return new an(t>>16&255,t>>8&255,255&t,1)}function en(t,e,n,r){return r<=0&&(t=e=n=NaN),new an(t,e,n,r)}function nn(t){return t instanceof Ue||(t=Je(t)),t?new an((t=t.rgb()).r,t.g,t.b,t.opacity):new an}function rn(t,e,n,r){return 1===arguments.length?nn(t):new an(t,e,n,null==r?1:r)}function an(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function on(){return"#"+un(this.r)+un(this.g)+un(this.b)}function ln(){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+")")}function un(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function sn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new hn(t,e,n,r)}function cn(t){if(t instanceof hn)return new hn(t.h,t.s,t.l,t.opacity);if(t instanceof Ue||(t=Je(t)),!t)return new hn;if(t instanceof hn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,l=a-i,u=(a+i)/2;return l?(o=e===a?(n-r)/l+6*(n0&&u<1?0:o,new hn(o,l,u,t.opacity)}function fn(t,e,n,r){return 1===arguments.length?cn(t):new hn(t,e,n,null==r?1:r)}function hn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function pn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function dn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Ie(Ue,Je,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ge,formatHex:Ge,formatHsl:function(){return cn(this).formatHsl()},formatRgb:Ze,toString:Ze}),Ie(an,rn,je(Ue,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new an(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new an(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:on,formatHex:on,formatRgb:ln,toString:ln})),Ie(hn,fn,je(Ue,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new hn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new hn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new an(pn(t>=240?t-240:t+120,i,r),pn(t,i,r),pn(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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var mn=function(t){return function(){return t}};function yn(t,e){return function(n){return t+n*e}}function vn(t,e){var n=e-t;return n?yn(t,n>180||n<-180?n-360*Math.round(n/360):n):mn(isNaN(t)?e:t)}function gn(t){return 1==(t=+t)?_n:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):mn(isNaN(e)?n:e)}}function _n(t,e){var n=e-t;return n?yn(t,n):mn(isNaN(t)?e:t)}var bn=function t(e){var n=gn(e);function r(t,e){var r=n((t=rn(t)).r,(e=rn(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=_n(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function wn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),l=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,l=ra&&(i=e.slice(a,i),l[o]?l[o]+=i:l[++o]=i),(n=n[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,u.push({i:o,x:En(n,r)})),a=Cn.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:En(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,l,u),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:En(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,l,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var l=a.push(i(a)+"scale(",null,",",null,")");o.push({i:l-4,x:En(t,n)},{i:l-2,x:En(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,l,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++nKn?Math.pow(t,1/3):t/Qn+Vn}function er(t){return t>Xn?t*t*t:Qn*(t-Vn)}function nr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ir(t){if(t instanceof or)return new or(t.h,t.c,t.l,t.opacity);if(t instanceof Jn||(t=Gn(t)),0===t.a&&0===t.b)return new or(NaN,0=0&&e._call.call(null,t),e=e._next;--br}()}finally{br=0,function(){var t,e,n=gr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:gr=e);_r=t,Fr(r)}(),Tr=0}}function Rr(){var t=Cr.now(),e=t-Er;e>kr&&(Sr-=e,Er=t)}function Fr(t){br||(wr&&(wr=clearTimeout(wr)),t-Tr>24?(t<1/0&&(wr=setTimeout(Lr,t-Cr.now()-Sr)),xr&&(xr=clearInterval(xr))):(xr||(Er=Cr.now(),xr=setInterval(Rr,kr)),br=1,Mr(Lr)))}Or.prototype=Ar.prototype={constructor:Or,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Nr():+n)+(null==e?0:+e),this._next||_r===this||(_r?_r._next=this:gr=this,_r=this),this._call=t,this._time=n,Fr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fr())}};var zr=function(t,e,n){var r=new Or;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Ir=wt("start","end","cancel","interrupt"),jr=[],Ur=0,Dr=1,Hr=2,Wr=3,$r=4,Yr=5,Br=6,qr=function(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(u){var s,c,f,h;if(n.state!==Dr)return l();for(s in i)if((h=i[s]).name===n.name){if(h.state===Wr)return zr(a);h.state===$r?(h.state=Br,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+sUr)throw new Error("too late; already scheduled");return n}function Xr(t,e){var n=Qr(t,e);if(n.state>Wr)throw new Error("too late; already running");return n}function Qr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Kr=function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>Hr&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Vr:Xr;return function(){var o=a(this,t),l=o.on;l!==r&&(i=(r=l).copy()).on(e,n),o.on=i}}var mi=Ae.prototype.constructor;function yi(t){return function(){this.style.removeProperty(t)}}function vi(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t,e,n){return function(r){this.style.setProperty(t,e(r),n)}}(t,a,n)),r}return a._value=e,a}var gi=0;function _i(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function bi(){return++gi}var wi=Ae.prototype;_i.prototype=function(t){return Ae().transition(t)}.prototype={constructor:_i,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Nt(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;oe?1:t>=e?0:NaN};var Ni=function(t){return 1===t.length&&(t=function(t){return function(e,n){return Mi(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}(Mi);Ni.right,Ni.left;var Pi=Array.prototype;Pi.slice,Pi.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);Math.cos,Math.sin,Math.PI,Math.max;Array.prototype.slice;var Oi=Math.PI,Ai=2*Oi,Li=Ai-1e-6;function Ri(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Fi(){return new Ri}Ri.prototype=Fi.prototype={constructor:Ri,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,l=n-t,u=r-e,s=a-t,c=o-e,f=s*s+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(c*l-u*s)>1e-6&&i){var h=n-a,p=r-o,d=l*l+u*u,m=h*h+p*p,y=Math.sqrt(d),v=Math.sqrt(f),g=i*Math.tan((Oi-Math.acos((d+f-m)/(2*y*v)))/2),_=g/v,b=g/y;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*s)+","+(e+_*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>s*p)+","+(this._x1=t+b*l)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),l=n*Math.sin(r),u=t+o,s=e+l,c=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+s:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+u+","+s),n&&(f<0&&(f=f%Ai+Ai),f>Li?this._+="A"+n+","+n+",0,1,"+c+","+(t-o)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=s):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Oi)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var zi=Fi;function Ii(){}function ji(t,e){var n=new Ii;if(t instanceof Ii)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++ie?1:t>=e?0:NaN};var Yi=function(t){return 1===t.length&&(t=function(t){return function(e,n){return $i(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}($i);Yi.right,Yi.left;var Bi=Array.prototype;Bi.slice,Bi.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);Array.prototype.slice;var qi={},Vi={},Xi=34,Qi=10,Ki=13;function Gi(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}")}function Zi(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function Ji(t,e){var n=t+"",r=n.length;return r9999?"+"+Ji(e,6):Ji(e,4))+"-"+Ji(t.getUTCMonth()+1,2)+"-"+Ji(t.getUTCDate(),2)+(a?"T"+Ji(n,2)+":"+Ji(r,2)+":"+Ji(i,2)+"."+Ji(a,3)+"Z":i?"T"+Ji(n,2)+":"+Ji(r,2)+":"+Ji(i,2)+"Z":r||n?"T"+Ji(n,2)+":"+Ji(r,2)+"Z":"")}var ea=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,l=0,u=a<=0,s=!1;function c(){if(u)return Vi;if(s)return s=!1,qi;var e,r,i=o;if(t.charCodeAt(i)===Xi){for(;o++=a?u=!0:(r=t.charCodeAt(o++))===Qi?s=!0:r===Ki&&(s=!0,t.charCodeAt(o)===Qi&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o=(a=(m+v)/2))?m=a:v=a,(c=n>=(o=(y+g)/2))?y=o:g=o,i=p,!(p=p[f=c<<1|s]))return i[f]=d,t;if(l=+t._x.call(null,p.data),u=+t._y.call(null,p.data),e===l&&n===u)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(s=e>=(a=(m+v)/2))?m=a:v=a,(c=n>=(o=(y+g)/2))?y=o:g=o}while((f=c<<1|s)==(h=(u>=o)<<1|l>=a));return i[h]=p,i[f]=d,t}var fa=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function ha(t){return t[0]}function pa(t){return t[1]}function da(t,e,n){var r=new ma(null==e?ha:e,null==n?pa:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function ma(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function ya(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var va=da.prototype=ma.prototype;va.copy=function(){var t,e,n=new ma(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=ya(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=ya(e));return n},va.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return ca(this.cover(e,n),e,n,t)},va.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),l=new Array(a),u=1/0,s=1/0,c=-1/0,f=-1/0;for(n=0;nc&&(c=r),if&&(f=i));if(u>c||s>f)return this;for(this.cover(u,s).cover(c,f),n=0;nt||t>=i||r>e||e>=a;)switch(l=(eh||(a=u.y0)>p||(o=u.x1)=v)<<1|t>=y)&&(u=d[d.length-1],d[d.length-1]=d[d.length-1-s],d[d.length-1-s]=u)}else{var g=t-+this._x.call(null,m.data),_=e-+this._y.call(null,m.data),b=g*g+_*_;if(b=(l=(d+y)/2))?d=l:y=l,(c=o>=(u=(m+v)/2))?m=u:v=u,e=p,!(p=p[f=c<<1|s]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=i,this)},va.removeAll=function(t){for(var e=0,n=t.length;e1?r[0]+r.slice(2):r,+t.slice(n+1)]},_a=function(t){return(t=ga(Math.abs(t)))?t[1]:NaN},ba=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wa(t){if(!(e=ba.exec(t)))throw new Error("invalid format: "+t);var e;return new xa({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function xa(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}wa.prototype=xa.prototype,xa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ka,Ea,Ta,Sa,Ca=function(t){t:for(var e,n=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t},Ma=function(t,e){var n=ga(t,e);if(!n)return t+"";var r=n[0],i=n[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")},Na={"%":function(t,e){return(100*t).toFixed(e)},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,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Ma(100*t,e)},r:Ma,s:function(t,e){var n=ga(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(ka=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ga(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Pa=function(t){return t},Oa=Array.prototype.map,Aa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Ea=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Pa:(e=Oa.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),a.push(t.substring(i-=l,i+l)),!((u+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?Pa:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Oa.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=wa(t)).fill,n=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,m=t.comma,y=t.precision,v=t.trim,g=t.type;"n"===g?(m=!0,g="g"):Na[g]||(void 0===y&&(y=12),v=!0,g="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",b="$"===h?a:/[%p]/.test(g)?u:"",w=Na[g],x=/[defgprs%]/.test(g);function k(t){var i,a,u,h=_,k=b;if("c"===g)k=w(t)+k,t="";else{var E=(t=+t)<0;if(t=isNaN(t)?c:w(Math.abs(t),y),v&&(t=Ca(t)),E&&0==+t&&(E=!1),h=(E?"("===f?f:s:"-"===f||"("===f?"":f)+h,k=("s"===g?Aa[8+ka/3]:"")+k+(E&&"("===f?")":""),x)for(i=-1,a=t.length;++i(u=t.charCodeAt(i))||u>57){k=(46===u?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}m&&!p&&(t=r(t,1/0));var T=h.length+t.length+k.length,S=T>1)+h+t+k+S.slice(T);break;default:t=S+h+t+k}return l(t)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),k.toString=function(){return t+""},k}return{format:f,formatPrefix:function(t,e){var n=f(((t=wa(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(_a(e)/3))),i=Math.pow(10,-r),a=Aa[8+r/3];return function(t){return n(i*t)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ta=Ea.format,Sa=Ea.formatPrefix;var La=function(){return new Ra};function Ra(){this.reset()}Ra.prototype={constructor:Ra,reset:function(){this.s=this.t=0},add:function(t){za(Fa,t,this.t),za(this,Fa.s,this.s),this.s?this.t+=Fa.t:this.s=Fa.t},valueOf:function(){return this.s}};var Fa=new Ra;function za(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var Ia=1e-6,ja=1e-12,Ua=Math.PI,Da=Ua/2,Ha=Ua/4,Wa=2*Ua,$a=Ua/180,Ya=Math.abs,Ba=Math.atan,qa=Math.atan2,Va=Math.cos,Xa=(Math.ceil,Math.exp),Qa=(Math.floor,Math.log),Ka=(Math.pow,Math.sin),Ga=Math.sign||function(t){return t>0?1:t<0?-1:0},Za=Math.sqrt,Ja=Math.tan;function to(t){return t>1?0:t<-1?Ua:Math.acos(t)}function eo(t){return t>1?Da:t<-1?-Da:Math.asin(t)}function no(){}La(),La();function ro(t){var e=t[0],n=t[1],r=Va(n);return[r*Va(e),r*Ka(e),Ka(n)]}function io(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ao(t){var e=Za(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}La();function oo(t,e){return[Ya(t)>Ua?t+Math.round(-t/Wa)*Wa:t,e]}oo.invert=oo;var lo=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:no,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},uo=function(t,e){return Ya(t[0]-e[0])=0;--a)i.point((c=s[a])[0],c[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}};function fo(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,T=E*k,S=T>Ua,C=m*w;if(ho.add(qa(C*E*Ka(T),y*x+C*Va(T))),o+=S?k+E*Wa:k,S^p>=n^_>=n){var M=io(ro(h),ro(g));ao(M);var N=io(a,M);ao(N);var P=(S^k>=0?-1:1)*eo(N[2]);(r>P||r===P&&(M[0]||M[1]))&&(l+=S^k>=0?1:-1)}}return(o<-Ia||oe?1:t>=e?0:NaN};var vo=function(t){return 1===t.length&&(t=function(t){return function(e,n){return yo(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}(yo);vo.right,vo.left;var go=Array.prototype;go.slice,go.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var _o=function(t){for(var e,n,r,i=t.length,a=-1,o=0;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n};var bo=function(t,e,n,r){return function(i){var a,o,l,u=e(i),s=lo(),c=e(s),f=!1,h={point:p,lineStart:m,lineEnd:y,polygonStart:function(){h.point=v,h.lineStart=g,h.lineEnd=_,o=[],a=[]},polygonEnd:function(){h.point=p,h.lineStart=m,h.lineEnd=y,o=_o(o);var t=mo(a,r);o.length?(f||(i.polygonStart(),f=!0),co(o,xo,t,n,i)):t&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),o=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(e,n){t(e,n)&&i.point(e,n)}function d(t,e){u.point(t,e)}function m(){h.point=d,u.lineStart()}function y(){h.point=p,u.lineEnd()}function v(t,e){l.push([t,e]),c.point(t,e)}function g(){c.lineStart(),l=[]}function _(){v(l[0][0],l[0][1]),c.lineEnd();var t,e,n,r,u=c.clean(),h=s.result(),p=h.length;if(l.pop(),a.push(l),l=null,p)if(1&u){if((e=(n=h[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&u&&h.push(h.pop().concat(h.shift())),o.push(h.filter(wo))}return h}};function wo(t){return t.length>1}function xo(t,e){return((t=t.x)[0]<0?t[1]-Da-Ia:Da-t[1])-((e=e.x)[0]<0?e[1]-Da-Ia:Da-e[1])}bo((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var l=a>0?Ua:-Ua,u=Ya(a-n);Ya(u-Ua)0?Da:-Da),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(l,r),t.point(a,r),e=0):i!==l&&u>=Ua&&(Ya(n-i)Ia?Ba((Ka(e)*(a=Va(r))*Ka(n)-Ka(r)*(i=Va(e))*Ka(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(l,r),e=0),t.point(n=a,r=o),i=l},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Da,r.point(-Ua,i),r.point(0,i),r.point(Ua,i),r.point(Ua,0),r.point(Ua,-i),r.point(0,-i),r.point(-Ua,-i),r.point(-Ua,0),r.point(-Ua,i);else if(Ya(t[0]-e[0])>Ia){var a=t[0]Ia&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]};function Wo(t,e){return[Va(e)*Ka(t),Ka(e)]}Wo.invert=No(eo);function $o(t,e){var n=Va(e),r=1+Va(t)*n;return[n*Ka(t)/r,Ka(e)/r]}$o.invert=No((function(t){return 2*Ba(t)}));function Yo(t,e){return[Qa(Ja((Da+e)/2)),-t]}Yo.invert=function(t,e){return[-e,2*Ba(Xa(t))-Da]};function Bo(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function qo(t,e){var n,r,i,a,o,l=new Ko(t),u=+t.value&&(l.value=t.value),s=[l];for(null==e&&(e=Vo);n=s.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)s.push(r=n.children[a]=new Ko(i[a])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Qo)}function Vo(t){return t.children}function Xo(t){t.data=t.data.data}function Qo(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Ko(t){this.data=t,this.depth=this.height=0,this.parent=null}Ko.prototype=qo.prototype={constructor:Ko,count:function(){return this.eachAfter(Bo)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return qo(this).eachBefore(Xo)}};Array.prototype.slice;function Go(t){if("function"!=typeof t)throw new Error;return t}function Zo(){return 0}var Jo=function(t){return function(){return t}};var tl=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)},el=function(t,e,n,r,i){for(var a,o=t.children,l=-1,u=o.length,s=t.value&&(r-e)/t.value;++lh&&(h=l),y=c*c*m,(p=Math.max(h/y,y/f))>d){c-=l;break}d=p}v.push(o={value:c,dice:u1?e:1)},n}(il);(function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,l,u,s,c,f=-1,h=o.length,p=t.value;++f1?e:1)},n})(il);var ll=function(){return Math.random()},ul=(function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(ll),function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*e()-1,a=2*e()-1,i=r*r+a*a}while(!i||i>1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(ll)),sl=(function t(e){function n(){var t=ul.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(ll),function t(e){function n(t){return function(){for(var n=0,r=0;re?1:t>=e?0:NaN}),fl=function(t){return 1===t.length&&(t=function(t){return function(e,n){return cl(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}};var hl=fl(cl),pl=hl.right,dl=(hl.left,pl);var ml=Array.prototype,yl=(ml.slice,ml.map,Math.sqrt(50)),vl=Math.sqrt(10),gl=Math.sqrt(2),_l=function(t,e,n){var r,i,a,o,l=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++l=0?(a>=yl?10:a>=vl?5:a>=gl?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=yl?10:a>=vl?5:a>=gl?2:1)}function wl(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=yl?i*=10:a>=vl?i*=5:a>=gl&&(i*=2),er&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function Rl(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i2?Fl:Rl,i=a=null,f}function f(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),l,u)))(t(s(e)))}return f.invert=function(n){return s(e((a||(a=r(l,o.map(t),En)))(n)))},f.domain=function(t){return arguments.length?(o=El.call(t,Nl),s===Ol||(s=Ll(o)),c()):o.slice()},f.range=function(t){return arguments.length?(l=Tl.call(t),c()):l.slice()},f.rangeRound=function(t){return l=Tl.call(t),u=Rn,c()},f.clamp=function(t){return arguments.length?(s=t?Ll(o):Ol,f):s!==Ol},f.interpolate=function(t){return arguments.length?(u=t,c()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,c()}}function jl(t,e){return Il()(t,e)}var Ul=function(t,e,n,r){var i,a=wl(t,e,n);switch((r=wa(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_a(e)/3)))-_a(Math.abs(t)))}(a,o))||(r.precision=i),Sa(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,_a(e)-_a(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-_a(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return Ta(r)};function Dl(t){var e=t.domain;return t.ticks=function(t){var n=e();return _l(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Ul(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,l=i[a],u=i[o];return u0?r=bl(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=bl(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(u/r)*r,e(i)):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(u*r)/r,e(i)),t},t}function Hl(){var t=jl(Ol,Ol);return t.copy=function(){return zl(t,Hl())},xl.apply(t,arguments),Dl(t)}var Wl=function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;hu)break;m.push(f)}}else for(;h=1;--c)if(!((f=s*c)u)break;m.push(f)}}else m=_l(h,p,Math.min(p-h,d)).map(n);return r?m.reverse():m},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!=typeof i&&(i=Ta(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a0))return l;do{l.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Gl.setTime(+e),Zl.setTime(+r),t(Gl),t(Zl),Math.floor(n(Gl,Zl))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var tu=Jl((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));tu.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Jl((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var eu=tu,nu=(tu.range,Jl((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),ru=(nu.range,6e4),iu=6048e5;function au(t){return Jl((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ru)/iu}))}var ou=au(0),lu=au(1),uu=au(2),su=au(3),cu=au(4),fu=au(5),hu=au(6),pu=(ou.range,lu.range,uu.range,su.range,cu.range,fu.range,hu.range,Jl((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ru)/864e5}),(function(t){return t.getDate()-1}))),du=pu,mu=(pu.range,Jl((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*ru)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),yu=(mu.range,Jl((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+e*ru)}),(function(t,e){return(e-t)/ru}),(function(t){return t.getMinutes()}))),vu=(yu.range,Jl((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),gu=(vu.range,Jl((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));gu.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Jl((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):gu:null};gu.range;function _u(t){return Jl((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/iu}))}var bu=_u(0),wu=_u(1),xu=_u(2),ku=_u(3),Eu=_u(4),Tu=_u(5),Su=_u(6),Cu=(bu.range,wu.range,xu.range,ku.range,Eu.range,Tu.range,Su.range,Jl((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),Mu=Cu,Nu=(Cu.range,Jl((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Nu.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Jl((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Pu=Nu;Nu.range;function Ou(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Au(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Lu(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var Ru,Fu,zu,Iu={"-":"",_:" ",0:"0"},ju=/^\s*\d+/,Uu=/^%/,Du=/[\\^$*+?|[\]().{}]/g;function Hu(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function Zu(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ju(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ts(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function es(t,e,n){var r=ju.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ns(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function rs(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function is(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function as(t,e,n){var r=ju.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function os(t,e,n){var r=ju.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ls(t,e,n){var r=Uu.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function us(t,e,n){var r=ju.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function ss(t,e,n){var r=ju.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function cs(t,e){return Hu(t.getDate(),e,2)}function fs(t,e){return Hu(t.getHours(),e,2)}function hs(t,e){return Hu(t.getHours()%12||12,e,2)}function ps(t,e){return Hu(1+du.count(eu(t),t),e,3)}function ds(t,e){return Hu(t.getMilliseconds(),e,3)}function ms(t,e){return ds(t,e)+"000"}function ys(t,e){return Hu(t.getMonth()+1,e,2)}function vs(t,e){return Hu(t.getMinutes(),e,2)}function gs(t,e){return Hu(t.getSeconds(),e,2)}function _s(t){var e=t.getDay();return 0===e?7:e}function bs(t,e){return Hu(ou.count(eu(t),t),e,2)}function ws(t,e){var n=t.getDay();return t=n>=4||0===n?cu(t):cu.ceil(t),Hu(cu.count(eu(t),t)+(4===eu(t).getDay()),e,2)}function xs(t){return t.getDay()}function ks(t,e){return Hu(lu.count(eu(t),t),e,2)}function Es(t,e){return Hu(t.getFullYear()%100,e,2)}function Ts(t,e){return Hu(t.getFullYear()%1e4,e,4)}function Ss(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Hu(e/60|0,"0",2)+Hu(e%60,"0",2)}function Cs(t,e){return Hu(t.getUTCDate(),e,2)}function Ms(t,e){return Hu(t.getUTCHours(),e,2)}function Ns(t,e){return Hu(t.getUTCHours()%12||12,e,2)}function Ps(t,e){return Hu(1+Mu.count(Pu(t),t),e,3)}function Os(t,e){return Hu(t.getUTCMilliseconds(),e,3)}function As(t,e){return Os(t,e)+"000"}function Ls(t,e){return Hu(t.getUTCMonth()+1,e,2)}function Rs(t,e){return Hu(t.getUTCMinutes(),e,2)}function Fs(t,e){return Hu(t.getUTCSeconds(),e,2)}function zs(t){var e=t.getUTCDay();return 0===e?7:e}function Is(t,e){return Hu(bu.count(Pu(t),t),e,2)}function js(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Eu(t):Eu.ceil(t),Hu(Eu.count(Pu(t),t)+(4===Pu(t).getUTCDay()),e,2)}function Us(t){return t.getUTCDay()}function Ds(t,e){return Hu(wu.count(Pu(t),t),e,2)}function Hs(t,e){return Hu(t.getUTCFullYear()%100,e,2)}function Ws(t,e){return Hu(t.getUTCFullYear()%1e4,e,4)}function $s(){return"+0000"}function Ys(){return"%"}function Bs(t){return+t}function qs(t){return Math.floor(+t/1e3)}!function(t){Ru=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,l=t.months,u=t.shortMonths,s=$u(i),c=Yu(i),f=$u(a),h=Yu(a),p=$u(o),d=Yu(o),m=$u(l),y=Yu(l),v=$u(u),g=Yu(u),_={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:null,d:cs,e:cs,f:ms,H:fs,I:hs,j:ps,L:ds,m:ys,M:vs,p:function(t){return i[+(t.getHours()>=12)]},Q:Bs,s:qs,S:gs,u:_s,U:bs,V:ws,w:xs,W:ks,x:null,X:null,y:Es,Y:Ts,Z:Ss,"%":Ys},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return l[t.getUTCMonth()]},c:null,d:Cs,e:Cs,f:As,H:Ms,I:Ns,j:Ps,L:Os,m:Ls,M:Rs,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Bs,s:qs,S:Fs,u:zs,U:Is,V:js,w:Us,W:Ds,x:null,X:null,y:Hs,Y:Ws,Z:$s,"%":Ys},w={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:ts,e:ts,f:os,H:ns,I:ns,j:es,L:as,m:Ju,M:rs,p:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:us,s:ss,S:is,u:qu,U:Vu,V:Xu,w:Bu,W:Qu,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:Gu,Y:Ku,Z:Zu,"%":ls};function x(t,e){return function(n){var r,i,a,o=[],l=-1,u=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Au(Lu(a.y))).getUTCDay(),r=i>4||0===i?wu.ceil(r):wu(r),r=Mu.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=e(Lu(a.y))).getDay(),r=i>4||0===i?lu.ceil(r):lu(r),r=du.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Au(Lu(a.y)).getUTCDay():e(Lu(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Au(a)):e(a)}}function E(t,e,n,r){for(var i,a,o=0,l=e.length,u=n.length;o=u)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in Iu?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",Ou);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t,Au);return e.toString=function(){return t},e}}}(t),Ru.format,Ru.parse,Fu=Ru.utcFormat,zu=Ru.utcParse}({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"]});Date.prototype.toISOString||Fu("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||zu("%Y-%m-%dT%H:%M:%S.%LZ");var Vs=Jl((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Xs=(Vs.range,Jl((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),Qs=(Xs.range,Jl((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*ru)}),(function(t,e){return(e-t)/ru}),(function(t){return t.getUTCMinutes()})));Qs.range;var Ks=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;r0)for(var r,i=t[0],a=e[0],o=t[n]-i,l=e[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*o),this._beta*e[u]+(1-this._beta)*(a+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};(function t(e){function n(t){return 1===e?new fc(t):new dc(t,e)}return n.beta=function(e){return t(+e)},n})(.85);function mc(t,e,n){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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function yc(t,e){this._context=t,this._k=(1-e)/6}yc.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:mc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:mc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new yc(t,e)}return n.tension=function(e){return t(+e)},n})(0);function vc(t,e){this._context=t,this._k=(1-e)/6}vc.prototype={areaStart:sc,areaEnd:sc,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:mc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new vc(t,e)}return n.tension=function(e){return t(+e)},n})(0);function gc(t,e){this._context=t,this._k=(1-e)/6}gc.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,e){switch(t=+t,e=+e,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:mc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new gc(t,e)}return n.tension=function(e){return t(+e)},n})(0);function _c(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Zs){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Zs){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*s+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*s+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function bc(t,e){this._context=t,this._alpha=e}bc.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:_c(this,t,e)}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=e}};(function t(e){function n(t){return e?new bc(t,e):new yc(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function wc(t,e){this._context=t,this._alpha=e}wc.prototype={areaStart:sc,areaEnd:sc,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:_c(this,t,e)}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=e}};(function t(e){function n(t){return e?new wc(t,e):new vc(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function xc(t,e){this._context=t,this._alpha=e}xc.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:_c(this,t,e)}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=e}};(function t(e){function n(t){return e?new xc(t,e):new gc(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function kc(t){this._context=t}kc.prototype={areaStart:sc,areaEnd:sc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Ec(t){return t<0?-1:1}function Tc(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return(Ec(a)+Ec(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Sc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cc(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,l=(a-r)/3;t._context.bezierCurveTo(r+l,i+l*e,a-l,o-l*n,a,o)}function Mc(t){this._context=t}function Nc(t){this._context=new Pc(t)}function Pc(t){this._context=t}function Oc(t){this._context=t}function Ac(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};function Rc(){this._=null}function Fc(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function zc(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Ic(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function jc(t){for(;t.L;)t=t.L;return t}Rc.prototype={constructor:Rc,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=jc(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(zc(this,n),n=(t=n).U),n.C=!1,r.C=!0,Ic(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(Ic(this,n),n=(t=n).U),n.C=!1,r.C=!0,zc(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?jc(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,zc(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Ic(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,zc(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Ic(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,zc(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Ic(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var Uc=Rc;function Dc(t,e,n,r){var i=[null,null],a=ff.push(i)-1;return i.left=t,i.right=e,n&&Wc(i,t,e,n),r&&Wc(i,e,t,r),sf[t.index].halfedges.push(a),sf[e.index].halfedges.push(a),i}function Hc(t,e,n){var r=[e,n];return r.left=t,r}function Wc(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function $c(t,e,n,r,i){var a,o=t[0],l=t[1],u=o[0],s=o[1],c=0,f=1,h=l[0]-u,p=l[1]-s;if(a=e-u,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>f)return;a>c&&(c=a)}if(a=r-u,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>c&&(c=a)}else if(h>0){if(a0)){if(a/=p,p<0){if(a0){if(a>f)return;a>c&&(c=a)}if(a=i-s,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>c&&(c=a)}else if(p>0){if(a0||f<1)||(c>0&&(t[0]=[u+c*h,s+c*p]),f<1&&(t[1]=[u+f*h,s+f*p]),!0)}}}}}function Yc(t,e,n,r,i){var a=t[1];if(a)return!0;var o,l,u=t[0],s=t.left,c=t.right,f=s[0],h=s[1],p=c[0],d=c[1],m=(f+p)/2,y=(h+d)/2;if(d===h){if(m=r)return;if(f>p){if(u){if(u[1]>=i)return}else u=[m,n];a=[m,i]}else{if(u){if(u[1]1)if(f>p){if(u){if(u[1]>=i)return}else u=[(n-l)/o,n];a=[(i-l)/o,i]}else{if(u){if(u[1]=r)return}else u=[e,o*e+l];a=[r,o*r+l]}else{if(u){if(u[0]=-pf)){var p=u*u+s*s,d=c*c+f*f,m=(f*p-s*d)/h,y=(u*d-c*p)/h,v=Qc.pop()||new Kc;v.arc=t,v.site=i,v.x=m+o,v.y=(v.cy=y+l)+Math.sqrt(m*m+y*y),t.circle=v;for(var g=null,_=cf._;_;)if(v.y<_.y||v.y===_.y&&v.x<=_.x){if(!_.L){g=_.P;break}_=_.L}else{if(!_.R){g=_;break}_=_.R}cf.insert(g,v),g||(Xc=v)}}}}function Zc(t){var e=t.circle;e&&(e.P||(Xc=e.N),cf.remove(e),Qc.push(e),Fc(e),t.circle=null)}var Jc=[];function tf(){Fc(this),this.edge=this.site=this.circle=null}function ef(t){var e=Jc.pop()||new tf;return e.site=t,e}function nf(t){Zc(t),uf.remove(t),Jc.push(t),Fc(t)}function rf(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],a=t.P,o=t.N,l=[t];nf(t);for(var u=a;u.circle&&Math.abs(n-u.circle.x)hf)l=l.L;else{if(!((i=a-lf(l,o))>hf)){r>-hf?(e=l.P,n=l):i>-hf?(e=l,n=l.N):e=n=l;break}if(!l.R){e=l;break}l=l.R}!function(t){sf[t.index]={site:t,halfedges:[]}}(t);var u=ef(t);if(uf.insert(e,u),e||n){if(e===n)return Zc(e),n=ef(e.site),uf.insert(u,n),u.edge=n.edge=Dc(e.site,u.site),Gc(e),void Gc(n);if(n){Zc(e),Zc(n);var s=e.site,c=s[0],f=s[1],h=t[0]-c,p=t[1]-f,d=n.site,m=d[0]-c,y=d[1]-f,v=2*(h*y-p*m),g=h*h+p*p,_=m*m+y*y,b=[(y*g-p*_)/v+c,(h*_-m*g)/v+f];Wc(n.edge,s,d,b),u.edge=Dc(s,t,null,b),n.edge=Dc(t,d,null,b),Gc(e),Gc(n)}else u.edge=Dc(e.site,u.site)}}function of(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var l=(n=o.site)[0],u=n[1],s=u-e;if(!s)return l;var c=l-r,f=1/a-1/s,h=c/s;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*s)-u+s/2+i-a/2)))/f+r:(r+l)/2}function lf(t,e){var n=t.N;if(n)return of(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var uf,sf,cf,ff,hf=1e-6,pf=1e-12;function df(t,e){return e[1]-t[1]||e[0]-t[0]}function mf(t,e){var n,r,i,a=t.sort(df).pop();for(ff=[],sf=new Array(t.length),uf=new Uc,cf=new Uc;;)if(i=Xc,a&&(!i||a[1]hf||Math.abs(i[0][1]-i[1][1])>hf)||delete ff[a]}(o,l,u,s),function(t,e,n,r){var i,a,o,l,u,s,c,f,h,p,d,m,y=sf.length,v=!0;for(i=0;ihf||Math.abs(m-h)>hf)&&(u.splice(l,0,ff.push(Hc(o,p,Math.abs(d-t)hf?[t,Math.abs(f-t)hf?[Math.abs(h-r)hf?[n,Math.abs(f-n)hf?[Math.abs(h-e)=l)return null;var u=t-i.site[0],s=e-i.site[1],c=u*u+s*s;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],l=r.left;if(l!==i.site&&l||(l=r.right)){var u=t-l[0],s=e-l[1],f=u*u+s*s;fr&&(t.splice(a+1,0,s),n=!0)}var i;return n}}var bf=function(){let t,e=t=>t[0],n=t=>t[1];function r(r){let i=r.length,a=0,o=0,l=0,u=0,s=0,c=t?+t[0]:1/0,f=t?+t[1]:-1/0;for(let h=0;hf&&(f=p)))}const h=((i=a)*u-o*l)/(i*s-o*o),p=(l-h*o)/i,d=t=>h*t+p,m=vf(r,e,n,l,d),y=[[c,c*h+p],[f,f*h+p]];return y.a=h,y.b=p,y.predict=d,y.rSquared=m,y}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r};var wf=function(){let t,e=t=>t[0],n=t=>t[1];function r(r){let i=r.length,a=0,o=0,l=0,u=0,s=0,c=0,f=t?+t[0]:1/0,h=t?+t[1]:-1/0;for(let p=0;ph&&(h=d)))}const p=((i=a)*l-o*u)/(i*s-Math.pow(o,2)),d=Math.exp((u-p*o)/i),m=t=>d*Math.pow(t,p),y=_f(f,h,m);return y.a=d,y.b=p,y.predict=m,y.rSquared=vf(r,e,n,c,m),y}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r};var xf=function(t){return t};function kf(t,...e){return Ef(t,xf,xf,e)}function Ef(t,e,n,r){return function t(i,a){if(a>=r.length)return n(i);const o=new Map,l=r[a++];let u=-1;for(const t of i){const e=l(t,++u,i),n=o.get(e);n?n.push(t):o.set(e,[t])}for(const[e,n]of o)o.set(e,t(n,a));return e(o)}(t,0)}var Tf=function(t,e){switch(t){case If.LINEAR:return"y = ".concat(e.a.toFixed(2)," x + ").concat(e.b.toFixed(2));case If.POWER_LAW:default:return"y = ".concat(e.a.toFixed(2)," x ^ ").concat(e.b.toFixed(2))}},Sf=function(t,e,n){return function(){var t=ol,e=!1,n=1,r=1,i=[0],a=Zo,o=Zo,l=Zo,u=Zo,s=Zo;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(tl),t}function f(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,f=e.x1-n,h=e.y1-n;f2&&void 0!==arguments[2]?arguments[2]:function(){});t.innerHTML="";var d=600,m=600;n=n.filter((function(t){return t.file_path.startsWith("".concat(c).concat(h))}));var y={top:20,right:30,bottom:30,left:40},v=Kl().domain(W(n.filter((function(t){return t.y>0})),(function(t){return t.x*t.y}))).range(["green","red"]),g=Kl().domain(W(n.filter((function(t){return t.y>0})),(function(t){return t.x*t.y}))).range(["lightgreen","tomato"]),_=Hl().domain(W(n,(function(t){return t.x}))).nice().range([y.left,d-y.right]),b=Hl().domain(W(n,(function(t){return t.y}))).nice().range([m-y.bottom,y.top]),w=function(t){return t.attr("transform","translate(0,".concat(m-y.bottom,")")).call(pt(_)).call((function(t){return t.select(".domain").remove()})).call((function(t){return t.append("text").attr("x",d/2+y.left).attr("y",30).attr("fill","#000").attr("font-size",12).attr("font-weight","bold").attr("text-anchor","end").text("Churn")}))},x=function(t){return t.attr("transform","translate(".concat(y.left,",0)")).call(dt(b)).call((function(t){return t.select(".domain").remove()})).call((function(t){return t.append("text").attr("y",-30).attr("x",-m/2).attr("transform","rotate(-90)").attr("fill","#000").attr("font-size",12).attr("text-anchor","start").attr("font-weight","bold").text("Complexity")}))},k=ac().x((function(t){return _(t[0])})).y((function(t){return b(t[1])})),E=Le(t).append("svg").attr("viewBox",[0,0,d,m]),T=E.append("g");if(T.append("g").attr("class","axis").call(w).selectAll(".tick line").classed("baseline",(function(t){return 0===t})),T.append("g").attr("class","axis").call(x).selectAll(".tick line").classed("baseline",(function(t){return 0===t})),T.append("g").attr("stroke-width",1.5).attr("font-family","Red Hat Text").attr("font-size",12).selectAll("g").data(n).join("g").attr("transform",(function(t){return"translate(".concat(_(t.x),",").concat(b(t.y),")")})).call((function(t){return t.append("circle").attr("fill",(function(t){return g(t.x*t.y)})).attr("stroke",(function(t){return v(t.x*t.y)})).attr("style","cursor:pointer").attr("r",4)})).call((function(t){return u?t.append("text").attr("dy","0.35em").attr("x",7).attr("style","cursor:pointer").text((function(t){return t.file_path})):null})).on("click",(function(t){p(t)})),i){var S=function(t){switch(t){case If.LINEAR:return bf().x((function(t){return t.x})).y((function(t){return t.y})).domain([3,J(n,(function(t){return t.x}))]);case If.POWER_LAW:default:return n=n.filter((function(t){return t.y>0})),wf().x((function(t){return t.x})).y((function(t){return t.y})).domain([3,J(n,(function(t){return t.x}))])}}(o),C=S(n);T.append("g").attr("font-family","Red Hat Text").attr("font-size",24).call((function(t){return t.append("path").attr("class","regression").datum(S(n)).attr("d",k)})).call((function(t){return t.append("text").attr("dy","60").attr("dx","33%").text("R^2 = ".concat(C.rSquared.toFixed(2)))})).call((function(t){return t.append("text").attr("dy","30").attr("dx","33%").text(Tf(o,C))}))}}(f.current,{values:n,displayRegression:o,regressionType:l,displayFilenames:u,filePrefix:a,path:s,activeFile:c},e)})),i.a.createElement("div",{id:"canvas",ref:f})},Pf=function(t){var e=t.fileClickCallback,n=t.values,a=t.filePrefix,o=t.displayRegression,l=t.regressionType,s=t.metricType,c=t.displayFilenames,f=t.path,h=t.activeFile,p=Object(r.useRef)(null);return Object(r.useEffect)((function(){!function(t,e){var n=e.values,r=(e.displayRegression,e.regressionType,e.metricType),i=void 0===r?0:r,a=e.displayFilenames,o=void 0!==a&&a,l=e.filePrefix,s=void 0===l?"":l,c=e.path,f=void 0===c?"":c,h=(e.activeFile,arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){});t.innerHTML="";var p=600,d=600,m=Cl(Ks),y=(n=n.filter((function(t){return t.file_path.startsWith("".concat(s).concat(f))}))).map((function(t){var e;switch(i){case Uf.COMPLEXITY:e=t.y;break;case Uf.CHURN:e=t.x;break;case Uf.CHURN_COMPLEXITY:default:e=t.y*t.x}return{name:t.file_path.substring(s.length+1),value:e,file_path:t.file_path,details:t.details,history:t.history}})).map((function(t){return{name:t.name.split("/"),value:t.value,file_path:t.file_path,details:t.details,history:t.history}})),v={name:s,children:Array.from(kf(y,(function(t){return t.name[0]})),(function(t){var e=u()(t,2),n=e[0],r=e[1];return{name:n,children:Array.from(kf(r,(function(t){return t.name[1]})),(function(t){var e=u()(t,2);return{name:e[0],children:e[1]}}))}}))},g=Le(t).append("svg").attr("viewBox",[0,0,p,d]).style("font-size","10px");if(v.children.length>0){var _=Sf(v,p,d),b=g.selectAll("g").data(_.leaves()).join("g").attr("transform",(function(t){return"translate(".concat(t.x0,",").concat(t.y0,")")}));b.append("title").text((function(t){return"".concat(t.ancestors().reverse().map((function(t){return t.data.name})).join("/"),"\n").concat(Cf(t.value))})),b.append("rect").attr("fill",(function(t){for(;t.depth>1;)t=t.parent;return m(t.data.name)})).attr("fill-opacity",.6).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).on("click",(function(t){h(t.data)})),o&&Mf(b)}}(p.current,{values:n,displayRegression:o,regressionType:l,metricType:s,displayFilenames:c,filePrefix:a,path:f,activeFile:h},e)})),i.a.createElement("div",{id:"canvas",ref:p})},Of=function(t){var e=t.fileClickCallback,n=t.values,a=t.filePrefix,o=t.displayRegression,l=t.regressionType,u=t.metricType,s=t.displayFilenames,c=t.path,f=t.activeFile,h=Object(r.useRef)(null);return Object(r.useEffect)((function(){!function(t,e){var n=e.values,r=(e.displayRegression,e.regressionType,e.metricType),i=void 0===r?0:r,a=(e.displayFilenames,e.filePrefix),o=void 0===a?"":a,l=e.path,u=void 0===l?"":l;e.activeFile,arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.innerHTML="";var s=600,c=600;n=n.filter((function(t){return t.file_path.startsWith("".concat(o).concat(u))}));var f={top:20,right:30,bottom:30,left:40},h=Le(t).append("svg").attr("viewBox",[0,0,s,c]).style("font-size","10px"),p=n.map((function(t){return i===Uf.COMPLEXITY?t.y:t.x})),d=Hl().domain(W(p)).range(["green","red"]),m=Hl().domain(W(p)).nice(20).range([f.left,s-f.right]),y=Z().domain(m.domain()).thresholds(m.ticks(20))(p),v=Hl().domain([0,J(y,(function(t){return t.length}))]).nice().range([c-f.bottom,f.top]),g=function(t){return t.attr("transform","translate(0,".concat(c-f.bottom,")")).call(pt(m).tickSizeOuter(0))},_=function(t){return t.attr("transform","translate(".concat(f.left,",0)")).call(dt(v))};h.append("g").selectAll("rect").data(y).join("rect").attr("fill",(function(t){return d(t.x0)})).attr("x",(function(t){return m(t.x0)+1})).attr("width",(function(t){return Math.max(0,m(t.x1)-m(t.x0)-1)})).attr("y",(function(t){return v(t.length)})).attr("height",(function(t){return v(0)-v(t.length)})),h.append("g").call(g),h.append("g").call(_)}(h.current,{values:n,displayRegression:o,regressionType:l,metricType:u,displayFilenames:s,filePrefix:a,path:c,activeFile:f},e)})),i.a.createElement("div",{id:"canvas",ref:h})},Af=n(41),Lf=n.n(Af);function Rf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ff(t){for(var e=1;e0&&i.a.createElement(F,{activeFile:l.activeFile,handleClose:function(){s({type:"SET_ACTIVE_FILE",activeFile:{}})}}))},Wf=n(42),$f=n.n(Wf);var Yf=function(){return(Yf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=e?t:e}),Gf=!1,Zf=[],Jf=function(t){Zf.push(t),Gf||1!==Zf.length||function t(){Gf=!0;var e=Zf.shift();if(e)return e(t);Gf=!1}()},th=function(t,e){var n;Bf=window.requestAnimationFrame((function r(i){i-(n=n||i)>e?t():Bf=window.requestAnimationFrame(r)}))},eh=function(){},nh={isFinished:!1,progress:0,sideEffect:eh},rh=function(){Bf&&window.cancelAnimationFrame(Bf),Gf=!1,Zf=[]},ih=function(t){var e=void 0===t?{}:t,n=e.animationDuration,i=void 0===n?200:n,a=e.incrementDuration,o=void 0===a?800:a,l=e.isAnimating,u=void 0!==l&&l,s=e.minimum,c=void 0===s?.08:s,f=Vf(nh),h=f[0],p=f[1],d=function(t){if(1===(t=Kf(t,c,1)))return rh(),Jf((function(e){p({progress:t,sideEffect:function(){return th(e,i)}})})),void Jf((function(){p({isFinished:!0,sideEffect:rh})}));Jf((function(e){p({progress:t,sideEffect:function(){return th(e,i)}})}))},m=function(){var t,e;d((t=h().progress,e=0,t>=0&&t<.2?e=.1:t>=.2&&t<.5?e=.04:t>=.5&&t<.8?e=.02:t>=.8&&t<.99&&(e=.005),Kf(t+e,0,.994)))},y=function(){!function t(){m(),Jf((function(e){th((function(){t(),e()}),o)}))}()},v=Object(r.useRef)(eh);return Object(r.useEffect)((function(){v.current=m})),Xf((function(){return u&&y(),rh})),Qf((function(){h().sideEffect()}),[h().sideEffect]),Qf((function(){u?p({sideEffect:y}):d(1)}),[u]),{animationDuration:i,isFinished:h().isFinished,progress:h().progress}},ah=function(t){var e=t.children,n=$f()(t,["children"]);return e(ih(n))};var oh=function(t){var e=t.progress,n=t.animationDuration;return r.createElement("div",{className:"progressbar",style:{marginLeft:"".concat(100*(-1+e),"%"),transition:"margin-left ".concat(n,"ms linear")}},r.createElement("div",{className:"shadow"}))};oh.propTypes={animationDuration:m.a.number.isRequired,progress:m.a.number.isRequired};var lh=oh,uh=function(t){var e=t.children,n=t.isFinished,i=t.animationDuration;return r.createElement("div",{style:{opacity:n?0:1,pointerEvents:"none",transition:"opacity ".concat(i,"ms linear")}},e)};uh.propTypes={animationDuration:m.a.number.isRequired,children:m.a.node.isRequired,isFinished:m.a.bool.isRequired};var sh=uh,ch=function(t){var e=t.isAnimating,n=t.key;return i.a.createElement(ah,{isAnimating:e,key:n},(function(t){var e=t.animationDuration,n=t.isFinished,r=t.progress;return i.a.createElement(sh,{isFinished:n,animationDuration:e},i.a.createElement(lh,{progress:r,animationDuration:e}))}))};function fh(){var t=Object(r.useState)(window.type||"rb"),e=u()(t,2),n=e[0],a=e[1],o=Object(r.useState)(!0),l=u()(o,2),s=l[0],c=l[1];return i.a.createElement(i.a.Fragment,null,i.a.createElement(ch,{isAnimating:s,key:n}),i.a.createElement("nav",{className:"navbar navbar-expand-lg navbar-light bg-light fixed-top"},i.a.createElement("a",{className:"navbar-brand",href:"#"},i.a.createElement("img",{src:"images/attractor_logo.svg",alt:"",width:"36",className:"mr-3"}),"Attractor"),i.a.createElement("ul",{className:"navbar-nav mx-auto"},Object.entries(window.types).map((function(t){var e=u()(t,2),r=e[0],o=e[1];return i.a.createElement("li",{className:"nav-item ".concat(n===r?"active":"")},i.a.createElement("a",{className:"nav-link",href:window.serveStatic?"index.".concat(r,".html"):"#",onClick:function(){window.serveStatic||(c(!0),a(r))}},o))})))),i.a.createElement("div",{className:"container"},i.a.createElement(Hf,{type:n,finishedLoadingCallback:function(){c(!1)}}),i.a.createElement("div",{className:"row mt-3"},i.a.createElement("div",{className:"col-12"},i.a.createElement(A,null)))))}document.addEventListener("DOMContentLoaded",(function(){document.getElementById("react-root")&&o.a.render(i.a.createElement(fh,null),document.getElementById("react-root"))}))}]);
38
+ */Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case f:case h:case o:case u:case l:case d:return t;default:switch(t=t&&t.$$typeof){case c:case p:case s:return t;default:return e}}case v:case y:case a:return e}}}function x(t){return w(t)===h}e.typeOf=w,e.AsyncMode=f,e.ConcurrentMode=h,e.ContextConsumer=c,e.ContextProvider=s,e.Element=i,e.ForwardRef=p,e.Fragment=o,e.Lazy=v,e.Memo=y,e.Portal=a,e.Profiler=u,e.StrictMode=l,e.Suspense=d,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===h||t===u||t===l||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===y||t.$$typeof===s||t.$$typeof===c||t.$$typeof===p||t.$$typeof===g||t.$$typeof===_||t.$$typeof===b)},e.isAsyncMode=function(t){return x(t)||w(t)===f},e.isConcurrentMode=x,e.isContextConsumer=function(t){return w(t)===c},e.isContextProvider=function(t){return w(t)===s},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return w(t)===p},e.isFragment=function(t){return w(t)===o},e.isLazy=function(t){return w(t)===v},e.isMemo=function(t){return w(t)===y},e.isPortal=function(t){return w(t)===a},e.isProfiler=function(t){return w(t)===u},e.isStrictMode=function(t){return w(t)===l},e.isSuspense=function(t){return w(t)===d}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r),a=n(40),o=n.n(a),l=n(2),u=n.n(l),s=n(3),c=n.n(s),f=n(5),h=n.n(f),p=n(11),d=n(1),m=n.n(d);function y(t){return(y="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})(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function b(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0||!Array.isArray(e)&&e?v({},t,e):{}}function T(t){var e=t.icon,n=t.mask,r=t.symbol,i=t.className,a=t.title,o=k(e),l=E("classes",[].concat(b(function(t){var e,n=t.spin,r=t.pulse,i=t.fixedWidth,a=t.inverse,o=t.border,l=t.listItem,u=t.flip,s=t.size,c=t.rotation,f=t.pull,h=(v(e={"fa-spin":n,"fa-pulse":r,"fa-fw":i,"fa-inverse":a,"fa-border":o,"fa-li":l,"fa-flip-horizontal":"horizontal"===u||"both"===u,"fa-flip-vertical":"vertical"===u||"both"===u},"fa-".concat(s),void 0!==s),v(e,"fa-rotate-".concat(c),void 0!==c),v(e,"fa-pull-".concat(f),void 0!==f),v(e,"fa-swap-opacity",t.swapOpacity),e);return Object.keys(h).map((function(t){return h[t]?t:null})).filter((function(t){return t}))}(t)),b(i.split(" ")))),u=E("transform","string"==typeof t.transform?p.b.transform(t.transform):t.transform),s=E("mask",k(n)),c=Object(p.a)(o,g({},l,u,s,{symbol:r,title:a}));if(!c)return function(){var t;!x&&console&&"function"==typeof console.error&&(t=console).error.apply(t,arguments)}("Could not find icon",o),null;var f=c.abstract,h={};return Object.keys(t).forEach((function(e){T.defaultProps.hasOwnProperty(e)||(h[e]=t[e])})),S(f[0],h)}T.displayName="FontAwesomeIcon",T.propTypes={border:m.a.bool,className:m.a.string,mask:m.a.oneOfType([m.a.object,m.a.array,m.a.string]),fixedWidth:m.a.bool,inverse:m.a.bool,flip:m.a.oneOf(["horizontal","vertical","both"]),icon:m.a.oneOfType([m.a.object,m.a.array,m.a.string]),listItem:m.a.bool,pull:m.a.oneOf(["right","left"]),pulse:m.a.bool,rotation:m.a.oneOf([90,180,270]),size:m.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:m.a.bool,symbol:m.a.oneOfType([m.a.bool,m.a.string]),title:m.a.string,transform:m.a.oneOfType([m.a.string,m.a.object]),swapOpacity:m.a.bool},T.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var S=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return t(e,n)})),a=Object.keys(n.attributes||{}).reduce((function(t,e){var r=n.attributes[e];switch(e){case"class":t.attrs.className=r,delete n.attributes.class;break;case"style":t.attrs.style=function(t){return t.split(";").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n,r=e.indexOf(":"),i=w(e.slice(0,r)),a=e.slice(r+1).trim();return i.startsWith("webkit")?t[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:t[i]=a,t}),{})}(r);break;default:0===e.indexOf("aria-")||0===e.indexOf("data-")?t.attrs[e.toLowerCase()]=r:t.attrs[w(e)]=r}return t}),{attrs:{}}),o=r.style,l=void 0===o?{}:o,u=_(r,["style"]);return a.attrs.style=g({},a.attrs.style,l),e.apply(void 0,[n.tag,g({},a.attrs,u)].concat(b(i)))}.bind(null,i.a.createElement),C={prefix:"fas",iconName:"arrow-right",icon:[448,512,[],"f061","M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"]},M={prefix:"fas",iconName:"sad-tear",icon:[496,512,[],"f5b4","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM152 416c-26.5 0-48-21-48-47 0-20 28.5-60.4 41.6-77.8 3.2-4.3 9.6-4.3 12.8 0C171.5 308.6 200 349 200 369c0 26-21.5 47-48 47zm16-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm170.2 154.2C315.8 367.4 282.9 352 248 352c-21.2 0-21.2-32 0-32 44.4 0 86.3 19.6 114.7 53.8 13.8 16.4-11.2 36.5-24.5 20.4z"]},N=function(t,e){return te?1:t>=e?0:NaN},P=function(t){return null===t?NaN:+t};function O(t,e,n){return(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n))).sort(N),function(t,e,n=P){if(!(r=t.length))return;if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),l=+n(t[a+1],a+1,t);return o+(l-o)*(i-a)}(t,e)}function A(){var t=Object(r.useState)(95),e=u()(t,2),n=e[0],a=e[1],o=Object(r.useState)([]),l=u()(o,2),s=l[0],f=l[1],p=function(){var t=h()(c.a.mark((function t(e){var n,r;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.values){t.next=5;break}r=O(window.values,e/100,(function(t){return t.x*t.y})),n=window.values.filter((function(t){return t.x*t.y>r})),t.next=10;break;case 5:return t.next=7,fetch("suggestions?t=".concat(e));case 7:return t.next=9,t.sent.json();case 9:n=t.sent;case 10:f(n);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){p(n)}),[]),i.a.createElement("div",{className:"card"},i.a.createElement("div",{className:"card-body"},i.a.createElement("div",{className:"d-flex justify-content-between"},i.a.createElement("div",null,i.a.createElement("h5",{className:"card-title"},"Refactoring Candidates"),i.a.createElement("h6",{className:"card-subtitle text-muted"},"Top 95 Percentile of Churn * Complexity")),i.a.createElement("div",{id:"percentile-input-group"},i.a.createElement("label",{htmlFor:"percentile",className:"text-muted"},i.a.createElement("small",null,"Percentile")),i.a.createElement("div",{className:"input-group align-items-start"},i.a.createElement("input",{type:"text",className:"form-control",placeholder:"","aria-label":"","aria-describedby":"percentile-button",id:"percentile",value:n,onChange:function(t){return a(t.target.value)}}),i.a.createElement("div",{className:"input-group-append"},i.a.createElement("button",{className:"btn btn-dark",type:"button",id:"percentile-button",onClick:function(t){t.preventDefault(),p(n)}},i.a.createElement(T,{icon:C})))))),i.a.createElement("table",{className:"table mt-4"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",{scope:"col"},"File Path"),i.a.createElement("th",{scope:"col"},"Churn"),i.a.createElement("th",{scope:"col"},"Complexity"),i.a.createElement("th",{scope:"col"},"Churn * Complexity"))),i.a.createElement("tbody",{id:"suggestions-table"},s.length>0&&s.map((function(t){return i.a.createElement("tr",{key:t.file_path},i.a.createElement("td",null,t.file_path),i.a.createElement("td",null,t.x),i.a.createElement("td",null,Math.round(t.y)),i.a.createElement("td",null,Math.round(t.x*t.y)))}))))))}var L=n(8),R=n.n(L),F=function(t){var e=t.activeFile,n=t.handleClose;return i.a.createElement("div",{className:"col-4"},i.a.createElement("div",{className:"card"},i.a.createElement("div",{className:"card-header"},i.a.createElement("h5",{className:"card-title"},e.file_path),i.a.createElement("h6",{className:"text-muted"},"Additional information"),i.a.createElement("button",{type:"button",className:"close","aria-label":"Close",onClick:n},i.a.createElement("span",{"aria-hidden":"true"},"×"))),i.a.createElement("div",{className:"card-body"},i.a.createElement("h6",{className:"text-muted"},i.a.createElement("strong",null,"Method Teardown")),i.a.createElement("table",{className:"table table-borderless mt-0 method-table"},i.a.createElement("tbody",null,Object.entries(e.details).map((function(t){var e=u()(t,2),n=e[0],r=e[1];return i.a.createElement("tr",{className:"row",key:n},i.a.createElement("td",{className:"px-3 py-1 col-9 text-truncate"},n),i.a.createElement("td",{className:"px-3 py-1 col-3"},Math.round(100*r)/100))})))),i.a.createElement("h6",{className:"text-muted mt-3"},"Git history (last 10 commits)"),i.a.createElement("table",{className:"table table-borderless mt-0 method-table"},i.a.createElement("tbody",null,e.history.map((function(t){var e=u()(t,2),n=e[0],r=e[1];return i.a.createElement("tr",{className:"row",key:n},i.a.createElement("td",{className:"px-3 py-1 col-3 text-truncate"},n),i.a.createElement("td",{className:"px-3 py-1 col-8 text-truncate"},r))})))))))},z=function(t){var e=t.state,n=t.dispatch,r=t.activePlot;return i.a.createElement("div",{className:"mt-3"},i.a.createElement("h6",{className:"text-muted"},i.a.createElement("strong",null,"Display options")),i.a.createElement("form",null,i.a.createElement("div",{className:"form-row"},i.a.createElement("div",{className:"form-group col-2"},i.a.createElement("input",{checked:e.displayFilenames,className:"form-check-input",type:"checkbox",id:"filenames-check",onChange:function(){n({type:"SET_DISPLAY_FILENAMES",displayFilenames:!e.displayFilenames})}}),i.a.createElement("label",{className:"form-check-label text-muted",htmlFor:"filenames-check"},i.a.createElement("small",null,"Display filenames"))),i.a.createElement("div",{className:"form-group col-2"},i.a.createElement("input",{checked:e.displayRegression,className:"form-check-input",type:"checkbox",id:"regression-check",disabled:r!==jf.SCATTER_PLOT,onChange:function(){n({type:"SET_DISPLAY_REGRESSION",displayRegression:!e.displayRegression})}}),i.a.createElement("label",{className:"form-check-label text-muted",htmlFor:"regression-check"},i.a.createElement("small",null,"Display regression"))),i.a.createElement("div",{className:"form-group col-3"},i.a.createElement("label",{htmlFor:"regression-type",className:"text-muted ".concat(r===jf.TREE_MAP&&"disabled")},i.a.createElement("small",null,"Regression Type")),i.a.createElement("select",{id:"regression-type",className:"form-control",disabled:r!==jf.SCATTER_PLOT,onChange:function(t){n({type:"SET_REGRESSION_TYPE",regressionType:parseInt(t.currentTarget.value)})}},i.a.createElement("option",{selected:!0,value:"0"},"Power Law"),i.a.createElement("option",{value:"1"},"Linear"))))))},I=function(t,e){return te?1:t>=e?0:NaN};var j,U,D=(1===(j=I).length&&(U=j,j=function(t,e){return I(U(t),e)}),{left:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;j(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;j(t[i],e)>0?r=i:n=i+1}return n}}),H=D.right;var W=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i=X?h*=10:p>=Q?h*=5:p>=K&&(h*=2),v=sy;)v.pop(),--g;var _,b=new Array(g+1);for(i=0;i<=g;++i)(_=b[i]=[]).x0=i>0?v[i-1]:m,_.x1=i=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r};var tt=Array.prototype.slice,et=function(t){return t},nt=1,rt=2,it=3,at=4,ot=1e-6;function lt(t){return"translate("+(t+.5)+",0)"}function ut(t){return"translate(0,"+(t+.5)+")"}function st(t){return function(e){return+t(e)}}function ct(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function ft(){return!this.__axis}function ht(t,e){var n=[],r=null,i=null,a=6,o=6,l=3,u=t===nt||t===at?-1:1,s=t===at||t===rt?"x":"y",c=t===nt||t===it?lt:ut;function f(f){var h=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):et:i,d=Math.max(a,0)+l,m=e.range(),y=+m[0]+.5,v=+m[m.length-1]+.5,g=(e.bandwidth?ct:st)(e.copy()),_=f.selection?f.selection():f,b=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(h,e).order(),x=w.exit(),k=w.enter().append("g").attr("class","tick"),E=w.select("line"),T=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(k),E=E.merge(k.append("line").attr("stroke","currentColor").attr(s+"2",u*a)),T=T.merge(k.append("text").attr("fill","currentColor").attr(s,u*d).attr("dy",t===nt?"0em":t===it?"0.71em":"0.32em")),f!==_&&(b=b.transition(f),w=w.transition(f),E=E.transition(f),T=T.transition(f),x=x.transition(f).attr("opacity",ot).attr("transform",(function(t){return isFinite(t=g(t))?c(t):this.getAttribute("transform")})),k.attr("opacity",ot).attr("transform",(function(t){var e=this.parentNode.__axis;return c(e&&isFinite(e=e(t))?e:g(t))}))),x.remove(),b.attr("d",t===at||t==rt?o?"M"+u*o+","+y+"H0.5V"+v+"H"+u*o:"M0.5,"+y+"V"+v:o?"M"+y+","+u*o+"V0.5H"+v+"V"+u*o:"M"+y+",0.5H"+v),w.attr("opacity",1).attr("transform",(function(t){return c(g(t))})),E.attr(s+"2",u*a),T.attr(s,u*d).text(p),_.filter(ft).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===rt?"start":t===at?"end":"middle"),_.each((function(){this.__axis=g}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=tt.call(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:tt.call(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(r=null==t?null:tt.call(t),f):r&&r.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(a=o=+t,f):a},f.tickSizeInner=function(t){return arguments.length?(a=+t,f):a},f.tickSizeOuter=function(t){return arguments.length?(o=+t,f):o},f.tickPadding=function(t){return arguments.length?(l=+t,f):l},f}function pt(t){return ht(it,t)}function dt(t){return ht(at,t)}var mt={value:function(){}};function yt(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function _t(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),kt.hasOwnProperty(e)?{space:kt[e],local:t}:t};function Tt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===xt&&e.documentElement.namespaceURI===xt?e.createElement(t):e.createElementNS(n,t)}}function St(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Ct=function(t){var e=Et(t);return(e.local?St:Tt)(e)};function Mt(){}var Nt=function(t){return null==t?Mt:function(){return this.querySelector(t)}};function Pt(){return[]}var Ot=function(t){return null==t?Pt:function(){return this.querySelectorAll(t)}},At=function(t){return function(){return this.matches(t)}},Lt=function(t){return new Array(t.length)};function Rt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Rt.prototype={constructor:Rt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ft="$";function zt(t,e,n,r,i,a){for(var o,l=0,u=e.length,s=a.length;le?1:t>=e?0:NaN}function Ut(t){return function(){this.removeAttribute(t)}}function Dt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ht(t,e){return function(){this.setAttribute(t,e)}}function Wt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function $t(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Yt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Bt=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function qt(t){return function(){this.style.removeProperty(t)}}function Vt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Xt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Qt(t,e){return t.style.getPropertyValue(e)||Bt(t).getComputedStyle(t,null).getPropertyValue(e)}function Kt(t){return function(){delete this[t]}}function Gt(t,e){return function(){this[t]=e}}function Zt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Jt(t){return t.trim().split(/^|\s+/)}function te(t){return t.classList||new ee(t)}function ee(t){this._node=t,this._names=Jt(t.getAttribute("class")||"")}function ne(t,e){for(var n=te(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function le(){this.textContent=""}function ue(t){return function(){this.textContent=t}}function se(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ce(){this.innerHTML=""}function fe(t){return function(){this.innerHTML=t}}function he(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function pe(){this.nextSibling&&this.parentNode.appendChild(this)}function de(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function me(){return null}function ye(){var t=this.parentNode;t&&t.removeChild(this)}function ve(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function ge(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var _e={},be=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(_e={mouseenter:"mouseover",mouseleave:"mouseout"}));function we(t,e,n){return t=xe(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function xe(t,e,n){return function(r){var i=be;be=r;try{t.call(this,this.__data__,e,n)}finally{be=i}}}function ke(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ee(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=w&&(w=b+1);!(_=v[w])&&++w=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=jt);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?qt:"function"==typeof e?Xt:Vt)(t,e,null==n?"":n)):Qt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Kt:"function"==typeof e?Zt:Gt)(t,e)):this.node()[t]},classed:function(t,e){var n=Jt(t+"");if(arguments.length<2){for(var r=te(this.node()),i=-1,a=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new an(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new an(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ye.exec(t))?new an(e[1],e[2],e[3],1):(e=Be.exec(t))?new an(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qe.exec(t))?en(e[1],e[2],e[3],e[4]):(e=Ve.exec(t))?en(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Xe.exec(t))?sn(e[1],e[2]/100,e[3]/100,1):(e=Qe.exec(t))?sn(e[1],e[2]/100,e[3]/100,e[4]):Ke.hasOwnProperty(t)?tn(Ke[t]):"transparent"===t?new an(NaN,NaN,NaN,0):null}function tn(t){return new an(t>>16&255,t>>8&255,255&t,1)}function en(t,e,n,r){return r<=0&&(t=e=n=NaN),new an(t,e,n,r)}function nn(t){return t instanceof Ue||(t=Je(t)),t?new an((t=t.rgb()).r,t.g,t.b,t.opacity):new an}function rn(t,e,n,r){return 1===arguments.length?nn(t):new an(t,e,n,null==r?1:r)}function an(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function on(){return"#"+un(this.r)+un(this.g)+un(this.b)}function ln(){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+")")}function un(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function sn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new hn(t,e,n,r)}function cn(t){if(t instanceof hn)return new hn(t.h,t.s,t.l,t.opacity);if(t instanceof Ue||(t=Je(t)),!t)return new hn;if(t instanceof hn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,l=a-i,u=(a+i)/2;return l?(o=e===a?(n-r)/l+6*(n0&&u<1?0:o,new hn(o,l,u,t.opacity)}function fn(t,e,n,r){return 1===arguments.length?cn(t):new hn(t,e,n,null==r?1:r)}function hn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function pn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function dn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Ie(Ue,Je,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ge,formatHex:Ge,formatHsl:function(){return cn(this).formatHsl()},formatRgb:Ze,toString:Ze}),Ie(an,rn,je(Ue,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new an(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new an(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:on,formatHex:on,formatRgb:ln,toString:ln})),Ie(hn,fn,je(Ue,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new hn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new hn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new an(pn(t>=240?t-240:t+120,i,r),pn(t,i,r),pn(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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var mn=function(t){return function(){return t}};function yn(t,e){return function(n){return t+n*e}}function vn(t,e){var n=e-t;return n?yn(t,n>180||n<-180?n-360*Math.round(n/360):n):mn(isNaN(t)?e:t)}function gn(t){return 1==(t=+t)?_n:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):mn(isNaN(e)?n:e)}}function _n(t,e){var n=e-t;return n?yn(t,n):mn(isNaN(t)?e:t)}var bn=function t(e){var n=gn(e);function r(t,e){var r=n((t=rn(t)).r,(e=rn(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=_n(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function wn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),l=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,l=ra&&(i=e.slice(a,i),l[o]?l[o]+=i:l[++o]=i),(n=n[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,u.push({i:o,x:En(n,r)})),a=Cn.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:En(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,l,u),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:En(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,l,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var l=a.push(i(a)+"scale(",null,",",null,")");o.push({i:l-4,x:En(t,n)},{i:l-2,x:En(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,l,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++nKn?Math.pow(t,1/3):t/Qn+Vn}function er(t){return t>Xn?t*t*t:Qn*(t-Vn)}function nr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ir(t){if(t instanceof or)return new or(t.h,t.c,t.l,t.opacity);if(t instanceof Jn||(t=Gn(t)),0===t.a&&0===t.b)return new or(NaN,0=0&&e._call.call(null,t),e=e._next;--br}()}finally{br=0,function(){var t,e,n=gr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:gr=e);_r=t,Fr(r)}(),Tr=0}}function Rr(){var t=Cr.now(),e=t-Er;e>kr&&(Sr-=e,Er=t)}function Fr(t){br||(wr&&(wr=clearTimeout(wr)),t-Tr>24?(t<1/0&&(wr=setTimeout(Lr,t-Cr.now()-Sr)),xr&&(xr=clearInterval(xr))):(xr||(Er=Cr.now(),xr=setInterval(Rr,kr)),br=1,Mr(Lr)))}Or.prototype=Ar.prototype={constructor:Or,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Nr():+n)+(null==e?0:+e),this._next||_r===this||(_r?_r._next=this:gr=this,_r=this),this._call=t,this._time=n,Fr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fr())}};var zr=function(t,e,n){var r=new Or;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Ir=wt("start","end","cancel","interrupt"),jr=[],Ur=0,Dr=1,Hr=2,Wr=3,$r=4,Yr=5,Br=6,qr=function(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(u){var s,c,f,h;if(n.state!==Dr)return l();for(s in i)if((h=i[s]).name===n.name){if(h.state===Wr)return zr(a);h.state===$r?(h.state=Br,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+sUr)throw new Error("too late; already scheduled");return n}function Xr(t,e){var n=Qr(t,e);if(n.state>Wr)throw new Error("too late; already running");return n}function Qr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Kr=function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>Hr&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Vr:Xr;return function(){var o=a(this,t),l=o.on;l!==r&&(i=(r=l).copy()).on(e,n),o.on=i}}var mi=Ae.prototype.constructor;function yi(t){return function(){this.style.removeProperty(t)}}function vi(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t,e,n){return function(r){this.style.setProperty(t,e(r),n)}}(t,a,n)),r}return a._value=e,a}var gi=0;function _i(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function bi(){return++gi}var wi=Ae.prototype;_i.prototype=function(t){return Ae().transition(t)}.prototype={constructor:_i,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Nt(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;oe?1:t>=e?0:NaN};var Ni=function(t){return 1===t.length&&(t=function(t){return function(e,n){return Mi(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}(Mi);Ni.right,Ni.left;var Pi=Array.prototype;Pi.slice,Pi.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);Math.cos,Math.sin,Math.PI,Math.max;Array.prototype.slice;var Oi=Math.PI,Ai=2*Oi,Li=Ai-1e-6;function Ri(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Fi(){return new Ri}Ri.prototype=Fi.prototype={constructor:Ri,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,l=n-t,u=r-e,s=a-t,c=o-e,f=s*s+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>1e-6)if(Math.abs(c*l-u*s)>1e-6&&i){var h=n-a,p=r-o,d=l*l+u*u,m=h*h+p*p,y=Math.sqrt(d),v=Math.sqrt(f),g=i*Math.tan((Oi-Math.acos((d+f-m)/(2*y*v)))/2),_=g/v,b=g/y;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*s)+","+(e+_*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>s*p)+","+(this._x1=t+b*l)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),l=n*Math.sin(r),u=t+o,s=e+l,c=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+s:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+u+","+s),n&&(f<0&&(f=f%Ai+Ai),f>Li?this._+="A"+n+","+n+",0,1,"+c+","+(t-o)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=s):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Oi)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var zi=Fi;function Ii(){}function ji(t,e){var n=new Ii;if(t instanceof Ii)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++ie?1:t>=e?0:NaN};var Yi=function(t){return 1===t.length&&(t=function(t){return function(e,n){return $i(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}($i);Yi.right,Yi.left;var Bi=Array.prototype;Bi.slice,Bi.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);Array.prototype.slice;var qi={},Vi={},Xi=34,Qi=10,Ki=13;function Gi(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}")}function Zi(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function Ji(t,e){var n=t+"",r=n.length;return r9999?"+"+Ji(e,6):Ji(e,4))+"-"+Ji(t.getUTCMonth()+1,2)+"-"+Ji(t.getUTCDate(),2)+(a?"T"+Ji(n,2)+":"+Ji(r,2)+":"+Ji(i,2)+"."+Ji(a,3)+"Z":i?"T"+Ji(n,2)+":"+Ji(r,2)+":"+Ji(i,2)+"Z":r||n?"T"+Ji(n,2)+":"+Ji(r,2)+"Z":"")}var ea=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,l=0,u=a<=0,s=!1;function c(){if(u)return Vi;if(s)return s=!1,qi;var e,r,i=o;if(t.charCodeAt(i)===Xi){for(;o++=a?u=!0:(r=t.charCodeAt(o++))===Qi?s=!0:r===Ki&&(s=!0,t.charCodeAt(o)===Qi&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o=(a=(m+v)/2))?m=a:v=a,(c=n>=(o=(y+g)/2))?y=o:g=o,i=p,!(p=p[f=c<<1|s]))return i[f]=d,t;if(l=+t._x.call(null,p.data),u=+t._y.call(null,p.data),e===l&&n===u)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(s=e>=(a=(m+v)/2))?m=a:v=a,(c=n>=(o=(y+g)/2))?y=o:g=o}while((f=c<<1|s)==(h=(u>=o)<<1|l>=a));return i[h]=p,i[f]=d,t}var fa=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function ha(t){return t[0]}function pa(t){return t[1]}function da(t,e,n){var r=new ma(null==e?ha:e,null==n?pa:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function ma(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function ya(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var va=da.prototype=ma.prototype;va.copy=function(){var t,e,n=new ma(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=ya(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=ya(e));return n},va.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return ca(this.cover(e,n),e,n,t)},va.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),l=new Array(a),u=1/0,s=1/0,c=-1/0,f=-1/0;for(n=0;nc&&(c=r),if&&(f=i));if(u>c||s>f)return this;for(this.cover(u,s).cover(c,f),n=0;nt||t>=i||r>e||e>=a;)switch(l=(eh||(a=u.y0)>p||(o=u.x1)=v)<<1|t>=y)&&(u=d[d.length-1],d[d.length-1]=d[d.length-1-s],d[d.length-1-s]=u)}else{var g=t-+this._x.call(null,m.data),_=e-+this._y.call(null,m.data),b=g*g+_*_;if(b=(l=(d+y)/2))?d=l:y=l,(c=o>=(u=(m+v)/2))?m=u:v=u,e=p,!(p=p[f=c<<1|s]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=i,this)},va.removeAll=function(t){for(var e=0,n=t.length;e1?r[0]+r.slice(2):r,+t.slice(n+1)]},_a=function(t){return(t=ga(Math.abs(t)))?t[1]:NaN},ba=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wa(t){if(!(e=ba.exec(t)))throw new Error("invalid format: "+t);var e;return new xa({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function xa(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}wa.prototype=xa.prototype,xa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ka,Ea,Ta,Sa,Ca=function(t){t:for(var e,n=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t},Ma=function(t,e){var n=ga(t,e);if(!n)return t+"";var r=n[0],i=n[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")},Na={"%":function(t,e){return(100*t).toFixed(e)},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,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Ma(100*t,e)},r:Ma,s:function(t,e){var n=ga(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(ka=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ga(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Pa=function(t){return t},Oa=Array.prototype.map,Aa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Ea=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Pa:(e=Oa.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),a.push(t.substring(i-=l,i+l)),!((u+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?Pa:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Oa.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=wa(t)).fill,n=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,m=t.comma,y=t.precision,v=t.trim,g=t.type;"n"===g?(m=!0,g="g"):Na[g]||(void 0===y&&(y=12),v=!0,g="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",b="$"===h?a:/[%p]/.test(g)?u:"",w=Na[g],x=/[defgprs%]/.test(g);function k(t){var i,a,u,h=_,k=b;if("c"===g)k=w(t)+k,t="";else{var E=(t=+t)<0;if(t=isNaN(t)?c:w(Math.abs(t),y),v&&(t=Ca(t)),E&&0==+t&&(E=!1),h=(E?"("===f?f:s:"-"===f||"("===f?"":f)+h,k=("s"===g?Aa[8+ka/3]:"")+k+(E&&"("===f?")":""),x)for(i=-1,a=t.length;++i(u=t.charCodeAt(i))||u>57){k=(46===u?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}m&&!p&&(t=r(t,1/0));var T=h.length+t.length+k.length,S=T>1)+h+t+k+S.slice(T);break;default:t=S+h+t+k}return l(t)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),k.toString=function(){return t+""},k}return{format:f,formatPrefix:function(t,e){var n=f(((t=wa(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(_a(e)/3))),i=Math.pow(10,-r),a=Aa[8+r/3];return function(t){return n(i*t)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ta=Ea.format,Sa=Ea.formatPrefix;var La=function(){return new Ra};function Ra(){this.reset()}Ra.prototype={constructor:Ra,reset:function(){this.s=this.t=0},add:function(t){za(Fa,t,this.t),za(this,Fa.s,this.s),this.s?this.t+=Fa.t:this.s=Fa.t},valueOf:function(){return this.s}};var Fa=new Ra;function za(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var Ia=1e-6,ja=1e-12,Ua=Math.PI,Da=Ua/2,Ha=Ua/4,Wa=2*Ua,$a=Ua/180,Ya=Math.abs,Ba=Math.atan,qa=Math.atan2,Va=Math.cos,Xa=(Math.ceil,Math.exp),Qa=(Math.floor,Math.log),Ka=(Math.pow,Math.sin),Ga=Math.sign||function(t){return t>0?1:t<0?-1:0},Za=Math.sqrt,Ja=Math.tan;function to(t){return t>1?0:t<-1?Ua:Math.acos(t)}function eo(t){return t>1?Da:t<-1?-Da:Math.asin(t)}function no(){}La(),La();function ro(t){var e=t[0],n=t[1],r=Va(n);return[r*Va(e),r*Ka(e),Ka(n)]}function io(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ao(t){var e=Za(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}La();function oo(t,e){return[Ya(t)>Ua?t+Math.round(-t/Wa)*Wa:t,e]}oo.invert=oo;var lo=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:no,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},uo=function(t,e){return Ya(t[0]-e[0])=0;--a)i.point((c=s[a])[0],c[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}};function fo(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,T=E*k,S=T>Ua,C=m*w;if(ho.add(qa(C*E*Ka(T),y*x+C*Va(T))),o+=S?k+E*Wa:k,S^p>=n^_>=n){var M=io(ro(h),ro(g));ao(M);var N=io(a,M);ao(N);var P=(S^k>=0?-1:1)*eo(N[2]);(r>P||r===P&&(M[0]||M[1]))&&(l+=S^k>=0?1:-1)}}return(o<-Ia||oe?1:t>=e?0:NaN};var vo=function(t){return 1===t.length&&(t=function(t){return function(e,n){return yo(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}(yo);vo.right,vo.left;var go=Array.prototype;go.slice,go.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var _o=function(t){for(var e,n,r,i=t.length,a=-1,o=0;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n};var bo=function(t,e,n,r){return function(i){var a,o,l,u=e(i),s=lo(),c=e(s),f=!1,h={point:p,lineStart:m,lineEnd:y,polygonStart:function(){h.point=v,h.lineStart=g,h.lineEnd=_,o=[],a=[]},polygonEnd:function(){h.point=p,h.lineStart=m,h.lineEnd=y,o=_o(o);var t=mo(a,r);o.length?(f||(i.polygonStart(),f=!0),co(o,xo,t,n,i)):t&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),o=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(e,n){t(e,n)&&i.point(e,n)}function d(t,e){u.point(t,e)}function m(){h.point=d,u.lineStart()}function y(){h.point=p,u.lineEnd()}function v(t,e){l.push([t,e]),c.point(t,e)}function g(){c.lineStart(),l=[]}function _(){v(l[0][0],l[0][1]),c.lineEnd();var t,e,n,r,u=c.clean(),h=s.result(),p=h.length;if(l.pop(),a.push(l),l=null,p)if(1&u){if((e=(n=h[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&u&&h.push(h.pop().concat(h.shift())),o.push(h.filter(wo))}return h}};function wo(t){return t.length>1}function xo(t,e){return((t=t.x)[0]<0?t[1]-Da-Ia:Da-t[1])-((e=e.x)[0]<0?e[1]-Da-Ia:Da-e[1])}bo((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var l=a>0?Ua:-Ua,u=Ya(a-n);Ya(u-Ua)0?Da:-Da),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(l,r),t.point(a,r),e=0):i!==l&&u>=Ua&&(Ya(n-i)Ia?Ba((Ka(e)*(a=Va(r))*Ka(n)-Ka(r)*(i=Va(e))*Ka(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(l,r),e=0),t.point(n=a,r=o),i=l},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Da,r.point(-Ua,i),r.point(0,i),r.point(Ua,i),r.point(Ua,0),r.point(Ua,-i),r.point(0,-i),r.point(-Ua,-i),r.point(-Ua,0),r.point(-Ua,i);else if(Ya(t[0]-e[0])>Ia){var a=t[0]Ia&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]};function Wo(t,e){return[Va(e)*Ka(t),Ka(e)]}Wo.invert=No(eo);function $o(t,e){var n=Va(e),r=1+Va(t)*n;return[n*Ka(t)/r,Ka(e)/r]}$o.invert=No((function(t){return 2*Ba(t)}));function Yo(t,e){return[Qa(Ja((Da+e)/2)),-t]}Yo.invert=function(t,e){return[-e,2*Ba(Xa(t))-Da]};function Bo(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function qo(t,e){var n,r,i,a,o,l=new Ko(t),u=+t.value&&(l.value=t.value),s=[l];for(null==e&&(e=Vo);n=s.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)s.push(r=n.children[a]=new Ko(i[a])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Qo)}function Vo(t){return t.children}function Xo(t){t.data=t.data.data}function Qo(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Ko(t){this.data=t,this.depth=this.height=0,this.parent=null}Ko.prototype=qo.prototype={constructor:Ko,count:function(){return this.eachAfter(Bo)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return qo(this).eachBefore(Xo)}};Array.prototype.slice;function Go(t){if("function"!=typeof t)throw new Error;return t}function Zo(){return 0}var Jo=function(t){return function(){return t}};var tl=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)},el=function(t,e,n,r,i){for(var a,o=t.children,l=-1,u=o.length,s=t.value&&(r-e)/t.value;++lh&&(h=l),y=c*c*m,(p=Math.max(h/y,y/f))>d){c-=l;break}d=p}v.push(o={value:c,dice:u1?e:1)},n}(il);(function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,l,u,s,c,f=-1,h=o.length,p=t.value;++f1?e:1)},n})(il);var ll=function(){return Math.random()},ul=(function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(ll),function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*e()-1,a=2*e()-1,i=r*r+a*a}while(!i||i>1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(ll)),sl=(function t(e){function n(){var t=ul.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(ll),function t(e){function n(t){return function(){for(var n=0,r=0;re?1:t>=e?0:NaN}),fl=function(t){return 1===t.length&&(t=function(t){return function(e,n){return cl(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}};var hl=fl(cl),pl=hl.right,dl=(hl.left,pl);var ml=Array.prototype,yl=(ml.slice,ml.map,Math.sqrt(50)),vl=Math.sqrt(10),gl=Math.sqrt(2),_l=function(t,e,n){var r,i,a,o,l=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++l=0?(a>=yl?10:a>=vl?5:a>=gl?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=yl?10:a>=vl?5:a>=gl?2:1)}function wl(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=yl?i*=10:a>=vl?i*=5:a>=gl&&(i*=2),er&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function Rl(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i2?Fl:Rl,i=a=null,f}function f(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),l,u)))(t(s(e)))}return f.invert=function(n){return s(e((a||(a=r(l,o.map(t),En)))(n)))},f.domain=function(t){return arguments.length?(o=El.call(t,Nl),s===Ol||(s=Ll(o)),c()):o.slice()},f.range=function(t){return arguments.length?(l=Tl.call(t),c()):l.slice()},f.rangeRound=function(t){return l=Tl.call(t),u=Rn,c()},f.clamp=function(t){return arguments.length?(s=t?Ll(o):Ol,f):s!==Ol},f.interpolate=function(t){return arguments.length?(u=t,c()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,c()}}function jl(t,e){return Il()(t,e)}var Ul=function(t,e,n,r){var i,a=wl(t,e,n);switch((r=wa(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_a(e)/3)))-_a(Math.abs(t)))}(a,o))||(r.precision=i),Sa(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,_a(e)-_a(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-_a(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return Ta(r)};function Dl(t){var e=t.domain;return t.ticks=function(t){var n=e();return _l(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Ul(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,l=i[a],u=i[o];return u0?r=bl(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=bl(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(u/r)*r,e(i)):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(u*r)/r,e(i)),t},t}function Hl(){var t=jl(Ol,Ol);return t.copy=function(){return zl(t,Hl())},xl.apply(t,arguments),Dl(t)}var Wl=function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;hu)break;m.push(f)}}else for(;h=1;--c)if(!((f=s*c)u)break;m.push(f)}}else m=_l(h,p,Math.min(p-h,d)).map(n);return r?m.reverse():m},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!=typeof i&&(i=Ta(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a0))return l;do{l.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Gl.setTime(+e),Zl.setTime(+r),t(Gl),t(Zl),Math.floor(n(Gl,Zl))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var tu=Jl((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));tu.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Jl((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var eu=tu,nu=(tu.range,Jl((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),ru=(nu.range,6e4),iu=6048e5;function au(t){return Jl((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ru)/iu}))}var ou=au(0),lu=au(1),uu=au(2),su=au(3),cu=au(4),fu=au(5),hu=au(6),pu=(ou.range,lu.range,uu.range,su.range,cu.range,fu.range,hu.range,Jl((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ru)/864e5}),(function(t){return t.getDate()-1}))),du=pu,mu=(pu.range,Jl((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*ru)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()}))),yu=(mu.range,Jl((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+e*ru)}),(function(t,e){return(e-t)/ru}),(function(t){return t.getMinutes()}))),vu=(yu.range,Jl((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()}))),gu=(vu.range,Jl((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));gu.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Jl((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):gu:null};gu.range;function _u(t){return Jl((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/iu}))}var bu=_u(0),wu=_u(1),xu=_u(2),ku=_u(3),Eu=_u(4),Tu=_u(5),Su=_u(6),Cu=(bu.range,wu.range,xu.range,ku.range,Eu.range,Tu.range,Su.range,Jl((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1}))),Mu=Cu,Nu=(Cu.range,Jl((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Nu.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Jl((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Pu=Nu;Nu.range;function Ou(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Au(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Lu(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var Ru,Fu,zu,Iu={"-":"",_:" ",0:"0"},ju=/^\s*\d+/,Uu=/^%/,Du=/[\\^$*+?|[\]().{}]/g;function Hu(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function Zu(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ju(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ts(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function es(t,e,n){var r=ju.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ns(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function rs(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function is(t,e,n){var r=ju.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function as(t,e,n){var r=ju.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function os(t,e,n){var r=ju.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ls(t,e,n){var r=Uu.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function us(t,e,n){var r=ju.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function ss(t,e,n){var r=ju.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function cs(t,e){return Hu(t.getDate(),e,2)}function fs(t,e){return Hu(t.getHours(),e,2)}function hs(t,e){return Hu(t.getHours()%12||12,e,2)}function ps(t,e){return Hu(1+du.count(eu(t),t),e,3)}function ds(t,e){return Hu(t.getMilliseconds(),e,3)}function ms(t,e){return ds(t,e)+"000"}function ys(t,e){return Hu(t.getMonth()+1,e,2)}function vs(t,e){return Hu(t.getMinutes(),e,2)}function gs(t,e){return Hu(t.getSeconds(),e,2)}function _s(t){var e=t.getDay();return 0===e?7:e}function bs(t,e){return Hu(ou.count(eu(t),t),e,2)}function ws(t,e){var n=t.getDay();return t=n>=4||0===n?cu(t):cu.ceil(t),Hu(cu.count(eu(t),t)+(4===eu(t).getDay()),e,2)}function xs(t){return t.getDay()}function ks(t,e){return Hu(lu.count(eu(t),t),e,2)}function Es(t,e){return Hu(t.getFullYear()%100,e,2)}function Ts(t,e){return Hu(t.getFullYear()%1e4,e,4)}function Ss(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Hu(e/60|0,"0",2)+Hu(e%60,"0",2)}function Cs(t,e){return Hu(t.getUTCDate(),e,2)}function Ms(t,e){return Hu(t.getUTCHours(),e,2)}function Ns(t,e){return Hu(t.getUTCHours()%12||12,e,2)}function Ps(t,e){return Hu(1+Mu.count(Pu(t),t),e,3)}function Os(t,e){return Hu(t.getUTCMilliseconds(),e,3)}function As(t,e){return Os(t,e)+"000"}function Ls(t,e){return Hu(t.getUTCMonth()+1,e,2)}function Rs(t,e){return Hu(t.getUTCMinutes(),e,2)}function Fs(t,e){return Hu(t.getUTCSeconds(),e,2)}function zs(t){var e=t.getUTCDay();return 0===e?7:e}function Is(t,e){return Hu(bu.count(Pu(t),t),e,2)}function js(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Eu(t):Eu.ceil(t),Hu(Eu.count(Pu(t),t)+(4===Pu(t).getUTCDay()),e,2)}function Us(t){return t.getUTCDay()}function Ds(t,e){return Hu(wu.count(Pu(t),t),e,2)}function Hs(t,e){return Hu(t.getUTCFullYear()%100,e,2)}function Ws(t,e){return Hu(t.getUTCFullYear()%1e4,e,4)}function $s(){return"+0000"}function Ys(){return"%"}function Bs(t){return+t}function qs(t){return Math.floor(+t/1e3)}!function(t){Ru=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,l=t.months,u=t.shortMonths,s=$u(i),c=Yu(i),f=$u(a),h=Yu(a),p=$u(o),d=Yu(o),m=$u(l),y=Yu(l),v=$u(u),g=Yu(u),_={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:null,d:cs,e:cs,f:ms,H:fs,I:hs,j:ps,L:ds,m:ys,M:vs,p:function(t){return i[+(t.getHours()>=12)]},Q:Bs,s:qs,S:gs,u:_s,U:bs,V:ws,w:xs,W:ks,x:null,X:null,y:Es,Y:Ts,Z:Ss,"%":Ys},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return l[t.getUTCMonth()]},c:null,d:Cs,e:Cs,f:As,H:Ms,I:Ns,j:Ps,L:Os,m:Ls,M:Rs,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Bs,s:qs,S:Fs,u:zs,U:Is,V:js,w:Us,W:Ds,x:null,X:null,y:Hs,Y:Ws,Z:$s,"%":Ys},w={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:ts,e:ts,f:os,H:ns,I:ns,j:es,L:as,m:Ju,M:rs,p:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:us,s:ss,S:is,u:qu,U:Vu,V:Xu,w:Bu,W:Qu,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:Gu,Y:Ku,Z:Zu,"%":ls};function x(t,e){return function(n){var r,i,a,o=[],l=-1,u=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Au(Lu(a.y))).getUTCDay(),r=i>4||0===i?wu.ceil(r):wu(r),r=Mu.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=e(Lu(a.y))).getDay(),r=i>4||0===i?lu.ceil(r):lu(r),r=du.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Au(Lu(a.y)).getUTCDay():e(Lu(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Au(a)):e(a)}}function E(t,e,n,r){for(var i,a,o=0,l=e.length,u=n.length;o=u)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in Iu?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",Ou);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t,Au);return e.toString=function(){return t},e}}}(t),Ru.format,Ru.parse,Fu=Ru.utcFormat,zu=Ru.utcParse}({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"]});Date.prototype.toISOString||Fu("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||zu("%Y-%m-%dT%H:%M:%S.%LZ");var Vs=Jl((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Xs=(Vs.range,Jl((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()}))),Qs=(Xs.range,Jl((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*ru)}),(function(t,e){return(e-t)/ru}),(function(t){return t.getUTCMinutes()})));Qs.range;var Ks=function(t){for(var e=t.length/6|0,n=new Array(e),r=0;r0)for(var r,i=t[0],a=e[0],o=t[n]-i,l=e[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*o),this._beta*e[u]+(1-this._beta)*(a+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};(function t(e){function n(t){return 1===e?new fc(t):new dc(t,e)}return n.beta=function(e){return t(+e)},n})(.85);function mc(t,e,n){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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function yc(t,e){this._context=t,this._k=(1-e)/6}yc.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:mc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:mc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new yc(t,e)}return n.tension=function(e){return t(+e)},n})(0);function vc(t,e){this._context=t,this._k=(1-e)/6}vc.prototype={areaStart:sc,areaEnd:sc,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:mc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new vc(t,e)}return n.tension=function(e){return t(+e)},n})(0);function gc(t,e){this._context=t,this._k=(1-e)/6}gc.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,e){switch(t=+t,e=+e,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:mc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new gc(t,e)}return n.tension=function(e){return t(+e)},n})(0);function _c(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Zs){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Zs){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*s+t._x1*t._l23_2a-e*t._l12_2a)/c,o=(o*s+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function bc(t,e){this._context=t,this._alpha=e}bc.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:_c(this,t,e)}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=e}};(function t(e){function n(t){return e?new bc(t,e):new yc(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function wc(t,e){this._context=t,this._alpha=e}wc.prototype={areaStart:sc,areaEnd:sc,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:_c(this,t,e)}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=e}};(function t(e){function n(t){return e?new wc(t,e):new vc(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function xc(t,e){this._context=t,this._alpha=e}xc.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:_c(this,t,e)}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=e}};(function t(e){function n(t){return e?new xc(t,e):new gc(t,0)}return n.alpha=function(e){return t(+e)},n})(.5);function kc(t){this._context=t}kc.prototype={areaStart:sc,areaEnd:sc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Ec(t){return t<0?-1:1}function Tc(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return(Ec(a)+Ec(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Sc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cc(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,l=(a-r)/3;t._context.bezierCurveTo(r+l,i+l*e,a-l,o-l*n,a,o)}function Mc(t){this._context=t}function Nc(t){this._context=new Pc(t)}function Pc(t){this._context=t}function Oc(t){this._context=t}function Ac(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};function Rc(){this._=null}function Fc(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function zc(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Ic(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function jc(t){for(;t.L;)t=t.L;return t}Rc.prototype={constructor:Rc,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=jc(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(zc(this,n),n=(t=n).U),n.C=!1,r.C=!0,Ic(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(Ic(this,n),n=(t=n).U),n.C=!1,r.C=!0,zc(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?jc(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,zc(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,Ic(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,zc(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,Ic(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,zc(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Ic(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var Uc=Rc;function Dc(t,e,n,r){var i=[null,null],a=ff.push(i)-1;return i.left=t,i.right=e,n&&Wc(i,t,e,n),r&&Wc(i,e,t,r),sf[t.index].halfedges.push(a),sf[e.index].halfedges.push(a),i}function Hc(t,e,n){var r=[e,n];return r.left=t,r}function Wc(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function $c(t,e,n,r,i){var a,o=t[0],l=t[1],u=o[0],s=o[1],c=0,f=1,h=l[0]-u,p=l[1]-s;if(a=e-u,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>f)return;a>c&&(c=a)}if(a=r-u,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>c&&(c=a)}else if(h>0){if(a0)){if(a/=p,p<0){if(a0){if(a>f)return;a>c&&(c=a)}if(a=i-s,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>c&&(c=a)}else if(p>0){if(a0||f<1)||(c>0&&(t[0]=[u+c*h,s+c*p]),f<1&&(t[1]=[u+f*h,s+f*p]),!0)}}}}}function Yc(t,e,n,r,i){var a=t[1];if(a)return!0;var o,l,u=t[0],s=t.left,c=t.right,f=s[0],h=s[1],p=c[0],d=c[1],m=(f+p)/2,y=(h+d)/2;if(d===h){if(m=r)return;if(f>p){if(u){if(u[1]>=i)return}else u=[m,n];a=[m,i]}else{if(u){if(u[1]1)if(f>p){if(u){if(u[1]>=i)return}else u=[(n-l)/o,n];a=[(i-l)/o,i]}else{if(u){if(u[1]=r)return}else u=[e,o*e+l];a=[r,o*r+l]}else{if(u){if(u[0]=-pf)){var p=u*u+s*s,d=c*c+f*f,m=(f*p-s*d)/h,y=(u*d-c*p)/h,v=Qc.pop()||new Kc;v.arc=t,v.site=i,v.x=m+o,v.y=(v.cy=y+l)+Math.sqrt(m*m+y*y),t.circle=v;for(var g=null,_=cf._;_;)if(v.y<_.y||v.y===_.y&&v.x<=_.x){if(!_.L){g=_.P;break}_=_.L}else{if(!_.R){g=_;break}_=_.R}cf.insert(g,v),g||(Xc=v)}}}}function Zc(t){var e=t.circle;e&&(e.P||(Xc=e.N),cf.remove(e),Qc.push(e),Fc(e),t.circle=null)}var Jc=[];function tf(){Fc(this),this.edge=this.site=this.circle=null}function ef(t){var e=Jc.pop()||new tf;return e.site=t,e}function nf(t){Zc(t),uf.remove(t),Jc.push(t),Fc(t)}function rf(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],a=t.P,o=t.N,l=[t];nf(t);for(var u=a;u.circle&&Math.abs(n-u.circle.x)hf)l=l.L;else{if(!((i=a-lf(l,o))>hf)){r>-hf?(e=l.P,n=l):i>-hf?(e=l,n=l.N):e=n=l;break}if(!l.R){e=l;break}l=l.R}!function(t){sf[t.index]={site:t,halfedges:[]}}(t);var u=ef(t);if(uf.insert(e,u),e||n){if(e===n)return Zc(e),n=ef(e.site),uf.insert(u,n),u.edge=n.edge=Dc(e.site,u.site),Gc(e),void Gc(n);if(n){Zc(e),Zc(n);var s=e.site,c=s[0],f=s[1],h=t[0]-c,p=t[1]-f,d=n.site,m=d[0]-c,y=d[1]-f,v=2*(h*y-p*m),g=h*h+p*p,_=m*m+y*y,b=[(y*g-p*_)/v+c,(h*_-m*g)/v+f];Wc(n.edge,s,d,b),u.edge=Dc(s,t,null,b),n.edge=Dc(t,d,null,b),Gc(e),Gc(n)}else u.edge=Dc(e.site,u.site)}}function of(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var l=(n=o.site)[0],u=n[1],s=u-e;if(!s)return l;var c=l-r,f=1/a-1/s,h=c/s;return f?(-h+Math.sqrt(h*h-2*f*(c*c/(-2*s)-u+s/2+i-a/2)))/f+r:(r+l)/2}function lf(t,e){var n=t.N;if(n)return of(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var uf,sf,cf,ff,hf=1e-6,pf=1e-12;function df(t,e){return e[1]-t[1]||e[0]-t[0]}function mf(t,e){var n,r,i,a=t.sort(df).pop();for(ff=[],sf=new Array(t.length),uf=new Uc,cf=new Uc;;)if(i=Xc,a&&(!i||a[1]hf||Math.abs(i[0][1]-i[1][1])>hf)||delete ff[a]}(o,l,u,s),function(t,e,n,r){var i,a,o,l,u,s,c,f,h,p,d,m,y=sf.length,v=!0;for(i=0;ihf||Math.abs(m-h)>hf)&&(u.splice(l,0,ff.push(Hc(o,p,Math.abs(d-t)hf?[t,Math.abs(f-t)hf?[Math.abs(h-r)hf?[n,Math.abs(f-n)hf?[Math.abs(h-e)=l)return null;var u=t-i.site[0],s=e-i.site[1],c=u*u+s*s;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],l=r.left;if(l!==i.site&&l||(l=r.right)){var u=t-l[0],s=e-l[1],f=u*u+s*s;fr&&(t.splice(a+1,0,s),n=!0)}var i;return n}}var bf=function(){let t,e=t=>t[0],n=t=>t[1];function r(r){let i=r.length,a=0,o=0,l=0,u=0,s=0,c=t?+t[0]:1/0,f=t?+t[1]:-1/0;for(let h=0;hf&&(f=p)))}const h=((i=a)*u-o*l)/(i*s-o*o),p=(l-h*o)/i,d=t=>h*t+p,m=vf(r,e,n,l,d),y=[[c,c*h+p],[f,f*h+p]];return y.a=h,y.b=p,y.predict=d,y.rSquared=m,y}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r};var wf=function(){let t,e=t=>t[0],n=t=>t[1];function r(r){let i=r.length,a=0,o=0,l=0,u=0,s=0,c=0,f=t?+t[0]:1/0,h=t?+t[1]:-1/0;for(let p=0;ph&&(h=d)))}const p=((i=a)*l-o*u)/(i*s-Math.pow(o,2)),d=Math.exp((u-p*o)/i),m=t=>d*Math.pow(t,p),y=_f(f,h,m);return y.a=d,y.b=p,y.predict=m,y.rSquared=vf(r,e,n,c,m),y}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r};var xf=function(t){return t};function kf(t,...e){return Ef(t,xf,xf,e)}function Ef(t,e,n,r){return function t(i,a){if(a>=r.length)return n(i);const o=new Map,l=r[a++];let u=-1;for(const t of i){const e=l(t,++u,i),n=o.get(e);n?n.push(t):o.set(e,[t])}for(const[e,n]of o)o.set(e,t(n,a));return e(o)}(t,0)}var Tf=function(t,e){switch(t){case If.LINEAR:return"y = ".concat(e.a.toFixed(2)," x + ").concat(e.b.toFixed(2));case If.POWER_LAW:default:return"y = ".concat(e.a.toFixed(2)," x ^ ").concat(e.b.toFixed(2))}},Sf=function(t,e,n){return function(){var t=ol,e=!1,n=1,r=1,i=[0],a=Zo,o=Zo,l=Zo,u=Zo,s=Zo;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(tl),t}function f(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,f=e.x1-n,h=e.y1-n;f2&&void 0!==arguments[2]?arguments[2]:function(){});t.innerHTML="";var d=600,m=600;n=n.filter((function(t){return t.file_path.startsWith("".concat(c).concat(h))}));var y={top:20,right:30,bottom:30,left:40},v=Kl().domain(W(n.filter((function(t){return t.y>0})),(function(t){return t.x*t.y}))).range(["green","red"]),g=Kl().domain(W(n.filter((function(t){return t.y>0})),(function(t){return t.x*t.y}))).range(["lightgreen","tomato"]),_=Hl().domain(W(n,(function(t){return t.x}))).nice().range([y.left,d-y.right]),b=Hl().domain(W(n,(function(t){return t.y}))).nice().range([m-y.bottom,y.top]),w=function(t){return t.attr("transform","translate(0,".concat(m-y.bottom,")")).call(pt(_)).call((function(t){return t.select(".domain").remove()})).call((function(t){return t.append("text").attr("x",d/2+y.left).attr("y",30).attr("fill","#000").attr("font-size",12).attr("font-weight","bold").attr("text-anchor","end").text("Churn")}))},x=function(t){return t.attr("transform","translate(".concat(y.left,",0)")).call(dt(b)).call((function(t){return t.select(".domain").remove()})).call((function(t){return t.append("text").attr("y",-30).attr("x",-m/2).attr("transform","rotate(-90)").attr("fill","#000").attr("font-size",12).attr("text-anchor","start").attr("font-weight","bold").text("Complexity")}))},k=ac().x((function(t){return _(t[0])})).y((function(t){return b(t[1])})),E=Le(t).append("svg").attr("viewBox",[0,0,d,m]),T=E.append("g");if(T.append("g").attr("class","axis").call(w).selectAll(".tick line").classed("baseline",(function(t){return 0===t})),T.append("g").attr("class","axis").call(x).selectAll(".tick line").classed("baseline",(function(t){return 0===t})),T.append("g").attr("stroke-width",1.5).attr("font-family","Red Hat Text").attr("font-size",12).selectAll("g").data(n).join("g").attr("transform",(function(t){return"translate(".concat(_(t.x),",").concat(b(t.y),")")})).call((function(t){return t.append("circle").attr("fill",(function(t){return g(t.x*t.y)})).attr("stroke",(function(t){return v(t.x*t.y)})).attr("style","cursor:pointer").attr("r",4)})).call((function(t){return u?t.append("text").attr("dy","0.35em").attr("x",7).attr("style","cursor:pointer").text((function(t){return t.file_path})):null})).on("click",(function(t){p(t)})),i){var S=function(t){switch(t){case If.LINEAR:return bf().x((function(t){return t.x})).y((function(t){return t.y})).domain([3,J(n,(function(t){return t.x}))]);case If.POWER_LAW:default:return n=n.filter((function(t){return t.y>0})),wf().x((function(t){return t.x})).y((function(t){return t.y})).domain([3,J(n,(function(t){return t.x}))])}}(o),C=S(n);T.append("g").attr("font-family","Red Hat Text").attr("font-size",24).call((function(t){return t.append("path").attr("class","regression").datum(S(n)).attr("d",k)})).call((function(t){return t.append("text").attr("dy","60").attr("dx","33%").text("R^2 = ".concat(C.rSquared.toFixed(2)))})).call((function(t){return t.append("text").attr("dy","30").attr("dx","33%").text(Tf(o,C))}))}}(f.current,{values:n,displayRegression:o,regressionType:l,displayFilenames:u,filePrefix:a,path:s,activeFile:c},e)})),i.a.createElement("div",{id:"canvas",ref:f})},Pf=function(t){var e=t.fileClickCallback,n=t.values,a=t.filePrefix,o=t.displayRegression,l=t.regressionType,s=t.metricType,c=t.displayFilenames,f=t.path,h=t.activeFile,p=Object(r.useRef)(null);return Object(r.useEffect)((function(){!function(t,e){var n=e.values,r=(e.displayRegression,e.regressionType,e.metricType),i=void 0===r?0:r,a=e.displayFilenames,o=void 0!==a&&a,l=e.filePrefix,s=void 0===l?"":l,c=e.path,f=void 0===c?"":c,h=(e.activeFile,arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){});t.innerHTML="";var p=600,d=600,m=Cl(Ks),y=(n=n.filter((function(t){return t.file_path.startsWith("".concat(s).concat(f))}))).map((function(t){var e;switch(i){case Uf.COMPLEXITY:e=t.y;break;case Uf.CHURN:e=t.x;break;case Uf.CHURN_COMPLEXITY:default:e=t.y*t.x}return{name:t.file_path.substring(s.length+1),value:e,file_path:t.file_path,details:t.details,history:t.history}})).map((function(t){return{name:t.name.split("/"),value:t.value,file_path:t.file_path,details:t.details,history:t.history}})),v={name:s,children:Array.from(kf(y,(function(t){return t.name[0]})),(function(t){var e=u()(t,2),n=e[0],r=e[1];return{name:n,children:Array.from(kf(r,(function(t){return t.name[1]})),(function(t){var e=u()(t,2);return{name:e[0],children:e[1]}}))}}))},g=Le(t).append("svg").attr("viewBox",[0,0,p,d]).style("font-size","10px");if(v.children.length>0){var _=Sf(v,p,d),b=g.selectAll("g").data(_.leaves()).join("g").attr("transform",(function(t){return"translate(".concat(t.x0,",").concat(t.y0,")")}));b.append("title").text((function(t){return"".concat(t.ancestors().reverse().map((function(t){return t.data.name})).join("/"),"\n").concat(Cf(t.value))})),b.append("rect").attr("fill",(function(t){for(;t.depth>1;)t=t.parent;return m(t.data.name)})).attr("fill-opacity",.6).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).on("click",(function(t){h(t.data)})),o&&Mf(b)}}(p.current,{values:n,displayRegression:o,regressionType:l,metricType:s,displayFilenames:c,filePrefix:a,path:f,activeFile:h},e)})),i.a.createElement("div",{id:"canvas",ref:p})},Of=function(t){var e=t.fileClickCallback,n=t.values,a=t.filePrefix,o=t.displayRegression,l=t.regressionType,u=t.metricType,s=t.displayFilenames,c=t.path,f=t.activeFile,h=Object(r.useRef)(null);return Object(r.useEffect)((function(){!function(t,e){var n=e.values,r=(e.displayRegression,e.regressionType,e.metricType),i=void 0===r?0:r,a=(e.displayFilenames,e.filePrefix),o=void 0===a?"":a,l=e.path,u=void 0===l?"":l;e.activeFile,arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.innerHTML="";var s=600,c=600;n=n.filter((function(t){return t.file_path.startsWith("".concat(o).concat(u))}));var f={top:20,right:30,bottom:30,left:40},h=Le(t).append("svg").attr("viewBox",[0,0,s,c]).style("font-size","10px"),p=n.map((function(t){return i===Uf.COMPLEXITY?t.y:t.x})),d=Hl().domain(W(p)).range(["green","red"]),m=Hl().domain(W(p)).nice(20).range([f.left,s-f.right]),y=Z().domain(m.domain()).thresholds(m.ticks(20))(p),v=Hl().domain([0,J(y,(function(t){return t.length}))]).nice().range([c-f.bottom,f.top]),g=function(t){return t.attr("transform","translate(0,".concat(c-f.bottom,")")).call(pt(m).tickSizeOuter(0))},_=function(t){return t.attr("transform","translate(".concat(f.left,",0)")).call(dt(v))};h.append("g").selectAll("rect").data(y).join("rect").attr("fill",(function(t){return d(t.x0)})).attr("x",(function(t){return m(t.x0)+1})).attr("width",(function(t){return Math.max(0,m(t.x1)-m(t.x0)-1)})).attr("y",(function(t){return v(t.length)})).attr("height",(function(t){return v(0)-v(t.length)})),h.append("g").call(g),h.append("g").call(_)}(h.current,{values:n,displayRegression:o,regressionType:l,metricType:u,displayFilenames:s,filePrefix:a,path:c,activeFile:f},e)})),i.a.createElement("div",{id:"canvas",ref:h})},Af=n(41),Lf=n.n(Af);function Rf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ff(t){for(var e=1;e0&&i.a.createElement(F,{activeFile:l.activeFile,handleClose:function(){s({type:"SET_ACTIVE_FILE",activeFile:{}})}}))},Wf=n(42),$f=n.n(Wf);var Yf=function(){return(Yf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=e?t:e}),Gf=!1,Zf=[],Jf=function(t){Zf.push(t),Gf||1!==Zf.length||function t(){Gf=!0;var e=Zf.shift();if(e)return e(t);Gf=!1}()},th=function(t,e){var n;Bf=window.requestAnimationFrame((function r(i){i-(n=n||i)>e?t():Bf=window.requestAnimationFrame(r)}))},eh=function(){},nh={isFinished:!1,progress:0,sideEffect:eh},rh=function(){Bf&&window.cancelAnimationFrame(Bf),Gf=!1,Zf=[]},ih=function(t){var e=void 0===t?{}:t,n=e.animationDuration,i=void 0===n?200:n,a=e.incrementDuration,o=void 0===a?800:a,l=e.isAnimating,u=void 0!==l&&l,s=e.minimum,c=void 0===s?.08:s,f=Vf(nh),h=f[0],p=f[1],d=function(t){if(1===(t=Kf(t,c,1)))return rh(),Jf((function(e){p({progress:t,sideEffect:function(){return th(e,i)}})})),void Jf((function(){p({isFinished:!0,sideEffect:rh})}));Jf((function(e){p({progress:t,sideEffect:function(){return th(e,i)}})}))},m=function(){var t,e;d((t=h().progress,e=0,t>=0&&t<.2?e=.1:t>=.2&&t<.5?e=.04:t>=.5&&t<.8?e=.02:t>=.8&&t<.99&&(e=.005),Kf(t+e,0,.994)))},y=function(){!function t(){m(),Jf((function(e){th((function(){t(),e()}),o)}))}()},v=Object(r.useRef)(eh);return Object(r.useEffect)((function(){v.current=m})),Xf((function(){return u&&y(),rh})),Qf((function(){h().sideEffect()}),[h().sideEffect]),Qf((function(){u?p({sideEffect:y}):d(1)}),[u]),{animationDuration:i,isFinished:h().isFinished,progress:h().progress}},ah=function(t){var e=t.children,n=$f()(t,["children"]);return e(ih(n))};var oh=function(t){var e=t.progress,n=t.animationDuration;return r.createElement("div",{className:"progressbar",style:{marginLeft:"".concat(100*(-1+e),"%"),transition:"margin-left ".concat(n,"ms linear")}},r.createElement("div",{className:"shadow"}))};oh.propTypes={animationDuration:m.a.number.isRequired,progress:m.a.number.isRequired};var lh=oh,uh=function(t){var e=t.children,n=t.isFinished,i=t.animationDuration;return r.createElement("div",{style:{opacity:n?0:1,pointerEvents:"none",transition:"opacity ".concat(i,"ms linear")}},e)};uh.propTypes={animationDuration:m.a.number.isRequired,children:m.a.node.isRequired,isFinished:m.a.bool.isRequired};var sh=uh,ch=function(t){var e=t.isAnimating,n=t.key;return i.a.createElement(ah,{isAnimating:e,key:n},(function(t){var e=t.animationDuration,n=t.isFinished,r=t.progress;return i.a.createElement(sh,{isFinished:n,animationDuration:e},i.a.createElement(lh,{progress:r,animationDuration:e}))}))};function fh(){var t=Object(r.useState)(window.type||"rb"),e=u()(t,2),n=e[0],a=e[1],o=Object(r.useState)(!0),l=u()(o,2),s=l[0],c=l[1];return i.a.createElement(i.a.Fragment,null,i.a.createElement(ch,{isAnimating:s,key:n}),i.a.createElement("nav",{className:"navbar navbar-expand-lg navbar-light bg-light fixed-top"},i.a.createElement("a",{className:"navbar-brand",href:"#"},i.a.createElement("img",{src:"images/attractor_logo.svg",alt:"",width:"36",className:"mr-3"}),"Attractor"),i.a.createElement("ul",{className:"navbar-nav mx-auto"},Object.entries(window.types).map((function(t){var e=u()(t,2),r=e[0],o=e[1];return i.a.createElement("li",{className:"nav-item ".concat(n===r?"active":"")},i.a.createElement("a",{className:"nav-link",href:window.serveStatic?"index.".concat(r,".html"):"#",onClick:function(){window.serveStatic||(c(!0),a(r))}},o))})))),i.a.createElement("div",{className:"container"},i.a.createElement(Hf,{type:n,finishedLoadingCallback:function(){c(!1)}}),i.a.createElement("div",{className:"row mt-3"},i.a.createElement("div",{className:"col-12"},i.a.createElement(A,null)))))}document.addEventListener("DOMContentLoaded",(function(){document.getElementById("react-root")&&o.a.render(i.a.createElement(fh,null),document.getElementById("react-root"))}))}]);
@@ -1,3 +1,3 @@
1
1
  module Attractor
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Rubisch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: churn