From 77befbd2142397f4e26a03d5fecc170d4e2db566 Mon Sep 17 00:00:00 2001 From: BrokenTalentsFun CI Date: Sat, 16 Jun 2018 21:02:49 +0200 Subject: automatic build --- dist/build.js | 10 +++++----- dist/main.css | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'dist') diff --git a/dist/build.js b/dist/build.js index 769921a..50f7b76 100644 --- a/dist/build.js +++ b/dist/build.js @@ -1,16 +1,16 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=338)}([function(e,t,n){"use strict";var r=n(1),a=n(2),i=n(15),o=i.FP_SAFE,s=i.BADNUM,l=e.exports={};l.nestedProperty=n(107),l.isPlainObject=n(32),l.isArray=n(106),l.mod=n(166),l.toLogRange=n(105),l.relinkPrivateKeys=n(304),l.ensureArray=n(303);var c=n(302);l.valObjects=c.valObjects,l.coerce=c.coerce,l.coerce2=c.coerce2,l.coerceFont=c.coerceFont,l.coerceHoverinfo=c.coerceHoverinfo,l.validate=c.validate;var u=n(301);l.dateTime2ms=u.dateTime2ms,l.isDateTime=u.isDateTime,l.ms2DateTime=u.ms2DateTime,l.ms2DateTimeLocal=u.ms2DateTimeLocal,l.cleanDate=u.cleanDate,l.isJSDate=u.isJSDate,l.formatDate=u.formatDate,l.incrementMonth=u.incrementMonth,l.dateTick0=u.dateTick0,l.dfltRange=u.dfltRange,l.findExactDates=u.findExactDates,l.MIN_MS=u.MIN_MS,l.MAX_MS=u.MAX_MS;var d=n(162);l.findBin=d.findBin,l.sorterAsc=d.sorterAsc,l.sorterDes=d.sorterDes,l.distinctVals=d.distinctVals,l.roundUp=d.roundUp;var f=n(300);l.aggNums=f.aggNums,l.len=f.len,l.mean=f.mean,l.variance=f.variance,l.stdev=f.stdev,l.interp=f.interp;var h=n(161);l.init2dArray=h.init2dArray,l.transposeRagged=h.transposeRagged,l.dot=h.dot,l.translationMatrix=h.translationMatrix,l.rotationMatrix=h.rotationMatrix,l.rotationXYMatrix=h.rotationXYMatrix,l.apply2DTransform=h.apply2DTransform,l.apply2DTransform2=h.apply2DTransform2;var p=n(10);l.extendFlat=p.extendFlat,l.extendDeep=p.extendDeep,l.extendDeepAll=p.extendDeepAll,l.extendDeepNoArrays=p.extendDeepNoArrays;var v=n(33);l.log=v.log,l.warn=v.warn,l.error=v.error,l.notifier=n(299),l.filterUnique=n(298),l.filterVisible=n(297),l.pushUnique=n(168),l.cleanNumber=n(296),l.ensureNumber=function(e){return a(e)?(e=Number(e))<-o||e>o?s:a(e)?Number(e):s:s},l.noop=n(109),l.identity=n(295),l.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var a=0;an?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},l.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},l.simpleMap=function(e,t,n,r){for(var a=e.length,i=new Array(a),o=0;o-1||c!==1/0&&c>=Math.pow(2,n)?e(t,n,r):s},l.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},l.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,a,i,o=e.length,s=2*o,l=2*t-1,c=new Array(l),u=new Array(o);for(n=0;n=s&&(a-=s*Math.floor(a/s)),a<0?a=-1-a:a>=o&&(a=s-1-a),i+=e[a]*c[r];u[n]=i}return u},l.syncOrAsync=function(e,t,n){var r;function a(){return l.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(a).then(void 0,l.promiseError);return n&&n(t)},l.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},l.noneOrAll=function(e,t,n){if(e){var r,a,i=!1,o=!0;for(r=0;r1?a+o[1]:"";if(i&&(o.length>1||s.length>4||n))for(;r.test(s);)s=s.replace(r,"$1"+i+"$2");return s+l}},function(e,t,n){var r,a;!function(){var i={version:"3.5.17"},o=[].slice,s=function(e){return o.call(e)},l=this.document;function c(e){return e&&(e.ownerDocument||e.document||e).documentElement}function u(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(l)try{s(l.documentElement.childNodes)[0].nodeType}catch(e){s=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),l)try{l.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var d=this.Element.prototype,f=d.setAttribute,h=d.setAttributeNS,p=this.CSSStyleDeclaration.prototype,v=p.setProperty;d.setAttribute=function(e,t){f.call(this,e,t+"")},d.setAttributeNS=function(e,t,n){h.call(this,e,t,n+"")},p.setProperty=function(e,t,n){v.call(this,e,t+"",n)}}function g(e,t){return et?1:e>=t?0:NaN}function m(e){return null===e?NaN:+e}function y(e){return!isNaN(e)}function b(e){return{left:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r>>1;e(t[i],n)<0?r=i+1:a=i}return r},right:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r>>1;e(t[i],n)>0?a=i:r=i+1}return r}}}i.ascending=g,i.descending=function(e,t){return te?1:t>=e?0:NaN},i.min=function(e,t){var n,r,a=-1,i=e.length;if(1===arguments.length){for(;++a=r){n=r;break}for(;++ar&&(n=r)}else{for(;++a=r){n=r;break}for(;++ar&&(n=r)}return n},i.max=function(e,t){var n,r,a=-1,i=e.length;if(1===arguments.length){for(;++a=r){n=r;break}for(;++an&&(n=r)}else{for(;++a=r){n=r;break}for(;++an&&(n=r)}return n},i.extent=function(e,t){var n,r,a,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=a=r;break}for(;++ir&&(n=r),a=r){n=a=r;break}for(;++ir&&(n=r),a1)return o/(l-1)},i.deviation=function(){var e=i.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _=b(g);function x(e){return e.length}i.bisectLeft=_.left,i.bisect=i.bisectRight=_.right,i.bisector=function(e){return b(1===e.length?function(t,n){return g(e(t),n)}:e)},i.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,a,i=n-t;i;)a=Math.random()*i--|0,r=e[i+t],e[i+t]=e[a+t],e[a+t]=r;return e},i.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},i.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],a=new Array(n<0?0:n);t=0;)for(t=(r=e[a]).length;--t>=0;)n[--o]=r[t];return n};var w=Math.abs;function k(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function T(){this._=Object.create(null)}i.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,a=[],i=function(e){var t=1;for(;e*t%1;)t*=10;return t}(w(n)),o=-1;if(e*=i,t*=i,(n*=i)<0)for(;(r=e+n*++o)>t;)a.push(r/i);else for(;(r=e+n*++o)=r.length)return t?t.call(n,i):e?i.sort(e):i;for(var l,c,u,d,f=-1,h=i.length,p=r[s++],v=new T;++f=r.length)return t;var i=[],o=a[n++];return t.forEach(function(t,r){i.push({key:t,values:e(r,n)})}),o?i.sort(function(e,t){return o(e.key,t.key)}):i}(o(i.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return a[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},i.set=function(e){var t=new E;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},i.event=null,i.requote=function(e){return e.replace(q,"\\$&")};var q=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function G(e){return U(e,Z),e}var Y=function(e,t){return t.querySelector(e)},K=function(e,t){return t.querySelectorAll(e)},X=function(e,t){var n=e.matches||e[j(e,"matchesSelector")];return(X=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(Y=function(e,t){return Sizzle(e,t)[0]||null},K=Sizzle,X=Sizzle.matchesSelector),i.selection=function(){return i.select(l.documentElement)};var Z=i.selection.prototype=[];function J(e){return"function"==typeof e?e:function(){return Y(e,this)}}function Q(e){return"function"==typeof e?e:function(){return K(e,this)}}Z.select=function(e){var t,n,r,a,i=[];e=J(e);for(var o=-1,s=this.length;++o=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),te.hasOwnProperty(n)?{space:te[n],local:e}:e}},Z.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=i.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(ne(t,e[t]));return this}return this.each(ne(e,t))},Z.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=ie(e)).length,a=-1;if(t=n.classList){for(;++a=0;)(n=r[a])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Z.sort=function(e){e=function(e){arguments.length||(e=g);return function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}.apply(this,arguments);for(var t=-1,n=this.length;++t0&&(e=e.slice(0,a));var l=ye.get(e);function c(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return l&&(e=l,o=_e),a?t?function(){var a=o(t,s(arguments));c.call(this),this.addEventListener(e,this[r]=a,a.$=n),a._=t}:c:t?B:function(){var t,n=new RegExp("^__on([^.]+)"+i.requote(e)+"$");for(var r in this)if(t=r.match(n)){var a=this[r];this.removeEventListener(t[1],a,a.$),delete this[r]}}}i.selection.enter=ve,i.selection.enter.prototype=ge,ge.append=Z.append,ge.empty=Z.empty,ge.node=Z.node,ge.call=Z.call,ge.size=Z.size,ge.select=function(e){for(var t,n,r,a,i,o=[],s=-1,l=this.length;++s=r&&(r=t+1);!(o=s[r])&&++r0?1:e<0?-1:0}function Ie(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function je(e){return e>1?0:e<-1?Le:Math.acos(e)}function Re(e){return e>1?ze:e<-1?-ze:Math.asin(e)}function Be(e){return((e=Math.exp(e))+1/e)/2}function Fe(e){return(e=Math.sin(e/2))*e}var $e=Math.SQRT2;i.interpolateZoom=function(e,t){var n,r,a=e[0],i=e[1],o=e[2],s=t[0],l=t[1],c=t[2],u=s-a,d=l-i,f=u*u+d*d;if(f0&&(e=e.transition().duration(v)),e.call(w.event)}function C(){s&&s.domain(o.range().map(function(e){return(e-f.x)/f.k}).map(o.invert)),d&&d.domain(c.range().map(function(e){return(e-f.y)/f.k}).map(c.invert))}function S(e){g++||e({type:"zoomstart"})}function L(e){C(),e({type:"zoom",scale:f.k,translate:[f.x,f.y]})}function O(e){--g||(e({type:"zoomend"}),t=null)}function D(){var e=this,t=x.of(e,arguments),n=0,r=i.select(u(e)).on(y,function(){n=1,A(i.mouse(e),a),L(t)}).on(b,function(){r.on(y,null).on(b,null),o(n),O(t)}),a=k(i.mouse(e)),o=ke(e);ds.call(e),S(t)}function z(){var e,t=this,n=x.of(t,arguments),r={},o=0,s=".zoom-"+i.event.changedTouches[0].identifier,l="touchmove"+s,c="touchend"+s,u=[],d=i.select(t),h=ke(t);function p(){var n=i.touches(t);return e=f.k,n.forEach(function(e){e.identifier in r&&(r[e.identifier]=k(e))}),n}function v(){var e=i.event.target;i.select(e).on(l,g).on(c,y),u.push(e);for(var n=i.event.changedTouches,s=0,d=n.length;s1){m=h[0];var b=h[1],_=m[0]-b[0],x=m[1]-b[1];o=_*_+x*x}}function g(){var s,l,c,u,d=i.touches(t);ds.call(t);for(var f=0,h=d.length;f360?e-=360:e<0&&(e+=360),e<60?r+(a-r)*e/60:e<180?a:e<240?r+(a-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(a=n<=.5?n*(1+t):n+t-n*t),new ct(i(e+120),i(e),i(e-120))}function Ke(e,t,n){return this instanceof Ke?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof Ke?new Ke(e.h,e.c,e.l):it(e instanceof Je?e.l:(e=gt((e=i.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ke(e,t,n)}Ge.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ue(this.h,this.s,this.l/e)},Ge.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ue(this.h,this.s,e*this.l)},Ge.rgb=function(){return Ye(this.h,this.s,this.l)},i.hcl=Ke;var Xe=Ke.prototype=new qe;function Ze(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Je(n,Math.cos(e*=Pe)*t,Math.sin(e)*t)}function Je(e,t,n){return this instanceof Je?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Je?new Je(e.l,e.a,e.b):e instanceof Ke?Ze(e.h,e.c,e.l):gt((e=ct(e)).r,e.g,e.b):new Je(e,t,n)}Xe.brighter=function(e){return new Ke(this.h,this.c,Math.min(100,this.l+Qe*(arguments.length?e:1)))},Xe.darker=function(e){return new Ke(this.h,this.c,Math.max(0,this.l-Qe*(arguments.length?e:1)))},Xe.rgb=function(){return Ze(this.h,this.c,this.l).rgb()},i.lab=Je;var Qe=18,et=.95047,tt=1,nt=1.08883,rt=Je.prototype=new qe;function at(e,t,n){var r=(e+16)/116,a=r+t/500,i=r-n/200;return new ct(lt(3.2404542*(a=ot(a)*et)-1.5371385*(r=ot(r)*tt)-.4985314*(i=ot(i)*nt)),lt(-.969266*a+1.8760108*r+.041556*i),lt(.0556434*a-.2040259*r+1.0572252*i))}function it(e,t,n){return e>0?new Ke(Math.atan2(n,t)*Ee,Math.sqrt(t*t+n*n),e):new Ke(NaN,NaN,e)}function ot(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function st(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function lt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ct(e,t,n){return this instanceof ct?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ct?new ct(e.r,e.g,e.b):pt(""+e,ct,Ye):new ct(e,t,n)}function ut(e){return new ct(e>>16,e>>8&255,255&e)}function dt(e){return ut(e)+""}rt.brighter=function(e){return new Je(Math.min(100,this.l+Qe*(arguments.length?e:1)),this.a,this.b)},rt.darker=function(e){return new Je(Math.max(0,this.l-Qe*(arguments.length?e:1)),this.a,this.b)},rt.rgb=function(){return at(this.l,this.a,this.b)},i.rgb=ct;var ft=ct.prototype=new qe;function ht(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function pt(e,t,n){var r,a,i,o=0,s=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=r[2].split(","),r[1]){case"hsl":return n(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(yt(a[0]),yt(a[1]),yt(a[2]))}return(i=bt.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&i)>>4,o|=o>>4,s=240&i,s|=s>>4,l=15&i,l|=l<<4):7===e.length&&(o=(16711680&i)>>16,s=(65280&i)>>8,l=255&i)),t(o,s,l))}function vt(e,t,n){var r,a,i=Math.min(e/=255,t/=255,n/=255),o=Math.max(e,t,n),s=o-i,l=(o+i)/2;return s?(a=l<.5?s/(o+i):s/(2-o-i),r=e==o?(t-n)/s+(t0&&l<1?0:r),new Ue(r,a,l)}function gt(e,t,n){var r=st((.4124564*(e=mt(e))+.3575761*(t=mt(t))+.1804375*(n=mt(n)))/et),a=st((.2126729*e+.7151522*t+.072175*n)/tt);return Je(116*a-16,500*(r-a),200*(a-st((.0193339*e+.119192*t+.9503041*n)/nt)))}function mt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}ft.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,a=30;return t||n||r?(t&&t=200&&t<300||304===t){try{e=n.call(a,c)}catch(e){return void o.error.call(a,e)}o.load.call(a,e)}else o.error.call(a,c)}return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(e)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=d:c.onreadystatechange=function(){c.readyState>3&&d()},c.onprogress=function(e){var t=i.event;i.event=e;try{o.progress.call(a,c)}finally{i.event=t}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?l[e]:(null==t?delete l[e]:l[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",a):t},a.responseType=function(e){return arguments.length?(u=e,a):u},a.response=function(e){return n=e,a},["get","post"].forEach(function(e){a[e]=function(){return a.send.apply(a,[e].concat(s(arguments)))}}),a.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),c.open(n,e,!0),null==t||"accept"in l||(l.accept=t+",*/*"),c.setRequestHeader)for(var s in l)c.setRequestHeader(s,l[s]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=u&&(c.responseType=u),null!=i&&a.on("error",i).on("load",function(e){i(null,e)}),o.beforesend.call(a,c),c.send(null==r?null:r),a},a.abort=function(){return c.abort(),a},i.rebind(a,o,"on"),null==r?a:a.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}bt.forEach(function(e,t){bt.set(e,ut(t))}),i.functor=_t,i.xhr=xt(N),i.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function a(e,n,r){arguments.length<3&&(r=n,n=null);var a=wt(e,t,null==n?i:o(n),r);return a.row=function(e){return arguments.length?a.response(null==(n=e)?i:o(e)):n},a}function i(e){return a.parse(e.responseText)}function o(e){return function(t){return a.parse(t.responseText,e)}}function s(t){return t.map(l).join(e)}function l(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var n;return a.parseRows(e,function(e,r){if(n)return n(e,r-1);var a=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");n=t?function(e,n){return t(a(e),n)}:a})},a.parseRows=function(e,t){var n,a,i={},o={},s=[],l=e.length,c=0,u=0;function d(){if(c>=l)return o;if(a)return a=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++24?(isFinite(t)&&(clearTimeout(Mt),Mt=setTimeout(Lt,t)),At=0):(At=1,Ct(Lt))}function Ot(){for(var e=Date.now(),t=kt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Dt(){for(var e,t=kt,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}});i.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=i.round(e,zt(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Pt[8+n/3]};var Et=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Nt=i.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=i.round(e,zt(e,t))).toFixed(Math.max(0,Math.min(20,zt(e*(1+1e-15),t))))}});function It(e){return e+""}var jt=i.time={},Rt=Date;function Bt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Bt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Ft.setUTCDate.apply(this._,arguments)},setDay:function(){Ft.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ft.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ft.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ft.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ft.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ft.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ft.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ft.setTime.apply(this._,arguments)}};var Ft=Date.prototype;function $t(e,t,n){function r(t){var n=e(t),r=i(n,1);return t-n1)for(;o68?1900:2e3),n+a[0].length):-1}function en(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function tn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function an(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function on(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function sn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ln(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function cn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=w(t)/60|0,a=w(t)%60;return n+Ut(r,"0",2)+Ut(a,"0",2)}function un(e,t,n){qt.lastIndex=0;var r=qt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function dn(e){for(var t=e.length,n=-1;++n0&&s>0&&(l+s+1>t&&(s=Math.max(1,t-l)),i.push(e.substring(a-=s,a+s)),!((l+=s+1)>t));)s=r[o=(o+1)%r.length];return i.reverse().join(n)}:N;return function(e){var n=Et.exec(e),r=n[1]||" ",s=n[2]||">",l=n[3]||"-",c=n[4]||"",u=n[5],d=+n[6],f=n[7],h=n[8],p=n[9],v=1,g="",m="",y=!1,b=!0;switch(h&&(h=+h.substring(1)),(u||"0"===r&&"="===s)&&(u=r="0",s="="),p){case"n":f=!0,p="g";break;case"%":v=100,m="%",p="f";break;case"p":v=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===c&&(g="0"+p.toLowerCase());case"c":b=!1;case"d":y=!0,h=0;break;case"s":v=-1,p="r"}"$"===c&&(g=a[0],m=a[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=Nt.get(p)||It;var _=u&&f;return function(e){var n=m;if(y&&e%1)return"";var a=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===l?"":l;if(v<0){var c=i.formatPrefix(e,h);e=c.scale(e),n=c.symbol+m}else e*=v;var x,w,k=(e=p(e,h)).lastIndexOf(".");if(k<0){var T=b?e.lastIndexOf("e"):-1;T<0?(x=e,w=""):(x=e.substring(0,T),w=e.substring(T))}else x=e.substring(0,k),w=t+e.substring(k+1);!u&&f&&(x=o(x,1/0));var A=g.length+x.length+w.length+(_?0:a.length),M=A"===s?M+a+e:"^"===s?M.substring(0,A>>=1)+a+e+M.substring(A):a+(_?e:M+e))+n}}}(e),timeFormat:function(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,c=e.shortMonths;function u(e){var t=e.length;function n(n){for(var r,a,i,o=[],s=-1,l=0;++s=c)return-1;if(37===(a=t.charCodeAt(s++))){if(o=t.charAt(s++),!(i=w[o in Vt?t.charAt(s++):o])||(r=i(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}u.utc=function(e){var t=u(e);function n(e){try{var n=new(Rt=Bt);return n._=e,t(n)}finally{Rt=Date}}return n.parse=function(e){try{Rt=Bt;var n=t.parse(e);return n&&n._}finally{Rt=Date}},n.toString=t.toString,n},u.multi=u.utc.multi=dn;var f=i.map(),h=Gt(o),p=Yt(o),v=Gt(s),g=Yt(s),m=Gt(l),y=Yt(l),b=Gt(c),_=Yt(c);a.forEach(function(e,t){f.set(e.toLowerCase(),t)});var x={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:u(t),d:function(e,t){return Ut(e.getDate(),t,2)},e:function(e,t){return Ut(e.getDate(),t,2)},H:function(e,t){return Ut(e.getHours(),t,2)},I:function(e,t){return Ut(e.getHours()%12||12,t,2)},j:function(e,t){return Ut(1+jt.dayOfYear(e),t,3)},L:function(e,t){return Ut(e.getMilliseconds(),t,3)},m:function(e,t){return Ut(e.getMonth()+1,t,2)},M:function(e,t){return Ut(e.getMinutes(),t,2)},p:function(e){return a[+(e.getHours()>=12)]},S:function(e,t){return Ut(e.getSeconds(),t,2)},U:function(e,t){return Ut(jt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Ut(jt.mondayOfYear(e),t,2)},x:u(n),X:u(r),y:function(e,t){return Ut(e.getFullYear()%100,t,2)},Y:function(e,t){return Ut(e.getFullYear()%1e4,t,4)},Z:cn,"%":function(){return"%"}},w={a:function(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){h.lastIndex=0;var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){m.lastIndex=0;var r=m.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return d(e,x.c.toString(),t,n)},d:nn,e:nn,H:an,I:an,j:rn,L:ln,m:tn,M:on,p:function(e,t,n){var r=f.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:sn,U:Xt,w:Kt,W:Zt,x:function(e,t,n){return d(e,x.x.toString(),t,n)},X:function(e,t,n){return d(e,x.X.toString(),t,n)},y:Qt,Y:Jt,Z:en,"%":un};return u}(e)}};var fn=i.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function hn(){}i.format=fn.numberFormat,i.geo={},hn.prototype={s:0,t:0,add:function(e){vn(e,this.t,pn),vn(pn.s,this.s,this),this.s?this.t+=pn.t:this.s=pn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var pn=new hn;function vn(e,t,n){var r=n.s=e+t,a=r-e,i=r-a;n.t=e-i+(t-a)}function gn(e,t){e&&yn.hasOwnProperty(e.type)&&yn[e.type](e,t)}i.geo.stream=function(e,t){e&&mn.hasOwnProperty(e.type)?mn[e.type](e,t):gn(e,t)};var mn={Feature:function(e,t){gn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,a=n.length;++r=0?1:-1,s=o*i,l=Math.cos(t),c=Math.sin(t),u=a*c,d=r*l+u*Math.cos(s),f=u*o*Math.sin(s);Pn.add(Math.atan2(f,d)),n=e,r=l,a=c}En.point=function(o,s){En.point=i,n=(e=o)*Pe,r=Math.cos(s=(t=s)*Pe/2+Le/4),a=Math.sin(s)},En.lineEnd=function(){i(e,t)}}function In(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function jn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Rn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Bn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Fn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function $n(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Wn(e){return[Math.atan2(e[1],e[0]),Re(e[2])]}function Vn(e,t){return w(e[0]-t[0])Ce?r=90:c<-Ce&&(t=-90),d[0]=e,d[1]=n}};function h(a,i){u.push(d=[e=a,n=a]),ir&&(r=i)}function p(i,o){var s=In([i*Pe,o*Pe]);if(l){var c=Rn(l,s),u=Rn([c[1],-c[0],0],c);$n(u),u=Wn(u);var d=i-a,f=d>0?1:-1,p=u[0]*Ee*f,v=w(d)>180;if(v^(f*ar&&(r=g);else if(v^(f*a<(p=(p+360)%360-180)&&pr&&(r=o);v?i_(e,n)&&(n=i):_(i,n)>_(e,n)&&(e=i):n>=e?(in&&(n=i)):i>a?_(e,i)>_(e,n)&&(n=i):_(i,n)>_(e,n)&&(e=i)}else h(i,o);l=s,a=i}function v(){f.point=p}function g(){d[0]=e,d[1]=n,f.point=h,l=null}function m(e,t){if(l){var n=e-a;c+=w(n)>180?n+(n>0?360:-360):n}else o=e,s=t;En.point(e,t),p(e,t)}function y(){En.lineStart()}function b(){m(o,s),En.lineEnd(),w(c)>Ce&&(e=-(n=180)),d[0]=e,d[1]=n,l=null}function _(e,t){return(t-=e)<0?t+360:t}function x(e,t){return e[0]-t[0]}function k(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e_(v[0],v[1])&&(v[1]=h[1]),_(h[0],v[1])>_(v[0],v[1])&&(v[0]=h[0])):s.push(v=h);for(var l,c,h,p=-1/0,v=(o=0,s[c=s.length-1]);o<=c;v=h,++o)h=s[o],(l=_(v[1],h[0]))>p&&(p=l,e=h[0],n=v[1])}return u=d=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),i.geo.centroid=function(e){wn=kn=Tn=An=Mn=Cn=Sn=Ln=On=Dn=zn=0,i.geo.stream(e,Hn);var t=On,n=Dn,r=zn,a=t*t+n*n+r*r;return a=0;--s)a.point((d=u[s])[0],d[1]);else r(h.x,h.p.x,-1,a);h=h.p}u=(h=h.o).z,p=!p}while(!h.v);a.lineEnd()}}}function Qn(e){if(t=e.length){for(var t,n,r=0,a=e[0];++r=0?1:-1,k=w*x,T=k>Le,A=p*b;if(Pn.add(Math.atan2(A*w*Math.sin(k),v*_+A*Math.cos(k))),i+=T?x+w*Oe:x,T^f>=n^m>=n){var M=Rn(In(d),In(e));$n(M);var C=Rn(a,M);$n(C);var S=(T^x>=0?-1:1)*Re(C[2]);(r>S||r===S&&(M[0]||M[1]))&&(o+=T^x>=0?1:-1)}if(!g++)break;f=m,p=b,v=_,d=e}}return(i<-Ce||i0){for(b||(o.polygonStart(),b=!0),o.lineStart();++i1&&2&t&&n.push(n.pop().concat(n.shift())),s.push(n.filter(nr))}return u}}function nr(e){return e.length>1}function rr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:B,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function ar(e,t){return((e=e.x)[0]<0?e[1]-ze-Ce:ze-e[1])-((t=t.x)[0]<0?t[1]-ze-Ce:ze-t[1])}var ir=tr(Zn,function(e){var t,n=NaN,r=NaN,a=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,o){var s=i>0?Le:-Le,l=w(i-n);w(l-Le)0?ze:-ze),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):a!==s&&l>=Le&&(w(n-a)Ce?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(a=Math.cos(t))*Math.sin(e))/(a*i*o)):(t+r)/2}(n,r,i,o),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=i,r=o),a=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var a;if(null==e)a=n*ze,r.point(-Le,a),r.point(0,a),r.point(Le,a),r.point(Le,0),r.point(Le,-a),r.point(0,-a),r.point(-Le,-a),r.point(-Le,0),r.point(-Le,a);else if(w(e[0]-t[0])>Ce){var i=e[0]0)){if(i/=f,f<0){if(i0){if(i>d)return;i>u&&(u=i)}if(i=n-l,f||!(i<0)){if(i/=f,f<0){if(i>d)return;i>u&&(u=i)}else if(f>0){if(i0)){if(i/=h,h<0){if(i0){if(i>d)return;i>u&&(u=i)}if(i=r-c,h||!(i<0)){if(i/=h,h<0){if(i>d)return;i>u&&(u=i)}else if(h>0){if(i0&&(a.a={x:l+u*f,y:c+u*h}),d<1&&(a.b={x:l+d*f,y:c+d*h}),a}}}}}}var sr=1e9;function lr(e,t,n,r){return function(l){var c,u,d,f,h,p,v,g,m,y,b,_=l,x=rr(),w=or(e,t,n,r),k={point:M,lineStart:function(){k.point=C,u&&u.push(d=[]);y=!0,m=!1,v=g=NaN},lineEnd:function(){c&&(C(f,h),p&&m&&x.rejoin(),c.push(x.buffer()));k.point=M,m&&l.lineEnd()},polygonStart:function(){l=x,c=[],u=[],b=!0},polygonEnd:function(){l=_,c=i.merge(c);var t=function(e){for(var t=0,n=u.length,r=e[1],a=0;ar&&Ie(c,i,e)>0&&++t:i[1]<=r&&Ie(c,i,e)<0&&--t,c=i;return 0!==t}([e,r]),n=b&&t,a=c.length;(n||a)&&(l.polygonStart(),n&&(l.lineStart(),T(null,null,1,l),l.lineEnd()),a&&Jn(c,o,t,T,l),l.polygonEnd()),c=u=d=null}};function T(i,o,l,c){var u=0,d=0;if(null==i||(u=a(i,l))!==(d=a(o,l))||s(i,o)<0^l>0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+l+4)%4)!==d);else c.point(o[0],o[1])}function A(a,i){return e<=a&&a<=n&&t<=i&&i<=r}function M(e,t){A(e,t)&&l.point(e,t)}function C(e,t){var n=A(e=Math.max(-sr,Math.min(sr,e)),t=Math.max(-sr,Math.min(sr,t)));if(u&&d.push([e,t]),y)f=e,h=t,p=n,y=!1,n&&(l.lineStart(),l.point(e,t));else if(n&&m)l.point(e,t);else{var r={a:{x:v,y:g},b:{x:e,y:t}};w(r)?(m||(l.lineStart(),l.point(r.a.x,r.a.y)),l.point(r.b.x,r.b.y),n||l.lineEnd(),b=!1):n&&(l.lineStart(),l.point(e,t),b=!1)}v=e,g=t,m=n}return k};function a(r,a){return w(r[0]-e)0?0:3:w(r[0]-n)0?2:1:w(r[1]-t)0?1:0:a>0?3:2}function o(e,t){return s(e.x,t.x)}function s(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function cr(e){var t=0,n=Le/3,r=Dr(e),a=r(t,n);return a.parallels=function(e){return arguments.length?r(t=e[0]*Le/180,n=e[1]*Le/180):[t/Le*180,n/Le*180]},a}function ur(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,a=1+n*(2*r-n),i=Math.sqrt(a)/r;function o(e,t){var n=Math.sqrt(a-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),i-n*Math.cos(e)]}return o.invert=function(e,t){var n=i-t;return[Math.atan2(e,n)/r,Re((a-(e*e+n*n)*r*r)/(2*r))]},o}i.geo.clipExtent=function(){var e,t,n,r,a,i,o={stream:function(e){return a&&(a.valid=!1),(a=i(e)).valid=!0,a},extent:function(s){return arguments.length?(i=lr(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),a&&(a.valid=!1,a=null),o):[[e,t],[n,r]]}};return o.extent([[0,0],[960,500]])},(i.geo.conicEqualArea=function(){return cr(ur)}).raw=ur,i.geo.albers=function(){return i.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},i.geo.albersUsa=function(){var e,t,n,r,a=i.geo.albers(),o=i.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=i.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,n){e=[t,n]}};function c(a){var i=a[0],o=a[1];return e=null,t(i,o),e||(n(i,o),e)||r(i,o),e}return c.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?o:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:a).invert(e)},c.stream=function(e){var t=a.stream(e),n=o.stream(e),r=s.stream(e);return{point:function(e,a){t.point(e,a),n.point(e,a),r.point(e,a)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},c.precision=function(e){return arguments.length?(a.precision(e),o.precision(e),s.precision(e),c):a.precision()},c.scale=function(e){return arguments.length?(a.scale(e),o.scale(.35*e),s.scale(e),c.translate(a.translate())):a.scale()},c.translate=function(e){if(!arguments.length)return a.translate();var i=a.scale(),u=+e[0],d=+e[1];return t=a.translate(e).clipExtent([[u-.455*i,d-.238*i],[u+.455*i,d+.238*i]]).stream(l).point,n=o.translate([u-.307*i,d+.201*i]).clipExtent([[u-.425*i+Ce,d+.12*i+Ce],[u-.214*i-Ce,d+.234*i-Ce]]).stream(l).point,r=s.translate([u-.205*i,d+.212*i]).clipExtent([[u-.214*i+Ce,d+.166*i+Ce],[u-.115*i-Ce,d+.234*i-Ce]]).stream(l).point,c},c.scale(1070)};var dr,fr,hr,pr,vr,gr,mr={point:B,lineStart:B,lineEnd:B,polygonStart:function(){fr=0,mr.lineStart=yr},polygonEnd:function(){mr.lineStart=mr.lineEnd=mr.point=B,dr+=w(fr/2)}};function yr(){var e,t,n,r;function a(e,t){fr+=r*e-n*t,n=e,r=t}mr.point=function(i,o){mr.point=a,e=n=i,t=r=o},mr.lineEnd=function(){a(e,t)}}var br={point:function(e,t){evr&&(vr=e);tgr&&(gr=t)},lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B};function _r(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var xr,wr={point:kr,lineStart:Tr,lineEnd:Ar,polygonStart:function(){wr.lineStart=Mr},polygonEnd:function(){wr.point=kr,wr.lineStart=Tr,wr.lineEnd=Ar}};function kr(e,t){Tn+=e,An+=t,++Mn}function Tr(){var e,t;function n(n,r){var a=n-e,i=r-t,o=Math.sqrt(a*a+i*i);Cn+=o*(e+n)/2,Sn+=o*(t+r)/2,Ln+=o,kr(e=n,t=r)}wr.point=function(r,a){wr.point=n,kr(e=r,t=a)}}function Ar(){wr.point=kr}function Mr(){var e,t,n,r;function a(e,t){var a=e-n,i=t-r,o=Math.sqrt(a*a+i*i);Cn+=o*(n+e)/2,Sn+=o*(r+t)/2,Ln+=o,On+=(o=r*e-n*t)*(n+e),Dn+=o*(r+t),zn+=3*o,kr(n=e,r=t)}wr.point=function(i,o){wr.point=a,kr(e=n=i,t=r=o)},wr.lineEnd=function(){a(e,t)}}function Cr(e){var t=.5,n=Math.cos(30*Pe),r=16;function a(t){return(r?function(t){var n,a,o,s,l,c,u,d,f,h,p,v,g={point:m,lineStart:y,lineEnd:_,polygonStart:function(){t.polygonStart(),g.lineStart=x},polygonEnd:function(){t.polygonEnd(),g.lineStart=y}};function m(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){d=NaN,g.point=b,t.lineStart()}function b(n,a){var o=In([n,a]),s=e(n,a);i(d,f,u,h,p,v,d=s[0],f=s[1],u=n,h=o[0],p=o[1],v=o[2],r,t),t.point(d,f)}function _(){g.point=m,t.lineEnd()}function x(){y(),g.point=w,g.lineEnd=k}function w(e,t){b(n=e,t),a=d,o=f,s=h,l=p,c=v,g.point=b}function k(){i(d,f,u,h,p,v,a,o,n,s,l,c,r,t),g.lineEnd=_,_()}return g}:function(t){return Lr(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})})(t)}function i(r,a,o,s,l,c,u,d,f,h,p,v,g,m){var y=u-r,b=d-a,_=y*y+b*b;if(_>4*t&&g--){var x=s+h,k=l+p,T=c+v,A=Math.sqrt(x*x+k*k+T*T),M=Math.asin(T/=A),C=w(w(T)-1)t||w((y*D+b*z)/_-.5)>.3||s*h+l*p+c*v0&&16,a):Math.sqrt(t)},a}function Sr(e){this.stream=e}function Lr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Or(e){return Dr(function(){return e})()}function Dr(e){var t,n,r,a,o,s,l=Cr(function(e,n){return[(e=t(e,n))[0]*c+a,o-e[1]*c]}),c=150,u=480,d=250,f=0,h=0,p=0,v=0,g=0,m=ir,y=N,b=null,_=null;function x(e){return[(e=r(e[0]*Pe,e[1]*Pe))[0]*c+a,o-e[1]*c]}function k(e){return(e=r.invert((e[0]-a)/c,(o-e[1])/c))&&[e[0]*Ee,e[1]*Ee]}function T(){r=Xn(n=Nr(p,v,g),t);var e=t(f,h);return a=u-e[0]*c,o=d+e[1]*c,A()}function A(){return s&&(s.valid=!1,s=null),x}return x.stream=function(e){return s&&(s.valid=!1),(s=zr(m(n,l(y(e))))).valid=!0,s},x.clipAngle=function(e){return arguments.length?(m=null==e?(b=e,ir):function(e){var t=Math.cos(e),n=t>0,r=w(t)>Ce;return tr(a,function(e){var t,s,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(d,f){var h,p=[d,f],v=a(d,f),g=n?v?0:o(d,f):v?o(d+(d<0?Le:-Le),f):0;if(!t&&(c=l=v)&&e.lineStart(),v!==l&&(h=i(t,p),(Vn(t,h)||Vn(p,h))&&(p[0]+=Ce,p[1]+=Ce,v=a(p[0],p[1]))),v!==l)u=0,v?(e.lineStart(),h=i(p,t),e.point(h[0],h[1])):(h=i(t,p),e.point(h[0],h[1]),e.lineEnd()),t=h;else if(r&&t&&n^v){var m;g&s||!(m=i(p,t,!0))||(u=0,n?(e.lineStart(),e.point(m[0][0],m[0][1]),e.point(m[1][0],m[1][1]),e.lineEnd()):(e.point(m[1][0],m[1][1]),e.lineEnd(),e.lineStart(),e.point(m[0][0],m[0][1])))}!v||t&&Vn(t,p)||e.point(p[0],p[1]),t=p,l=v,s=g},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return u|(c&&l)<<1}}},Br(e,6*Pe),n?[0,-e]:[-Le,e-Le]);function a(e,n){return Math.cos(e)*Math.cos(n)>t}function i(e,n,r){var a=[1,0,0],i=Rn(In(e),In(n)),o=jn(i,i),s=i[0],l=o-s*s;if(!l)return!r&&e;var c=t*o/l,u=-t*s/l,d=Rn(a,i),f=Fn(a,c);Bn(f,Fn(i,u));var h=d,p=jn(f,h),v=jn(h,h),g=p*p-v*(jn(f,f)-1);if(!(g<0)){var m=Math.sqrt(g),y=Fn(h,(-p-m)/v);if(Bn(y,f),y=Wn(y),!r)return y;var b,_=e[0],x=n[0],k=e[1],T=n[1];x<_&&(b=_,_=x,x=b);var A=x-_,M=w(A-Le)0^y[1]<(w(y[0]-_)Le^(_<=y[0]&&y[0]<=x)){var C=Fn(h,(-p+m)/v);return Bn(C,f),[y,Wn(C)]}}}function o(t,r){var a=n?e:Le-e,i=0;return t<-a?i|=1:t>a&&(i|=2),r<-a?i|=4:r>a&&(i|=8),i}}((b=+e)*Pe),A()):b},x.clipExtent=function(e){return arguments.length?(_=e,y=e?lr(e[0][0],e[0][1],e[1][0],e[1][1]):N,A()):_},x.scale=function(e){return arguments.length?(c=+e,T()):c},x.translate=function(e){return arguments.length?(u=+e[0],d=+e[1],T()):[u,d]},x.center=function(e){return arguments.length?(f=e[0]%360*Pe,h=e[1]%360*Pe,T()):[f*Ee,h*Ee]},x.rotate=function(e){return arguments.length?(p=e[0]%360*Pe,v=e[1]%360*Pe,g=e.length>2?e[2]%360*Pe:0,T()):[p*Ee,v*Ee,g*Ee]},i.rebind(x,l,"precision"),function(){return t=e.apply(this,arguments),x.invert=t.invert&&k,T()}}function zr(e){return Lr(e,function(t,n){e.point(t*Pe,n*Pe)})}function Pr(e,t){return[e,t]}function Er(e,t){return[e>Le?e-Oe:e<-Le?e+Oe:e,t]}function Nr(e,t,n){return e?t||n?Xn(jr(e),Rr(t,n)):jr(e):t||n?Rr(t,n):Er}function Ir(e){return function(t,n){return[(t+=e)>Le?t-Oe:t<-Le?t+Oe:t,n]}}function jr(e){var t=Ir(e);return t.invert=Ir(-e),t}function Rr(e,t){var n=Math.cos(e),r=Math.sin(e),a=Math.cos(t),i=Math.sin(t);function o(e,t){var o=Math.cos(t),s=Math.cos(e)*o,l=Math.sin(e)*o,c=Math.sin(t),u=c*n+s*r;return[Math.atan2(l*a-u*i,s*n-c*r),Re(u*a+l*i)]}return o.invert=function(e,t){var o=Math.cos(t),s=Math.cos(e)*o,l=Math.sin(e)*o,c=Math.sin(t),u=c*a-l*i;return[Math.atan2(l*a+c*i,s*n+u*r),Re(u*n-s*r)]},o}function Br(e,t){var n=Math.cos(e),r=Math.sin(e);return function(a,i,o,s){var l=o*t;null!=a?(a=Fr(n,a),i=Fr(n,i),(o>0?ai)&&(a+=o*Oe)):(a=e+o*Oe,i=e-.5*l);for(var c,u=a;o>0?u>i:u2?e[2]*Pe:0),t.invert=function(t){return(t=e.invert(t[0]*Pe,t[1]*Pe))[0]*=Ee,t[1]*=Ee,t},t},Er.invert=Pr,i.geo.circle=function(){var e,t,n=[0,0],r=6;function a(){var e="function"==typeof n?n.apply(this,arguments):n,r=Nr(-e[0]*Pe,-e[1]*Pe,0).invert,a=[];return t(null,null,1,{point:function(e,t){a.push(e=r(e,t)),e[0]*=Ee,e[1]*=Ee}}),{type:"Polygon",coordinates:[a]}}return a.origin=function(e){return arguments.length?(n=e,a):n},a.angle=function(n){return arguments.length?(t=Br((e=+n)*Pe,r*Pe),a):e},a.precision=function(n){return arguments.length?(t=Br(e*Pe,(r=+n)*Pe),a):r},a.angle(90)},i.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Pe,a=e[1]*Pe,i=t[1]*Pe,o=Math.sin(r),s=Math.cos(r),l=Math.sin(a),c=Math.cos(a),u=Math.sin(i),d=Math.cos(i);return Math.atan2(Math.sqrt((n=d*o)*n+(n=c*u-l*d*s)*n),l*u+c*d*s)},i.geo.graticule=function(){var e,t,n,r,a,o,s,l,c,u,d,f,h=10,p=h,v=90,g=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:b()}}function b(){return i.range(Math.ceil(r/v)*v,n,v).map(d).concat(i.range(Math.ceil(l/g)*g,s,g).map(f)).concat(i.range(Math.ceil(t/h)*h,e,h).filter(function(e){return w(e%v)>Ce}).map(c)).concat(i.range(Math.ceil(o/p)*p,a,p).filter(function(e){return w(e%g)>Ce}).map(u))}return y.lines=function(){return b().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(f(s).slice(1),d(n).reverse().slice(1),f(l).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.majorExtent(e).minorExtent(e):y.minorExtent()},y.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],l=+e[0][1],s=+e[1][1],r>n&&(e=r,r=n,n=e),l>s&&(e=l,l=s,s=e),y.precision(m)):[[r,l],[n,s]]},y.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],a=+n[1][1],t>e&&(n=t,t=e,e=n),o>a&&(n=o,o=a,a=n),y.precision(m)):[[t,o],[e,a]]},y.step=function(e){return arguments.length?y.majorStep(e).minorStep(e):y.minorStep()},y.majorStep=function(e){return arguments.length?(v=+e[0],g=+e[1],y):[v,g]},y.minorStep=function(e){return arguments.length?(h=+e[0],p=+e[1],y):[h,p]},y.precision=function(i){return arguments.length?(m=+i,c=$r(o,a,90),u=Wr(t,e,m),d=$r(l,s,90),f=Wr(r,n,m),y):m},y.majorExtent([[-180,-90+Ce],[180,90-Ce]]).minorExtent([[-180,-80-Ce],[180,80+Ce]])},i.geo.greatArc=function(){var e,t,n=Vr,r=Hr;function a(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return a.distance=function(){return i.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e="function"==typeof t?null:t,a):n},a.target=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,a):r},a.precision=function(){return arguments.length?a:0},a},i.geo.interpolate=function(e,t){return n=e[0]*Pe,r=e[1]*Pe,a=t[0]*Pe,i=t[1]*Pe,o=Math.cos(r),s=Math.sin(r),l=Math.cos(i),c=Math.sin(i),u=o*Math.cos(n),d=o*Math.sin(n),f=l*Math.cos(a),h=l*Math.sin(a),p=2*Math.asin(Math.sqrt(Fe(i-r)+o*l*Fe(a-n))),v=1/Math.sin(p),(g=p?function(e){var t=Math.sin(e*=p)*v,n=Math.sin(p-e)*v,r=n*u+t*f,a=n*d+t*h,i=n*s+t*c;return[Math.atan2(a,r)*Ee,Math.atan2(i,Math.sqrt(r*r+a*a))*Ee]}:function(){return[n*Ee,r*Ee]}).distance=p,g;var n,r,a,i,o,s,l,c,u,d,f,h,p,v,g},i.geo.length=function(e){return xr=0,i.geo.stream(e,qr),xr};var qr={sphere:B,point:B,lineStart:function(){var e,t,n;function r(r,a){var i=Math.sin(a*=Pe),o=Math.cos(a),s=w((r*=Pe)-e),l=Math.cos(s);xr+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=n*i-t*o*l)*s),t*i+n*o*l),e=r,t=i,n=o}qr.point=function(a,i){e=a*Pe,t=Math.sin(i*=Pe),n=Math.cos(i),qr.point=r},qr.lineEnd=function(){qr.point=qr.lineEnd=B}},lineEnd:B,polygonStart:B,polygonEnd:B};function Ur(e,t){function n(t,n){var r=Math.cos(t),a=Math.cos(n),i=e(r*a);return[i*a*Math.sin(t),i*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),a=t(r),i=Math.sin(a),o=Math.cos(a);return[Math.atan2(e*i,r*o),Math.asin(r&&n*i/r)]},n}var Gr=Ur(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(i.geo.azimuthalEqualArea=function(){return Or(Gr)}).raw=Gr;var Yr=Ur(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},N);function Kr(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Le/4+e/2)},a=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),i=n*Math.pow(r(e),a)/a;if(!a)return Jr;function o(e,t){i>0?t<-ze+Ce&&(t=-ze+Ce):t>ze-Ce&&(t=ze-Ce);var n=i/Math.pow(r(t),a);return[n*Math.sin(a*e),i-n*Math.cos(a*e)]}return o.invert=function(e,t){var n=i-t,r=Ne(a)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/a,2*Math.atan(Math.pow(i/r,1/a))-ze]},o}function Xr(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),a=n/r+e;if(w(r)1&&Ie(e[n[r-2]],e[n[r-1]],e[a])<=0;)--r;n[r++]=a}return n.slice(0,r)}function oa(e,t){return e[0]-t[0]||e[1]-t[1]}(i.geo.stereographic=function(){return Or(ta)}).raw=ta,na.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-ze]},(i.geo.transverseMercator=function(){var e=Qr(na),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=na,i.geom={},i.geom.hull=function(e){var t=ra,n=aa;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,a=_t(t),i=_t(n),o=e.length,s=[],l=[];for(r=0;r=0;--r)h.push(e[s[c[r]][2]]);for(r=+d;rCe)s=s.L;else{if(!((a=i-ka(s,o))>Ce)){r>-Ce?(t=s.P,n=s):a>-Ce?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var l=ya(e);if(ha.insert(t,l),t||n){if(t===n)return Ca(t),n=ya(t.site),ha.insert(l,n),l.edge=n.edge=Oa(t.site,l.site),Ma(t),void Ma(n);if(n){Ca(t),Ca(n);var c=t.site,u=c.x,d=c.y,f=e.x-u,h=e.y-d,p=n.site,v=p.x-u,g=p.y-d,m=2*(f*g-h*v),y=f*f+h*h,b=v*v+g*g,_={x:(g*y-h*b)/m+u,y:(f*b-v*y)/m+d};Da(n.edge,c,p,_),l.edge=Oa(c,e,null,_),n.edge=Oa(e,p,null,_),Ma(t),Ma(n)}else l.edge=Oa(t.site,l.site)}}function wa(e,t){var n=e.site,r=n.x,a=n.y,i=a-t;if(!i)return r;var o=e.P;if(!o)return-1/0;var s=(n=o.site).x,l=n.y,c=l-t;if(!c)return s;var u=s-r,d=1/i-1/c,f=u/c;return d?(-f+Math.sqrt(f*f-2*d*(u*u/(-2*c)-l+c/2+a-i/2)))/d+r:(r+s)/2}function ka(e,t){var n=e.N;if(n)return wa(n,t);var r=e.site;return r.y===t?r.x:1/0}function Ta(e){this.site=e,this.edges=[]}function Aa(e,t){return t.angle-e.angle}function Ma(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,a=e.site,i=n.site;if(r!==i){var o=a.x,s=a.y,l=r.x-o,c=r.y-s,u=i.x-o,d=2*(l*(g=i.y-s)-c*u);if(!(d>=-Se)){var f=l*l+c*c,h=u*u+g*g,p=(g*f-c*h)/d,v=(l*h-u*f)/d,g=v+s,m=ma.pop()||new function(){Ea(this),this.x=this.y=this.arc=this.site=this.cy=null};m.arc=e,m.site=a,m.x=p+o,m.y=g+Math.sqrt(p*p+v*v),m.cy=g,e.circle=m;for(var y=null,b=va._;b;)if(m.y=s)return;if(f>p){if(i){if(i.y>=c)return}else i={x:g,y:l};n={x:g,y:c}}else{if(i){if(i.y1)if(f>p){if(i){if(i.y>=c)return}else i={x:(l-a)/r,y:l};n={x:(c-a)/r,y:c}}else{if(i){if(i.y=s)return}else i={x:o,y:r*o+a};n={x:s,y:r*s+a}}else{if(i){if(i.xCe||w(a-n)>Ce)&&(s.splice(o,0,new za((m=i.site,y=u,b=w(r-d)Ce?{x:d,y:w(t-d)Ce?{x:w(n-p)Ce?{x:f,y:w(t-f)Ce?{x:w(n-h)=n&&c.x<=a&&c.y>=r&&c.y<=o?[[n,o],[a,o],[a,r],[n,r]]:[]).point=e[s]}),t}function s(e){return e.map(function(e,t){return{x:Math.round(r(e,t)/Ce)*Ce,y:Math.round(a(e,t)/Ce)*Ce,i:t}})}return o.links=function(e){return Ra(s(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},o.triangles=function(e){var t=[];return Ra(s(e)).cells.forEach(function(n,r){for(var a,i,o,s,l=n.site,c=n.edges.sort(Aa),u=-1,d=c.length,f=c[d-1].edge,h=f.l===l?f.r:f.l;++ui&&(a=t.slice(i,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:qa(n,r)})),i=Ya.lastIndex;return iv&&(v=l.x),l.y>g&&(g=l.y),c.push(l.x),u.push(l.y);else for(d=0;dv&&(v=b),_>g&&(g=_),c.push(b),u.push(_)}var x=v-h,k=g-p;function T(e,t,n,r,a,i,o,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var l=e.x,c=e.y;if(null!=l)if(w(l-n)+w(c-r)<.01)A(e,t,n,r,a,i,o,s);else{var u=e.point;e.x=e.y=e.point=null,A(e,u,l,c,a,i,o,s),A(e,t,n,r,a,i,o,s)}else e.x=n,e.y=r,e.point=t}else A(e,t,n,r,a,i,o,s)}function A(e,t,n,r,a,i,o,s){var l=.5*(a+o),c=.5*(i+s),u=n>=l,d=r>=c,f=d<<1|u;e.leaf=!1,e=e.nodes[f]||(e.nodes[f]={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){T(M,e,+m(e,++d),+y(e,d),h,p,v,g)}}),u?a=l:o=l,d?i=c:s=c,T(e,t,n,r,a,i,o,s)}x>k?g=p+x:v=h+k;var M={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){T(M,e,+m(e,++d),+y(e,d),h,p,v,g)}};if(M.visit=function(e){!function e(t,n,r,a,i,o){if(!t(n,r,a,i,o)){var s=.5*(r+i),l=.5*(a+o),c=n.nodes;c[0]&&e(t,c[0],r,a,s,l),c[1]&&e(t,c[1],s,a,i,l),c[2]&&e(t,c[2],r,l,s,o),c[3]&&e(t,c[3],s,l,i,o)}}(e,M,h,p,v,g)},M.find=function(e){return function(e,t,n,r,a,i,o){var s,l=1/0;return function e(c,u,d,f,h){if(!(u>i||d>o||f=x)<<1|t>=_,k=w+4;w=0&&!(n=i.interpolators[r](e,t)););return n}function Xa(e,t){var n,r=[],a=[],i=e.length,o=t.length,s=Math.min(e.length,t.length);for(n=0;n=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function ii(e){return 1-Math.cos(e*ze)}function oi(e){return Math.pow(2,10*(e-1))}function si(e){return 1-Math.sqrt(1-e*e)}function li(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function ci(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function ui(e){var t,n,r,a=[e.a,e.b],i=[e.c,e.d],o=fi(a),s=di(a,i),l=fi(((t=i)[0]+=(r=-s)*(n=a)[0],t[1]+=r*n[1],t))||0;a[0]*i[1]=0?e.slice(0,n):e,a=n>=0?e.slice(n+1):"in";return r=Ja.get(r)||Za,a=Qa.get(a)||N,t=a(r.apply(null,o.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},i.interpolateHcl=function(e,t){e=i.hcl(e),t=i.hcl(t);var n=e.h,r=e.c,a=e.l,o=t.h-n,s=t.c-r,l=t.l-a;isNaN(s)&&(s=0,r=isNaN(r)?t.c:r);isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:o<-180&&(o+=360);return function(e){return Ze(n+o*e,r+s*e,a+l*e)+""}},i.interpolateHsl=function(e,t){e=i.hsl(e),t=i.hsl(t);var n=e.h,r=e.s,a=e.l,o=t.h-n,s=t.s-r,l=t.l-a;isNaN(s)&&(s=0,r=isNaN(r)?t.s:r);isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:o<-180&&(o+=360);return function(e){return Ye(n+o*e,r+s*e,a+l*e)+""}},i.interpolateLab=function(e,t){e=i.lab(e),t=i.lab(t);var n=e.l,r=e.a,a=e.b,o=t.l-n,s=t.a-r,l=t.b-a;return function(e){return at(n+o*e,r+s*e,a+l*e)+""}},i.interpolateRound=ci,i.transform=function(e){var t=l.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new ui(n?n.matrix:hi)})(e)},ui.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var hi={a:1,b:0,c:0,d:1,e:0,f:0};function pi(e){return e.length?e.pop()+",":""}function vi(e,t){var n=[],r=[];return e=i.transform(e),t=i.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push("translate(",null,",",null,")");r.push({i:a-4,x:qa(e[0],t[0])},{i:a-2,x:qa(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(pi(n)+"rotate(",null,")")-2,x:qa(e,t)})):t&&n.push(pi(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(pi(n)+"skewX(",null,")")-2,x:qa(e,t)}):t&&n.push(pi(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push(pi(n)+"scale(",null,",",null,")");r.push({i:a-4,x:qa(e[0],t[0])},{i:a-2,x:qa(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(pi(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,a=-1,i=r.length;++a0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:"end",alpha:n=0})):t>0&&(l.start({type:"start",alpha:n=t}),e=St(s.tick)),s):n},s.start=function(){var e,t,n,i=m.length,l=y.length,u=c[0],p=c[1];for(e=0;e=0;)n.push(a[r])}function Li(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(a=i.length))for(var a,i,o=-1;++o=0;)o.push(u=c[l]),u.parent=i,u.depth=i.depth+1;n&&(i.value=0),i.children=c}else n&&(i.value=+n.call(r,i,i.depth)||0),delete i.children;return Li(a,function(t){var r,a;e&&(r=t.children)&&r.sort(e),n&&(a=t.parent)&&(a.value+=t.value)}),s}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(Si(e,function(e){e.children&&(e.value=0)}),Li(e,function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)})),e},r},i.layout.partition=function(){var e=i.layout.hierarchy(),t=[1,1];function n(n,r){var a=e.call(this,n,r);return function e(t,n,r,a){var i=t.children;if(t.x=n,t.y=t.depth*a,t.dx=r,t.dy=a,i&&(o=i.length)){var o,s,l,c=-1;for(r=t.value?r/t.value:0;++cs&&(s=r),o.push(r)}for(n=0;na&&(r=n,a=t);return r}function Vi(e){return e.reduce(Hi,0)}function Hi(e,t){return e+t[1]}function qi(e,t){return Ui(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Ui(e,t){for(var n=-1,r=+e[0],a=(e[1]-r)/t,i=[];++n<=t;)i[n]=a*n+r;return i}function Gi(e){return[i.min(e),i.max(e)]}function Yi(e,t){return e.value-t.value}function Ki(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Xi(e,t){e._pack_next=t,t._pack_prev=e}function Zi(e,t){var n=t.x-e.x,r=t.y-e.y,a=e.r+t.r;return.999*a*a>n*n+r*r}function Ji(e){if((t=e.children)&&(l=t.length)){var t,n,r,a,i,o,s,l,c=1/0,u=-1/0,d=1/0,f=-1/0;if(t.forEach(Qi),(n=t[0]).x=-n.r,n.y=0,b(n),l>1&&((r=t[1]).x=r.r,r.y=0,b(r),l>2))for(to(n,r,a=t[2]),b(a),Ki(n,a),n._pack_prev=a,Ki(a,r),r=n._pack_next,i=3;i0)for(o=-1;++o=d[0]&&l<=d[1]&&((s=c[i.bisect(f,l,1,p)-1]).y+=v,s.push(a[o]));return c}return a.value=function(e){return arguments.length?(t=e,a):t},a.range=function(e){return arguments.length?(n=_t(e),a):n},a.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return Ui(t,e)}:_t(e),a):r},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},i.layout.pack=function(){var e,t=i.layout.hierarchy().sort(Yi),n=0,r=[1,1];function a(a,i){var o=t.call(this,a,i),s=o[0],l=r[0],c=r[1],u=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,Li(s,function(e){e.r=+u(e.value)}),Li(s,Ji),n){var d=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;Li(s,function(e){e.r+=d}),Li(s,Ji),Li(s,function(e){e.r-=d})}return function e(t,n,r,a){var i=t.children;t.x=n+=a*t.x;t.y=r+=a*t.y;t.r*=a;if(i)for(var o=-1,s=i.length;++oh.x&&(h=e),e.depth>p.depth&&(p=e)});var v=t(f,h)/2-f.x,g=n[0]/(h.x+t(h,f)/2+v),m=n[1]/(p.depth||1);Si(u,function(e){e.x=(e.x+v)*g,e.y=e.depth*m})}return c}function o(e){var n=e.children,r=e.parent.children,a=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,a=e.children,i=a.length;for(;--i>=0;)(t=a[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var i=(n[0].z+n[n.length-1].z)/2;a?(e.z=a.z+t(e._,a._),e.m=e.z-i):e.z=i}else a&&(e.z=a.z+t(e._,a._));e.parent.A=function(e,n,r){if(n){for(var a,i=e,o=e,s=n,l=i.parent.children[0],c=i.m,u=o.m,d=s.m,f=l.m;s=ao(s),i=ro(i),s&&i;)l=ro(l),(o=ao(o)).a=e,(a=s.z+d-i.z-c+t(s._,i._))>0&&(io(oo(s,e,r),e,a),c+=a,u+=a),d+=s.m,c+=i.m,f+=l.m,u+=o.m;s&&!ao(o)&&(o.t=s,o.m+=d-u),i&&!ro(l)&&(l.t=i,l.m+=c-f,r=e)}return r}(e,a,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(e){e.x*=n[0],e.y=e.depth*n[1]}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(r=null==(n=e)?l:null,a):r?null:n},a.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:l,a):r?n:null},Ci(a,e)},i.layout.cluster=function(){var e=i.layout.hierarchy().sort(null).value(null),t=no,n=[1,1],r=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;Li(c,function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}(n),e.y=function(e){return 1+i.max(e,function(e){return e.y})}(n)):(e.x=s?u+=t(e,s):0,e.y=0,s=e)});var d=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(c),f=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(c),h=d.x-t(d,f)/2,p=f.x+t(f,d)/2;return Li(c,r?function(e){e.x=(e.x-c.x)*n[0],e.y=(c.y-e.y)*n[1]}:function(e){e.x=(e.x-h)/(p-h)*n[0],e.y=(1-(c.y?e.y/c.y:1))*n[1]}),l}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(r=null==(n=e),a):r?null:n},a.nodeSize=function(e){return arguments.length?(r=null!=(n=e),a):r?n:null},Ci(a,e)},i.layout.treemap=function(){var e,t=i.layout.hierarchy(),n=Math.round,r=[1,1],a=null,o=so,s=!1,l="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var n,r,a=-1,i=e.length;++a0;)s.push(n=c[a-1]),s.area+=n.area,"squarify"!==l||(r=h(s,v))<=f?(c.pop(),f=r):(s.area-=s.pop().area,p(s,v,i,!1),v=Math.min(i.dx,i.dy),s.length=s.area=0,f=1/0);s.length&&(p(s,v,i,!0),s.length=s.area=0),t.forEach(d)}}function f(e){var t=e.children;if(t&&t.length){var n,r=o(e),a=t.slice(),i=[];for(u(a,r.dx*r.dy/e.value),i.area=0;n=a.pop();)i.push(n),i.area+=n.area,null!=n.z&&(p(i,n.z?r.dx:r.dy,r,!a.length),i.length=i.area=0);t.forEach(f)}}function h(e,t){for(var n,r=e.area,a=0,i=1/0,o=-1,s=e.length;++oa&&(a=n));return t*=t,(r*=r)?Math.max(t*a*c/r,r/(t*i*c)):1/0}function p(e,t,r,a){var i,o=-1,s=e.length,l=r.x,c=r.y,u=t?n(e.area/t):0;if(t==r.dx){for((a||u>r.dy)&&(u=r.dy);++or.dx)&&(u=r.dx);++o1);return e+t*n*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=i.random.normal.apply(i,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=i.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n2?go:fo,s=a?mi:gi;return i=e(t,n,s,r),o=e(n,t,s,Ka),l}function l(e){return i(e)}l.invert=function(e){return o(e)};l.domain=function(e){return arguments.length?(t=e.map(Number),s()):t};l.range=function(e){return arguments.length?(n=e,s()):n};l.rangeRound=function(e){return l.range(e).interpolate(ci)};l.clamp=function(e){return arguments.length?(a=e,s()):a};l.interpolate=function(e){return arguments.length?(r=e,s()):r};l.ticks=function(e){return _o(t,e)};l.tickFormat=function(e,n){return xo(t,e,n)};l.nice=function(e){return yo(t,e),s()};l.copy=function(){return e(t,n,r,a)};return s()}([0,1],[0,1],Ka,!1)};var wo={s:1,g:1,p:1,r:1,e:1};function ko(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}i.scale.log=function(){return function e(t,n,r,a){function o(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function s(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function l(e){return t(o(e))}l.invert=function(e){return s(t.invert(e))};l.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((a=e.map(Number)).map(o)),l):a};l.base=function(e){return arguments.length?(n=+e,t.domain(a.map(o)),l):n};l.nice=function(){var e=ho(a.map(o),r?Math:Ao);return t.domain(e),a=e.map(s),l};l.ticks=function(){var e=co(a),t=[],i=e[0],l=e[1],c=Math.floor(o(i)),u=Math.ceil(o(l)),d=n%1?2:n;if(isFinite(u-c)){if(r){for(;c0;f--)t.push(s(c)*f);for(c=0;t[c]l;u--);t=t.slice(c,u)}return t};l.tickFormat=function(e,t){if(!arguments.length)return To;arguments.length<2?t=To:"function"!=typeof t&&(t=i.format(t));var r=Math.max(1,n*e/l.ticks().length);return function(e){var a=e/s(Math.round(o(e)));return a*n0?r[e-1]:t[0],ed?0:1;if(c=De)return l(c,h)+(s?l(s,1-h):"")+"Z";var p,v,g,m,y,b,_,x,w,k,T,A,M=0,C=0,S=[];if((m=(+o.apply(this,arguments)||0)/2)&&(g=r===zo?Math.sqrt(s*s+c*c):+r.apply(this,arguments),h||(C*=-1),c&&(C=Re(g/c*Math.sin(m))),s&&(M=Re(g/s*Math.sin(m)))),c){y=c*Math.cos(u+C),b=c*Math.sin(u+C),_=c*Math.cos(d-C),x=c*Math.sin(d-C);var L=Math.abs(d-u-2*C)<=Le?0:1;if(C&&Ro(y,b,_,x)===h^L){var O=(u+d)/2;y=c*Math.cos(O),b=c*Math.sin(O),_=x=null}}else y=b=0;if(s){w=s*Math.cos(d-M),k=s*Math.sin(d-M),T=s*Math.cos(u+M),A=s*Math.sin(u+M);var D=Math.abs(u-d+2*M)<=Le?0:1;if(M&&Ro(w,k,T,A)===1-h^D){var z=(u+d)/2;w=s*Math.cos(z),k=s*Math.sin(z),T=A=null}}else w=k=0;if(f>Ce&&(p=Math.min(Math.abs(c-s)/2,+n.apply(this,arguments)))>.001){v=s0?0:1}function Bo(e,t,n,r,a){var i=e[0]-t[0],o=e[1]-t[1],s=(a?r:-r)/Math.sqrt(i*i+o*o),l=s*o,c=-s*i,u=e[0]+l,d=e[1]+c,f=t[0]+l,h=t[1]+c,p=(u+f)/2,v=(d+h)/2,g=f-u,m=h-d,y=g*g+m*m,b=n-r,_=u*h-f*d,x=(m<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-_*_)),w=(_*m-g*x)/y,k=(-_*g-m*x)/y,T=(_*m+g*x)/y,A=(-_*g+m*x)/y,M=w-p,C=k-v,S=T-p,L=A-v;return M*M+C*C>S*S+L*L&&(w=T,k=A),[[w-l,k-c],[w*n/b,k*n/b]]}function Fo(e){var t=ra,n=aa,r=Zn,a=Wo,i=a.key,o=.7;function s(i){var s,l=[],c=[],u=-1,d=i.length,f=_t(t),h=_t(n);function p(){l.push("M",a(e(c),o))}for(;++u1&&a.push("H",r[0]);return a.join("")},"step-before":Ho,"step-after":qo,basis:Yo,"basis-open":function(e){if(e.length<4)return Wo(e);var t,n=[],r=-1,a=e.length,i=[0],o=[0];for(;++r<3;)t=e[r],i.push(t[0]),o.push(t[1]);n.push(Ko(Jo,i)+","+Ko(Jo,o)),--r;for(;++r9&&(a=3*t/Math.sqrt(a),o[s]=a*n,o[s+1]=a*r));s=-1;for(;++s<=l;)a=(e[Math.min(l,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),i.push([a||0,o[s]*a||0]);return i}(e))}});function Wo(e){return e.length>1?e.join("L"):e+"Z"}function Vo(e){return e.join("L")+"Z"}function Ho(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t1){s=t[1],i=e[l],l++,r+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1];for(var c=2;cLe)+",1 "+t}function l(e,t,n,r){return"Q 0,0 "+r}return i.radius=function(e){return arguments.length?(n=_t(e),i):n},i.source=function(t){return arguments.length?(e=_t(t),i):e},i.target=function(e){return arguments.length?(t=_t(e),i):t},i.startAngle=function(e){return arguments.length?(r=_t(e),i):r},i.endAngle=function(e){return arguments.length?(a=_t(e),i):a},i},i.svg.diagonal=function(){var e=Vr,t=Hr,n=as;function r(r,a){var i=e.call(this,r,a),o=t.call(this,r,a),s=(i.y+o.y)/2,l=[i,{x:i.x,y:s},{x:o.x,y:s},o];return"M"+(l=l.map(n))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return r.source=function(t){return arguments.length?(e=_t(t),r):e},r.target=function(e){return arguments.length?(t=_t(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},i.svg.diagonal.radial=function(){var e=i.svg.diagonal(),t=as,n=e.projection;return e.projection=function(e){return arguments.length?n(function(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-ze;return[n*Math.cos(r),n*Math.sin(r)]}}(t=e)):t},e},i.svg.symbol=function(){var e=os,t=is;function n(n,r){return(ls.get(e.call(this,n,r))||ss)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=_t(t),n):e},n.size=function(e){return arguments.length?(t=_t(e),n):t},n};var ls=i.map({circle:ss,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*us)),n=t*us;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/cs),n=t*cs/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/cs),n=t*cs/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});i.svg.symbolTypes=ls.keys();var cs=Math.sqrt(3),us=Math.tan(30*Pe);Z.transition=function(e){for(var t,n,r=ps||++ms,a=_s(e),i=[],o=vs||{time:Date.now(),ease:ai,delay:0,duration:250},s=-1,l=this.length;++s0;)c[--f].call(e,o);if(i>=1)return d.event&&d.event.end.call(e,e.__data__,t),--u.count?delete u[r]:delete e[n],1}d||(i=a.time,o=St(function(e){var t=d.delay;if(o.t=t+i,t<=e)return f(e-t);o.c=f},0,i),d=u[r]={tween:new T,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++u.count)}gs.call=Z.call,gs.empty=Z.empty,gs.node=Z.node,gs.size=Z.size,i.transition=function(e,t){return e&&e.transition?ps?e.transition(t):e:i.selection().transition(e)},i.transition.prototype=gs,gs.select=function(e){var t,n,r,a=this.id,i=this.namespace,o=[];e=J(e);for(var s=-1,l=this.length;++srect,.s>rect").attr("width",o[1]-o[0])}function v(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function g(){var d,g,m=this,y=i.select(i.event.target),b=n.of(m,arguments),_=i.select(m),x=y.datum(),w=!/^(n|s)$/.test(x)&&r,k=!/^(e|w)$/.test(x)&&a,T=y.classed("extent"),A=ke(m),M=i.mouse(m),C=i.select(u(m)).on("keydown.brush",function(){32==i.event.keyCode&&(T||(d=null,M[0]-=o[1],M[1]-=s[1],T=2),W())}).on("keyup.brush",function(){32==i.event.keyCode&&2==T&&(M[0]+=o[1],M[1]+=s[1],T=0,W())});if(i.event.changedTouches?C.on("touchmove.brush",O).on("touchend.brush",z):C.on("mousemove.brush",O).on("mouseup.brush",z),_.interrupt().selectAll("*").interrupt(),T)M[0]=o[0]-M[0],M[1]=s[0]-M[1];else if(x){var S=+/w$/.test(x),L=+/^n/.test(x);g=[o[1-S]-M[0],s[1-L]-M[1]],M[0]=o[S],M[1]=s[L]}else i.event.altKey&&(d=M.slice());function O(){var e=i.mouse(m),t=!1;g&&(e[0]+=g[0],e[1]+=g[1]),T||(i.event.altKey?(d||(d=[(o[0]+o[1])/2,(s[0]+s[1])/2]),M[0]=o[+(e[0]1?{floor:function(t){for(;s(t=e.floor(t));)t=Ps(t-1);return t},ceil:function(t){for(;s(t=e.ceil(t));)t=Ps(+t+1);return t}}:e))},r.ticks=function(e,t){var n=co(r.domain()),i=null==e?a(n,10):"number"==typeof e?a(n,e):!e.range&&[{range:e},t];return i&&(e=i[0],t=i[1]),e.range(n[0],Ps(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return zs(e.copy(),t,n)},mo(r,e)}function Ps(e){return new Date(e)}Ss.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Ds:Os,Ds.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Ds.toString=Os.toString,jt.second=$t(function(e){return new Rt(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),jt.seconds=jt.second.range,jt.seconds.utc=jt.second.utc.range,jt.minute=$t(function(e){return new Rt(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),jt.minutes=jt.minute.range,jt.minutes.utc=jt.minute.utc.range,jt.hour=$t(function(e){var t=e.getTimezoneOffset()/60;return new Rt(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),jt.hours=jt.hour.range,jt.hours.utc=jt.hour.utc.range,jt.month=$t(function(e){return(e=jt.day(e)).setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),jt.months=jt.month.range,jt.months.utc=jt.month.utc.range;var Es=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ns=[[jt.second,1],[jt.second,5],[jt.second,15],[jt.second,30],[jt.minute,1],[jt.minute,5],[jt.minute,15],[jt.minute,30],[jt.hour,1],[jt.hour,3],[jt.hour,6],[jt.hour,12],[jt.day,1],[jt.day,2],[jt.week,1],[jt.month,1],[jt.month,3],[jt.year,1]],Is=Ss.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Zn]]),js={range:function(e,t,n){return i.range(Math.ceil(e/n)*n,+t,n).map(Ps)},floor:N,ceil:N};Ns.year=jt.year,jt.scale=function(){return zs(i.scale.linear(),Ns,Is)};var Rs=Ns.map(function(e){return[e[0].utc,e[1]]}),Bs=Ls.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Zn]]);function Fs(e){return JSON.parse(e.responseText)}function $s(e){var t=l.createRange();return t.selectNode(l.body),t.createContextualFragment(e.responseText)}Rs.year=jt.year.utc,jt.scale.utc=function(){return zs(i.scale.linear(),Rs,Bs)},i.text=xt(function(e){return e.responseText}),i.json=function(e,t){return wt(e,"application/json",Fs,t)},i.html=function(e,t){return wt(e,"text/html",$s,t)},i.xml=xt(function(e){return e.responseXML}),this.d3=i,void 0===(a="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=a)}()},function(e,t,n){"use strict";e.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(0===(e=+e)&&function(e){for(var t,n=e.length,r=0;r13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}(n))return!1}else if("number"!==t)return!1;return e-e<1}},function(e,t,n){"use strict";var r=n(21),a=n(2),i=e.exports={},o=n(24);i.defaults=o.defaults;var s=i.defaultLine=o.defaultLine;i.lightLine=o.lightLine;var l=i.background=o.background;function c(e){if(a(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===r.length;if(!i&&3!==r.length)return e;for(var o=0;o=0))return e;if(3===o)r[o]>1&&(r[o]=1);else if(r[o]>=1)return e}var s=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return i?"rgba("+s+", "+r[3]+")":"rgb("+s+")"}i.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},i.rgb=function(e){return i.tinyRGB(r(e))},i.opacity=function(e){return e?r(e).getAlpha():0},i.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},i.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var a=r(t||l).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-n.a)+n.r*n.a,g:i.g*(1-n.a)+n.g*n.a,b:i.b*(1-n.a)+n.b*n.a};return r(o).toRgbString()},i.contrast=function(e,t,n){var a=r(e);return 1!==a.getAlpha()&&(a=r(i.combine(e,l))),(a.isDark()?t?a.lighten(t):l:n?a.darken(n):s).toString()},i.stroke=function(e,t){var n=r(t);e.style({stroke:i.tinyRGB(n),"stroke-opacity":n.getAlpha()})},i.fill=function(e,t){var n=r(t);e.style({fill:i.tinyRGB(n),"fill-opacity":n.getAlpha()})},i.clean=function(e){if(e&&"object"==typeof e){var t,n,r,a,o=Object.keys(e);for(t=0;t2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},b.getAutoRange=function(e){var t,n=[],r=e._min[0].val,a=e._max[0].val;for(t=1;t0&&d>0&&f/d>h&&(c=s,u=l,h=f/d);if(r===a){var g=r-1,m=r+1;n="tozero"===e.rangemode?r<0?[g,0]:[0,m]:"nonnegative"===e.rangemode?[Math.max(0,g),Math.max(0,m)]:[g,m]}else h&&("linear"!==e.type&&"-"!==e.type||("tozero"===e.rangemode?(c.val>=0&&(c={val:0,pad:0}),u.val<=0&&(u={val:0,pad:0})):"nonnegative"===e.rangemode&&(c.val-h*c.pad<0&&(c={val:0,pad:0}),u.val<0&&(u={val:1,pad:0})),h=(u.val-c.val)/(e._length-c.pad-u.pad)),n=[c.val-h*c.pad,u.val+h*u.pad]);return n[0]===n[1]&&("tozero"===e.rangemode?n=n[0]<0?[n[0],0]:n[0]>0?[0,n[0]]:[0,1]:(n=[n[0]-1,n[0]+1],"nonnegative"===e.rangemode&&(n[0]=Math.max(0,n[0])))),p&&n.reverse(),o.simpleMap(n,e.l2r||Number)},b.doAutoRange=function(e){e._length||e.setScale();var t=e._min&&e._max&&e._min.length&&e._max.length;if(e.autorange&&t){e.range=b.getAutoRange(e),e._r=e.range.slice(),e._rl=o.simpleMap(e._r,e.r2l);var n=e._input;n.range=e.range.slice(),n.autorange=e.autorange}},b.saveRangeInitial=function(e,t){for(var n=b.list(e,"",!0),r=!1,a=0;a0?n.ppadplus:n.ppadminus)||n.ppad||0),x=T((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),w=T(n.vpadplus||n.vpad),k=T(n.vpadminus||n.vpad);for(r=0;r<6;r++)A(r);for(r=m-1;r>5;r--)A(r)}function T(e){if(Array.isArray(e))return function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}function A(n){if(l=t[n],a(l)){if(d=_(n)+y,h=x(n)+y,v=l-k(n),g=l+w(n),"log"===e.type&&v=h?p=!1:s.val>=c&&s.pad<=h&&(e._min.splice(i,1),i--);p&&e._min.push({val:c,pad:b&&0===c?0:h})}if(r(u)){for(p=!0,i=0;i=u&&s.pad>=d?p=!1:s.val<=u&&s.pad<=d&&(e._max.splice(i,1),i--);p&&e._max.push({val:u,pad:b&&0===u?0:d})}}function r(e){return a(e)&&Math.abs(e).3*f||u(r)||u(i))){var h=n.dtick/2;e+=e+h.8){var s=Number(n.substr(1));i.exactYears>.8&&s%12==0?e=b.tickIncrement(e,"M6","reverse")+1.5*v:i.exactMonths>.8?e=b.tickIncrement(e,"M1","reverse")+15.5*v:e-=v/2;var l=b.tickIncrement(e,n);if(l<=r)return l}return e}(g,e,l.dtick,c,i)),p=g;p<=u;)p=b.tickIncrement(p,l.dtick,!1,i);return{start:t.c2r(g,0,i),end:t.c2r(p,0,i),size:l.dtick}},b.calcTicks=function(e){var t=o.simpleMap(e.range,e.r2l);if("auto"===e.tickmode||!e.dtick){var n,r=e.nticks;r||("category"===e.type?(n=e.tickfont?1.2*(e.tickfont.size||12):15,r=e._length/n):(n="y"===e._id.charAt(0)?40:80,r=o.constrain(e._length/n,4,9)+1)),"array"===e.tickmode&&(r*=100),b.autoTicks(e,Math.abs(t[1]-t[0])/r),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}if(e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),L(e),"array"===e.tickmode)return function(e){var t,n,r=e.tickvals,a=e.ticktext,i=new Array(r.length),s=o.simpleMap(e.range,e.r2l),l=1.0001*s[0]-1e-4*s[1],c=1.0001*s[1]-1e-4*s[0],u=Math.min(l,c),d=Math.max(l,c),f=0;Array.isArray(a)||(a=[]);var h="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(n=0;nu&&t=s:l<=s)&&(i.push(l),!(i.length>1e3));l=b.tickIncrement(l,e.dtick,a,e.calendar));e._tmax=i[i.length-1],e._prevDateHead="",e._inCalcTicks=!0;for(var c=new Array(i.length),u=0;u10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=v&&i<=10||t>=15*v)e._tickround="d";else if(t>=m&&i<=16||t>=g)e._tickround="M";else if(t>=y&&i<=19||t>=m)e._tickround="S";else{var o=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20}}else if(a(t)||"L"===t.charAt(0)){var s=e.range.map(e.r2d||Number);a(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01);Math.abs(c)>3&&("SI"===e.exponentformat||"B"===e.exponentformat?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function O(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}b.autoTicks=function(e,t){var n;if("date"===e.type){e.tick0=o.dateTick0(e.calendar);var r=2*t;r>h?(t/=h,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="M"+12*S(t,n,w)):r>p?(t/=p,e.dtick="M"+S(t,1,k)):r>v?(e.dtick=S(t,v,A),e.tick0=o.dateTick0(e.calendar,!0)):r>g?e.dtick=S(t,g,k):r>m?e.dtick=S(t,m,T):r>y?e.dtick=S(t,y,T):(n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=S(t,n,w))}else if("log"===e.type){e.tick0=0;var i=o.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(i[1]-i[0])<1){var s=1.5*Math.abs((i[1]-i[0])/t);t=Math.abs(Math.pow(10,i[1])-Math.pow(10,i[0]))/s,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="L"+S(t,n,w)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):(e.tick0=0,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=S(t,n,w));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!=typeof e.dtick){var l=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(l)}},b.tickIncrement=function(e,t,n,i){var s=n?-1:1;if(a(t))return e+s*t;var l=t.charAt(0),c=s*Number(t.substr(1));if("M"===l)return o.incrementMonth(e,c,i);if("L"===l)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===l){var u="D2"===t?C:M,d=e+.01*s,f=o.roundUp(o.mod(d,1),u,n);return Math.floor(d)+Math.log(r.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},b.tickFirst=function(e){var t=e.r2l||Number,n=o.simpleMap(e.range,t),i=n[1]"+l,e._prevDateHead=l));t.text=c}(e,s,n,c):"log"===e.type?function(e,t,n,r,i){var s=e.dtick,l=t.x;!r||"string"==typeof s&&"L"===s.charAt(0)||(s="L3");if(e.tickformat||"string"==typeof s&&"L"===s.charAt(0))t.text=z(Math.pow(10,l),e,i,r);else if(a(s)||"D"===s.charAt(0)&&o.mod(l+.01,1)<.1)if(-1!==["e","E","power"].indexOf(e.exponentformat)){var c=Math.round(l);t.text=0===c?1:1===c?"10":c>1?"10"+c+"":"10โˆ’"+-c+"",t.fontSize*=1.25}else t.text=z(Math.pow(10,l),e,"","fakehover"),"D1"===s&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6);else{if("D"!==s.charAt(0))throw"unrecognized dtick "+String(s);t.text=String(Math.round(Math.pow(10,o.mod(l,1)))),t.fontSize*=.75}if("D1"===e.dtick){var u=String(t.text).charAt(0);"0"!==u&&"1"!==u||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}(e,s,0,c,r):"category"===e.type?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n="");t.text=String(n)}(e,s):function(e,t,n,r,a){"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide");t.text=z(t.x,e,a,r)}(e,s,0,c,r),e.tickprefix&&!h(e.showtickprefix)&&(s.text=e.tickprefix+s.text),e.ticksuffix&&!h(e.showticksuffix)&&(s.text+=e.ticksuffix),s};var D=["f","p","n","ฮผ","m","","k","M","G","T"];function z(e,t,n,i){var s=e<0,l=t._tickround,c=n||t.exponentformat||"B",u=t._tickexponent,d=t.tickformat,f=t.separatethousands;if(i){var h={exponentformat:t.exponentformat,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};L(h),l=(Number(h._tickround)||0)+4,u=h._tickexponent,t.hoverformat&&(d=t.hoverformat)}if(d)return r.format(d)(e).replace(/-/g,"โˆ’");var p,v=Math.pow(10,-l)/2;if("none"===c&&(u=0),(e=Math.abs(e))12||u<-15)?e+="e"+p:"E"===c?e+="E"+p:"power"===c?e+="ร—10"+p+"":"B"===c&&9===u?e+="B":"SI"!==c&&"B"!==c||(e+=D[u/3+5]));return s?"โˆ’"+e:e}function P(e,t){for(var n=0;n1&&t1)for(r=1;r0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=v.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=m||e>=400?0:Math.floor(Math.max(e,0))};var b={x1:1,x2:0,y1:0,y2:0},_={x1:0,x2:0,y1:1,y2:0};v.gradient=function(e,t,n,a,o,l){var u=t._fullLayout._defs.select(".gradients").selectAll("#"+n).data([a+o+l],c.identity);u.exit().remove(),u.enter().append("radial"===a?"radialGradient":"linearGradient").each(function(){var e=r.select(this);"horizontal"===a?e.attr(b):"vertical"===a&&e.attr(_),e.attr("id",n);var t=i(o),c=i(l);e.append("stop").attr({offset:"0%","stop-color":s.tinyRGB(c),"stop-opacity":c.getAlpha()}),e.append("stop").attr({offset:"100%","stop-color":s.tinyRGB(t),"stop-opacity":t.getAlpha()})}),e.style({fill:"url(#"+n+")","fill-opacity":null})},v.initGradients=function(e){var t=e._fullLayout._defs.selectAll(".gradients").data([0]);t.enter().append("g").classed("gradients",!0),t.selectAll("linearGradient,radialGradient").remove()},v.singlePointStyle=function(e,t,n,r,a,i){var l=n.marker;!function(e,t,n,r,a,i,l,c){if(o.traceIs(n,"symbols")){var u=p(n);t.attr("d",function(e){var t;t="various"===e.ms||"various"===i.size?3:h.isBubble(n)?u(e.ms):(i.size||6)/2,e.mrc=t;var r=v.symbolNumber(e.mx||i.symbol)||0,a=r%100;return e.om=r%200>=100,v.symbolFuncs[a](t)+(r>=200?y:"")}).style("opacity",function(e){return(e.mo+1||i.opacity+1)-1})}var d,f,g,m=!1;if(e.so?(g=l.outlierwidth,f=l.outliercolor,d=i.outliercolor):(g=(e.mlw+1||l.width+1||(e.trace?e.trace.marker.line.width:0)+1)-1,f="mlc"in e?e.mlcc=a(e.mlc):Array.isArray(l.color)?s.defaultLine:l.color,Array.isArray(i.color)&&(d=s.defaultLine,m=!0),d="mc"in e?e.mcc=r(e.mc):i.color||"rgba(0,0,0,0)"),e.om)t.call(s.stroke,d).style({"stroke-width":(g||1)+"px",fill:"none"});else{t.style("stroke-width",g+"px");var b=i.gradient,_=e.mgt;if(_?m=!0:_=b&&b.type,_&&"none"!==_){var x=e.mgc;x?m=!0:x=b.color;var w="g"+c._fullLayout._uid+"-"+n.uid;m&&(w+="-"+e.i),t.call(v.gradient,c,w,_,d,x)}else t.call(s.fill,d);g&&t.call(s.stroke,f)}}(e,t,n,r,a,l,l.line,i)},v.pointStyle=function(e,t,n){if(e.size()){var a=t.marker,i=v.tryColorscale(a,""),o=v.tryColorscale(a,"line");e.each(function(e){v.singlePointStyle(e,r.select(this),t,i,o,n)})}},v.tryColorscale=function(e,t){var n=t?c.nestedProperty(e,t).get():e,r=n.colorscale,a=n.color;return r&&Array.isArray(a)?l.makeColorScaleFunc(l.extractScale(r,n.cmin,n.cmax)):c.identity};var x={start:1,end:-1,middle:0,bottom:1,top:-1};v.textPointStyle=function(e,t,n){e.each(function(e){var i=r.select(this),o=e.tx||t.text;if(o&&!Array.isArray(o)){var s=e.tp||t.textposition,l=-1!==s.indexOf("top")?"top":-1!==s.indexOf("bottom")?"bottom":"middle",c=-1!==s.indexOf("left")?"end":-1!==s.indexOf("right")?"start":"middle",d=e.ts||t.textfont.size,h=e.mrc?e.mrc/.8+1:0;d=a(d)&&d>0?d:0,i.call(v.font,e.tf||t.textfont.family,d,e.tc||t.textfont.color).attr("text-anchor",c).text(o).call(u.convertToTspans,n);var p=r.select(this.parentNode),g=(u.lineCount(i)-1)*f+1,m=x[c]*h,y=.75*d+x[l]*h+(x[l]-1)*g*d/2;p.attr("transform","translate("+m+","+y+")")}else i.remove()})};var w=.5;function k(e,t,n,a){var i=e[0]-t[0],o=e[1]-t[1],s=n[0]-t[0],l=n[1]-t[1],c=Math.pow(i*i+o*o,w/2),u=Math.pow(s*s+l*l,w/2),d=(u*u*i-c*c*s)*a,f=(u*u*o-c*c*l)*a,h=3*u*(c+u),p=3*c*(c+u);return[[r.round(t[0]+(h&&d/h),2),r.round(t[1]+(h&&f/h),2)],[r.round(t[0]-(p&&d/p),2),r.round(t[1]-(p&&f/p),2)]]}v.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],a=[];for(n=1;n=1e4&&(v.savedBBoxes={},M=0),t&&(v.savedBBoxes[t]=g),M++,c.extendFlat({},g)},v.setClipUrl=function(e,t){if(t){var n="#"+t,a=r.select("base");a.size()&&a.attr("href")&&(n=window.location.href.split("#")[0]+n),e.attr("clip-path","url("+n+")")}else e.attr("clip-path",null)},v.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||0,y:+t[1]||0}},v.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||0,n=n||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=" translate("+t+", "+n+")").trim(),e[a]("transform",i),i},v.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||1,y:+t[1]||1}},v.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||1,n=n||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+=" scale("+t+", "+n+")").trim(),e[a]("transform",i),i},v.setPointGroupScale=function(e,t,n){var r,a,i;return t=t||1,n=n||1,a=1===t&&1===n?"":" scale("+t+","+n+")",i=/\s*sc.*/,e.each(function(){r=(this.getAttribute("transform")||"").replace(i,""),r=(r+=a).trim(),this.setAttribute("transform",r)}),a};var S=/translate\([^)]*\)\s*$/;v.setTextPointsScale=function(e,t,n){e.each(function(){var e,a=r.select(this),i=a.select("text"),o=parseFloat(i.attr("x")||0),s=parseFloat(i.attr("y")||0),l=(a.attr("transform")||"").match(S);e=1===t&&1===n?[]:["translate("+o+","+s+")","scale("+t+","+n+")","translate("+-o+","+-s+")"],l&&e.push(l),a.attr("transform",e.join(" "))})}},function(e,t,n){"use strict";t.defaultConfig=n(111),t.Plots=n(9),t.Axes=n(6),t.ModeBar=n(147),n(270)},function(e,t,n){"use strict";var r=n(1),a=n(2),i=n(8),o=n(110),s=n(4),l=n(0),c=n(3),u=n(15).BADNUM,d=e.exports={},f=n(104),h=n(160),p=l.relinkPrivateKeys;l.extendFlat(d,s),d.attributes=n(42),d.attributes.type.values=d.allTypes,d.fontAttrs=n(17),d.layoutAttributes=n(41),d.fontWeight="normal";var v=d.subplotsRegistry,g=d.transformsRegistry,m=n(30),y=n(275);function b(e,t){var n,r,a=e.trace,i=a._arrayAttrs,o={};for(n=0;n=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),n.attr(i);var o=n.select(".js-link-to-tool"),s=n.select(".js-link-spacer"),l=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",function(){d.sendDataToCloud(e)});else{var r=window.location.pathname.split("/"),a=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+a})}}(e,o),s.text(o.text()&&l.text()?" - ":"")}},d.sendDataToCloud=function(e){e.emit("plotly_beforeexport");var t=window.PLOTLYENV&&window.PLOTLYENV.BASE_URL||"https://plot.ly",n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),a=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=d.graphJson(e,!1,"keepdata"),a.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1},d.supplyDefaults=function(e){var t,n=e._fullLayout||{},r=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[];if(e._transitionData||d.createTransitionData(e),n._initialAutoSizeIsDone){var c=n.width,u=n.height;d.supplyLayoutGlobalDefaults(a,r),a.width||(r.width=c),a.height||(r.height=u)}else{d.supplyLayoutGlobalDefaults(a,r);var f=!a.width||!a.height,h=r.autosize,v=e._context&&e._context.autosizable;f&&(h||v)?d.plotAutoSize(e,a,r):f&&d.sanitizeMargins(e),!h&&f&&(a.width=r.width,a.height=r.height)}r._initialAutoSizeIsDone=!0,r._dataLength=l.length,r._globalTransforms=(e._context||{}).globalTransforms,d.supplyDataDefaults(l,s,a,r),r._has=d._hasPlotType.bind(r);var g=r._modules;for(t=0;t0){var u=function(e){var t,n={left:0,right:0,bottom:0,top:0};if(e)for(t in e)e.hasOwnProperty(t)&&(n.left+=e[t].left||0,n.right+=e[t].right||0,n.bottom+=e[t].bottom||0,n.top+=e[t].top||0);return n}(e._boundingBoxMargins),f=u.left+u.right,h=u.bottom+u.top,p=1-2*s,v=n._container&&n._container.node?n._container.node().getBoundingClientRect():{width:n.width,height:n.height};r=Math.round(p*(v.width-f)),i=Math.round(p*(v.height-h))}else{var g=c?window.getComputedStyle(e):{};r=parseFloat(g.width)||n.width,i=parseFloat(g.height)||n.height}var m=d.layoutAttributes.width.min,y=d.layoutAttributes.height.min;r1,_=!t.height&&Math.abs(n.height-i)>1;(_||b)&&(b&&(n.width=r),_&&(n.height=i)),e._initialAutoSize||(e._initialAutoSize={width:r,height:i}),d.sanitizeMargins(n)},d.supplyLayoutModuleDefaults=function(e,t,n,r){var a,o;i.Axes.supplyLayoutDefaults(e,t,n);var l=t._basePlotModules;for(a=0;a.5*r.width&&(n.l=n.r=0),n.b+n.t>.5*r.height&&(n.b=n.t=0),r._pushmargin[t]={l:{val:n.x,size:n.l+a},r:{val:n.x,size:n.r+a},b:{val:n.y,size:n.b+a},t:{val:n.y,size:n.t+a}}}else delete r._pushmargin[t];r._replotting||d.doAutoMargin(e)}},d.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),t._pushmargin||(t._pushmargin={});var n=t._size,r=JSON.stringify(n),o=Math.max(t.margin.l||0,0),s=Math.max(t.margin.r||0,0),l=Math.max(t.margin.t||0,0),c=Math.max(t.margin.b||0,0),u=t._pushmargin;if(!1!==t.margin.autoexpand){u.base={l:{val:0,size:o},r:{val:1,size:s},t:{val:1,size:l},b:{val:0,size:c}};for(var d=Object.keys(u),f=0;fg){var T=(m*w+(k-t.width)*g)/(w-g),A=(k*(1-g)+(m-t.width)*(1-w))/(w-g);T>=0&&A>=0&&T+A>o+s&&(o=T,s=A)}}if(a(b)&&u[x].t){var M=u[x].t.val,C=u[x].t.size;if(M>y){var S=(b*M+(C-t.height)*y)/(M-y),L=(C*(1-y)+(b-t.height)*(1-M))/(M-y);S>=0&&L>=0&&S+L>c+l&&(c=S,l=L)}}}}if(n.l=Math.round(o),n.r=Math.round(s),n.t=Math.round(l),n.b=Math.round(c),n.p=Math.round(t.margin.pad),n.w=Math.round(t.width)-n.l-n.r,n.h=Math.round(t.height)-n.t-n.b,!t._replotting&&"{}"!==r&&r!==JSON.stringify(t._size))return i.plot(e)},d.graphJson=function(e,t,n,r,a){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&d.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function c(e){if("function"==typeof e)return null;if(l.isPlainObject(e)){var t,r,a={};for(t in e)if("function"!=typeof e[t]&&-1===["_","["].indexOf(t.charAt(0))){if("keepdata"===n){if("src"===t.substr(t.length-3))continue}else if("keepstream"===n){if("string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0&&!l.isPlainObject(e.stream))continue}else if("keepall"!==n&&"string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0)continue;a[t]=c(e[t])}return a}return Array.isArray(e)?e.map(c):l.isJSDate(e)?l.ms2DateTimeLocal(+e):e}var u={data:(i||[]).map(function(e){var n=c(e);return t&&delete n.fit,n})};return t||(u.layout=c(o)),e.framework&&e.framework.isPolar&&(u=e.framework.getConfig()),s&&(u.frames=c(s)),"object"===r?u:JSON.stringify(u)},d.modifyFrames=function(e,t){var n,r,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(n=0;n0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){p=!0}),a.redraw&&e._transitionData._interruptCallbacks.push(function(){return i.redraw(e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var r,s,c=0,u=0;function d(){return c++,function(){var n;p||++u!==c||(n=t,e._transitionData&&(function(e){if(e)for(;e.length;)e.shift()}(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(a.redraw)return i.redraw(e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(n)))}}var f=e._fullLayout._basePlotModules,v=!1;if(n)for(s=0;si?l:a(e)?Number(e):l:l},s.noop=n(109),s.identity=n(295),s.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var a=0;an?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},s.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},s.simpleMap=function(e,t,n,r){for(var a=e.length,o=new Array(a),i=0;i-1||c!==1/0&&c>=Math.pow(2,n)?e(t,n,r):l},s.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},s.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,a,o,i=e.length,l=2*i,s=2*t-1,c=new Array(s),u=new Array(i);for(n=0;n=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=i&&(a=l-1-a),o+=e[a]*c[r];u[n]=o}return u},s.syncOrAsync=function(e,t,n){var r;function a(){return s.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(a).then(void 0,s.promiseError);return n&&n(t)},s.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},s.noneOrAll=function(e,t,n){if(e){var r,a,o=!1,i=!0;for(r=0;r1?a+i[1]:"";if(o&&(i.length>1||l.length>4||n))for(;r.test(l);)l=l.replace(r,"$1"+o+"$2");return l+s}},function(e,t,n){var r,a;!function(){var o={version:"3.5.17"},i=[].slice,l=function(e){return i.call(e)},s=this.document;function c(e){return e&&(e.ownerDocument||e.document||e).documentElement}function u(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(s)try{l(s.documentElement.childNodes)[0].nodeType}catch(e){l=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),s)try{s.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var d=this.Element.prototype,f=d.setAttribute,p=d.setAttributeNS,h=this.CSSStyleDeclaration.prototype,v=h.setProperty;d.setAttribute=function(e,t){f.call(this,e,t+"")},d.setAttributeNS=function(e,t,n){p.call(this,e,t,n+"")},h.setProperty=function(e,t,n){v.call(this,e,t+"",n)}}function g(e,t){return et?1:e>=t?0:NaN}function m(e){return null===e?NaN:+e}function y(e){return!isNaN(e)}function _(e){return{left:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r>>1;e(t[o],n)<0?r=o+1:a=o}return r},right:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r>>1;e(t[o],n)>0?a=o:r=o+1}return r}}}o.ascending=g,o.descending=function(e,t){return te?1:t>=e?0:NaN},o.min=function(e,t){var n,r,a=-1,o=e.length;if(1===arguments.length){for(;++a=r){n=r;break}for(;++ar&&(n=r)}else{for(;++a=r){n=r;break}for(;++ar&&(n=r)}return n},o.max=function(e,t){var n,r,a=-1,o=e.length;if(1===arguments.length){for(;++a=r){n=r;break}for(;++an&&(n=r)}else{for(;++a=r){n=r;break}for(;++an&&(n=r)}return n},o.extent=function(e,t){var n,r,a,o=-1,i=e.length;if(1===arguments.length){for(;++o=r){n=a=r;break}for(;++or&&(n=r),a=r){n=a=r;break}for(;++or&&(n=r),a1)return i/(s-1)},o.deviation=function(){var e=o.variance.apply(this,arguments);return e?Math.sqrt(e):e};var b=_(g);function k(e){return e.length}o.bisectLeft=b.left,o.bisect=o.bisectRight=b.right,o.bisector=function(e){return _(1===e.length?function(t,n){return g(e(t),n)}:e)},o.shuffle=function(e,t,n){(o=arguments.length)<3&&(n=e.length,o<2&&(t=0));for(var r,a,o=n-t;o;)a=Math.random()*o--|0,r=e[o+t],e[o+t]=e[a+t],e[a+t]=r;return e},o.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},o.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],a=new Array(n<0?0:n);t=0;)for(t=(r=e[a]).length;--t>=0;)n[--i]=r[t];return n};var x=Math.abs;function T(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function A(){this._=Object.create(null)}o.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,a=[],o=function(e){var t=1;for(;e*t%1;)t*=10;return t}(x(n)),i=-1;if(e*=o,t*=o,(n*=o)<0)for(;(r=e+n*++i)>t;)a.push(r/o);else for(;(r=e+n*++i)=r.length)return t?t.call(n,o):e?o.sort(e):o;for(var s,c,u,d,f=-1,p=o.length,h=r[l++],v=new A;++f=r.length)return t;var o=[],i=a[n++];return t.forEach(function(t,r){o.push({key:t,values:e(r,n)})}),i?o.sort(function(e,t){return i(e.key,t.key)}):o}(i(o.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return a[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},o.set=function(e){var t=new P;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},o.event=null,o.requote=function(e){return e.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,K={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function q(e){return K(e,J),e}var U=function(e,t){return t.querySelector(e)},Y=function(e,t){return t.querySelectorAll(e)},X=function(e,t){var n=e.matches||e[N(e,"matchesSelector")];return(X=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(U=function(e,t){return Sizzle(e,t)[0]||null},Y=Sizzle,X=Sizzle.matchesSelector),o.selection=function(){return o.select(s.documentElement)};var J=o.selection.prototype=[];function Z(e){return"function"==typeof e?e:function(){return U(e,this)}}function Q(e){return"function"==typeof e?e:function(){return Y(e,this)}}J.select=function(e){var t,n,r,a,o=[];e=Z(e);for(var i=-1,l=this.length;++i=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),te.hasOwnProperty(n)?{space:te[n],local:e}:e}},J.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=o.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(ne(t,e[t]));return this}return this.each(ne(e,t))},J.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=oe(e)).length,a=-1;if(t=n.classList){for(;++a=0;)(n=r[a])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},J.sort=function(e){e=function(e){arguments.length||(e=g);return function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}.apply(this,arguments);for(var t=-1,n=this.length;++t0&&(e=e.slice(0,a));var s=ye.get(e);function c(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return s&&(e=s,i=be),a?t?function(){var a=i(t,l(arguments));c.call(this),this.addEventListener(e,this[r]=a,a.$=n),a._=t}:c:t?I:function(){var t,n=new RegExp("^__on([^.]+)"+o.requote(e)+"$");for(var r in this)if(t=r.match(n)){var a=this[r];this.removeEventListener(t[1],a,a.$),delete this[r]}}}o.selection.enter=ve,o.selection.enter.prototype=ge,ge.append=J.append,ge.empty=J.empty,ge.node=J.node,ge.call=J.call,ge.size=J.size,ge.select=function(e){for(var t,n,r,a,o,i=[],l=-1,s=this.length;++l=r&&(r=t+1);!(i=l[r])&&++r0?1:e<0?-1:0}function Re(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Ne(e){return e>1?0:e<-1?Be:Math.acos(e)}function Ee(e){return e>1?ze:e<-1?-ze:Math.asin(e)}function Ie(e){return((e=Math.exp(e))+1/e)/2}function je(e){return(e=Math.sin(e/2))*e}var Fe=Math.SQRT2;o.interpolateZoom=function(e,t){var n,r,a=e[0],o=e[1],i=e[2],l=t[0],s=t[1],c=t[2],u=l-a,d=s-o,f=u*u+d*d;if(f0&&(e=e.transition().duration(v)),e.call(x.event)}function C(){l&&l.domain(i.range().map(function(e){return(e-f.x)/f.k}).map(i.invert)),d&&d.domain(c.range().map(function(e){return(e-f.y)/f.k}).map(c.invert))}function L(e){g++||e({type:"zoomstart"})}function B(e){C(),e({type:"zoom",scale:f.k,translate:[f.x,f.y]})}function S(e){--g||(e({type:"zoomend"}),t=null)}function W(){var e=this,t=k.of(e,arguments),n=0,r=o.select(u(e)).on(y,function(){n=1,w(o.mouse(e),a),B(t)}).on(_,function(){r.on(y,null).on(_,null),i(n),S(t)}),a=T(o.mouse(e)),i=Te(e);dl.call(e),L(t)}function z(){var e,t=this,n=k.of(t,arguments),r={},i=0,l=".zoom-"+o.event.changedTouches[0].identifier,s="touchmove"+l,c="touchend"+l,u=[],d=o.select(t),p=Te(t);function h(){var n=o.touches(t);return e=f.k,n.forEach(function(e){e.identifier in r&&(r[e.identifier]=T(e))}),n}function v(){var e=o.event.target;o.select(e).on(s,g).on(c,y),u.push(e);for(var n=o.event.changedTouches,l=0,d=n.length;l1){m=p[0];var _=p[1],b=m[0]-_[0],k=m[1]-_[1];i=b*b+k*k}}function g(){var l,s,c,u,d=o.touches(t);dl.call(t);for(var f=0,p=d.length;f360?e-=360:e<0&&(e+=360),e<60?r+(a-r)*e/60:e<180?a:e<240?r+(a-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(a=n<=.5?n*(1+t):n+t-n*t),new ct(o(e+120),o(e),o(e-120))}function Ye(e,t,n){return this instanceof Ye?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof Ye?new Ye(e.h,e.c,e.l):ot(e instanceof Ze?e.l:(e=gt((e=o.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ye(e,t,n)}qe.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ke(this.h,this.s,this.l/e)},qe.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ke(this.h,this.s,e*this.l)},qe.rgb=function(){return Ue(this.h,this.s,this.l)},o.hcl=Ye;var Xe=Ye.prototype=new Ge;function Je(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Ze(n,Math.cos(e*=Oe)*t,Math.sin(e)*t)}function Ze(e,t,n){return this instanceof Ze?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Ze?new Ze(e.l,e.a,e.b):e instanceof Ye?Je(e.h,e.c,e.l):gt((e=ct(e)).r,e.g,e.b):new Ze(e,t,n)}Xe.brighter=function(e){return new Ye(this.h,this.c,Math.min(100,this.l+Qe*(arguments.length?e:1)))},Xe.darker=function(e){return new Ye(this.h,this.c,Math.max(0,this.l-Qe*(arguments.length?e:1)))},Xe.rgb=function(){return Je(this.h,this.c,this.l).rgb()},o.lab=Ze;var Qe=18,et=.95047,tt=1,nt=1.08883,rt=Ze.prototype=new Ge;function at(e,t,n){var r=(e+16)/116,a=r+t/500,o=r-n/200;return new ct(st(3.2404542*(a=it(a)*et)-1.5371385*(r=it(r)*tt)-.4985314*(o=it(o)*nt)),st(-.969266*a+1.8760108*r+.041556*o),st(.0556434*a-.2040259*r+1.0572252*o))}function ot(e,t,n){return e>0?new Ye(Math.atan2(n,t)*Pe,Math.sqrt(t*t+n*n),e):new Ye(NaN,NaN,e)}function it(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function lt(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function st(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ct(e,t,n){return this instanceof ct?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ct?new ct(e.r,e.g,e.b):ht(""+e,ct,Ue):new ct(e,t,n)}function ut(e){return new ct(e>>16,e>>8&255,255&e)}function dt(e){return ut(e)+""}rt.brighter=function(e){return new Ze(Math.min(100,this.l+Qe*(arguments.length?e:1)),this.a,this.b)},rt.darker=function(e){return new Ze(Math.max(0,this.l-Qe*(arguments.length?e:1)),this.a,this.b)},rt.rgb=function(){return at(this.l,this.a,this.b)},o.rgb=ct;var ft=ct.prototype=new Ge;function pt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ht(e,t,n){var r,a,o,i=0,l=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=r[2].split(","),r[1]){case"hsl":return n(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(yt(a[0]),yt(a[1]),yt(a[2]))}return(o=_t.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(i=(3840&o)>>4,i|=i>>4,l=240&o,l|=l>>4,s=15&o,s|=s<<4):7===e.length&&(i=(16711680&o)>>16,l=(65280&o)>>8,s=255&o)),t(i,l,s))}function vt(e,t,n){var r,a,o=Math.min(e/=255,t/=255,n/=255),i=Math.max(e,t,n),l=i-o,s=(i+o)/2;return l?(a=s<.5?l/(i+o):l/(2-i-o),r=e==i?(t-n)/l+(t0&&s<1?0:r),new Ke(r,a,s)}function gt(e,t,n){var r=lt((.4124564*(e=mt(e))+.3575761*(t=mt(t))+.1804375*(n=mt(n)))/et),a=lt((.2126729*e+.7151522*t+.072175*n)/tt);return Ze(116*a-16,500*(r-a),200*(a-lt((.0193339*e+.119192*t+.9503041*n)/nt)))}function mt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}ft.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,a=30;return t||n||r?(t&&t=200&&t<300||304===t){try{e=n.call(a,c)}catch(e){return void i.error.call(a,e)}i.load.call(a,e)}else i.error.call(a,c)}return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(e)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=d:c.onreadystatechange=function(){c.readyState>3&&d()},c.onprogress=function(e){var t=o.event;o.event=e;try{i.progress.call(a,c)}finally{o.event=t}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",a):t},a.responseType=function(e){return arguments.length?(u=e,a):u},a.response=function(e){return n=e,a},["get","post"].forEach(function(e){a[e]=function(){return a.send.apply(a,[e].concat(l(arguments)))}}),a.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),c.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),c.setRequestHeader)for(var l in s)c.setRequestHeader(l,s[l]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=u&&(c.responseType=u),null!=o&&a.on("error",o).on("load",function(e){o(null,e)}),i.beforesend.call(a,c),c.send(null==r?null:r),a},a.abort=function(){return c.abort(),a},o.rebind(a,i,"on"),null==r?a:a.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}_t.forEach(function(e,t){_t.set(e,ut(t))}),o.functor=bt,o.xhr=kt(D),o.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function a(e,n,r){arguments.length<3&&(r=n,n=null);var a=xt(e,t,null==n?o:i(n),r);return a.row=function(e){return arguments.length?a.response(null==(n=e)?o:i(e)):n},a}function o(e){return a.parse(e.responseText)}function i(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var n;return a.parseRows(e,function(e,r){if(n)return n(e,r-1);var a=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");n=t?function(e,n){return t(a(e),n)}:a})},a.parseRows=function(e,t){var n,a,o={},i={},l=[],s=e.length,c=0,u=0;function d(){if(c>=s)return i;if(a)return a=!1,o;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++24?(isFinite(t)&&(clearTimeout(Mt),Mt=setTimeout(Bt,t)),wt=0):(wt=1,Ct(Bt))}function St(){for(var e=Date.now(),t=Tt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Wt(){for(var e,t=Tt,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}});o.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=o.round(e,zt(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Ot[8+n/3]};var Pt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Dt=o.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=o.round(e,zt(e,t))).toFixed(Math.max(0,Math.min(20,zt(e*(1+1e-15),t))))}});function Rt(e){return e+""}var Nt=o.time={},Et=Date;function It(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}It.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){jt.setUTCDate.apply(this._,arguments)},setDay:function(){jt.setUTCDay.apply(this._,arguments)},setFullYear:function(){jt.setUTCFullYear.apply(this._,arguments)},setHours:function(){jt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){jt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){jt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){jt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){jt.setUTCSeconds.apply(this._,arguments)},setTime:function(){jt.setTime.apply(this._,arguments)}};var jt=Date.prototype;function Ft(e,t,n){function r(t){var n=e(t),r=o(n,1);return t-n1)for(;i68?1900:2e3),n+a[0].length):-1}function en(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function tn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function an(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function on(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ln(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function sn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function cn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=x(t)/60|0,a=x(t)%60;return n+Kt(r,"0",2)+Kt(a,"0",2)}function un(e,t,n){Gt.lastIndex=0;var r=Gt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function dn(e){for(var t=e.length,n=-1;++n0&&l>0&&(s+l+1>t&&(l=Math.max(1,t-s)),o.push(e.substring(a-=l,a+l)),!((s+=l+1)>t));)l=r[i=(i+1)%r.length];return o.reverse().join(n)}:D;return function(e){var n=Pt.exec(e),r=n[1]||" ",l=n[2]||">",s=n[3]||"-",c=n[4]||"",u=n[5],d=+n[6],f=n[7],p=n[8],h=n[9],v=1,g="",m="",y=!1,_=!0;switch(p&&(p=+p.substring(1)),(u||"0"===r&&"="===l)&&(u=r="0",l="="),h){case"n":f=!0,h="g";break;case"%":v=100,m="%",h="f";break;case"p":v=100,m="%",h="r";break;case"b":case"o":case"x":case"X":"#"===c&&(g="0"+h.toLowerCase());case"c":_=!1;case"d":y=!0,p=0;break;case"s":v=-1,h="r"}"$"===c&&(g=a[0],m=a[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):"e"!=h&&"f"!=h||(p=Math.max(0,Math.min(20,p)))),h=Dt.get(h)||Rt;var b=u&&f;return function(e){var n=m;if(y&&e%1)return"";var a=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(v<0){var c=o.formatPrefix(e,p);e=c.scale(e),n=c.symbol+m}else e*=v;var k,x,T=(e=h(e,p)).lastIndexOf(".");if(T<0){var A=_?e.lastIndexOf("e"):-1;A<0?(k=e,x=""):(k=e.substring(0,A),x=e.substring(A))}else k=e.substring(0,T),x=t+e.substring(T+1);!u&&f&&(k=i(k,1/0));var w=g.length+k.length+x.length+(b?0:a.length),M=w"===l?M+a+e:"^"===l?M.substring(0,w>>=1)+a+e+M.substring(w):a+(b?e:M+e))+n}}}(e),timeFormat:function(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,s=e.months,c=e.shortMonths;function u(e){var t=e.length;function n(n){for(var r,a,o,i=[],l=-1,s=0;++l=c)return-1;if(37===(a=t.charCodeAt(l++))){if(i=t.charAt(l++),!(o=x[i in Vt?t.charAt(l++):i])||(r=o(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}u.utc=function(e){var t=u(e);function n(e){try{var n=new(Et=It);return n._=e,t(n)}finally{Et=Date}}return n.parse=function(e){try{Et=It;var n=t.parse(e);return n&&n._}finally{Et=Date}},n.toString=t.toString,n},u.multi=u.utc.multi=dn;var f=o.map(),p=qt(i),h=Ut(i),v=qt(l),g=Ut(l),m=qt(s),y=Ut(s),_=qt(c),b=Ut(c);a.forEach(function(e,t){f.set(e.toLowerCase(),t)});var k={a:function(e){return l[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:u(t),d:function(e,t){return Kt(e.getDate(),t,2)},e:function(e,t){return Kt(e.getDate(),t,2)},H:function(e,t){return Kt(e.getHours(),t,2)},I:function(e,t){return Kt(e.getHours()%12||12,t,2)},j:function(e,t){return Kt(1+Nt.dayOfYear(e),t,3)},L:function(e,t){return Kt(e.getMilliseconds(),t,3)},m:function(e,t){return Kt(e.getMonth()+1,t,2)},M:function(e,t){return Kt(e.getMinutes(),t,2)},p:function(e){return a[+(e.getHours()>=12)]},S:function(e,t){return Kt(e.getSeconds(),t,2)},U:function(e,t){return Kt(Nt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Kt(Nt.mondayOfYear(e),t,2)},x:u(n),X:u(r),y:function(e,t){return Kt(e.getFullYear()%100,t,2)},Y:function(e,t){return Kt(e.getFullYear()%1e4,t,4)},Z:cn,"%":function(){return"%"}},x={a:function(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){p.lastIndex=0;var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){_.lastIndex=0;var r=_.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){m.lastIndex=0;var r=m.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return d(e,k.c.toString(),t,n)},d:nn,e:nn,H:an,I:an,j:rn,L:sn,m:tn,M:on,p:function(e,t,n){var r=f.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:ln,U:Xt,w:Yt,W:Jt,x:function(e,t,n){return d(e,k.x.toString(),t,n)},X:function(e,t,n){return d(e,k.X.toString(),t,n)},y:Qt,Y:Zt,Z:en,"%":un};return u}(e)}};var fn=o.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pn(){}o.format=fn.numberFormat,o.geo={},pn.prototype={s:0,t:0,add:function(e){vn(e,this.t,hn),vn(hn.s,this.s,this),this.s?this.t+=hn.t:this.s=hn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var hn=new pn;function vn(e,t,n){var r=n.s=e+t,a=r-e,o=r-a;n.t=e-o+(t-a)}function gn(e,t){e&&yn.hasOwnProperty(e.type)&&yn[e.type](e,t)}o.geo.stream=function(e,t){e&&mn.hasOwnProperty(e.type)?mn[e.type](e,t):gn(e,t)};var mn={Feature:function(e,t){gn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,a=n.length;++r=0?1:-1,l=i*o,s=Math.cos(t),c=Math.sin(t),u=a*c,d=r*s+u*Math.cos(l),f=u*i*Math.sin(l);On.add(Math.atan2(f,d)),n=e,r=s,a=c}Pn.point=function(i,l){Pn.point=o,n=(e=i)*Oe,r=Math.cos(l=(t=l)*Oe/2+Be/4),a=Math.sin(l)},Pn.lineEnd=function(){o(e,t)}}function Rn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function Nn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function En(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function In(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function jn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Fn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function $n(e){return[Math.atan2(e[1],e[0]),Ee(e[2])]}function Vn(e,t){return x(e[0]-t[0])Ce?r=90:c<-Ce&&(t=-90),d[0]=e,d[1]=n}};function p(a,o){u.push(d=[e=a,n=a]),or&&(r=o)}function h(o,i){var l=Rn([o*Oe,i*Oe]);if(s){var c=En(s,l),u=En([c[1],-c[0],0],c);Fn(u),u=$n(u);var d=o-a,f=d>0?1:-1,h=u[0]*Pe*f,v=x(d)>180;if(v^(f*ar&&(r=g);else if(v^(f*a<(h=(h+360)%360-180)&&hr&&(r=i);v?ob(e,n)&&(n=o):b(o,n)>b(e,n)&&(e=o):n>=e?(on&&(n=o)):o>a?b(e,o)>b(e,n)&&(n=o):b(o,n)>b(e,n)&&(e=o)}else p(o,i);s=l,a=o}function v(){f.point=h}function g(){d[0]=e,d[1]=n,f.point=p,s=null}function m(e,t){if(s){var n=e-a;c+=x(n)>180?n+(n>0?360:-360):n}else i=e,l=t;Pn.point(e,t),h(e,t)}function y(){Pn.lineStart()}function _(){m(i,l),Pn.lineEnd(),x(c)>Ce&&(e=-(n=180)),d[0]=e,d[1]=n,s=null}function b(e,t){return(t-=e)<0?t+360:t}function k(e,t){return e[0]-t[0]}function T(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eb(v[0],v[1])&&(v[1]=p[1]),b(p[0],v[1])>b(v[0],v[1])&&(v[0]=p[0])):l.push(v=p);for(var s,c,p,h=-1/0,v=(i=0,l[c=l.length-1]);i<=c;v=p,++i)p=l[i],(s=b(v[1],p[0]))>h&&(h=s,e=p[0],n=v[1])}return u=d=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),o.geo.centroid=function(e){xn=Tn=An=wn=Mn=Cn=Ln=Bn=Sn=Wn=zn=0,o.geo.stream(e,Hn);var t=Sn,n=Wn,r=zn,a=t*t+n*n+r*r;return a=0;--l)a.point((d=u[l])[0],d[1]);else r(p.x,p.p.x,-1,a);p=p.p}u=(p=p.o).z,h=!h}while(!p.v);a.lineEnd()}}}function Qn(e){if(t=e.length){for(var t,n,r=0,a=e[0];++r=0?1:-1,T=x*k,A=T>Be,w=h*_;if(On.add(Math.atan2(w*x*Math.sin(T),v*b+w*Math.cos(T))),o+=A?k+x*Se:k,A^f>=n^m>=n){var M=En(Rn(d),Rn(e));Fn(M);var C=En(a,M);Fn(C);var L=(A^k>=0?-1:1)*Ee(C[2]);(r>L||r===L&&(M[0]||M[1]))&&(i+=A^k>=0?1:-1)}if(!g++)break;f=m,h=_,v=b,d=e}}return(o<-Ce||o0){for(_||(i.polygonStart(),_=!0),i.lineStart();++o1&&2&t&&n.push(n.pop().concat(n.shift())),l.push(n.filter(nr))}return u}}function nr(e){return e.length>1}function rr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:I,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function ar(e,t){return((e=e.x)[0]<0?e[1]-ze-Ce:ze-e[1])-((t=t.x)[0]<0?t[1]-ze-Ce:ze-t[1])}var or=tr(Jn,function(e){var t,n=NaN,r=NaN,a=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,i){var l=o>0?Be:-Be,s=x(o-n);x(s-Be)0?ze:-ze),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),e.point(o,r),t=0):a!==l&&s>=Be&&(x(n-a)Ce?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(a=Math.cos(t))*Math.sin(e))/(a*o*i)):(t+r)/2}(n,r,o,i),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),t=0),e.point(n=o,r=i),a=l},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var a;if(null==e)a=n*ze,r.point(-Be,a),r.point(0,a),r.point(Be,a),r.point(Be,0),r.point(Be,-a),r.point(0,-a),r.point(-Be,-a),r.point(-Be,0),r.point(-Be,a);else if(x(e[0]-t[0])>Ce){var o=e[0]0)){if(o/=f,f<0){if(o0){if(o>d)return;o>u&&(u=o)}if(o=n-s,f||!(o<0)){if(o/=f,f<0){if(o>d)return;o>u&&(u=o)}else if(f>0){if(o0)){if(o/=p,p<0){if(o0){if(o>d)return;o>u&&(u=o)}if(o=r-c,p||!(o<0)){if(o/=p,p<0){if(o>d)return;o>u&&(u=o)}else if(p>0){if(o0&&(a.a={x:s+u*f,y:c+u*p}),d<1&&(a.b={x:s+d*f,y:c+d*p}),a}}}}}}var lr=1e9;function sr(e,t,n,r){return function(s){var c,u,d,f,p,h,v,g,m,y,_,b=s,k=rr(),x=ir(e,t,n,r),T={point:M,lineStart:function(){T.point=C,u&&u.push(d=[]);y=!0,m=!1,v=g=NaN},lineEnd:function(){c&&(C(f,p),h&&m&&k.rejoin(),c.push(k.buffer()));T.point=M,m&&s.lineEnd()},polygonStart:function(){s=k,c=[],u=[],_=!0},polygonEnd:function(){s=b,c=o.merge(c);var t=function(e){for(var t=0,n=u.length,r=e[1],a=0;ar&&Re(c,o,e)>0&&++t:o[1]<=r&&Re(c,o,e)<0&&--t,c=o;return 0!==t}([e,r]),n=_&&t,a=c.length;(n||a)&&(s.polygonStart(),n&&(s.lineStart(),A(null,null,1,s),s.lineEnd()),a&&Zn(c,i,t,A,s),s.polygonEnd()),c=u=d=null}};function A(o,i,s,c){var u=0,d=0;if(null==o||(u=a(o,s))!==(d=a(i,s))||l(o,i)<0^s>0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==d);else c.point(i[0],i[1])}function w(a,o){return e<=a&&a<=n&&t<=o&&o<=r}function M(e,t){w(e,t)&&s.point(e,t)}function C(e,t){var n=w(e=Math.max(-lr,Math.min(lr,e)),t=Math.max(-lr,Math.min(lr,t)));if(u&&d.push([e,t]),y)f=e,p=t,h=n,y=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&m)s.point(e,t);else{var r={a:{x:v,y:g},b:{x:e,y:t}};x(r)?(m||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),_=!1):n&&(s.lineStart(),s.point(e,t),_=!1)}v=e,g=t,m=n}return T};function a(r,a){return x(r[0]-e)0?0:3:x(r[0]-n)0?2:1:x(r[1]-t)0?1:0:a>0?3:2}function i(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function cr(e){var t=0,n=Be/3,r=Wr(e),a=r(t,n);return a.parallels=function(e){return arguments.length?r(t=e[0]*Be/180,n=e[1]*Be/180):[t/Be*180,n/Be*180]},a}function ur(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,a=1+n*(2*r-n),o=Math.sqrt(a)/r;function i(e,t){var n=Math.sqrt(a-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),o-n*Math.cos(e)]}return i.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/r,Ee((a-(e*e+n*n)*r*r)/(2*r))]},i}o.geo.clipExtent=function(){var e,t,n,r,a,o,i={stream:function(e){return a&&(a.valid=!1),(a=o(e)).valid=!0,a},extent:function(l){return arguments.length?(o=sr(e=+l[0][0],t=+l[0][1],n=+l[1][0],r=+l[1][1]),a&&(a.valid=!1,a=null),i):[[e,t],[n,r]]}};return i.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return cr(ur)}).raw=ur,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var e,t,n,r,a=o.geo.albers(),i=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){e=[t,n]}};function c(a){var o=a[0],i=a[1];return e=null,t(o,i),e||(n(o,i),e)||r(o,i),e}return c.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?i:o>=.166&&o<.234&&r>=-.214&&r<-.115?l:a).invert(e)},c.stream=function(e){var t=a.stream(e),n=i.stream(e),r=l.stream(e);return{point:function(e,a){t.point(e,a),n.point(e,a),r.point(e,a)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},c.precision=function(e){return arguments.length?(a.precision(e),i.precision(e),l.precision(e),c):a.precision()},c.scale=function(e){return arguments.length?(a.scale(e),i.scale(.35*e),l.scale(e),c.translate(a.translate())):a.scale()},c.translate=function(e){if(!arguments.length)return a.translate();var o=a.scale(),u=+e[0],d=+e[1];return t=a.translate(e).clipExtent([[u-.455*o,d-.238*o],[u+.455*o,d+.238*o]]).stream(s).point,n=i.translate([u-.307*o,d+.201*o]).clipExtent([[u-.425*o+Ce,d+.12*o+Ce],[u-.214*o-Ce,d+.234*o-Ce]]).stream(s).point,r=l.translate([u-.205*o,d+.212*o]).clipExtent([[u-.214*o+Ce,d+.166*o+Ce],[u-.115*o-Ce,d+.234*o-Ce]]).stream(s).point,c},c.scale(1070)};var dr,fr,pr,hr,vr,gr,mr={point:I,lineStart:I,lineEnd:I,polygonStart:function(){fr=0,mr.lineStart=yr},polygonEnd:function(){mr.lineStart=mr.lineEnd=mr.point=I,dr+=x(fr/2)}};function yr(){var e,t,n,r;function a(e,t){fr+=r*e-n*t,n=e,r=t}mr.point=function(o,i){mr.point=a,e=n=o,t=r=i},mr.lineEnd=function(){a(e,t)}}var _r={point:function(e,t){evr&&(vr=e);tgr&&(gr=t)},lineStart:I,lineEnd:I,polygonStart:I,polygonEnd:I};function br(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var kr,xr={point:Tr,lineStart:Ar,lineEnd:wr,polygonStart:function(){xr.lineStart=Mr},polygonEnd:function(){xr.point=Tr,xr.lineStart=Ar,xr.lineEnd=wr}};function Tr(e,t){An+=e,wn+=t,++Mn}function Ar(){var e,t;function n(n,r){var a=n-e,o=r-t,i=Math.sqrt(a*a+o*o);Cn+=i*(e+n)/2,Ln+=i*(t+r)/2,Bn+=i,Tr(e=n,t=r)}xr.point=function(r,a){xr.point=n,Tr(e=r,t=a)}}function wr(){xr.point=Tr}function Mr(){var e,t,n,r;function a(e,t){var a=e-n,o=t-r,i=Math.sqrt(a*a+o*o);Cn+=i*(n+e)/2,Ln+=i*(r+t)/2,Bn+=i,Sn+=(i=r*e-n*t)*(n+e),Wn+=i*(r+t),zn+=3*i,Tr(n=e,r=t)}xr.point=function(o,i){xr.point=a,Tr(e=n=o,t=r=i)},xr.lineEnd=function(){a(e,t)}}function Cr(e){var t=.5,n=Math.cos(30*Oe),r=16;function a(t){return(r?function(t){var n,a,i,l,s,c,u,d,f,p,h,v,g={point:m,lineStart:y,lineEnd:b,polygonStart:function(){t.polygonStart(),g.lineStart=k},polygonEnd:function(){t.polygonEnd(),g.lineStart=y}};function m(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){d=NaN,g.point=_,t.lineStart()}function _(n,a){var i=Rn([n,a]),l=e(n,a);o(d,f,u,p,h,v,d=l[0],f=l[1],u=n,p=i[0],h=i[1],v=i[2],r,t),t.point(d,f)}function b(){g.point=m,t.lineEnd()}function k(){y(),g.point=x,g.lineEnd=T}function x(e,t){_(n=e,t),a=d,i=f,l=p,s=h,c=v,g.point=_}function T(){o(d,f,u,p,h,v,a,i,n,l,s,c,r,t),g.lineEnd=b,b()}return g}:function(t){return Br(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})})(t)}function o(r,a,i,l,s,c,u,d,f,p,h,v,g,m){var y=u-r,_=d-a,b=y*y+_*_;if(b>4*t&&g--){var k=l+p,T=s+h,A=c+v,w=Math.sqrt(k*k+T*T+A*A),M=Math.asin(A/=w),C=x(x(A)-1)t||x((y*W+_*z)/b-.5)>.3||l*p+s*h+c*v0&&16,a):Math.sqrt(t)},a}function Lr(e){this.stream=e}function Br(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Sr(e){return Wr(function(){return e})()}function Wr(e){var t,n,r,a,i,l,s=Cr(function(e,n){return[(e=t(e,n))[0]*c+a,i-e[1]*c]}),c=150,u=480,d=250,f=0,p=0,h=0,v=0,g=0,m=or,y=D,_=null,b=null;function k(e){return[(e=r(e[0]*Oe,e[1]*Oe))[0]*c+a,i-e[1]*c]}function T(e){return(e=r.invert((e[0]-a)/c,(i-e[1])/c))&&[e[0]*Pe,e[1]*Pe]}function A(){r=Xn(n=Dr(h,v,g),t);var e=t(f,p);return a=u-e[0]*c,i=d+e[1]*c,w()}function w(){return l&&(l.valid=!1,l=null),k}return k.stream=function(e){return l&&(l.valid=!1),(l=zr(m(n,s(y(e))))).valid=!0,l},k.clipAngle=function(e){return arguments.length?(m=null==e?(_=e,or):function(e){var t=Math.cos(e),n=t>0,r=x(t)>Ce;return tr(a,function(e){var t,l,s,c,u;return{lineStart:function(){c=s=!1,u=1},point:function(d,f){var p,h=[d,f],v=a(d,f),g=n?v?0:i(d,f):v?i(d+(d<0?Be:-Be),f):0;if(!t&&(c=s=v)&&e.lineStart(),v!==s&&(p=o(t,h),(Vn(t,p)||Vn(h,p))&&(h[0]+=Ce,h[1]+=Ce,v=a(h[0],h[1]))),v!==s)u=0,v?(e.lineStart(),p=o(h,t),e.point(p[0],p[1])):(p=o(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(r&&t&&n^v){var m;g&l||!(m=o(h,t,!0))||(u=0,n?(e.lineStart(),e.point(m[0][0],m[0][1]),e.point(m[1][0],m[1][1]),e.lineEnd()):(e.point(m[1][0],m[1][1]),e.lineEnd(),e.lineStart(),e.point(m[0][0],m[0][1])))}!v||t&&Vn(t,h)||e.point(h[0],h[1]),t=h,s=v,l=g},lineEnd:function(){s&&e.lineEnd(),t=null},clean:function(){return u|(c&&s)<<1}}},Ir(e,6*Oe),n?[0,-e]:[-Be,e-Be]);function a(e,n){return Math.cos(e)*Math.cos(n)>t}function o(e,n,r){var a=[1,0,0],o=En(Rn(e),Rn(n)),i=Nn(o,o),l=o[0],s=i-l*l;if(!s)return!r&&e;var c=t*i/s,u=-t*l/s,d=En(a,o),f=jn(a,c);In(f,jn(o,u));var p=d,h=Nn(f,p),v=Nn(p,p),g=h*h-v*(Nn(f,f)-1);if(!(g<0)){var m=Math.sqrt(g),y=jn(p,(-h-m)/v);if(In(y,f),y=$n(y),!r)return y;var _,b=e[0],k=n[0],T=e[1],A=n[1];k0^y[1]<(x(y[0]-b)Be^(b<=y[0]&&y[0]<=k)){var C=jn(p,(-h+m)/v);return In(C,f),[y,$n(C)]}}}function i(t,r){var a=n?e:Be-e,o=0;return t<-a?o|=1:t>a&&(o|=2),r<-a?o|=4:r>a&&(o|=8),o}}((_=+e)*Oe),w()):_},k.clipExtent=function(e){return arguments.length?(b=e,y=e?sr(e[0][0],e[0][1],e[1][0],e[1][1]):D,w()):b},k.scale=function(e){return arguments.length?(c=+e,A()):c},k.translate=function(e){return arguments.length?(u=+e[0],d=+e[1],A()):[u,d]},k.center=function(e){return arguments.length?(f=e[0]%360*Oe,p=e[1]%360*Oe,A()):[f*Pe,p*Pe]},k.rotate=function(e){return arguments.length?(h=e[0]%360*Oe,v=e[1]%360*Oe,g=e.length>2?e[2]%360*Oe:0,A()):[h*Pe,v*Pe,g*Pe]},o.rebind(k,s,"precision"),function(){return t=e.apply(this,arguments),k.invert=t.invert&&T,A()}}function zr(e){return Br(e,function(t,n){e.point(t*Oe,n*Oe)})}function Or(e,t){return[e,t]}function Pr(e,t){return[e>Be?e-Se:e<-Be?e+Se:e,t]}function Dr(e,t,n){return e?t||n?Xn(Nr(e),Er(t,n)):Nr(e):t||n?Er(t,n):Pr}function Rr(e){return function(t,n){return[(t+=e)>Be?t-Se:t<-Be?t+Se:t,n]}}function Nr(e){var t=Rr(e);return t.invert=Rr(-e),t}function Er(e,t){var n=Math.cos(e),r=Math.sin(e),a=Math.cos(t),o=Math.sin(t);function i(e,t){var i=Math.cos(t),l=Math.cos(e)*i,s=Math.sin(e)*i,c=Math.sin(t),u=c*n+l*r;return[Math.atan2(s*a-u*o,l*n-c*r),Ee(u*a+s*o)]}return i.invert=function(e,t){var i=Math.cos(t),l=Math.cos(e)*i,s=Math.sin(e)*i,c=Math.sin(t),u=c*a-s*o;return[Math.atan2(s*a+c*o,l*n+u*r),Ee(u*n-l*r)]},i}function Ir(e,t){var n=Math.cos(e),r=Math.sin(e);return function(a,o,i,l){var s=i*t;null!=a?(a=jr(n,a),o=jr(n,o),(i>0?ao)&&(a+=i*Se)):(a=e+i*Se,o=e-.5*s);for(var c,u=a;i>0?u>o:u2?e[2]*Oe:0),t.invert=function(t){return(t=e.invert(t[0]*Oe,t[1]*Oe))[0]*=Pe,t[1]*=Pe,t},t},Pr.invert=Or,o.geo.circle=function(){var e,t,n=[0,0],r=6;function a(){var e="function"==typeof n?n.apply(this,arguments):n,r=Dr(-e[0]*Oe,-e[1]*Oe,0).invert,a=[];return t(null,null,1,{point:function(e,t){a.push(e=r(e,t)),e[0]*=Pe,e[1]*=Pe}}),{type:"Polygon",coordinates:[a]}}return a.origin=function(e){return arguments.length?(n=e,a):n},a.angle=function(n){return arguments.length?(t=Ir((e=+n)*Oe,r*Oe),a):e},a.precision=function(n){return arguments.length?(t=Ir(e*Oe,(r=+n)*Oe),a):r},a.angle(90)},o.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Oe,a=e[1]*Oe,o=t[1]*Oe,i=Math.sin(r),l=Math.cos(r),s=Math.sin(a),c=Math.cos(a),u=Math.sin(o),d=Math.cos(o);return Math.atan2(Math.sqrt((n=d*i)*n+(n=c*u-s*d*l)*n),s*u+c*d*l)},o.geo.graticule=function(){var e,t,n,r,a,i,l,s,c,u,d,f,p=10,h=p,v=90,g=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:_()}}function _(){return o.range(Math.ceil(r/v)*v,n,v).map(d).concat(o.range(Math.ceil(s/g)*g,l,g).map(f)).concat(o.range(Math.ceil(t/p)*p,e,p).filter(function(e){return x(e%v)>Ce}).map(c)).concat(o.range(Math.ceil(i/h)*h,a,h).filter(function(e){return x(e%g)>Ce}).map(u))}return y.lines=function(){return _().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(f(l).slice(1),d(n).reverse().slice(1),f(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.majorExtent(e).minorExtent(e):y.minorExtent()},y.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],l=+e[1][1],r>n&&(e=r,r=n,n=e),s>l&&(e=s,s=l,l=e),y.precision(m)):[[r,s],[n,l]]},y.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],a=+n[1][1],t>e&&(n=t,t=e,e=n),i>a&&(n=i,i=a,a=n),y.precision(m)):[[t,i],[e,a]]},y.step=function(e){return arguments.length?y.majorStep(e).minorStep(e):y.minorStep()},y.majorStep=function(e){return arguments.length?(v=+e[0],g=+e[1],y):[v,g]},y.minorStep=function(e){return arguments.length?(p=+e[0],h=+e[1],y):[p,h]},y.precision=function(o){return arguments.length?(m=+o,c=Fr(i,a,90),u=$r(t,e,m),d=Fr(s,l,90),f=$r(r,n,m),y):m},y.majorExtent([[-180,-90+Ce],[180,90-Ce]]).minorExtent([[-180,-80-Ce],[180,80+Ce]])},o.geo.greatArc=function(){var e,t,n=Vr,r=Hr;function a(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return a.distance=function(){return o.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e="function"==typeof t?null:t,a):n},a.target=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,a):r},a.precision=function(){return arguments.length?a:0},a},o.geo.interpolate=function(e,t){return n=e[0]*Oe,r=e[1]*Oe,a=t[0]*Oe,o=t[1]*Oe,i=Math.cos(r),l=Math.sin(r),s=Math.cos(o),c=Math.sin(o),u=i*Math.cos(n),d=i*Math.sin(n),f=s*Math.cos(a),p=s*Math.sin(a),h=2*Math.asin(Math.sqrt(je(o-r)+i*s*je(a-n))),v=1/Math.sin(h),(g=h?function(e){var t=Math.sin(e*=h)*v,n=Math.sin(h-e)*v,r=n*u+t*f,a=n*d+t*p,o=n*l+t*c;return[Math.atan2(a,r)*Pe,Math.atan2(o,Math.sqrt(r*r+a*a))*Pe]}:function(){return[n*Pe,r*Pe]}).distance=h,g;var n,r,a,o,i,l,s,c,u,d,f,p,h,v,g},o.geo.length=function(e){return kr=0,o.geo.stream(e,Gr),kr};var Gr={sphere:I,point:I,lineStart:function(){var e,t,n;function r(r,a){var o=Math.sin(a*=Oe),i=Math.cos(a),l=x((r*=Oe)-e),s=Math.cos(l);kr+=Math.atan2(Math.sqrt((l=i*Math.sin(l))*l+(l=n*o-t*i*s)*l),t*o+n*i*s),e=r,t=o,n=i}Gr.point=function(a,o){e=a*Oe,t=Math.sin(o*=Oe),n=Math.cos(o),Gr.point=r},Gr.lineEnd=function(){Gr.point=Gr.lineEnd=I}},lineEnd:I,polygonStart:I,polygonEnd:I};function Kr(e,t){function n(t,n){var r=Math.cos(t),a=Math.cos(n),o=e(r*a);return[o*a*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),a=t(r),o=Math.sin(a),i=Math.cos(a);return[Math.atan2(e*o,r*i),Math.asin(r&&n*o/r)]},n}var qr=Kr(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(o.geo.azimuthalEqualArea=function(){return Sr(qr)}).raw=qr;var Ur=Kr(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},D);function Yr(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Be/4+e/2)},a=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),o=n*Math.pow(r(e),a)/a;if(!a)return Zr;function i(e,t){o>0?t<-ze+Ce&&(t=-ze+Ce):t>ze-Ce&&(t=ze-Ce);var n=o/Math.pow(r(t),a);return[n*Math.sin(a*e),o-n*Math.cos(a*e)]}return i.invert=function(e,t){var n=o-t,r=De(a)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/a,2*Math.atan(Math.pow(o/r,1/a))-ze]},i}function Xr(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),a=n/r+e;if(x(r)1&&Re(e[n[r-2]],e[n[r-1]],e[a])<=0;)--r;n[r++]=a}return n.slice(0,r)}function ia(e,t){return e[0]-t[0]||e[1]-t[1]}(o.geo.stereographic=function(){return Sr(ta)}).raw=ta,na.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-ze]},(o.geo.transverseMercator=function(){var e=Qr(na),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=na,o.geom={},o.geom.hull=function(e){var t=ra,n=aa;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,a=bt(t),o=bt(n),i=e.length,l=[],s=[];for(r=0;r=0;--r)p.push(e[l[c[r]][2]]);for(r=+d;rCe)l=l.L;else{if(!((a=o-Ta(l,i))>Ce)){r>-Ce?(t=l.P,n=l):a>-Ce?(t=l,n=l.N):t=n=l;break}if(!l.R){t=l;break}l=l.R}var s=ya(e);if(pa.insert(t,s),t||n){if(t===n)return Ca(t),n=ya(t.site),pa.insert(s,n),s.edge=n.edge=Sa(t.site,s.site),Ma(t),void Ma(n);if(n){Ca(t),Ca(n);var c=t.site,u=c.x,d=c.y,f=e.x-u,p=e.y-d,h=n.site,v=h.x-u,g=h.y-d,m=2*(f*g-p*v),y=f*f+p*p,_=v*v+g*g,b={x:(g*y-p*_)/m+u,y:(f*_-v*y)/m+d};Wa(n.edge,c,h,b),s.edge=Sa(c,e,null,b),n.edge=Sa(e,h,null,b),Ma(t),Ma(n)}else s.edge=Sa(t.site,s.site)}}function xa(e,t){var n=e.site,r=n.x,a=n.y,o=a-t;if(!o)return r;var i=e.P;if(!i)return-1/0;var l=(n=i.site).x,s=n.y,c=s-t;if(!c)return l;var u=l-r,d=1/o-1/c,f=u/c;return d?(-f+Math.sqrt(f*f-2*d*(u*u/(-2*c)-s+c/2+a-o/2)))/d+r:(r+l)/2}function Ta(e,t){var n=e.N;if(n)return xa(n,t);var r=e.site;return r.y===t?r.x:1/0}function Aa(e){this.site=e,this.edges=[]}function wa(e,t){return t.angle-e.angle}function Ma(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,a=e.site,o=n.site;if(r!==o){var i=a.x,l=a.y,s=r.x-i,c=r.y-l,u=o.x-i,d=2*(s*(g=o.y-l)-c*u);if(!(d>=-Le)){var f=s*s+c*c,p=u*u+g*g,h=(g*f-c*p)/d,v=(s*p-u*f)/d,g=v+l,m=ma.pop()||new function(){Pa(this),this.x=this.y=this.arc=this.site=this.cy=null};m.arc=e,m.site=a,m.x=h+i,m.y=g+Math.sqrt(h*h+v*v),m.cy=g,e.circle=m;for(var y=null,_=va._;_;)if(m.y<_.y||m.y===_.y&&m.x<=_.x){if(!_.L){y=_.P;break}_=_.L}else{if(!_.R){y=_;break}_=_.R}va.insert(y,m),y||(ha=m)}}}}function Ca(e){var t=e.circle;t&&(t.P||(ha=t.N),va.remove(t),ma.push(t),Pa(t),e.circle=null)}function La(e,t){var n=e.b;if(n)return!0;var r,a,o=e.a,i=t[0][0],l=t[1][0],s=t[0][1],c=t[1][1],u=e.l,d=e.r,f=u.x,p=u.y,h=d.x,v=d.y,g=(f+h)/2,m=(p+v)/2;if(v===p){if(g=l)return;if(f>h){if(o){if(o.y>=c)return}else o={x:g,y:s};n={x:g,y:c}}else{if(o){if(o.y1)if(f>h){if(o){if(o.y>=c)return}else o={x:(s-a)/r,y:s};n={x:(c-a)/r,y:c}}else{if(o){if(o.y=l)return}else o={x:i,y:r*i+a};n={x:l,y:r*l+a}}else{if(o){if(o.xCe||x(a-n)>Ce)&&(l.splice(i,0,new za((m=o.site,y=u,_=x(r-d)Ce?{x:d,y:x(t-d)Ce?{x:x(n-h)Ce?{x:f,y:x(t-f)Ce?{x:x(n-p)=n&&c.x<=a&&c.y>=r&&c.y<=i?[[n,i],[a,i],[a,r],[n,r]]:[]).point=e[l]}),t}function l(e){return e.map(function(e,t){return{x:Math.round(r(e,t)/Ce)*Ce,y:Math.round(a(e,t)/Ce)*Ce,i:t}})}return i.links=function(e){return Ea(l(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},i.triangles=function(e){var t=[];return Ea(l(e)).cells.forEach(function(n,r){for(var a,o,i,l,s=n.site,c=n.edges.sort(wa),u=-1,d=c.length,f=c[d-1].edge,p=f.l===s?f.r:f.l;++uo&&(a=t.slice(o,a),l[i]?l[i]+=a:l[++i]=a),(n=n[0])===(r=r[0])?l[i]?l[i]+=r:l[++i]=r:(l[++i]=null,s.push({i:i,x:Ga(n,r)})),o=Ua.lastIndex;return ov&&(v=s.x),s.y>g&&(g=s.y),c.push(s.x),u.push(s.y);else for(d=0;dv&&(v=_),b>g&&(g=b),c.push(_),u.push(b)}var k=v-p,T=g-h;function A(e,t,n,r,a,o,i,l){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var s=e.x,c=e.y;if(null!=s)if(x(s-n)+x(c-r)<.01)w(e,t,n,r,a,o,i,l);else{var u=e.point;e.x=e.y=e.point=null,w(e,u,s,c,a,o,i,l),w(e,t,n,r,a,o,i,l)}else e.x=n,e.y=r,e.point=t}else w(e,t,n,r,a,o,i,l)}function w(e,t,n,r,a,o,i,l){var s=.5*(a+i),c=.5*(o+l),u=n>=s,d=r>=c,f=d<<1|u;e.leaf=!1,e=e.nodes[f]||(e.nodes[f]={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){A(M,e,+m(e,++d),+y(e,d),p,h,v,g)}}),u?a=s:i=s,d?o=c:l=c,A(e,t,n,r,a,o,i,l)}k>T?g=h+k:v=p+T;var M={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){A(M,e,+m(e,++d),+y(e,d),p,h,v,g)}};if(M.visit=function(e){!function e(t,n,r,a,o,i){if(!t(n,r,a,o,i)){var l=.5*(r+o),s=.5*(a+i),c=n.nodes;c[0]&&e(t,c[0],r,a,l,s),c[1]&&e(t,c[1],l,a,o,s),c[2]&&e(t,c[2],r,s,l,i),c[3]&&e(t,c[3],l,s,o,i)}}(e,M,p,h,v,g)},M.find=function(e){return function(e,t,n,r,a,o,i){var l,s=1/0;return function e(c,u,d,f,p){if(!(u>o||d>i||f=k)<<1|t>=b,T=x+4;x=0&&!(n=o.interpolators[r](e,t)););return n}function Xa(e,t){var n,r=[],a=[],o=e.length,i=t.length,l=Math.min(e.length,t.length);for(n=0;n=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function oo(e){return 1-Math.cos(e*ze)}function io(e){return Math.pow(2,10*(e-1))}function lo(e){return 1-Math.sqrt(1-e*e)}function so(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function co(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function uo(e){var t,n,r,a=[e.a,e.b],o=[e.c,e.d],i=po(a),l=fo(a,o),s=po(((t=o)[0]+=(r=-l)*(n=a)[0],t[1]+=r*n[1],t))||0;a[0]*o[1]=0?e.slice(0,n):e,a=n>=0?e.slice(n+1):"in";return r=Za.get(r)||Ja,a=Qa.get(a)||D,t=a(r.apply(null,i.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},o.interpolateHcl=function(e,t){e=o.hcl(e),t=o.hcl(t);var n=e.h,r=e.c,a=e.l,i=t.h-n,l=t.c-r,s=t.l-a;isNaN(l)&&(l=0,r=isNaN(r)?t.c:r);isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360);return function(e){return Je(n+i*e,r+l*e,a+s*e)+""}},o.interpolateHsl=function(e,t){e=o.hsl(e),t=o.hsl(t);var n=e.h,r=e.s,a=e.l,i=t.h-n,l=t.s-r,s=t.l-a;isNaN(l)&&(l=0,r=isNaN(r)?t.s:r);isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360);return function(e){return Ue(n+i*e,r+l*e,a+s*e)+""}},o.interpolateLab=function(e,t){e=o.lab(e),t=o.lab(t);var n=e.l,r=e.a,a=e.b,i=t.l-n,l=t.a-r,s=t.b-a;return function(e){return at(n+i*e,r+l*e,a+s*e)+""}},o.interpolateRound=co,o.transform=function(e){var t=s.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new uo(n?n.matrix:ho)})(e)},uo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ho={a:1,b:0,c:0,d:1,e:0,f:0};function vo(e){return e.length?e.pop()+",":""}function go(e,t){var n=[],r=[];return e=o.transform(e),t=o.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push("translate(",null,",",null,")");r.push({i:a-4,x:Ga(e[0],t[0])},{i:a-2,x:Ga(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(vo(n)+"rotate(",null,")")-2,x:Ga(e,t)})):t&&n.push(vo(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(vo(n)+"skewX(",null,")")-2,x:Ga(e,t)}):t&&n.push(vo(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push(vo(n)+"scale(",null,",",null,")");r.push({i:a-4,x:Ga(e[0],t[0])},{i:a-2,x:Ga(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(vo(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,a=-1,o=r.length;++a0?n=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:n=0})):t>0&&(s.start({type:"start",alpha:n=t}),e=Lt(l.tick)),l):n},l.start=function(){var e,t,n,o=m.length,s=y.length,u=c[0],h=c[1];for(e=0;e=0;)n.push(a[r])}function So(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(o=e.children)&&(a=o.length))for(var a,o,i=-1;++i=0;)i.push(u=c[s]),u.parent=o,u.depth=o.depth+1;n&&(o.value=0),o.children=c}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return So(a,function(t){var r,a;e&&(r=t.children)&&r.sort(e),n&&(a=t.parent)&&(a.value+=t.value)}),l}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(Bo(e,function(e){e.children&&(e.value=0)}),So(e,function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)})),e},r},o.layout.partition=function(){var e=o.layout.hierarchy(),t=[1,1];function n(n,r){var a=e.call(this,n,r);return function e(t,n,r,a){var o=t.children;if(t.x=n,t.y=t.depth*a,t.dx=r,t.dy=a,o&&(i=o.length)){var i,l,s,c=-1;for(r=t.value?r/t.value:0;++cl&&(l=r),i.push(r)}for(n=0;na&&(r=n,a=t);return r}function Ho(e){return e.reduce(Go,0)}function Go(e,t){return e+t[1]}function Ko(e,t){return qo(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function qo(e,t){for(var n=-1,r=+e[0],a=(e[1]-r)/t,o=[];++n<=t;)o[n]=a*n+r;return o}function Uo(e){return[o.min(e),o.max(e)]}function Yo(e,t){return e.value-t.value}function Xo(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Jo(e,t){e._pack_next=t,t._pack_prev=e}function Zo(e,t){var n=t.x-e.x,r=t.y-e.y,a=e.r+t.r;return.999*a*a>n*n+r*r}function Qo(e){if((t=e.children)&&(s=t.length)){var t,n,r,a,o,i,l,s,c=1/0,u=-1/0,d=1/0,f=-1/0;if(t.forEach(ei),(n=t[0]).x=-n.r,n.y=0,_(n),s>1&&((r=t[1]).x=r.r,r.y=0,_(r),s>2))for(ni(n,r,a=t[2]),_(a),Xo(n,a),n._pack_prev=a,Xo(a,r),r=n._pack_next,o=3;o0)for(i=-1;++i=d[0]&&s<=d[1]&&((l=c[o.bisect(f,s,1,h)-1]).y+=v,l.push(a[i]));return c}return a.value=function(e){return arguments.length?(t=e,a):t},a.range=function(e){return arguments.length?(n=bt(e),a):n},a.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return qo(t,e)}:bt(e),a):r},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},o.layout.pack=function(){var e,t=o.layout.hierarchy().sort(Yo),n=0,r=[1,1];function a(a,o){var i=t.call(this,a,o),l=i[0],s=r[0],c=r[1],u=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(l.x=l.y=0,So(l,function(e){e.r=+u(e.value)}),So(l,Qo),n){var d=n*(e?1:Math.max(2*l.r/s,2*l.r/c))/2;So(l,function(e){e.r+=d}),So(l,Qo),So(l,function(e){e.r-=d})}return function e(t,n,r,a){var o=t.children;t.x=n+=a*t.x;t.y=r+=a*t.y;t.r*=a;if(o)for(var i=-1,l=o.length;++ip.x&&(p=e),e.depth>h.depth&&(h=e)});var v=t(f,p)/2-f.x,g=n[0]/(p.x+t(p,f)/2+v),m=n[1]/(h.depth||1);Bo(u,function(e){e.x=(e.x+v)*g,e.y=e.depth*m})}return c}function i(e){var n=e.children,r=e.parent.children,a=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,a=e.children,o=a.length;for(;--o>=0;)(t=a[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;a?(e.z=a.z+t(e._,a._),e.m=e.z-o):e.z=o}else a&&(e.z=a.z+t(e._,a._));e.parent.A=function(e,n,r){if(n){for(var a,o=e,i=e,l=n,s=o.parent.children[0],c=o.m,u=i.m,d=l.m,f=s.m;l=oi(l),o=ai(o),l&&o;)s=ai(s),(i=oi(i)).a=e,(a=l.z+d-o.z-c+t(l._,o._))>0&&(ii(li(l,e,r),e,a),c+=a,u+=a),d+=l.m,c+=o.m,f+=s.m,u+=i.m;l&&!oi(i)&&(i.t=l,i.m+=d-u),o&&!ai(s)&&(s.t=o,s.m+=c-f,r=e)}return r}(e,a,e.parent.A||r[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=n[0],e.y=e.depth*n[1]}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(r=null==(n=e)?s:null,a):r?null:n},a.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:s,a):r?n:null},Lo(a,e)},o.layout.cluster=function(){var e=o.layout.hierarchy().sort(null).value(null),t=ri,n=[1,1],r=!1;function a(a,i){var l,s=e.call(this,a,i),c=s[0],u=0;So(c,function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}(n),e.y=function(e){return 1+o.max(e,function(e){return e.y})}(n)):(e.x=l?u+=t(e,l):0,e.y=0,l=e)});var d=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(c),f=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(c),p=d.x-t(d,f)/2,h=f.x+t(f,d)/2;return So(c,r?function(e){e.x=(e.x-c.x)*n[0],e.y=(c.y-e.y)*n[1]}:function(e){e.x=(e.x-p)/(h-p)*n[0],e.y=(1-(c.y?e.y/c.y:1))*n[1]}),s}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(r=null==(n=e),a):r?null:n},a.nodeSize=function(e){return arguments.length?(r=null!=(n=e),a):r?n:null},Lo(a,e)},o.layout.treemap=function(){var e,t=o.layout.hierarchy(),n=Math.round,r=[1,1],a=null,i=si,l=!1,s="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var n,r,a=-1,o=e.length;++a0;)l.push(n=c[a-1]),l.area+=n.area,"squarify"!==s||(r=p(l,v))<=f?(c.pop(),f=r):(l.area-=l.pop().area,h(l,v,o,!1),v=Math.min(o.dx,o.dy),l.length=l.area=0,f=1/0);l.length&&(h(l,v,o,!0),l.length=l.area=0),t.forEach(d)}}function f(e){var t=e.children;if(t&&t.length){var n,r=i(e),a=t.slice(),o=[];for(u(a,r.dx*r.dy/e.value),o.area=0;n=a.pop();)o.push(n),o.area+=n.area,null!=n.z&&(h(o,n.z?r.dx:r.dy,r,!a.length),o.length=o.area=0);t.forEach(f)}}function p(e,t){for(var n,r=e.area,a=0,o=1/0,i=-1,l=e.length;++ia&&(a=n));return t*=t,(r*=r)?Math.max(t*a*c/r,r/(t*o*c)):1/0}function h(e,t,r,a){var o,i=-1,l=e.length,s=r.x,c=r.y,u=t?n(e.area/t):0;if(t==r.dx){for((a||u>r.dy)&&(u=r.dy);++ir.dx)&&(u=r.dx);++i1);return e+t*n*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=o.random.normal.apply(o,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=o.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n2?gi:fi,l=a?yo:mo;return o=e(t,n,l,r),i=e(n,t,l,Ya),s}function s(e){return o(e)}s.invert=function(e){return i(e)};s.domain=function(e){return arguments.length?(t=e.map(Number),l()):t};s.range=function(e){return arguments.length?(n=e,l()):n};s.rangeRound=function(e){return s.range(e).interpolate(co)};s.clamp=function(e){return arguments.length?(a=e,l()):a};s.interpolate=function(e){return arguments.length?(r=e,l()):r};s.ticks=function(e){return bi(t,e)};s.tickFormat=function(e,n){return ki(t,e,n)};s.nice=function(e){return yi(t,e),l()};s.copy=function(){return e(t,n,r,a)};return l()}([0,1],[0,1],Ya,!1)};var xi={s:1,g:1,p:1,r:1,e:1};function Ti(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}o.scale.log=function(){return function e(t,n,r,a){function i(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function l(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function s(e){return t(i(e))}s.invert=function(e){return l(t.invert(e))};s.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((a=e.map(Number)).map(i)),s):a};s.base=function(e){return arguments.length?(n=+e,t.domain(a.map(i)),s):n};s.nice=function(){var e=pi(a.map(i),r?Math:wi);return t.domain(e),a=e.map(l),s};s.ticks=function(){var e=ui(a),t=[],o=e[0],s=e[1],c=Math.floor(i(o)),u=Math.ceil(i(s)),d=n%1?2:n;if(isFinite(u-c)){if(r){for(;c0;f--)t.push(l(c)*f);for(c=0;t[c]s;u--);t=t.slice(c,u)}return t};s.tickFormat=function(e,t){if(!arguments.length)return Ai;arguments.length<2?t=Ai:"function"!=typeof t&&(t=o.format(t));var r=Math.max(1,n*e/s.ticks().length);return function(e){var a=e/l(Math.round(i(e)));return a*n0?r[e-1]:t[0],ed?0:1;if(c=We)return s(c,p)+(l?s(l,1-p):"")+"Z";var h,v,g,m,y,_,b,k,x,T,A,w,M=0,C=0,L=[];if((m=(+i.apply(this,arguments)||0)/2)&&(g=r===zi?Math.sqrt(l*l+c*c):+r.apply(this,arguments),p||(C*=-1),c&&(C=Ee(g/c*Math.sin(m))),l&&(M=Ee(g/l*Math.sin(m)))),c){y=c*Math.cos(u+C),_=c*Math.sin(u+C),b=c*Math.cos(d-C),k=c*Math.sin(d-C);var B=Math.abs(d-u-2*C)<=Be?0:1;if(C&&Ei(y,_,b,k)===p^B){var S=(u+d)/2;y=c*Math.cos(S),_=c*Math.sin(S),b=k=null}}else y=_=0;if(l){x=l*Math.cos(d-M),T=l*Math.sin(d-M),A=l*Math.cos(u+M),w=l*Math.sin(u+M);var W=Math.abs(u-d+2*M)<=Be?0:1;if(M&&Ei(x,T,A,w)===1-p^W){var z=(u+d)/2;x=l*Math.cos(z),T=l*Math.sin(z),A=w=null}}else x=T=0;if(f>Ce&&(h=Math.min(Math.abs(c-l)/2,+n.apply(this,arguments)))>.001){v=l0?0:1}function Ii(e,t,n,r,a){var o=e[0]-t[0],i=e[1]-t[1],l=(a?r:-r)/Math.sqrt(o*o+i*i),s=l*i,c=-l*o,u=e[0]+s,d=e[1]+c,f=t[0]+s,p=t[1]+c,h=(u+f)/2,v=(d+p)/2,g=f-u,m=p-d,y=g*g+m*m,_=n-r,b=u*p-f*d,k=(m<0?-1:1)*Math.sqrt(Math.max(0,_*_*y-b*b)),x=(b*m-g*k)/y,T=(-b*g-m*k)/y,A=(b*m+g*k)/y,w=(-b*g+m*k)/y,M=x-h,C=T-v,L=A-h,B=w-v;return M*M+C*C>L*L+B*B&&(x=A,T=w),[[x-s,T-c],[x*n/_,T*n/_]]}function ji(e){var t=ra,n=aa,r=Jn,a=$i,o=a.key,i=.7;function l(o){var l,s=[],c=[],u=-1,d=o.length,f=bt(t),p=bt(n);function h(){s.push("M",a(e(c),i))}for(;++u1&&a.push("H",r[0]);return a.join("")},"step-before":Hi,"step-after":Gi,basis:Ui,"basis-open":function(e){if(e.length<4)return $i(e);var t,n=[],r=-1,a=e.length,o=[0],i=[0];for(;++r<3;)t=e[r],o.push(t[0]),i.push(t[1]);n.push(Yi(Zi,o)+","+Yi(Zi,i)),--r;for(;++r9&&(a=3*t/Math.sqrt(a),i[l]=a*n,i[l+1]=a*r));l=-1;for(;++l<=s;)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+i[l]*i[l])),o.push([a||0,i[l]*a||0]);return o}(e))}});function $i(e){return e.length>1?e.join("L"):e+"Z"}function Vi(e){return e.join("L")+"Z"}function Hi(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t1){l=t[1],o=e[s],s++,r+="C"+(a[0]+i[0])+","+(a[1]+i[1])+","+(o[0]-l[0])+","+(o[1]-l[1])+","+o[0]+","+o[1];for(var c=2;cBe)+",1 "+t}function s(e,t,n,r){return"Q 0,0 "+r}return o.radius=function(e){return arguments.length?(n=bt(e),o):n},o.source=function(t){return arguments.length?(e=bt(t),o):e},o.target=function(e){return arguments.length?(t=bt(e),o):t},o.startAngle=function(e){return arguments.length?(r=bt(e),o):r},o.endAngle=function(e){return arguments.length?(a=bt(e),o):a},o},o.svg.diagonal=function(){var e=Vr,t=Hr,n=al;function r(r,a){var o=e.call(this,r,a),i=t.call(this,r,a),l=(o.y+i.y)/2,s=[o,{x:o.x,y:l},{x:i.x,y:l},i];return"M"+(s=s.map(n))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return r.source=function(t){return arguments.length?(e=bt(t),r):e},r.target=function(e){return arguments.length?(t=bt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},o.svg.diagonal.radial=function(){var e=o.svg.diagonal(),t=al,n=e.projection;return e.projection=function(e){return arguments.length?n(function(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-ze;return[n*Math.cos(r),n*Math.sin(r)]}}(t=e)):t},e},o.svg.symbol=function(){var e=il,t=ol;function n(n,r){return(sl.get(e.call(this,n,r))||ll)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=bt(t),n):e},n.size=function(e){return arguments.length?(t=bt(e),n):t},n};var sl=o.map({circle:ll,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*ul)),n=t*ul;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/cl),n=t*cl/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/cl),n=t*cl/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});o.svg.symbolTypes=sl.keys();var cl=Math.sqrt(3),ul=Math.tan(30*Oe);J.transition=function(e){for(var t,n,r=hl||++ml,a=bl(e),o=[],i=vl||{time:Date.now(),ease:ao,delay:0,duration:250},l=-1,s=this.length;++l0;)c[--f].call(e,i);if(o>=1)return d.event&&d.event.end.call(e,e.__data__,t),--u.count?delete u[r]:delete e[n],1}d||(o=a.time,i=Lt(function(e){var t=d.delay;if(i.t=t+o,t<=e)return f(e-t);i.c=f},0,o),d=u[r]={tween:new A,time:o,timer:i,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++u.count)}gl.call=J.call,gl.empty=J.empty,gl.node=J.node,gl.size=J.size,o.transition=function(e,t){return e&&e.transition?hl?e.transition(t):e:o.selection().transition(e)},o.transition.prototype=gl,gl.select=function(e){var t,n,r,a=this.id,o=this.namespace,i=[];e=Z(e);for(var l=-1,s=this.length;++lrect,.s>rect").attr("width",i[1]-i[0])}function v(e){e.select(".extent").attr("y",l[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function g(){var d,g,m=this,y=o.select(o.event.target),_=n.of(m,arguments),b=o.select(m),k=y.datum(),x=!/^(n|s)$/.test(k)&&r,T=!/^(e|w)$/.test(k)&&a,A=y.classed("extent"),w=Te(m),M=o.mouse(m),C=o.select(u(m)).on("keydown.brush",function(){32==o.event.keyCode&&(A||(d=null,M[0]-=i[1],M[1]-=l[1],A=2),$())}).on("keyup.brush",function(){32==o.event.keyCode&&2==A&&(M[0]+=i[1],M[1]+=l[1],A=0,$())});if(o.event.changedTouches?C.on("touchmove.brush",S).on("touchend.brush",z):C.on("mousemove.brush",S).on("mouseup.brush",z),b.interrupt().selectAll("*").interrupt(),A)M[0]=i[0]-M[0],M[1]=l[0]-M[1];else if(k){var L=+/w$/.test(k),B=+/^n/.test(k);g=[i[1-L]-M[0],l[1-B]-M[1]],M[0]=i[L],M[1]=l[B]}else o.event.altKey&&(d=M.slice());function S(){var e=o.mouse(m),t=!1;g&&(e[0]+=g[0],e[1]+=g[1]),A||(o.event.altKey?(d||(d=[(i[0]+i[1])/2,(l[0]+l[1])/2]),M[0]=i[+(e[0]1?{floor:function(t){for(;l(t=e.floor(t));)t=Ol(t-1);return t},ceil:function(t){for(;l(t=e.ceil(t));)t=Ol(+t+1);return t}}:e))},r.ticks=function(e,t){var n=ui(r.domain()),o=null==e?a(n,10):"number"==typeof e?a(n,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(n[0],Ol(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return zl(e.copy(),t,n)},mi(r,e)}function Ol(e){return new Date(e)}Ll.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Wl:Sl,Wl.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Wl.toString=Sl.toString,Nt.second=Ft(function(e){return new Et(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),Nt.seconds=Nt.second.range,Nt.seconds.utc=Nt.second.utc.range,Nt.minute=Ft(function(e){return new Et(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),Nt.minutes=Nt.minute.range,Nt.minutes.utc=Nt.minute.utc.range,Nt.hour=Ft(function(e){var t=e.getTimezoneOffset()/60;return new Et(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),Nt.hours=Nt.hour.range,Nt.hours.utc=Nt.hour.utc.range,Nt.month=Ft(function(e){return(e=Nt.day(e)).setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),Nt.months=Nt.month.range,Nt.months.utc=Nt.month.utc.range;var Pl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Dl=[[Nt.second,1],[Nt.second,5],[Nt.second,15],[Nt.second,30],[Nt.minute,1],[Nt.minute,5],[Nt.minute,15],[Nt.minute,30],[Nt.hour,1],[Nt.hour,3],[Nt.hour,6],[Nt.hour,12],[Nt.day,1],[Nt.day,2],[Nt.week,1],[Nt.month,1],[Nt.month,3],[Nt.year,1]],Rl=Ll.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Jn]]),Nl={range:function(e,t,n){return o.range(Math.ceil(e/n)*n,+t,n).map(Ol)},floor:D,ceil:D};Dl.year=Nt.year,Nt.scale=function(){return zl(o.scale.linear(),Dl,Rl)};var El=Dl.map(function(e){return[e[0].utc,e[1]]}),Il=Bl.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Jn]]);function jl(e){return JSON.parse(e.responseText)}function Fl(e){var t=s.createRange();return t.selectNode(s.body),t.createContextualFragment(e.responseText)}El.year=Nt.year.utc,Nt.scale.utc=function(){return zl(o.scale.linear(),El,Il)},o.text=kt(function(e){return e.responseText}),o.json=function(e,t){return xt(e,"application/json",jl,t)},o.html=function(e,t){return xt(e,"text/html",Fl,t)},o.xml=kt(function(e){return e.responseXML}),this.d3=o,void 0===(a="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=a)}()},function(e,t,n){"use strict";e.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(0===(e=+e)&&function(e){for(var t,n=e.length,r=0;r13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}(n))return!1}else if("number"!==t)return!1;return e-e<1}},function(e,t,n){"use strict";var r=n(21),a=n(2),o=e.exports={},i=n(24);o.defaults=i.defaults;var l=o.defaultLine=i.defaultLine;o.lightLine=i.lightLine;var s=o.background=i.background;function c(e){if(a(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),o="a"===t.charAt(3)&&4===r.length;if(!o&&3!==r.length)return e;for(var i=0;i=0))return e;if(3===i)r[i]>1&&(r[i]=1);else if(r[i]>=1)return e}var l=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return o?"rgba("+l+", "+r[3]+")":"rgb("+l+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(r(e))},o.opacity=function(e){return e?r(e).getAlpha():0},o.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},o.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var a=r(t||s).toRgb(),o=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:o.r*(1-n.a)+n.r*n.a,g:o.g*(1-n.a)+n.g*n.a,b:o.b*(1-n.a)+n.b*n.a};return r(i).toRgbString()},o.contrast=function(e,t,n){var a=r(e);return 1!==a.getAlpha()&&(a=r(o.combine(e,s))),(a.isDark()?t?a.lighten(t):s:n?a.darken(n):l).toString()},o.stroke=function(e,t){var n=r(t);e.style({stroke:o.tinyRGB(n),"stroke-opacity":n.getAlpha()})},o.fill=function(e,t){var n=r(t);e.style({fill:o.tinyRGB(n),"fill-opacity":n.getAlpha()})},o.clean=function(e){if(e&&"object"==typeof e){var t,n,r,a,i=Object.keys(e);for(t=0;t2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},_.getAutoRange=function(e){var t,n=[],r=e._min[0].val,a=e._max[0].val;for(t=1;t0&&d>0&&f/d>p&&(c=l,u=s,p=f/d);if(r===a){var g=r-1,m=r+1;n="tozero"===e.rangemode?r<0?[g,0]:[0,m]:"nonnegative"===e.rangemode?[Math.max(0,g),Math.max(0,m)]:[g,m]}else p&&("linear"!==e.type&&"-"!==e.type||("tozero"===e.rangemode?(c.val>=0&&(c={val:0,pad:0}),u.val<=0&&(u={val:0,pad:0})):"nonnegative"===e.rangemode&&(c.val-p*c.pad<0&&(c={val:0,pad:0}),u.val<0&&(u={val:1,pad:0})),p=(u.val-c.val)/(e._length-c.pad-u.pad)),n=[c.val-p*c.pad,u.val+p*u.pad]);return n[0]===n[1]&&("tozero"===e.rangemode?n=n[0]<0?[n[0],0]:n[0]>0?[0,n[0]]:[0,1]:(n=[n[0]-1,n[0]+1],"nonnegative"===e.rangemode&&(n[0]=Math.max(0,n[0])))),h&&n.reverse(),i.simpleMap(n,e.l2r||Number)},_.doAutoRange=function(e){e._length||e.setScale();var t=e._min&&e._max&&e._min.length&&e._max.length;if(e.autorange&&t){e.range=_.getAutoRange(e),e._r=e.range.slice(),e._rl=i.simpleMap(e._r,e.r2l);var n=e._input;n.range=e.range.slice(),n.autorange=e.autorange}},_.saveRangeInitial=function(e,t){for(var n=_.list(e,"",!0),r=!1,a=0;a0?n.ppadplus:n.ppadminus)||n.ppad||0),k=A((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),x=A(n.vpadplus||n.vpad),T=A(n.vpadminus||n.vpad);for(r=0;r<6;r++)w(r);for(r=m-1;r>5;r--)w(r)}function A(e){if(Array.isArray(e))return function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}function w(n){if(s=t[n],a(s)){if(d=b(n)+y,p=k(n)+y,v=s-T(n),g=s+x(n),"log"===e.type&&v=p?h=!1:l.val>=c&&l.pad<=p&&(e._min.splice(o,1),o--);h&&e._min.push({val:c,pad:_&&0===c?0:p})}if(r(u)){for(h=!0,o=0;o=u&&l.pad>=d?h=!1:l.val<=u&&l.pad<=d&&(e._max.splice(o,1),o--);h&&e._max.push({val:u,pad:_&&0===u?0:d})}}function r(e){return a(e)&&Math.abs(e).3*f||u(r)||u(o))){var p=n.dtick/2;e+=e+p.8){var l=Number(n.substr(1));o.exactYears>.8&&l%12==0?e=_.tickIncrement(e,"M6","reverse")+1.5*v:o.exactMonths>.8?e=_.tickIncrement(e,"M1","reverse")+15.5*v:e-=v/2;var s=_.tickIncrement(e,n);if(s<=r)return s}return e}(g,e,s.dtick,c,o)),h=g;h<=u;)h=_.tickIncrement(h,s.dtick,!1,o);return{start:t.c2r(g,0,o),end:t.c2r(h,0,o),size:s.dtick}},_.calcTicks=function(e){var t=i.simpleMap(e.range,e.r2l);if("auto"===e.tickmode||!e.dtick){var n,r=e.nticks;r||("category"===e.type?(n=e.tickfont?1.2*(e.tickfont.size||12):15,r=e._length/n):(n="y"===e._id.charAt(0)?40:80,r=i.constrain(e._length/n,4,9)+1)),"array"===e.tickmode&&(r*=100),_.autoTicks(e,Math.abs(t[1]-t[0])/r),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}if(e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),B(e),"array"===e.tickmode)return function(e){var t,n,r=e.tickvals,a=e.ticktext,o=new Array(r.length),l=i.simpleMap(e.range,e.r2l),s=1.0001*l[0]-1e-4*l[1],c=1.0001*l[1]-1e-4*l[0],u=Math.min(s,c),d=Math.max(s,c),f=0;Array.isArray(a)||(a=[]);var p="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(n=0;nu&&t=l:s<=l)&&(o.push(s),!(o.length>1e3));s=_.tickIncrement(s,e.dtick,a,e.calendar));e._tmax=o[o.length-1],e._prevDateHead="",e._inCalcTicks=!0;for(var c=new Array(o.length),u=0;u10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=v&&o<=10||t>=15*v)e._tickround="d";else if(t>=m&&o<=16||t>=g)e._tickround="M";else if(t>=y&&o<=19||t>=m)e._tickround="S";else{var i=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(o,i)-20}}else if(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01);Math.abs(c)>3&&("SI"===e.exponentformat||"B"===e.exponentformat?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function S(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}_.autoTicks=function(e,t){var n;if("date"===e.type){e.tick0=i.dateTick0(e.calendar);var r=2*t;r>p?(t/=p,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="M"+12*L(t,n,x)):r>h?(t/=h,e.dtick="M"+L(t,1,T)):r>v?(e.dtick=L(t,v,w),e.tick0=i.dateTick0(e.calendar,!0)):r>g?e.dtick=L(t,g,T):r>m?e.dtick=L(t,m,A):r>y?e.dtick=L(t,y,A):(n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=L(t,n,x))}else if("log"===e.type){e.tick0=0;var o=i.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(o[1]-o[0])<1){var l=1.5*Math.abs((o[1]-o[0])/t);t=Math.abs(Math.pow(10,o[1])-Math.pow(10,o[0]))/l,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="L"+L(t,n,x)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):(e.tick0=0,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=L(t,n,x));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!=typeof e.dtick){var s=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(s)}},_.tickIncrement=function(e,t,n,o){var l=n?-1:1;if(a(t))return e+l*t;var s=t.charAt(0),c=l*Number(t.substr(1));if("M"===s)return i.incrementMonth(e,c,o);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var u="D2"===t?C:M,d=e+.01*l,f=i.roundUp(i.mod(d,1),u,n);return Math.floor(d)+Math.log(r.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(t)},_.tickFirst=function(e){var t=e.r2l||Number,n=i.simpleMap(e.range,t),o=n[1]"+s,e._prevDateHead=s));t.text=c}(e,l,n,c):"log"===e.type?function(e,t,n,r,o){var l=e.dtick,s=t.x;!r||"string"==typeof l&&"L"===l.charAt(0)||(l="L3");if(e.tickformat||"string"==typeof l&&"L"===l.charAt(0))t.text=z(Math.pow(10,s),e,o,r);else if(a(l)||"D"===l.charAt(0)&&i.mod(s+.01,1)<.1)if(-1!==["e","E","power"].indexOf(e.exponentformat)){var c=Math.round(s);t.text=0===c?1:1===c?"10":c>1?"10"+c+"":"10โˆ’"+-c+"",t.fontSize*=1.25}else t.text=z(Math.pow(10,s),e,"","fakehover"),"D1"===l&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6);else{if("D"!==l.charAt(0))throw"unrecognized dtick "+String(l);t.text=String(Math.round(Math.pow(10,i.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var u=String(t.text).charAt(0);"0"!==u&&"1"!==u||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,l,0,c,r):"category"===e.type?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n="");t.text=String(n)}(e,l):function(e,t,n,r,a){"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide");t.text=z(t.x,e,a,r)}(e,l,0,c,r),e.tickprefix&&!p(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!p(e.showticksuffix)&&(l.text+=e.ticksuffix),l};var W=["f","p","n","ฮผ","m","","k","M","G","T"];function z(e,t,n,o){var l=e<0,s=t._tickround,c=n||t.exponentformat||"B",u=t._tickexponent,d=t.tickformat,f=t.separatethousands;if(o){var p={exponentformat:t.exponentformat,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};B(p),s=(Number(p._tickround)||0)+4,u=p._tickexponent,t.hoverformat&&(d=t.hoverformat)}if(d)return r.format(d)(e).replace(/-/g,"โˆ’");var h,v=Math.pow(10,-s)/2;if("none"===c&&(u=0),(e=Math.abs(e))12||u<-15)?e+="e"+h:"E"===c?e+="E"+h:"power"===c?e+="ร—10"+h+"":"B"===c&&9===u?e+="B":"SI"!==c&&"B"!==c||(e+=W[u/3+5]));return l?"โˆ’"+e:e}function O(e,t){for(var n=0;n1&&t1)for(r=1;r0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=v.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=m||e>=400?0:Math.floor(Math.max(e,0))};var _={x1:1,x2:0,y1:0,y2:0},b={x1:0,x2:0,y1:1,y2:0};v.gradient=function(e,t,n,a,i,s){var u=t._fullLayout._defs.select(".gradients").selectAll("#"+n).data([a+i+s],c.identity);u.exit().remove(),u.enter().append("radial"===a?"radialGradient":"linearGradient").each(function(){var e=r.select(this);"horizontal"===a?e.attr(_):"vertical"===a&&e.attr(b),e.attr("id",n);var t=o(i),c=o(s);e.append("stop").attr({offset:"0%","stop-color":l.tinyRGB(c),"stop-opacity":c.getAlpha()}),e.append("stop").attr({offset:"100%","stop-color":l.tinyRGB(t),"stop-opacity":t.getAlpha()})}),e.style({fill:"url(#"+n+")","fill-opacity":null})},v.initGradients=function(e){var t=e._fullLayout._defs.selectAll(".gradients").data([0]);t.enter().append("g").classed("gradients",!0),t.selectAll("linearGradient,radialGradient").remove()},v.singlePointStyle=function(e,t,n,r,a,o){var s=n.marker;!function(e,t,n,r,a,o,s,c){if(i.traceIs(n,"symbols")){var u=h(n);t.attr("d",function(e){var t;t="various"===e.ms||"various"===o.size?3:p.isBubble(n)?u(e.ms):(o.size||6)/2,e.mrc=t;var r=v.symbolNumber(e.mx||o.symbol)||0,a=r%100;return e.om=r%200>=100,v.symbolFuncs[a](t)+(r>=200?y:"")}).style("opacity",function(e){return(e.mo+1||o.opacity+1)-1})}var d,f,g,m=!1;if(e.so?(g=s.outlierwidth,f=s.outliercolor,d=o.outliercolor):(g=(e.mlw+1||s.width+1||(e.trace?e.trace.marker.line.width:0)+1)-1,f="mlc"in e?e.mlcc=a(e.mlc):Array.isArray(s.color)?l.defaultLine:s.color,Array.isArray(o.color)&&(d=l.defaultLine,m=!0),d="mc"in e?e.mcc=r(e.mc):o.color||"rgba(0,0,0,0)"),e.om)t.call(l.stroke,d).style({"stroke-width":(g||1)+"px",fill:"none"});else{t.style("stroke-width",g+"px");var _=o.gradient,b=e.mgt;if(b?m=!0:b=_&&_.type,b&&"none"!==b){var k=e.mgc;k?m=!0:k=_.color;var x="g"+c._fullLayout._uid+"-"+n.uid;m&&(x+="-"+e.i),t.call(v.gradient,c,x,b,d,k)}else t.call(l.fill,d);g&&t.call(l.stroke,f)}}(e,t,n,r,a,s,s.line,o)},v.pointStyle=function(e,t,n){if(e.size()){var a=t.marker,o=v.tryColorscale(a,""),i=v.tryColorscale(a,"line");e.each(function(e){v.singlePointStyle(e,r.select(this),t,o,i,n)})}},v.tryColorscale=function(e,t){var n=t?c.nestedProperty(e,t).get():e,r=n.colorscale,a=n.color;return r&&Array.isArray(a)?s.makeColorScaleFunc(s.extractScale(r,n.cmin,n.cmax)):c.identity};var k={start:1,end:-1,middle:0,bottom:1,top:-1};v.textPointStyle=function(e,t,n){e.each(function(e){var o=r.select(this),i=e.tx||t.text;if(i&&!Array.isArray(i)){var l=e.tp||t.textposition,s=-1!==l.indexOf("top")?"top":-1!==l.indexOf("bottom")?"bottom":"middle",c=-1!==l.indexOf("left")?"end":-1!==l.indexOf("right")?"start":"middle",d=e.ts||t.textfont.size,p=e.mrc?e.mrc/.8+1:0;d=a(d)&&d>0?d:0,o.call(v.font,e.tf||t.textfont.family,d,e.tc||t.textfont.color).attr("text-anchor",c).text(i).call(u.convertToTspans,n);var h=r.select(this.parentNode),g=(u.lineCount(o)-1)*f+1,m=k[c]*p,y=.75*d+k[s]*p+(k[s]-1)*g*d/2;h.attr("transform","translate("+m+","+y+")")}else o.remove()})};var x=.5;function T(e,t,n,a){var o=e[0]-t[0],i=e[1]-t[1],l=n[0]-t[0],s=n[1]-t[1],c=Math.pow(o*o+i*i,x/2),u=Math.pow(l*l+s*s,x/2),d=(u*u*o-c*c*l)*a,f=(u*u*i-c*c*s)*a,p=3*u*(c+u),h=3*c*(c+u);return[[r.round(t[0]+(p&&d/p),2),r.round(t[1]+(p&&f/p),2)],[r.round(t[0]-(h&&d/h),2),r.round(t[1]-(h&&f/h),2)]]}v.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],a=[];for(n=1;n=1e4&&(v.savedBBoxes={},M=0),t&&(v.savedBBoxes[t]=g),M++,c.extendFlat({},g)},v.setClipUrl=function(e,t){if(t){var n="#"+t,a=r.select("base");a.size()&&a.attr("href")&&(n=window.location.href.split("#")[0]+n),e.attr("clip-path","url("+n+")")}else e.attr("clip-path",null)},v.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||0,y:+t[1]||0}},v.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[r]("transform")||"";return t=t||0,n=n||0,o=o.replace(/(\btranslate\(.*?\);?)/,"").trim(),o=(o+=" translate("+t+", "+n+")").trim(),e[a]("transform",o),o},v.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+t[0]||1,y:+t[1]||1}},v.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[r]("transform")||"";return t=t||1,n=n||1,o=o.replace(/(\bscale\(.*?\);?)/,"").trim(),o=(o+=" scale("+t+", "+n+")").trim(),e[a]("transform",o),o},v.setPointGroupScale=function(e,t,n){var r,a,o;return t=t||1,n=n||1,a=1===t&&1===n?"":" scale("+t+","+n+")",o=/\s*sc.*/,e.each(function(){r=(this.getAttribute("transform")||"").replace(o,""),r=(r+=a).trim(),this.setAttribute("transform",r)}),a};var L=/translate\([^)]*\)\s*$/;v.setTextPointsScale=function(e,t,n){e.each(function(){var e,a=r.select(this),o=a.select("text"),i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),s=(a.attr("transform")||"").match(L);e=1===t&&1===n?[]:["translate("+i+","+l+")","scale("+t+","+n+")","translate("+-i+","+-l+")"],s&&e.push(s),a.attr("transform",e.join(" "))})}},function(e,t,n){"use strict";t.defaultConfig=n(111),t.Plots=n(9),t.Axes=n(6),t.ModeBar=n(147),n(270)},function(e,t,n){"use strict";var r=n(1),a=n(2),o=n(8),i=n(110),l=n(4),s=n(0),c=n(3),u=n(15).BADNUM,d=e.exports={},f=n(104),p=n(160),h=s.relinkPrivateKeys;s.extendFlat(d,l),d.attributes=n(42),d.attributes.type.values=d.allTypes,d.fontAttrs=n(17),d.layoutAttributes=n(41),d.fontWeight="normal";var v=d.subplotsRegistry,g=d.transformsRegistry,m=n(30),y=n(275);function _(e,t){var n,r,a=e.trace,o=a._arrayAttrs,i={};for(n=0;n=t.width-20?(o["text-anchor"]="start",o.x=5):(o["text-anchor"]="end",o.x=t._paper.attr("width")-7),n.attr(o);var i=n.select(".js-link-to-tool"),l=n.select(".js-link-spacer"),s=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",function(){d.sendDataToCloud(e)});else{var r=window.location.pathname.split("/"),a=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+a})}}(e,i),l.text(i.text()&&s.text()?" - ":"")}},d.sendDataToCloud=function(e){e.emit("plotly_beforeexport");var t=window.PLOTLYENV&&window.PLOTLYENV.BASE_URL||"https://plot.ly",n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),a=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=d.graphJson(e,!1,"keepdata"),a.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1},d.supplyDefaults=function(e){var t,n=e._fullLayout||{},r=e._fullLayout={},a=e.layout||{},i=e._fullData||[],l=e._fullData=[],s=e.data||[];if(e._transitionData||d.createTransitionData(e),n._initialAutoSizeIsDone){var c=n.width,u=n.height;d.supplyLayoutGlobalDefaults(a,r),a.width||(r.width=c),a.height||(r.height=u)}else{d.supplyLayoutGlobalDefaults(a,r);var f=!a.width||!a.height,p=r.autosize,v=e._context&&e._context.autosizable;f&&(p||v)?d.plotAutoSize(e,a,r):f&&d.sanitizeMargins(e),!p&&f&&(a.width=r.width,a.height=r.height)}r._initialAutoSizeIsDone=!0,r._dataLength=s.length,r._globalTransforms=(e._context||{}).globalTransforms,d.supplyDataDefaults(s,l,a,r),r._has=d._hasPlotType.bind(r);var g=r._modules;for(t=0;t0){var u=function(e){var t,n={left:0,right:0,bottom:0,top:0};if(e)for(t in e)e.hasOwnProperty(t)&&(n.left+=e[t].left||0,n.right+=e[t].right||0,n.bottom+=e[t].bottom||0,n.top+=e[t].top||0);return n}(e._boundingBoxMargins),f=u.left+u.right,p=u.bottom+u.top,h=1-2*l,v=n._container&&n._container.node?n._container.node().getBoundingClientRect():{width:n.width,height:n.height};r=Math.round(h*(v.width-f)),o=Math.round(h*(v.height-p))}else{var g=c?window.getComputedStyle(e):{};r=parseFloat(g.width)||n.width,o=parseFloat(g.height)||n.height}var m=d.layoutAttributes.width.min,y=d.layoutAttributes.height.min;r1,b=!t.height&&Math.abs(n.height-o)>1;(b||_)&&(_&&(n.width=r),b&&(n.height=o)),e._initialAutoSize||(e._initialAutoSize={width:r,height:o}),d.sanitizeMargins(n)},d.supplyLayoutModuleDefaults=function(e,t,n,r){var a,i;o.Axes.supplyLayoutDefaults(e,t,n);var s=t._basePlotModules;for(a=0;a.5*r.width&&(n.l=n.r=0),n.b+n.t>.5*r.height&&(n.b=n.t=0),r._pushmargin[t]={l:{val:n.x,size:n.l+a},r:{val:n.x,size:n.r+a},b:{val:n.y,size:n.b+a},t:{val:n.y,size:n.t+a}}}else delete r._pushmargin[t];r._replotting||d.doAutoMargin(e)}},d.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),t._pushmargin||(t._pushmargin={});var n=t._size,r=JSON.stringify(n),i=Math.max(t.margin.l||0,0),l=Math.max(t.margin.r||0,0),s=Math.max(t.margin.t||0,0),c=Math.max(t.margin.b||0,0),u=t._pushmargin;if(!1!==t.margin.autoexpand){u.base={l:{val:0,size:i},r:{val:1,size:l},t:{val:1,size:s},b:{val:0,size:c}};for(var d=Object.keys(u),f=0;fg){var A=(m*x+(T-t.width)*g)/(x-g),w=(T*(1-g)+(m-t.width)*(1-x))/(x-g);A>=0&&w>=0&&A+w>i+l&&(i=A,l=w)}}if(a(_)&&u[k].t){var M=u[k].t.val,C=u[k].t.size;if(M>y){var L=(_*M+(C-t.height)*y)/(M-y),B=(C*(1-y)+(_-t.height)*(1-M))/(M-y);L>=0&&B>=0&&L+B>c+s&&(c=L,s=B)}}}}if(n.l=Math.round(i),n.r=Math.round(l),n.t=Math.round(s),n.b=Math.round(c),n.p=Math.round(t.margin.pad),n.w=Math.round(t.width)-n.l-n.r,n.h=Math.round(t.height)-n.t-n.b,!t._replotting&&"{}"!==r&&r!==JSON.stringify(t._size))return o.plot(e)},d.graphJson=function(e,t,n,r,a){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&d.supplyDefaults(e);var o=a?e._fullData:e.data,i=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function c(e){if("function"==typeof e)return null;if(s.isPlainObject(e)){var t,r,a={};for(t in e)if("function"!=typeof e[t]&&-1===["_","["].indexOf(t.charAt(0))){if("keepdata"===n){if("src"===t.substr(t.length-3))continue}else if("keepstream"===n){if("string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0&&!s.isPlainObject(e.stream))continue}else if("keepall"!==n&&"string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0)continue;a[t]=c(e[t])}return a}return Array.isArray(e)?e.map(c):s.isJSDate(e)?s.ms2DateTimeLocal(+e):e}var u={data:(o||[]).map(function(e){var n=c(e);return t&&delete n.fit,n})};return t||(u.layout=c(i)),e.framework&&e.framework.isPolar&&(u=e.framework.getConfig()),l&&(u.frames=c(l)),"object"===r?u:JSON.stringify(u)},d.modifyFrames=function(e,t){var n,r,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(n=0;n0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){h=!0}),a.redraw&&e._transitionData._interruptCallbacks.push(function(){return o.redraw(e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var r,l,c=0,u=0;function d(){return c++,function(){var n;h||++u!==c||(n=t,e._transitionData&&(function(e){if(e)for(;e.length;)e.shift()}(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(a.redraw)return o.redraw(e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(n)))}}var f=e._fullLayout._basePlotModules,v=!1;if(n)for(l=0;l=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}function _(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,w=_(function(e){return e.replace(x,function(e,t){return t?t.toUpperCase():""})}),k=_(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),T=/\B([A-Z])/g,A=_(function(e){return e.replace(T,"-$1").toLowerCase()});var M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function C(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function S(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n0,X=G&&G.indexOf("edge/")>0,Z=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===U),J=(G&&/chrome\/\d+/.test(G),{}.watch),Q=!1;if(H)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===W&&(W=!H&&!q&&void 0!==e&&"server"===e.process.env.VUE_ENV),W},ne=H&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var ae,ie="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);ae="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var oe=O,se=0,le=function(){this.id=se++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){m(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(i&&!b(a,"default"))o=!1;else if(""===o||o===A(e)){var l=Fe(String,a.type);(l<0||s0&&(ct((c=e(c,(n||"")+"_"+l))[0])&&ct(d)&&(r[u]=ve(d.text+c[0].text),c.shift()),r.push.apply(r,c)):s(c)?ct(d)?r[u]=ve(d.text+c):""!==c&&r.push(ve(c)):ct(c)&&ct(d)?r[u]=ve(d.text+c.text):(o(t._isVList)&&i(c.tag)&&a(c.key)&&i(n)&&(c.key="__vlist"+n+"_"+l+"__"),r.push(c)));return r}(e):void 0}function ct(e){return i(e)&&i(e.text)&&!1===e.isComment}function ut(e,t){return(e.__esModule||ie&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function dt(e){return e.isComment&&e.asyncFactory}function ft(e){if(Array.isArray(e))for(var t=0;tSt&&kt[n].id>e.id;)n--;kt.splice(n+1,0,e)}else kt.push(e);Mt||(Mt=!0,Qe(Lt))}}(this)},Dt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){$e(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Dt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Dt.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Dt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var zt={enumerable:!0,configurable:!0,get:O,set:O};function Pt(e,t,n){zt.get=function(){return this[t][n]},zt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,zt)}function Et(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},a=e.$options._propKeys=[];e.$parent&&xe(!1);var i=function(i){a.push(i);var o=je(i,t,n,e);Me(r,i,o),i in e||Pt(e,"_props",i)};for(var o in t)i(o);xe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?O:M(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return $e(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,a=(e.$options.methods,n.length);for(;a--;){var i=n[a];0,r&&b(r,i)||(void 0,36!==(o=(i+"").charCodeAt(0))&&95!==o&&Pt(e,"_data",i))}var o;Ae(t,!0)}(e):Ae(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=te();for(var a in t){var i=t[a],o="function"==typeof i?i:i.get;0,r||(n[a]=new Dt(e,o||O,O,Nt)),a in e||It(e,a,i)}}(e,t.computed),t.watch&&t.watch!==J&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var a=0;a=0||n.indexOf(e[a])<0)&&r.push(e[a]);return r}return e}function dn(e){this._init(e)}function fn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,a=e._Ctor||(e._Ctor={});if(a[r])return a[r];var i=e.name||n.options.name;var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=Ne(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)Pt(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)It(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,j.forEach(function(e){o[e]=n[e]}),i&&(o.options.components[i]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=S({},o.options),a[r]=o,o}}function hn(e){return e&&(e.Ctor.options.name||e.tag)}function pn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function vn(e,t){var n=e.cache,r=e.keys,a=e._vnode;for(var i in n){var o=n[i];if(o){var s=hn(o.componentOptions);s&&!t(s)&&gn(n,i,r,a)}}}function gn(e,t,n,r){var a=e[t];!a||r&&a.tag===r.tag||a.componentInstance.$destroy(),e[t]=null,m(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=ln++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var a=r.componentOptions;n.propsData=a.propsData,n._parentListeners=a.listeners,n._renderChildren=a.children,n._componentTag=a.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ne(cn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&vt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,a=n&&n.context;e.$slots=gt(t._renderChildren,a),e.$scopedSlots=r,e._c=function(t,n,r,a){return sn(e,t,n,r,a,!1)},e.$createElement=function(t,n,r,a){return sn(e,t,n,r,a,!0)};var i=n&&n.data;Me(e,"$attrs",i&&i.attrs||r,null,!0),Me(e,"$listeners",t._parentListeners||r,null,!0)}(t),wt(t,"beforeCreate"),function(e){var t=Bt(e.$options.inject,e);t&&(xe(!1),Object.keys(t).forEach(function(n){Me(e,n,t[n])}),xe(!0))}(t),Et(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),wt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(dn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ce,e.prototype.$delete=Se,e.prototype.$watch=function(e,t,n){if(u(t))return Rt(this,e,t,n);(n=n||{}).user=!0;var r=new Dt(this,e,t,n);return n.immediate&&t.call(this,r.value),function(){r.teardown()}}}(dn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){if(Array.isArray(e))for(var r=0,a=e.length;r1?C(t):t;for(var n=C(arguments,1),r=0,a=t.length;rparseInt(this.max)&&gn(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return B}};Object.defineProperty(e,"config",t),e.util={warn:oe,extend:S,mergeOptions:Ne,defineReactive:Me},e.set=Ce,e.delete=Se,e.nextTick=Qe,e.options=Object.create(null),j.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,S(e.options.components,yn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=C(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ne(this.options,e),this}}(e),fn(e),function(e){j.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(dn),Object.defineProperty(dn.prototype,"$isServer",{get:te}),Object.defineProperty(dn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(dn,"FunctionalRenderContext",{value:Jt}),dn.version="2.5.16";var bn=v("style,class"),_n=v("input,textarea,option,select,progress"),xn=v("contenteditable,draggable,spellcheck"),wn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),kn="http://www.w3.org/1999/xlink",Tn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},An=function(e){return Tn(e)?e.slice(6,e.length):""},Mn=function(e){return null==e||!1===e};function Cn(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Sn(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=Sn(t,n.data));return function(e,t){if(i(e)||i(t))return Ln(e,On(t));return""}(t.staticClass,t.class)}function Sn(e,t){return{staticClass:Ln(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Ln(e,t){return e?t?e+" "+t:e:t||""}function On(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,a=e.length;r-1?Qn(e,t,n):wn(t)?Mn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xn(t)?e.setAttribute(t,Mn(n)||"false"===n?"false":"true"):Tn(t)?Mn(n)?e.removeAttributeNS(kn,An(t)):e.setAttributeNS(kn,t,n):Qn(e,t,n)}function Qn(e,t,n){if(Mn(n))e.removeAttribute(t);else{if(Y&&!K&&"TEXTAREA"===e.tagName&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var er={create:Zn,update:Zn};function tr(e,t){var n=t.elm,r=t.data,o=e.data;if(!(a(r.staticClass)&&a(r.class)&&(a(o)||a(o.staticClass)&&a(o.class)))){var s=Cn(t),l=n._transitionClasses;i(l)&&(s=Ln(s,On(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var nr,rr={create:tr,update:tr},ar="__r",ir="__c";function or(e,t,n,r,a){var i;t=(i=t)._withTask||(i._withTask=function(){Ke=!0;var e=i.apply(null,arguments);return Ke=!1,e}),n&&(t=function(e,t,n){var r=nr;return function a(){null!==e.apply(null,arguments)&&sr(t,a,n,r)}}(t,e,r)),nr.addEventListener(e,t,Q?{capture:r,passive:a}:r)}function sr(e,t,n,r){(r||nr).removeEventListener(e,t._withTask||t,n)}function lr(e,t){if(!a(e.data.on)||!a(t.data.on)){var n=t.data.on||{},r=e.data.on||{};nr=t.elm,function(e){if(i(e[ar])){var t=Y?"change":"input";e[t]=[].concat(e[ar],e[t]||[]),delete e[ar]}i(e[ir])&&(e.change=[].concat(e[ir],e.change||[]),delete e[ir])}(n),it(n,r,or,sr,t.context),nr=void 0}}var cr={create:lr,update:lr};function ur(e,t){if(!a(e.data.domProps)||!a(t.data.domProps)){var n,r,o=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in i(l.__ob__)&&(l=t.data.domProps=S({},l)),s)a(l[n])&&(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n){o._value=r;var c=a(r)?"":String(r);dr(o,c)&&(o.value=c)}else o[n]=r}}}function dr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.lazy)return!1;if(r.number)return p(n)!==p(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var fr={create:ur,update:ur},hr=_(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function pr(e){var t=vr(e.style);return e.staticStyle?S(e.staticStyle,t):t}function vr(e){return Array.isArray(e)?L(e):"string"==typeof e?hr(e):e}var gr,mr=/^--/,yr=/\s*!important$/,br=function(e,t,n){if(mr.test(t))e.style.setProperty(t,n);else if(yr.test(n))e.style.setProperty(t,n.replace(yr,""),"important");else{var r=xr(t);if(Array.isArray(n))for(var a=0,i=n.length;a-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ar(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Mr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&S(t,Cr(e.name||"v")),S(t,e),t}return"string"==typeof e?Cr(e):void 0}}var Cr=_(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Sr=H&&!K,Lr="transition",Or="animation",Dr="transition",zr="transitionend",Pr="animation",Er="animationend";Sr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Dr="WebkitTransition",zr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Pr="WebkitAnimation",Er="webkitAnimationEnd"));var Nr=H?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ir(e){Nr(function(){Nr(e)})}function jr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Tr(e,t))}function Rr(e,t){e._transitionClasses&&m(e._transitionClasses,t),Ar(e,t)}function Br(e,t,n){var r=$r(e,t),a=r.type,i=r.timeout,o=r.propCount;if(!a)return n();var s=a===Lr?zr:Er,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout(function(){l0&&(n=Lr,u=o,d=i.length):t===Or?c>0&&(n=Or,u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?Lr:Or:null)?n===Lr?i.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===Lr&&Fr.test(r[Dr+"Property"])}}function Wr(e,t){for(;e.length1}function Yr(e,t){!0!==t.data.show&&Hr(t)}var Kr=function(e){var t,n,r={},l=e.modules,c=e.nodeOps;for(t=0;t<$n.length;++t)for(r[$n[t]]=[],n=0;np?b(e,a(n[m+1])?null:n[m+1].elm,n,h,m,r):h>m&&x(0,t,f,p)}(l,h,p,n,s):i(p)?(i(e.text)&&c.setTextContent(l,""),b(l,null,p,0,p.length-1,n)):i(h)?x(0,h,0,h.length-1):i(e.text)&&c.setTextContent(l,""):e.text!==t.text&&c.setTextContent(l,t.text),i(f)&&i(u=f.hook)&&i(u=u.postpatch)&&u(e,t)}}}function A(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,o.selected!==i&&(o.selected=i);else if(P(ea(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));a||(e.selectedIndex=-1)}}function Qr(e,t){return t.every(function(t){return!P(t,e)})}function ea(e){return"_value"in e?e._value:e.value}function ta(e){e.target.composing=!0}function na(e){e.target.composing&&(e.target.composing=!1,ra(e.target,"input"))}function ra(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function aa(e){return!e.componentInstance||e.data&&e.data.transition?e:aa(e.componentInstance._vnode)}var ia={model:Xr,show:{bind:function(e,t,n){var r=t.value,a=(n=aa(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&a?(n.data.show=!0,Hr(n,function(){e.style.display=i})):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=aa(n)).data&&n.data.transition?(n.data.show=!0,r?Hr(n,function(){e.style.display=e.__vOriginalDisplay}):qr(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,a){a||(e.style.display=e.__vOriginalDisplay)}}},oa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function sa(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?sa(ft(t.children)):e}function la(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var a=n._parentListeners;for(var i in a)t[w(i)]=a[i];return t}function ca(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var ua={name:"transition",props:oa,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag||dt(e)})).length){0;var r=this.mode;0;var a=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return a;var i=sa(a);if(!i)return a;if(this._leaving)return ca(e,a);var o="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?o+"comment":o+i.tag:s(i.key)?0===String(i.key).indexOf(o)?i.key:o+i.key:i.key;var l=(i.data||(i.data={})).transition=la(this),c=this._vnode,u=sa(c);if(i.data.directives&&i.data.directives.some(function(e){return"show"===e.name})&&(i.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,u)&&!dt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=S({},l);if("out-in"===r)return this._leaving=!0,ot(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ca(e,a);if("in-out"===r){if(dt(i))return c;var f,h=function(){f()};ot(l,"afterEnter",h),ot(l,"enterCancelled",h),ot(d,"delayLeave",function(e){f=e})}}return a}}},da=S({tag:String,moveClass:String},oa);function fa(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ha(e){e.data.newPos=e.elm.getBoundingClientRect()}function pa(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,a=t.top-n.top;if(r||a){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+a+"px)",i.transitionDuration="0s"}}delete da.mode;var va={Transition:ua,TransitionGroup:{props:da,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,a=this.$slots.default||[],i=this.children=[],o=la(this),s=0;s-1?Nn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Nn[e]=/HTMLUnknownElement/.test(t.toString())},S(dn.options.directives,ia),S(dn.options.components,va),dn.prototype.__patch__=H?Kr:O,dn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=pe),wt(e,"beforeMount"),new Dt(e,function(){e._update(e._render(),n)},O,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,wt(e,"mounted")),e}(this,e=e&&H?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},H&&setTimeout(function(){B.devtools&&ne&&ne.emit("init",dn)},0),t.default=dn}.call(this,n(44),n(337).setImmediate)},function(e,t,n){"use strict";var r=n(0);e.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("markers")},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return r.isPlainObject(e.marker)&&Array.isArray(e.marker.size)}}},function(e,t,n){"use strict";var r=n(1),a=n(0),i=n(31),o=n(288),s=n(19).LINE_SPACING;function l(e,t){return e.node().getBoundingClientRect()[t]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,n,o){var m=e.text(),L=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&m.match(c),O=r.select(e.node().parentNode);if(!O.empty()){var D=e.attr("class")?e.attr("class").split(" ")[0]:"text";return D+="-math",O.selectAll("svg."+D).remove(),O.selectAll("g."+D+"-group").remove(),e.style("display",null).attr({"data-unformatted":m,"data-math":"N"}),L?(n&&n._promises||[]).push(new Promise(function(t){e.style("display","none");var n={fontSize:parseInt(e.style("font-size"),10)};!function(e,t,n){var i="math-output-"+a.randstr([],64),o=r.select("body").append("div").attr({id:i}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text((s=e,s.replace(u,"\\lt ").replace(d,"\\gt ")));var s;MathJax.Hub.Queue(["Typeset",MathJax.Hub,o.node()],function(){var t=r.select("body").select("#MathJax_SVG_glyphs");if(o.select(".MathJax_SVG").empty()||!o.select("svg").node())a.log("There was an error in the tex syntax.",e),n();else{var i=o.select("svg").node().getBoundingClientRect();n(o.select(".MathJax_SVG"),t,i)}o.remove()})}(L[2],n,function(n,r,a){O.selectAll("svg."+D).remove(),O.selectAll("g."+D+"-group").remove();var i=n&&n.select("svg");if(!i||!i.node())return z(),void t();var s=O.append("g").classed(D+"-group",!0).attr({"pointer-events":"none","data-unformatted":m,"data-math":"Y"});s.node().appendChild(i.node()),r&&r.node()&&i.node().insertBefore(r.node().cloneNode(!0),i.node().firstChild),i.attr({class:D,height:a.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var c=e.style("fill")||"black";i.select("g").attr({fill:c,stroke:c});var u=l(i,"width"),d=l(i,"height"),f=+e.attr("x")-u*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],h=-(parseInt(e.style("font-size"),10)||l(e,"height"))/4;"y"===D[0]?(s.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+") translate("+[-u/2,h-d/2]+")"}),i.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===D[0]?i.attr({x:e.attr("x"),y:h-d/2}):"a"===D[0]?i.attr({x:0,y:h}):i.attr({x:f,y:+e.attr("y")+h-d/2}),o&&o.call(e,s),t(s)})})):z(),e}function z(){O.empty()||(D=e.attr("class")+"-math",O.select("svg."+D).remove()),e.text("").style("white-space","pre"),function(e,t){t=(n=t,function(e,t){if(!e)return"";for(var n=0;n1)for(var a=1;a doesnt match end tag <"+e+">. Pretending it did match.",t),o=c[c.length-1].node}w.test(t)?d():(o=e,c=[{node:e}]);for(var D=t.split(_),z=0;z|>|>)/g;var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},h={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},v="โ€‹",g=["http:","https:","mailto:","",void 0,":"],m=new RegExp("]*)?/?>","g"),y=Object.keys(o.entityToUnicode).map(function(e){return{regExp:new RegExp("&"+e+";","g"),sub:o.entityToUnicode[e]}}),b=/(\r\n?|\n)/g,_=/(<[^<>]*>)/,x=/<(\/?)([^ >]*)(\s+(.*))?>/i,w=//i,k=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,T=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,A=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,M=/(^|[\s"'])popup\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i;function C(e,t){if(!e)return null;var n=e.match(t);return n&&(n[3]||n[4])}var S=/(^|;)\s*color:/;function L(e,t,n){var r,a,i,o=n.horizontalAlign,s=n.verticalAlign||"top",l=e.node().getBoundingClientRect(),c=t.node().getBoundingClientRect();return a="bottom"===s?function(){return l.bottom-r.height}:"middle"===s?function(){return l.top+(l.height-r.height)/2}:function(){return l.top},i="right"===o?function(){return l.right-r.width}:"center"===o?function(){return l.left+(l.width-r.width)/2}:function(){return l.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:a()-c.top+"px",left:i()-c.left+"px","z-index":1e3}),this}}t.plainText=function(e){return(e||"").replace(m," ")},t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,n){return e.each(function(){var e=r.select(this);function a(t,n){return void 0===n?null===(n=e.attr(t))&&(e.attr(t,0),n=0):e.attr(t,n),n}var i=a("x",t),o=a("y",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:o})})},t.makeEditable=function(e,t){var n=t.gd,a=t.delegate,i=r.dispatch("edit","input","cancel"),o=a||e;if(e.style({"pointer-events":a?"none":"all"}),1!==e.size())throw new Error("boo");function s(){var a,s;a=r.select(n).select(".svg-container"),(s=a.append("div")).classed("plugin-editable editable",!0).style({position:"absolute","font-family":e.style("font-family")||"Arial","font-size":e.style("font-size")||12,color:t.fill||e.style("fill")||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-parseFloat(e.style("font-size"))/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(t.text||e.attr("data-unformatted")).call(L(e,a,t)).on("blur",function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,a=r.select(this).attr("class");(t=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(t).style({opacity:0});var o=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),i.edit.call(e,o)}).on("focus",function(){var e=this;n._editing=!0,r.select(document).on("mouseup",function(){if(r.event.target===e)return!1;document.activeElement===s.node()&&s.node().blur()})}).on("keyup",function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),r.select(this).call(L(e,a,t)))}).on("keydown",function(){13===r.event.which&&this.blur()}).call(l),e.style({opacity:0});var c,u=o.attr("class");(c=u?"."+u.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(c).style({opacity:0})}function l(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}return t.immediate?s():o.on("click",s),r.rebind(e,i,"on")}},function(e,t,n){"use strict";e.exports={idRegex:{x:/^x([2-9]|[1-9][0-9]+)?$/,y:/^y([2-9]|[1-9][0-9]+)?$/},attrRegex:{x:/^xaxis([2-9]|[1-9][0-9]+)?$/,y:/^yaxis([2-9]|[1-9][0-9]+)?$/},xAxisMatch:/^xaxis[0-9]*$/,yAxisMatch:/^yaxis[0-9]*$/,AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4]}},function(e,t,n){"use strict";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6}},function(e,t,n){"use strict";var r=n(326),a=n(325),i=n(324);function o(e){if("NoTalent"==e)return"None";switch(e.slice(e.length-7-1,e.length-1)){case"TalentA":return"Rare";case"TalentB":return"Epic";case"TalentC":return"Legendary";default:return Object.keys(r).includes(e)?r[e]:"unknown"}}e.exports={RARITIES:["None","Rare","Epic","Legendary"],getTalentName:function(e){if("NoTalent"==e)return"No Talent";switch(e.slice(e.length-7-1,e.length-1)){case"TalentA":case"TalentB":case"TalentC":return Object.keys(a).includes(e)?a[e]:"unknown";default:return e.substring(e.lastIndexOf("_")+1,e.length-1).replace(/([A-Z])/g,function(e){return" "+e.toLowerCase()}).split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")}},getTalentRarity:o,getScaledLevel:function(e){switch(o(e.Talent)){case"unknown":case"None":return-1;case"Rare":return e.Level/20;case"Epic":return e.Level/10;case"Legendary":return e.Level/5}},getHero:function(e){return e.substring(1,e.length-1)},getMode:function(e){return i[e]},hasTalents:function(e){return["blitz_pvp_ranked","casual_aral"].includes(e)},playersPerMatch:function(e){return e.includes("5v5")?10:6}}},function(e,t,n){"use strict";e.exports={family:{valType:"string",role:"style",noBlank:!0,strict:!0,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The plotly service (at https://plot.ly or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",role:"style",min:1},color:{valType:"color",role:"style"}}},function(e,t,n){"use strict";var r=n(4),a=n(9),i=n(0),o=n(14);function s(e,t,n){var r=e._fullLayout;if(!r)return[];function i(e,n){for(var r=Object.keys(e),a=/^[xyz]axis[0-9]*/,i=[],o=0;op&&(h=Math.max(h-1,1)),e.doneFn&&e.doneFn(f._dragged,h,t),!f._dragged){var n;try{n=new MouseEvent("click",t)}catch(e){(n=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}d.dispatchEvent(n)}return function(e){e._dragging=!1,e._replotPending&&r.plot(e)}(f),f._dragged=!1,a.pauseEvent(t)}f._dragged=!1}f._mouseDownTime||(f._mouseDownTime=0),e.element.onmousedown=function(r){return f._dragged=!1,f._dragging=!0,t=r.clientX,n=r.clientY,d=r.target,(l=(new Date).getTime())-f._mouseDownTime1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=P(e,360),t=P(t,100),n=P(n,100),0===t)r=a=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=o(l,s,e+1/3),a=o(l,s,e),i=o(l,s,e-1/3)}return{r:255*r,g:255*a,b:255*i}}(e.h,r,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var h,p,v;return n=z(n),{ok:d,format:e.format||f,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=s++}function h(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r,a,i=u(e,t,n),o=c(e,t,n),s=(i+o)/2;if(i==o)r=a=0;else{var l=i-o;switch(a=s>.5?l/(2-i-o):l/(i+o),i){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(f(r));return i}function L(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/t;t--;)o.push(f({h:r,s:a,v:i})),i=(i+s)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,a){var i=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(n).toString(16)),I(R(r))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*P(this._r,255))+"%",g:l(100*P(this._g,255))+"%",b:l(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%)":"rgba("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(D[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);n="#"+g(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:j(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),a=f(t).toRgb(),i=n/100;return f({r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,a,i=f.readability(e,t);switch(a=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,n){var r,a,i,o,s=null,l=0;a=(n=n||{}).includeFallbackColors,i=n.level,o=n.size;for(var c=0;cl&&(l=r,s=f(t[c]));return f.isReadable(e,s,{level:i,size:o})||!a?s:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var O=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},D=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(O);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function E(e){return c(1,u(0,e))}function N(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function j(e){return e<=1&&(e=100*e+"%"),e}function R(e){return a.round(255*parseFloat(e)).toString(16)}function B(e){return N(e)/255}var F,$,W,V=($="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",W="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+$),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+$),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+$),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!V.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={computed:{selectedActor:{get:function(){return this.$route.query.actor||"*Kinetic*"},set:function(e){this.$ga.event("Hero","update",e);var t=Object.assign({},this.$route.query,{actor:e});this.$router.push({query:t})}},selectedMode:{get:function(){return this.$route.query.mode||"blitz_pvp_ranked"},set:function(e){this.$ga.event("Mode","update",e);var t=Object.assign({},this.$route.query,{mode:e});this.$router.push({query:t})}}}}},function(e,t,n){"use strict";var r=n(17),a=n(24),i=n(101).dash,o=n(10).extendFlat,s=n(14);e.exports={visible:{valType:"boolean",role:"info",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:a.defaultLine,role:"style",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{valType:"string",role:"info",description:"Sets the title of this axis."},titlefont:o({},r,{description:["Sets this axis' title font."].join(" ")}),type:{valType:"enumerated",values:["-","linear","log","date","category"],dflt:"-",role:"info",description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,role:"style",description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",role:"style",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data."].join(" ")},range:{valType:"info_array",role:"info",items:[{valType:"any"},{valType:"any"}],description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,role:"info",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[s.idRegex.x.toString(),s.idRegex.y.toString()],role:"info",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,role:"info",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],dflt:"range",role:"info",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range* (default), or by decreasing the *domain*."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],role:"info",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},tickmode:{valType:"enumerated",values:["auto","linear","array"],role:"info",description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},nticks:{valType:"integer",min:0,dflt:0,role:"style",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tick0:{valType:"any",role:"style",description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",role:"style",description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tickvals:{valType:"data_array",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],role:"style",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,role:"style",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,role:"style",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:a.defaultLine,role:"style",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,role:"style",description:"Determines whether or not the tick labels are drawn."},showspikes:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,role:"style",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,role:"style",description:"Sets the width (in px) of the zero line."},spikedash:o({},i,{dflt:"dash"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],role:"style",dflt:"toaxis",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},tickfont:o({},r,{description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",role:"style",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",role:"style",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,role:"style",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",role:"style",description:["Sets the tick label formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},hoverformat:{valType:"string",dflt:"",role:"style",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},showline:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:a.defaultLine,role:"style",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",role:"style",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:a.lightLine,role:"style",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",role:"style",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:a.defaultLine,role:"style",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,role:"style",description:"Sets the width (in px) of the zero line."},anchor:{valType:"enumerated",values:["free",s.idRegex.x.toString(),s.idRegex.y.toString()],role:"info",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",s.idRegex.x.toString(),s.idRegex.y.toString()],role:"info",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis.","If *false*, this axis does not overlay any same-letter axes."].join(" ")},domain:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1},{valType:"number",min:0,max:1}],dflt:[0,1],description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,role:"style",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",role:"info",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`."].join(" ")},categoryarray:{valType:"data_array",role:"info",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},_deprecated:{autotick:{valType:"boolean",role:"info",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")}}}},function(e,t,n){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},function(e,t,n){"use strict";e.exports={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(16)),a=i(n(319));function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var o=n(318).filter(function(e){return void 0!=e.Actor}),s=new Map,l=new Map,c=new Map,u=new Map,d=new Map,f=new Map,h=new Map,p=new Map,v=new Map,g=new Map,m=new Map,y=0,b=[],_=a.config.api.modes,x=function(e){var t=function(t){return t.Count/l.get(e)*t.Winner},n=r.playersPerMatch(e);s.set(e,o.filter(function(t){return t.Mode==e})),l.set(e,o.map(function(e){return e.Count}).reduce(function(e,t){return e+t},0)),y+=l.get(e)/r.playersPerMatch(e),c.set(e,s.get(e).sort(function(e,n){return t(n)-t(e)}).slice(0,10)),u.set(e,s.get(e).sort(function(e,t){return t.Count-e.Count})[0]),d.set(e,s.get(e).filter(function(t){return 100*n*t.Count/l.get(e)>1}).sort(function(e,t){return t.Winner-e.Winner})[0]),m.set(e,s.get(e).filter(function(t){return 100*n*t.Count/l.get(e)<=1}).sort(function(e,t){return t.Winner-e.Winner})[0]),f.set(e,s.get(e).filter(function(t){return"Rare"==r.getTalentRarity(t.Talent)&&100*n*t.Count/l.get(e)}).sort(function(e,t){return t.Winner-e.Winner})[0]),h.set(e,s.get(e).filter(function(t){return"Epic"==r.getTalentRarity(t.Talent)&&100*n*t.Count/l.get(e)}).sort(function(e,t){return t.Winner-e.Winner})[0]),p.set(e,s.get(e).filter(function(t){return"Legendary"==r.getTalentRarity(t.Talent)&&100*n*t.Count/l.get(e)}).sort(function(e,t){return t.Winner-e.Winner})[0]),v.set(e,s.get(e).filter(function(e){return"None"!=r.getTalentRarity(e.Talent)}).sort(function(e,t){return r.getScaledLevel(t)-r.getScaledLevel(e)})[0]),g.set(e,s.get(e).filter(function(e){return"None"!=r.getTalentRarity(e.Talent)}).sort(function(e,t){return r.getScaledLevel(e)-r.getScaledLevel(t)})[0]),0==b.length&&(b=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1){for(var e=["LOG:"],t=0;t0){for(var e=["WARN:"],t=0;t0){for(var e=["ERROR:"],t=0;t), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,role:"style",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:o({},a,{description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use
to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"style",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",role:"style",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans more two or more lines","(i.e. `text` contains one or more
HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",role:"style",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,role:"style",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",role:"style",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",description:"Sets the annotation arrow head style."},arrowsize:{valType:"number",min:.3,dflt:1,role:"style",description:"Sets the size (in px) of annotation arrow head."},arrowwidth:{valType:"number",min:.1,role:"style",description:"Sets the width (in px) of annotation arrow."},standoff:{valType:"number",min:0,dflt:0,role:"style",description:["Sets a distance, in pixels, to move the arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",role:"info",description:["Sets the x component of the arrow tail about the arrow head.","If `axref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from right to left (left to right).","If `axref` is an axis, this is an absolute value on that axis,","like `x`, NOT a relative value."].join(" ")},ay:{valType:"any",role:"info",description:["Sets the y component of the arrow tail about the arrow head.","If `ayref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from bottom to top (top to bottom).","If `ayref` is an axis, this is an absolute value on that axis,","like `y`, NOT a relative value."].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ax` is a relative offset in pixels ","from `x`. If set to an x axis id (e.g. *x* or *x2*), `ax` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ay` is a relative offset in pixels ","from `y`. If set to a y axis id (e.g. *y* or *y2*), `ay` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],role:"info",description:["Sets the annotation's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where 0 (1) corresponds to the left (right) side."].join(" ")},x:{valType:"any",role:"info",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",role:"info",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],role:"info",description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where 0 (1) corresponds to the bottom (top)."].join(" ")},y:{valType:"any",role:"info",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,role:"style",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",role:"info",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:o({},a,{description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")})},captureevents:{valType:"boolean",role:"info",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},_deprecated:{ref:{valType:"string",role:"info",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}}},function(e,t,n){"use strict";t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3}},function(e,t,n){"use strict";e.exports={MAXDIST:20,YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50}},function(e,t,n){"use strict";var r=n(2),a=n(0),i=n(99);e.exports=function(e,t){var n=t?a.nestedProperty(e,t).get()||{}:e,o=n.color,s=!1;if(Array.isArray(o))for(var l=0;l2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}t._w=N,t._h=I;for(var F=!1,$=["x","y"],W=0;W<$.length;W++){var V,H,q,U,G,Y=$[W],K=t[Y+"ref"]||Y,X=t["a"+Y+"ref"],Z={x:s,y:v}[Y],J=(k+("x"===Y?0:-90))*Math.PI/180,Q=j*Math.cos(J),ee=R*Math.sin(J),te=Math.abs(Q)+Math.abs(ee),ne=t[Y+"anchor"],re=t[Y+"shift"]*("x"===Y?1:-1),ae=w[Y];if(Z){var ie=Z.r2fraction(t[Y]);if((e._dragging||!Z.autorange)&&(ie<0||ie>1)&&(X===K?((ie=Z.r2fraction(t["a"+Y]))<0||ie>1)&&(F=!0):F=!0,F))continue;V=Z._offset+Z.r2p(t[Y]),U=.5}else"x"===Y?(q=t[Y],V=_.l+_.w*q):(q=1-t[Y],V=_.t+_.h*q),U=t.showarrow?.5:q;if(t.showarrow){ae.head=V;var oe=t["a"+Y];G=Q*B(.5,t.xanchor)-ee*B(.5,t.yanchor),X===K?(ae.tail=Z._offset+Z.r2p(oe),H=G):(ae.tail=V+oe,H=G+oe),ae.text=ae.tail+G;var se=b["x"===Y?"width":"height"];if("paper"===K&&(ae.head=o.constrain(ae.head,1,se-1)),"pixel"===X){var le=-Math.max(ae.tail-3,ae.text),ce=Math.min(ae.tail+3,ae.text)-se;le>0?(ae.tail+=le,ae.text+=le):ce>0&&(ae.tail-=ce,ae.text-=ce)}ae.tail+=re,ae.head+=re}else H=G=te*B(U,ne),ae.text=V+G;ae.text+=re,G+=re,H+=re,t["_"+Y+"padplus"]=te/2+H,t["_"+Y+"padminus"]=te/2-H,t["_"+Y+"size"]=te,t["_"+Y+"shift"]=G}if(F)M.remove();else{var ue=0,de=0;if("left"!==t.align&&(ue=(N-S)*("center"===t.align?.5:1)),"top"!==t.valign&&(de=(I-P)*("middle"===t.valign?.5:1)),u)r.select("svg").attr({x:L+ue-1,y:L+de}).call(c.setClipUrl,D?x:null);else{var fe=L+de-g.top,he=L+ue-g.left;E.call(d.positionText,he,fe).call(c.setClipUrl,D?x:null)}z.select("rect").call(c.setRect,L,L,N,I),O.call(c.setRect,C/2,C/2,j-C,R-C),M.call(c.setTranslate,Math.round(w.x.text-j/2),Math.round(w.y.text-R/2)),A.attr({transform:"rotate("+k+","+w.x.text+","+w.y.text+")"});var pe,ve,ge=function(n,r){T.selectAll(".annotation-arrow-g").remove();var u=w.x.head,d=w.y.head,f=w.x.tail+n,g=w.y.tail+r,b=w.x.text+n,x=w.y.text+r,C=o.rotationXYMatrix(k,b,x),S=o.apply2DTransform(C),L=o.apply2DTransform2(C),D=+O.attr("width"),z=+O.attr("height"),P=b-.5*D,E=P+D,N=x-.5*z,I=N+z,j=[[P,N,P,I],[P,I,E,I],[E,I,E,N],[E,N,P,N]].map(L);if(!j.reduce(function(e,t){return e^!!m(u,d,u+1e6,d+1e6,t[0],t[1],t[2],t[3])},!1)){j.forEach(function(e){var t=m(f,g,u,d,e[0],e[1],e[2],e[3]);t&&(f=t.x,g=t.y)});var R=t.arrowwidth,B=t.arrowcolor,F=T.append("g").style({opacity:l.opacity(B)}).classed("annotation-arrow-g",!0),$=F.append("path").attr("d","M"+f+","+g+"L"+u+","+d).style("stroke-width",R+"px").call(l.stroke,l.rgb(B));if(p($,t.arrowhead,"end",t.arrowsize,t.standoff),e._context.editable&&$.node().parentNode&&!i){var W=u,V=d;if(t.standoff){var H=Math.sqrt(Math.pow(u-f,2)+Math.pow(d-g,2));W+=t.standoff*(f-u)/H,V+=t.standoff*(g-d)/H}var q,U,G,Y=F.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-W)+","+(g-V),transform:"translate("+W+","+V+")"}).style("stroke-width",R+6+"px").call(l.stroke,"rgba(0,0,0,0)").call(l.fill,"rgba(0,0,0,0)");h.init({element:Y.node(),gd:e,prepFn:function(){var e=c.getTranslate(M);U=e.x,G=e.y,q={},s&&s.autorange&&(q[s._name+".autorange"]=!0),v&&v.autorange&&(q[v._name+".autorange"]=!0)},moveFn:function(e,n){var r=S(U,G),a=r[0]+e,i=r[1]+n;M.call(c.setTranslate,a,i),q[y+".x"]=s?s.p2r(s.r2p(t.x)+e):t.x+e/_.w,q[y+".y"]=v?v.p2r(v.r2p(t.y)+n):t.y-n/_.h,t.axref===t.xref&&(q[y+".ax"]=s.p2r(s.r2p(t.ax)+e)),t.ayref===t.yref&&(q[y+".ay"]=v.p2r(v.r2p(t.ay)+n)),F.attr("transform","translate("+e+","+n+")"),A.attr({transform:"rotate("+k+","+a+","+i+")"})},doneFn:function(t){if(t){a.relayout(e,q);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}};if(t.showarrow&&ge(0,0),e._context.editable)h.init({element:M.node(),gd:e,prepFn:function(){ve=A.attr("transform"),pe={}},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?pe[y+".ax"]=s.p2r(s.r2p(t.ax)+e):pe[y+".ax"]=t.ax+e,t.ayref===t.yref?pe[y+".ay"]=v.p2r(v.r2p(t.ay)+n):pe[y+".ay"]=t.ay+n,ge(e,n);else{if(i)return;if(s)pe[y+".x"]=t.x+e/s._m;else{var a=t._xsize/_.w,o=t.x+(t._xshift-t.xshift)/_.w-a/2;pe[y+".x"]=h.align(o+e/_.w,a,0,1,t.xanchor)}if(v)pe[y+".y"]=t.y+n/v._m;else{var l=t._ysize/_.h,c=t.y-(t._yshift+t.yshift)/_.h-l/2;pe[y+".y"]=h.align(c-n/_.h,l,0,1,t.yanchor)}s&&v||(r=h.getCursor(s?.5:pe[y+".x"],v?.5:pe[y+".y"],t.xanchor,t.yanchor))}A.attr({transform:"translate("+e+","+n+")"+ve}),f(M,r)},doneFn:function(t){if(f(M),t){a.relayout(e,pe);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}}function m(e,t,n,r,a,i,o,s){var l=n-e,c=a-e,u=o-a,d=r-t,f=i-t,h=s-i,p=l*h-u*d;if(0===p)return null;var v=(c*h-u*f)/p,g=(c*d-l*f)/p;return g<0||g>1||v<0||v>1?null:{x:e+l*v,y:t+d*v}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;nJ.width||Z<0||Z>J.height)return f.unhoverRaw(e,t)}if(N="xval"in t?v.flat(m,t.xval):v.p2c(T,X),I="yval"in t?v.flat(m,t.yval):v.p2c(L,Z),!a(N[0])||!a(I[0]))return o.warn("Fx.hover failed",t,e),f.unhoverRaw(e,t)}var Q=1/0;for(R=0;RG&&(Y.splice(0,G),Q=Y[0].distance)}if(0===Y.length)return f.unhoverRaw(e,t);Y.sort(function(e,t){return e.distance-t.distance});var ae=e._hoverdata,ie=[];for(j=0;j1,ce=A(Y,{hovermode:E,rotateLabels:le,bgColor:d.combine(y.plot_bgcolor||d.background,y.paper_bgcolor),container:y._hoverlayer,outerContainer:y._paperdiv,commonLabelOpts:y.hoverlabel},e);if(function(e,t){var n,r,a,i,o,s,l,c=0,u=e.map(function(e,n){var r=e[t];return[{i:n,dp:0,pos:e.pos,posref:e.posref,size:e.by*("x"===r._id.charAt(0)?b:1)/2,pmin:r._offset,pmax:r._offset+r._length}]}).sort(function(e,t){return e[0].posref-t[0].posref});function d(e){var t=e[0],l=e[e.length-1];if(r=t.pmin-t.pos-t.dp+t.size,a=l.pos+l.dp+l.size-t.pmax,r>.01){for(o=e.length-1;o>=0;o--)e[o].dp+=r;n=!1}if(!(a<.01)){if(r<-.01){for(o=e.length-1;o>=0;o--)e[o].dp-=a;n=!1}if(n){var c=0;for(i=0;it.pmax&&c++;for(i=e.length-1;i>=0&&!(c<=0);i--)(s=e[i]).pos>t.pmax-1&&(s.del=!0,c--);for(i=0;i=0;o--)e[o].dp-=a;for(i=e.length-1;i>=0&&!(c<=0);i--)(s=e[i]).pos+s.dp+s.size>t.pmax&&(s.del=!0,c--)}}}for(;!n&&c<=e.length;){for(c++,n=!0,i=0;i.01&&p.pmin===v.pmin&&p.pmax===v.pmax){for(o=h.length-1;o>=0;o--)h[o].dp+=r;for(f.push.apply(f,h),u.splice(i+1,1),l=0,o=f.length-1;o>=0;o--)l+=f[o].dp;for(a=l/f.length,o=f.length-1;o>=0;o--)f[o].dp-=a;n=!1}else i++}u.forEach(d)}for(i=u.length-1;i>=0;i--){var g=u[i];for(o=g.length-1;o>=0;o--){var m=g[o],y=e[m.i];y.offset=m.dp,y.del=m.del}}}(Y,le?"xa":"ya"),M(ce,le),t.target&&t.target.tagName){var ue=p.getComponentMethod("annotations","hasClickToShow")(e,ie);c(r.select(t.target),ue?"pointer":"")}t.target&&!l&&S(e,t,ae)&&(ae&&e.emit("plotly_unhover",{event:t,points:ae}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:T,yaxes:L,xvals:N,yvals:I}))}else e.emit("plotly_hover",{event:t.originalEvent,points:[t]})}function A(e,t,n){var a,i=t.hovermode,o=t.rotateLabels,s=t.bgColor,c=t.container,f=t.outerContainer,h=t.commonLabelOpts||{},p=t.fontFamily||g.HOVERFONT,v=t.fontSize||g.HOVERFONTSIZE,y=e[0],b=y.xa,_=y.ya,x="y"===i?"yLabel":"xLabel",T=y[x],A=(String(T)||"").split(" ")[0],M=f.node().getBoundingClientRect(),C=M.top,S=M.width,L=M.height,O=y.distance<=g.MAXDIST&&("x"===i||"y"===i);for(a=0;a15&&(a=a.substr(0,12)+"..."),void 0!==e.extraText&&(c+=e.extraText),void 0!==e.zLabel?(void 0!==e.xLabel&&(c+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(c+="y: "+e.yLabel+"
"),c+=(c?"z: ":"")+e.zLabel):O&&e[i+"Label"]===T?c=e[("x"===i?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&(c=e.yLabel):c=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",e.text&&!Array.isArray(e.text)&&(c+=(c?"
":"")+e.text),""===c&&(""===a&&t.remove(),c=a);var y=t.select("text.nums").call(u.font,e.fontFamily||p,e.fontSize||v,e.fontColor||g).text(c).attr("data-notex",1).call(l.positionText,0,0).call(l.convertToTspans,n),b=t.select("text.name"),_=0;a&&a!==c?(b.call(u.font,e.fontFamily||p,e.fontSize||v,h).text(a).attr("data-notex",1).call(l.positionText,0,0).call(l.convertToTspans,n),_=b.node().getBoundingClientRect().width+2*k):(b.remove(),t.select("rect").remove()),t.select("path").style({fill:h,stroke:g});var x,A,M=y.node().getBoundingClientRect(),D=e.xa._offset+(e.x0+e.x1)/2,z=e.ya._offset+(e.y0+e.y1)/2,P=Math.abs(e.x1-e.x0),E=Math.abs(e.y1-e.y0),N=M.width+w+k+_;e.ty0=C-M.top,e.bx=M.width+2*k,e.by=M.height+2*k,e.anchor="start",e.txwidth=M.width,e.tx2width=_,e.offset=0,o?(e.pos=D,x=z+E/2+N<=L,A=z-E/2-N>=0,"top"!==e.idealAlign&&x||!A?x?(z+=E/2,e.anchor="start"):e.anchor="middle":(z-=E/2,e.anchor="end")):(e.pos=z,x=D+P/2+N<=S,A=D-P/2-N>=0,"left"!==e.idealAlign&&x||!A?x?(D+=P/2,e.anchor="start"):e.anchor="middle":(D-=P/2,e.anchor="end")),y.attr("text-anchor",e.anchor),_&&b.attr("text-anchor",e.anchor),t.attr("transform","translate("+D+","+z+")"+(o?"rotate("+m+")":""))}),P}function M(e,t){e.each(function(e){var n=r.select(this);if(e.del)n.remove();else{var a="end"===e.anchor?-1:1,i=n.select("text.nums"),o={start:1,end:-1,middle:0}[e.anchor],s=o*(w+k),c=s+o*(e.txwidth+k),d=0,f=e.offset;"middle"===e.anchor&&(s-=e.tx2width/2,c-=e.tx2width/2),t&&(f*=-x,d=e.offset*_),n.select("path").attr("d","middle"===e.anchor?"M-"+e.bx/2+",-"+e.by/2+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(a*w+d)+","+(w+f)+"v"+(e.by/2-w)+"h"+a*e.bx+"v-"+e.by+"H"+(a*w+d)+"V"+(f-w)+"Z"),i.call(l.positionText,s+d,f+e.ty0-e.by/2+k),e.tx2width&&(n.select("text.name").call(l.positionText,c+o*k+d,f+e.ty0-e.by/2+k),n.select("rect").call(u.setRect,c+(o-1)*e.tx2width/2+d,f-e.by/2-1,e.tx2width,e.by+2))}})}function C(e,t){var n,r=e.trace||{},a=e.cd[0],i=e.cd[e.index]||{};function s(t,n,s){var l;if(i[n])l=i[n];else if(a[n]){var c=a[n];Array.isArray(c)&&Array.isArray(c[e.index[0]])&&(l=c[e.index[0]][e.index[1]])}else l=o.nestedProperty(r,s).get();l&&(e[t]=l)}if(s("hoverinfo","hi","hoverinfo"),s("color","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),e.posref="y"===t?(e.x0+e.x1)/2:(e.y0+e.y1)/2,e.x0=o.constrain(e.x0,0,e.xa._length),e.x1=o.constrain(e.x1,0,e.xa._length),e.y0=o.constrain(e.y0,0,e.ya._length),e.y1=o.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal){n="log"===e.xa.type&&e.xLabelVal<=0;var l=h.tickText(e.xa,e.xa.c2l(n?-e.xLabelVal:e.xLabelVal),"hover");n?0===e.xLabelVal?e.xLabel="0":e.xLabel="-"+l.text:e.xLabel=l.text,e.xVal=e.xa.c2d(e.xLabelVal)}if(void 0!==e.yLabelVal){n="log"===e.ya.type&&e.yLabelVal<=0;var c=h.tickText(e.ya,e.ya.c2l(n?-e.yLabelVal:e.yLabelVal),"hover");n?0===e.yLabelVal?e.yLabel="0":e.yLabel="-"+c.text:e.yLabel=c.text,e.yVal=e.ya.c2d(e.yLabelVal)}if(void 0!==e.zLabelVal&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var u=h.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+u+" / -"+h.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ยฑ "+u,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=h.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+h.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ยฑ "+d,"y"===t&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return"all"!==f&&(-1===(f=f.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===f.indexOf("y")&&(e.yLabel=void 0),-1===f.indexOf("z")&&(e.zLabel=void 0),-1===f.indexOf("text")&&(e.text=void 0),-1===f.indexOf("name")&&(e.name=void 0)),e}function S(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var a=n[r],i=e._hoverdata[r];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber))return!0}return!1}t.hover=function(e,t,n,r){if("string"==typeof e&&(e=document.getElementById(e)),void 0===e._lastHoverTime&&(e._lastHoverTime=0),void 0!==e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=void 0),Date.now()>e._lastHoverTime+g.HOVERMINTIME)return T(e,t,n,r),void(e._lastHoverTime=Date.now());e._hoverTimer=setTimeout(function(){T(e,t,n,r),e._lastHoverTime=Date.now(),e._hoverTimer=void 0},g.HOVERMINTIME)},t.loneHover=function(e,t){var n={color:e.color||d.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,trace:{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0},a=r.select(t.container),i=t.outerContainer?r.select(t.outerContainer):a,o={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||d.background,container:a,outerContainer:i},s=A([n],o,t.gd);return M(s,o.rotateLabels),s.node()}},function(e,t,n){"use strict";var r=n(10).extendFlat,a=n(17),i=n(38);e.exports={dragmode:{valType:"enumerated",role:"info",values:["zoom","pan","select","lasso","orbit","turntable"],dflt:"zoom",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",role:"info",values:["x","y","closest",!1],description:"Determines the mode of hover interactions."},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of all hover labels on graph."].join(" ")},font:{family:r({},a.family,{dflt:i.HOVERFONT}),size:r({},a.size,{dflt:i.HOVERFONTSIZE}),color:r({},a.color)}}}},function(e,t,n){"use strict";var r=n(0),a=n(38);t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.flat=function(e,t){for(var n=new Array(e.length),r=0;r=0&&n.index0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function a(){this.removeListener(e,a),n||(n=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},n.prototype.removeListener=function(e,t){var n,i,o,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";var r=n(0),a=n(89).EventEmitter;e.exports=function(e){var t=e.emitter||new a,n=new Promise(function(a,i){var o=window.Image,s=e.svg,l=e.format||"png";if(r.isIE()&&(s=(s=(s=s.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("$2")')).replace(/(\\')/gi,'"'),"svg"!==l)){var c=new Error("Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.");return i(c),e.promise?n:t.emit("error",c)}var u=e.canvas,d=u.getContext("2d"),f=new o,h="data:image/svg+xml,"+encodeURIComponent(s);u.height=e.height||150,u.width=e.width||300,f.onload=function(){var n;switch("svg"!==l&&d.drawImage(f,0,0),l){case"jpeg":n=u.toDataURL("image/jpeg");break;case"png":n=u.toDataURL("image/png");break;case"webp":n=u.toDataURL("image/webp");break;case"svg":n=h;break;default:if(i(new Error("Image format is not jpeg, png or svg")),!e.promise)return t.emit("error","Image format is not jpeg, png or svg")}a(n),e.promise||t.emit("success",n)},f.onerror=function(n){if(i(n),!e.promise)return t.emit("error",n)},f.src=h});return e.promise?n:t}},function(e,t,n){"use strict";var r=n(1),a=n(7),i=n(3),o=n(31),s=/"/g,l=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t){var n,c=e._fullLayout,u=c._paper,d=c._toppaper;u.insert("rect",":first-child").call(a.setRect,0,0,c.width,c.height).call(i.fill,c.paper_bgcolor);var f=c._basePlotModules||[];for(n=0;n")?"":t.html(e).text()});return t.remove(),n}(m),m=(m=m.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(l,"'")}},function(e,t,n){"use strict";var r=n(0),a=n(9),i=r.extendFlat,o=r.extendDeep;function s(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:"",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:"",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}e.exports=function(e,t){var n;e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var r,l=e.data,c=e.layout,u=o([],l),d=o({},c,s(t.tileClass)),f=e._context||{};if(t.width&&(d.width=t.width),t.height&&(d.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){d.annotations=[];var h=Object.keys(d);for(n=0;n-1&&(d[h[n]].title="");for(n=0;n0||f<0){var v={left:[-n,0],right:[n,0],top:[0,-n],bottom:[0,n]}[m.side];t.attr("transform","translate("+v+")")}}}}},function(e,t,n){"use strict";e.exports=function(e){for(var t,n=e.length,r=new Array(n),a=n-1,i=0;a>=0;a--,i++)t=e[a],r[i]=[1-t[0],t[1]];return r}},function(e,t,n){"use strict";var r=n(25),a=n(163);e.exports=function(e){return void 0!==r[e]||a(e)}},function(e,t,n){"use strict";var r=n(2),a=n(0),i=n(292),o=n(291),s=n(99),l=n(98);e.exports=function(e,t,n,c,u){var d,f=u.prefix,h=u.cLetter,p=f.slice(0,f.length-1),v=f?a.nestedProperty(e,p).get()||{}:e,g=f?a.nestedProperty(t,p).get()||{}:t,m=v[h+"min"],y=v[h+"max"],b=v.colorscale;c(f+h+"auto",!(r(m)&&r(y)&&m0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},function(e,t,n){"use strict";var r="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}};e.exports=function(e){return Array.isArray(e)||r.isView(e)}},function(e,t,n){"use strict";var r=n(2),a=n(106),i=n(32),o=n(167);e.exports=function(e,t){if(r(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var n,i,o,s=0,l=t.split(".");s=0;t--){if(r=e[t][0],i=e[t][1],s=!1,a(r))for(n=r.length-1;n>=0;n--)c(r[n],d(i,n))?s?r[n]=void 0:r.pop():s=!0;else if("object"==typeof r&&null!==r)for(o=Object.keys(r),s=!1,n=o.length-1;n>=0;n--)c(r[o[n]],d(i,o[n]))?delete r[o[n]]:s=!0;if(s)return}}(u)):s[t[o]]=r}}function d(e,t){var n=t;return r(t)?n="["+t+"]":e&&(n="."+t),e+n}function f(e,t,n,r){var i,o=a(n),s=!0,l=n,d=r.replace("-1",0),f=!o&&c(n,d),p=t[0];for(i=0;i0&&console.error(t)}},topojsonURL:"https://cdn.plot.ly/",mapboxAccessToken:null,logging:!1,globalTransforms:[]}},function(e,t,n){"use strict";var r=function(){var e=this.$createElement,t=this._self._c||e;return t("figure",{staticClass:"image"},[t("img",{style:this.round?"border-radius: 50%":"",attrs:{src:"/dist/assets/hero-icons/"+this.hero.toLowerCase()+".jpg",alt:this.hero,title:this.hero}})])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",{staticClass:"title-box"},[e._v(e._s(e.title))]),e._v(" "),n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column is-centered"},[n("hero-image",{staticClass:"is-64x64 hero-image-slot",attrs:{actor:e.entry.Actor}}),e._v(" "),n("span",{staticClass:"hero-name"},[e._v(e._s(e.hero))])],1),e._v(" "),n("div",{staticClass:"column value is-centered"},[e.hasTalent?n("talent-image",{attrs:{entry:e.entry,size:64}}):n("span",[e._v("No Talent")]),e._v(" "),n("span",[e._v(e._s(e.value)+e._s(e.label))]),e._v(" "),n("span",{staticClass:"type"},[e._v(e._s(e.type))])],1)])])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"None"!=e.rarity?n("div",{staticClass:"talent-image",style:"background-image: url('/dist/assets/talent-icons-small/"+e.hero+"/"+e.hero+"_"+e.rarity+".jpg'); width: "+e.size+"px; height: "+e.size+"px",attrs:{alt:e.hero+" "+e.rarity,title:e.hero+" "+e.rarity}}):e._e()},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"columns is-multiline is-mobile"},[e.stats.topWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Overpowered",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topWin.Winner),entry:e.stats.topWin}})],1):e._e(),e._v(" "),e.stats.topPick?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Trending",type:"Total Pick Rate",label:"%",value:(100*e.playersPerMatch*e.stats.topPick.Count/e.stats.totalPicks).toFixed(2),entry:e.stats.topPick}})],1):e._e(),e._v(" "),e.stats.topUnpopularWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Hidden Gem",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topUnpopularWin.Winner),entry:e.stats.topUnpopularWin}})],1):e._e(),e._v(" "),e.stats.highestLevelAvg?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Highest Level",type:"Average Level",value:e.stats.highestLevelAvg.Level.toFixed(2),entry:e.stats.highestLevelAvg}})],1):e._e(),e._v(" "),e.stats.lowestLevelAvg?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Lowest Level",type:"Average Level",value:e.stats.lowestLevelAvg.Level.toFixed(2),entry:e.stats.lowestLevelAvg}})],1):e._e(),e._v(" "),e.stats.topRareWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Rare",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topRareWin.Winner),entry:e.stats.topRareWin}})],1):e._e(),e._v(" "),e.stats.topEpicWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Epic",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topEpicWin.Winner),entry:e.stats.topEpicWin}})],1):e._e(),e._v(" "),e.stats.topLegendaryWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Legendary",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topLegendaryWin.Winner),entry:e.stats.topLegendaryWin}})],1):e._e()])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticClass:"columns is-mobile is-multiline is-centered"},e._l(e.actors,function(t){return n("div",{key:t,staticClass:"column is-narrow"},[n("a",{on:{click:function(n){e.selectedActor=t}}},[n("hero-image",{class:"is-48x48 "+(e.selectedActor==t?"highlight-selection":""),attrs:{actor:t}})],1)])}))])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("b-table",{attrs:{data:e.top10Talents,"mobile-cards":!1},scopedSlots:e._u([{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Actor",label:"Hero"}},[n("hero-image",{staticClass:"is-square",attrs:{actor:t.row.Actor}})],1),e._v(" "),n("b-table-column",{attrs:{field:"Talent",label:"Talent",visible:e.hasTalents}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("span",[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)]),e._v(" "),n("b-table-column",{attrs:{field:"Count",label:"Pick Rate",visible:!e.hasTalents,sortable:"",numeric:""}},[n("span",[e._v(e._s(Math.round(100*e.playersPerMatch*t.row.Count/e.totalPicks))+"%")])]),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Win Rate",sortable:"",numeric:""}},[n("span",[e._v(e._s(Math.round(100*t.row.Winner))+"%")])])]}}])})],1)},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[e._m(0),e._v(" "),n("div",{staticClass:"tabs is-fullwidth"},[n("ul",e._l(e.modes,function(t){return n("li",{key:t,class:t==e.selectedMode?"is-active":""},[n("a",{on:{click:function(n){e.selectedMode=t}}},[n("span",[e._v(e._s(e.getMode(t)))])])])}))]),e._v(" "),n("mode-tab",{staticClass:"tab"}),e._v(" "),n("footer",{staticClass:"footer"},[n("div",{staticClass:"container"},[n("div",{staticClass:"content has-text-centered"},[n("p",[e._v("\n Last update: "+e._s(e.lastUpdate)+", with "+e._s(e.totalMatches)+" matches total.\n ")]),e._v(" "),e._m(1),e._v(" "),n("p")])])])],1)},a=[function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"hero is-medium is-bold header"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("h1",{staticClass:"title has-text-white"},[this._v("\n Broken Talents\n ")]),this._v(" "),t("h2",{staticClass:"subtitle has-text-white"},[this._v("\n Tilting Brawlers since Update 2.5\n ")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("strong",[e._v("BrokenTalentsFun")]),e._v(", the Vainglory Talents and Hero win rate statistics site, by shutterfly ("),n("a",{attrs:{href:"https://schneefux.xyz"}},[e._v("@schneefux")]),e._v(").\n "),n("br"),e._v(" "),n("a",{attrs:{href:"https://github.com/BrokenTalents/brokentalents.github.io"}},[e._v("Source Code")]),e._v(".\n Built with the "),n("a",{attrs:{href:"http://developer.vainglorygame.com"}},[e._v("Vainglory API")]),e._v(".\n Images by "),n("a",{attrs:{href:"https://vainglorygame.com"}},[e._v("Super Evil Mega Corp")]),e._v(", Gwen Icon by Bleeko.\n "),n("br"),e._v("\n Join the "),n("a",{attrs:{href:"https://discord.gg/txTchJY"}},[e._v("Discord Server")]),e._v(" if you have questions.\n ")])}];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",[n("b-table",{attrs:{data:e.report,"default-sort":["Count","desc"],"default-sort-directon":"desc",paginated:!0},scopedSlots:e._u([{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Actor",label:"Hero",sortable:""}},[n("div",{staticClass:"is-hidden-touch"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("hero-image",{staticClass:"is-48x48",attrs:{round:"true",actor:t.row.Actor}}),e._v(" "),n("span",{staticStyle:{"padding-left":"0.75em"}},[e._v(e._s(e.getHero(t.row.Actor)))])],1)]),e._v(" "),n("div",{staticClass:"is-hidden-desktop"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("span",{staticStyle:{"padding-right":"0.5em"}},[e._v(e._s(e.getHero(t.row.Actor)))]),e._v(" "),n("hero-image",{staticClass:"is-48x48",attrs:{round:"true",actor:t.row.Actor}})],1)])]),e._v(" "),n("b-table-column",{attrs:{field:"Talent",label:"Talent",visible:e.hasTalents}},[n("div",{staticClass:"is-hidden-touch"},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("span",[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)]),e._v(" "),n("div",{staticClass:"is-hidden-desktop"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("span",{staticStyle:{"padding-right":"0.5em"}},[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)])]),e._v(" "),n("b-table-column",{attrs:{field:"Level",label:"Average Level",visible:e.hasTalents,sortable:"",numeric:""}},[t.row.Level?[e._v("\n "+e._s(t.row.Level.toFixed(2))+"\n ")]:e._e(),e._v(" "),t.row.Level?e._e():[e._v("\n 0\n ")]],2),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Win Rate",sortable:"",numeric:""}},[e._v("\n "+e._s((100*t.row.Winner).toFixed(2))+"%\n ")]),e._v(" "),n("b-table-column",{attrs:{field:"Count",label:"Pick Rate",sortable:"",numeric:""}},[e._v("\n "+e._s((100*e.playersPerMatch*t.row.Count/e.totalPicks).toFixed(2))+"%\n ")])]}}])})],1)},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:"notification "+(e.hideIntro?"is-hidden":"")},[n("button",{staticClass:"delete",on:{click:function(t){e.hideIntro=!0}}}),e._v(" "),n("div",{staticClass:"content"},[n("h3",[e._v("Hi There!")]),e._v(" "),n("img",{staticClass:"image is-64x64",staticStyle:{float:"right"},attrs:{src:"/dist/assets/gwenbarf.png"}}),e._v(" "),e._m(0),e._v(" "),n("p",[e._v("\n This site shares visitor data with Google Analytics and Google AdSense which store cookies. If you do not want that, you can "),n("a",{on:{click:function(e){this.$ga.disable()}}},[e._v("opt out of Google Analytics")]),e._v(" and "),n("a",{attrs:{href:"http://www.youronlinechoices.com/"}},[e._v("opt out of targeted advertisements")]),e._v(".\n ")])])])},a=[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[this._v("\n Broken Talents Fun will help you find the best Talents for the Vainglory mobile MOBA game.\n "),t("br"),this._v("\n Talents are special boosts for Vainglory's Brawl modes that upgrade and change hero abilities in a variety of different ways.\n "),t("br"),this._v("\n The pick and win rates on this site have been gathered from real Vainglory matches.\n The data can be imprecise and can be contrary to your personal experience.\n ")])}];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:void 0!=e.deferredPrompt,expression:"deferredPrompt != undefined"}],staticClass:"notification is-primary"},[n("button",{staticClass:"delete",on:{click:function(t){e.deferredPrompt=void 0}}}),e._v(" "),n("div",{staticClass:"has-text-centered"},[e._v("Add to your homescreen for fast and offline access?")]),e._v(" "),n("div",{staticClass:"has-text-centered install-button"},[n("button",{staticClass:"button is-medium",on:{click:function(t){e.deferredPrompt.prompt()}}},[n("span",{staticClass:"mdi mdi-download"}),e._v(" "),n("span",[e._v("ย Install")])])])])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"graph",staticClass:"plotly"})},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("intro-box"),e._v(" "),n("install-notification"),e._v(" "),n("div",{staticClass:"columns is-multiline"},[e.hasTalents?n("div",{staticClass:"column"},[n("h2",{staticClass:"title is-2"},[e._v("Highlights")]),e._v(" "),n("highlights")],1):e._e(),e._v(" "),n("div",{staticClass:"column is-narrow"},[n("h2",{staticClass:"title is-2"},[e._v("Top 10")]),e._v(" "),n("top-talents-box")],1)]),e._v(" "),n("Adsense",{staticClass:"adsense",attrs:{"data-ad-client":"ca-pub-6856963757796636","data-ad-slot":"3898218968"}}),e._v(" "),e.hasTalents?n("div",{staticClass:"columns is-multiline"},[n("div",{staticClass:"column is-two-thirds"},[n("h2",{staticClass:"title is-2"},[e._v("Individual Hero Statistics")]),e._v(" "),n("h3",{staticClass:"subtitle"},[e._v("Select a Hero")]),e._v(" "),n("hero-draft-grid")],1),e._v(" "),n("div",{staticClass:"column is-one-third"},[n("h2",{staticClass:"title is-2"},[e._v(e._s(e.getHero(e.selectedActor))+" Statistics")]),e._v(" "),n("hero-talent-table")],1)]):e._e(),e._v(" "),n("div",{staticClass:"box"},[n("h2",{staticClass:"title is-2"},[e._v("Hero Balance Overview")]),e._v(" "),n("h3",{staticClass:"subtitle is-hidden-desktop"},[e._v("Best viewed on a large screen")]),e._v(" "),n("win-pick-scatter")],1),e._v(" "),n("Adsense",{staticClass:"adsense",attrs:{"data-ad-client":"ca-pub-6856963757796636","data-ad-slot":"4801023518"}}),e._v(" "),n("div",[n("h2",{staticClass:"title is-2"},[e._v("All Hero Statistics")]),e._v(" "),n("report-table")],1)],1)},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("hero-image",{staticClass:"is-64x64",attrs:{actor:e.selectedActor}})],1),e._v(" "),n("b-table",{attrs:{data:e.heroReport,"mobile-cards":!1},scopedSlots:e._u([{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Talent",label:"Talent"}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("span",[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)]),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Win Rate",sortable:"",numeric:""}},[100*e.playersPerMatch*t.row.Count/e.totalPicks<.5?n("span",{staticClass:"tag is-warning mdi mdi-gauge-empty mdi-18px",attrs:{title:"Very low pick rate"}}):e._e(),e._v("\n "+e._s(Math.round(100*t.row.Winner))+"%\n ")])]}}])})],1)},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},function(e,t,n){"use strict";e.exports={step:{valType:"enumerated",role:"info",values:["month","year","day","hour","minute","second","all"],dflt:"month",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",role:"info",values:["backward","todate"],dflt:"backward",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",role:"info",min:0,dflt:1,description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the button."}}},function(e,t,n){"use strict";e.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskColor:"rgba(0,0,0,0.4)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},function(e,t,n){"use strict";var r=n(17),a=n(129),i=n(10).extendFlat,o=n(10).extendDeep,s=n(104),l=n(35),c={_isLinkedToArray:"step",method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the slider"},value:{valType:"string",role:"info",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}};e.exports={_isLinkedToArray:"slider",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",role:"info",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:c,lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the x position (in normalized coordinates) of the slider."},pad:o({},a,{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",role:"info",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:s.transition.easing.values,role:"info",dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",role:"info",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,role:"info",description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:i({},r,{description:"Sets the font of the current value label text."})},font:i({},r,{description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",role:"style",dflt:l.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:l.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:l.railBorderColor,role:"style",description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:l.railBorderWidth,role:"style",description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:l.tickLength,role:"style",description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:l.tickColor,role:"style",description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:l.minorTickLength,role:"style",description:"Sets the length in pixels of minor step tick marks"}}},function(e,t,n){"use strict";e.exports={t:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the left side of the component."}}},function(e,t,n){"use strict";var r=n(17),a=n(24),i=n(10).extendFlat,o=n(129),s={_isLinkedToArray:"button",method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},label:{valType:"string",role:"info",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}};e.exports={_isLinkedToArray:"updatemenu",_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",role:"info",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",role:"info",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",role:"info",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",role:"info",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",role:"info",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:s,x:{valType:"number",min:-2,max:3,dflt:-.05,role:"style",description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",role:"info",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:i({},o,{description:"Sets the padding around the buttons or dropdown menu."}),font:i({},r,{description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",role:"style",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:a.borderLine,role:"style",description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the border enclosing the update menu."}}},function(e,t,n){"use strict";var r=n(14);e.exports={_isLinkedToArray:"image",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",role:"info",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",role:"info",dflt:0,description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width."].join(" ")},sizey:{valType:"number",role:"info",dflt:0,description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",role:"info",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",role:"info",min:0,max:1,dflt:1,description:"Sets the opacity of the image."},x:{valType:"any",role:"info",dflt:0,description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",role:"info",dflt:0,description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",role:"info",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",role:"info",description:["Sets the images's x coordinate axis.","If set to a x axis id (e.g. *x* or *x2*), the `x` position","refers to an x data coordinate","If set to *paper*, the `x` position refers to the distance from","the left of plot in normalized coordinates","where *0* (*1*) corresponds to the left (right)."].join(" ")},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",role:"info",description:["Sets the images's y coordinate axis.","If set to a y axis id (e.g. *y* or *y2*), the `y` position","refers to a y data coordinate.","If set to *paper*, the `y` position refers to the distance from","the bottom of the plot in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}}},function(e,t,n){"use strict";var r=n(36),a=n(40).line,i=n(101).dash,o=n(10).extendFlat;e.exports={_isLinkedToArray:"shape",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],role:"info",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","If *path*, draw a custom SVG path using `path`."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:"Specifies whether shapes are drawn below or above traces."},xref:o({},r.xref,{description:["Sets the shape's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the left (right) side.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, then you must convert","the date to unix time in milliseconds."].join(" ")}),x0:{valType:"any",role:"info",description:["Sets the shape's starting x position.","See `type` for more info."].join(" ")},x1:{valType:"any",role:"info",description:["Sets the shape's end x position.","See `type` for more info."].join(" ")},yref:o({},r.yref,{description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}),y0:{valType:"any",role:"info",description:["Sets the shape's starting y position.","See `type` for more info."].join(" ")},y1:{valType:"any",role:"info",description:["Sets the shape's end y position.","See `type` for more info."].join(" ")},path:{valType:"string",role:"info",description:["For `type` *path* - a valid SVG path but with the pixel values","replaced by data values. There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",description:"Sets the opacity of the shape."},line:{color:a.color,width:a.width,dash:i,role:"info"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",description:["Sets the color filling the shape's interior."].join(" ")}}},function(e,t,n){"use strict";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},function(e,t,n){"use strict";var r=n(0),a=n(3);e.exports=function(e,t,n,i){i("opacity");var o=i("bgcolor"),s=i("bordercolor"),l=a.opacity(s);i("borderpad");var c=i("borderwidth"),u=i("showarrow");i("text",u?" ":"new text"),i("textangle"),r.coerceFont(i,"font",n.font),i("width"),i("align"),i("height")&&i("valign"),u&&(i("arrowcolor",l?t.bordercolor:a.defaultLine),i("arrowhead"),i("arrowsize"),i("arrowwidth",2*(l&&c||1)),i("standoff"));var d=i("hovertext"),f=n.hoverlabel||{};if(d){var h=i("hoverlabel.bgcolor",f.bgcolor||(a.opacity(o)?a.rgb(o):a.defaultLine)),p=i("hoverlabel.bordercolor",f.bordercolor||a.contrast(h));r.coerceFont(i,"hoverlabel.font",{family:f.font.family,size:f.font.size,color:f.font.color||p})}i("captureevents",!!d)}},function(e,t,n){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0},{path:"M2,2V-2H-2V2Z",backoff:0}]},function(e,t,n){"use strict";var r=n(1),a=n(4),i=n(0),o=n(7),s=n(3),l=n(12),c=n(216);e.exports=function(e,t){e.each(function(e){var t=r.select(this).selectAll("g.layers").data([0]);t.enter().append("g").classed("layers",!0),t.style("opacity",e[0].trace.opacity),t.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),t.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var n=t.selectAll("g.legendsymbols").data([e]);n.enter().append("g").classed("legendsymbols",!0),n.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)}).each(function(e){var t=e[0].trace,n=t.marker||{},i=n.line||{},o=r.select(this).select("g.legendpoints").selectAll("path.legendbar").data(a.traceIs(t,"bar")?[e]:[]);o.enter().append("path").classed("legendbar",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),o.exit().remove(),o.each(function(e){var t=r.select(this),a=e[0],o=(a.mlw+1||i.width+1)-1;t.style("stroke-width",o+"px").call(s.fill,a.mc||n.color),o&&t.call(s.stroke,a.mlc||i.color)})}).each(function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(a.traceIs(t,"box")&&t.visible?[e]:[]);n.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.each(function(){var e=t.line.width,n=r.select(this);n.style("stroke-width",e+"px").call(s.fill,t.fillcolor),e&&n.call(s.stroke,t.line.color)})}).each(function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendpie").data(a.traceIs(t,"pie")&&t.visible?[e]:[]);n.enter().append("path").classed("legendpie",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.size()&&n.call(c,e[0],t)}).each(function(e){var t=e[0].trace,n=t.visible&&t.fill&&"none"!==t.fill,a=l.hasLines(t);t&&t._module&&"contourcarpet"===t._module.name&&(a=t.contours.showlines,n="fill"===t.contours.coloring);var i=r.select(this).select(".legendfill").selectAll("path").data(n?[e]:[]);i.enter().append("path").classed("js-fill",!0),i.exit().remove(),i.attr("d","M5,0h30v6h-30z").call(o.fillGroupStyle);var s=r.select(this).select(".legendlines").selectAll("path").data(a?[e]:[]);s.enter().append("path").classed("js-line",!0).attr("d","M5,0h30"),s.exit().remove(),s.call(o.lineGroupStyle)}).each(function(e){var n,a,s=e[0],c=s.trace,u=l.hasMarkers(c),d=l.hasText(c),f=l.hasLines(c);function h(e,t,n){var r=i.nestedProperty(c,e).get(),a=Array.isArray(r)&&t?t(r):r;if(n){if(an[1])return n[1]}return a}function p(e){return e[0]}if(u||d||f){var v={},g={};u&&(v.mc=h("marker.color",p),v.mo=h("marker.opacity",i.mean,[.2,1]),v.ms=h("marker.size",i.mean,[2,16]),v.mlc=h("marker.line.color",p),v.mlw=h("marker.line.width",i.mean,[0,5]),g.marker={sizeref:1,sizemin:1,sizemode:"diameter"}),f&&(g.line={width:h("line.width",p,[0,10])}),d&&(v.tx="Aa",v.tp=h("textposition",p),v.ts=10,v.tc=h("textfont.color",p),v.tf=h("textfont.family",p)),n=[i.minExtend(s,v)],a=i.minExtend(c,g)}var m=r.select(this).select("g.legendpoints"),y=m.selectAll("path.scatterpts").data(u?n:[]);y.enter().append("path").classed("scatterpts",!0).attr("transform","translate(20,0)"),y.exit().remove(),y.call(o.pointStyle,a,t),u&&(n[0].mrc=3);var b=m.selectAll("g.pointtext").data(d?n:[]);b.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),b.exit().remove(),b.selectAll("text").call(o.textPointStyle,a,t)})}},function(e,t,n){"use strict";var r=n(17),a=n(24),i=n(10).extendFlat;e.exports={bgcolor:{valType:"color",role:"style",description:"Sets the legend background color."},bordercolor:{valType:"color",dflt:a.defaultLine,role:"style",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",description:"Sets the width (in px) of the border enclosing the legend."},font:i({},r,{description:"Sets the font used to text the legend items."}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",role:"info",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],role:"style",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,role:"style",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:1.02,role:"style",description:"Sets the x position (in normalized coordinates) of the legend."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the legend."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend."].join(" ")}}},function(e,t,n){"use strict";var r=n(1),a=n(0),i=n(9),o=n(18),s=n(14);function l(e,t,n,r,a){var i=e._fullLayout._modules;t.plot&&t.plot.selectAll("g:not(.scatterlayer)").selectAll("g.trace").remove();for(var o=0;or||c===a||co||t&&l(e))}:function(e,s){var l=e[0],c=e[1];if(l===a||lr||c===a||co)return!1;var u,d,f,h,p,v=t.length,g=t[0][0],m=t[0][1],y=0;for(u=1;uMath.max(d,g)||c>Math.max(f,m)))if(cu||Math.abs(r(o,f))>a)return!0;return!1};i.filter=function(e,t){var n=[e[0]],r=0,a=0;function i(i){e.push(i);var s=n.length,l=r;n.splice(a+1);for(var c=l+1;c1&&i(e.pop());return{addPt:i,raw:e,filtered:n}}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,a){n("hoverlabel.bgcolor",(a=a||{}).bgcolor),n("hoverlabel.bordercolor",a.bordercolor),r.coerceFont(n,"hoverlabel.font",a.font)}},function(e,t,n){"use strict";var r=n(2),a=n(29),i=n(20),o=n(14),s=n(257);e.exports=function(e){var t=e._fullLayout;if((t._has("cartesian")||t._has("gl2d"))&&!e._context.staticPlot){Object.keys(t._plots||{}).sort(function(e,n){if((t._plots[e].mainplot&&!0)===(t._plots[n].mainplot&&!0)){var r=e.split("y"),a=n.split("y");return r[0]===a[0]?Number(r[1]||1)-Number(a[1]||1):Number(r[0]||1)-Number(a[0]||1)}return t._plots[e].mainplot?1:-1}).forEach(function(n){var l=t._plots[n],c=l.xaxis,u=l.yaxis,d=(c._linepositions[n]||[])[3],f=(u._linepositions[n]||[])[3],h=o.DRAGGERSIZE;if(r(d)&&"top"===c.side&&(d-=h),r(f)&&"right"!==u.side&&(f-=h),!l.mainplot){var p=s(e,l,0,0,c._length,u._length,"ns","ew");p.onmousemove=function(t){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===n&&a.hover(e,t,n)},a.hover(e,t,n),e._fullLayout._lasthover=p,e._fullLayout._hoversubplot=n},p.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,i.unhover(e,t))},p.onclick=function(t){a.click(e,t,n)},e._context.showAxisDragHandles&&(s(e,l,-h,-h,h,h,"n","w"),s(e,l,c._length,-h,h,h,"n","e"),s(e,l,-h,u._length,h,h,"s","w"),s(e,l,c._length,u._length,h,h,"s","e"))}e._context.showAxisDragHandles&&(r(d)&&("free"===c.anchor&&(d-=t._size.h*(1-u.domain[1])),s(e,l,.1*c._length,d,.8*c._length,h,"","ew"),s(e,l,0,d,.1*c._length,h,"","w"),s(e,l,.9*c._length,d,.1*c._length,h,"","e")),r(f)&&("free"===u.anchor&&(f-=t._size.w*c.domain[0]),s(e,l,f,.1*u._length,h,.8*u._length,"ns",""),s(e,l,f,.9*u._length,h,.1*u._length,"s",""),s(e,l,f,0,h,.1*u._length,"n","")))});var n=t._hoverlayer.node();n.onmousemove=function(n){n.target=t._lasthover,a.hover(e,n,t._hoversubplot)},n.onclick=function(n){n.target=t._lasthover,a.click(e,n)},n.onmousedown=function(e){t._lasthover.onmousedown(e)}}}},function(e,t,n){var r=n(1),a=n(0).extendDeepAll,i=e.exports={version:"0.2.2"};i.Axis=function(){var e,t,n,o,s={data:[],layout:{}},l={},c={},u=r.dispatch("hover"),d={};return d.render=function(l){return function(l){t=l||t;var u=s.data,d=s.layout;("string"==typeof t||t.nodeName)&&(t=r.select(t)),t.datum(u).each(function(t,s){var l=t.slice();c={data:i.util.cloneJson(l),layout:i.util.cloneJson(d)};var u=0;l.forEach(function(e,t){e.color||(e.color=d.defaultColorRange[u],u=(u+1)%d.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:r.rgb(e.color).darker().toString()),c.data[t].color=e.color,c.data[t].strokeColor=e.strokeColor,c.data[t].strokeDash=e.strokeDash,c.data[t].strokeSize=e.strokeSize});var f=l.filter(function(e,t){var n=e.visible;return void 0===n||!0===n}),h=!1,p=f.map(function(e,t){return h=h||void 0!==e.groupId,e});if(h){var v=[],g=r.nest().key(function(e,t){return void 0!==e.groupId?e.groupId:"unstacked"}).entries(p).map(function(e,t){if("unstacked"===e.key)return e.values;var n=e.values[0].r.map(function(e,t){return 0});return e.values.forEach(function(e,t,r){e.yStack=[n],v.push(n),n=i.util.sumArrays(e.r,n)}),e.values});f=r.merge(g)}f.forEach(function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]});var m=Math.min(d.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2;m=Math.max(10,m);var y,b=[d.margin.left+m,d.margin.top+m];y=h?[0,r.max(i.util.sumArrays(i.util.arrayLast(f).r[0],i.util.arrayLast(v)))]:r.extent(i.util.flattenArray(f.map(function(e,t){return e.r}))),d.radialAxis.domain!=i.DATAEXTENT&&(y[0]=0),n=r.scale.linear().domain(d.radialAxis.domain!=i.DATAEXTENT&&d.radialAxis.domain?d.radialAxis.domain:y).range([0,m]),c.layout.radialAxis.domain=n.domain();var _,x=i.util.flattenArray(f.map(function(e,t){return e.t})),w="string"==typeof x[0];w&&(x=i.util.deduplicate(x),_=x.slice(),x=r.range(x.length),f=f.map(function(e,t){var n=e;return e.t=[x],h&&(n.yStack=e.yStack),n}));var k=f.filter(function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry}).length===f.length,T=null===d.needsEndSpacing?w||!k:d.needsEndSpacing,A=d.angularAxis.domain&&d.angularAxis.domain!=i.DATAEXTENT&&!w&&d.angularAxis.domain[0]>=0?d.angularAxis.domain:r.extent(x),M=Math.abs(x[1]-x[0]);k&&!w&&(M=0);var C=A.slice();T&&w&&(C[1]+=M);var S=d.angularAxis.ticksCount||4;S>8&&(S=S/(S/8)+S%8),d.angularAxis.ticksStep&&(S=(C[1]-C[0])/S);var L=d.angularAxis.ticksStep||(C[1]-C[0])/(S*(d.minorTicks+1));_&&(L=Math.max(Math.round(L),1)),C[2]||(C[2]=L);var O=r.range.apply(this,C);if(O=O.map(function(e,t){return parseFloat(e.toPrecision(12))}),o=r.scale.linear().domain(C.slice(0,2)).range("clockwise"===d.direction?[0,360]:[360,0]),c.layout.angularAxis.domain=o.domain(),c.layout.angularAxis.endPadding=T?M:0,void 0===(e=r.select(this).select("svg.chart-root"))||e.empty()){var D=(new DOMParser).parseFromString("' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '","application/xml"),z=this.appendChild(this.ownerDocument.importNode(D.documentElement,!0));e=r.select(z)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var P,E=e.select(".chart-group"),N={fill:"none",stroke:d.tickColor},I={"font-size":d.font.size,"font-family":d.font.family,fill:d.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map(function(e,t){return" "+e+" 0 "+d.font.outlineColor}).join(",")};if(d.showLegend){P=e.select(".legend-group").attr({transform:"translate("+[m,d.margin.top]+")"}).style({display:"block"});var j=f.map(function(e,t){var n=i.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n});i.Legend().config({data:f.map(function(e,t){return e.name||"Element"+t}),legendConfig:a({},i.Legend.defaultConfig().legendConfig,{container:P,elements:j,reverseOrder:d.legend.reverseOrder})})();var R=P.node().getBBox();m=Math.min(d.width-R.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2,m=Math.max(10,m),b=[d.margin.left+m,d.margin.top+m],n.range([0,m]),c.layout.radialAxis.domain=n.domain(),P.attr("transform","translate("+[b[0]+m,b[1]-m]+")")}else P=e.select(".legend-group").style({display:"none"});e.attr({width:d.width,height:d.height}).style({opacity:d.opacity}),E.attr("transform","translate("+b+")").style({cursor:"crosshair"});var B=[(d.width-(d.margin.left+d.margin.right+2*m+(R?R.width:0)))/2,(d.height-(d.margin.top+d.margin.bottom+2*m))/2];if(B[0]=Math.max(0,B[0]),B[1]=Math.max(0,B[1]),e.select(".outer-group").attr("transform","translate("+B+")"),d.title){var F=e.select("g.title-group text").style(I).text(d.title),$=F.node().getBBox();F.attr({x:b[0]-$.width/2,y:b[1]-m-20})}var W=e.select(".radial.axis-group");if(d.radialAxis.gridLinesVisible){var V=W.selectAll("circle.grid-circle").data(n.ticks(5));V.enter().append("circle").attr({class:"grid-circle"}).style(N),V.attr("r",n),V.exit().remove()}W.select("circle.outside-circle").attr({r:m}).style(N);var H=e.select("circle.background-circle").attr({r:m}).style({fill:d.backgroundColor,stroke:d.stroke});function q(e,t){return o(e)%360+d.orientation}if(d.radialAxis.visible){var U=r.svg.axis().scale(n).ticks(5).tickSize(5);W.call(U).attr({transform:"rotate("+d.radialAxis.orientation+")"}),W.selectAll(".domain").style(N),W.selectAll("g>text").text(function(e,t){return this.textContent+d.radialAxis.ticksSuffix}).style(I).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===d.radialAxis.tickOrientation?"rotate("+-d.radialAxis.orientation+") translate("+[0,I["font-size"]]+")":"translate("+[0,I["font-size"]]+")"}}),W.selectAll("g>line").style({stroke:"black"})}var G=e.select(".angular.axis-group").selectAll("g.angular-tick").data(O),Y=G.enter().append("g").classed("angular-tick",!0);G.attr({transform:function(e,t){return"rotate("+q(e)+")"}}).style({display:d.angularAxis.visible?"block":"none"}),G.exit().remove(),Y.append("line").classed("grid-line",!0).classed("major",function(e,t){return t%(d.minorTicks+1)==0}).classed("minor",function(e,t){return!(t%(d.minorTicks+1)==0)}).style(N),Y.selectAll(".minor").style({stroke:d.minorTickColor}),G.select("line.grid-line").attr({x1:d.tickLength?m-d.tickLength:0,x2:m}).style({display:d.angularAxis.gridLinesVisible?"block":"none"}),Y.append("text").classed("axis-text",!0).style(I);var K=G.select("text.axis-text").attr({x:m+d.labelOffset,dy:".35em",transform:function(e,t){var n=q(e),r=m+d.labelOffset,a=d.angularAxis.tickOrientation;return"horizontal"==a?"rotate("+-n+" "+r+" 0)":"radial"==a?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:d.angularAxis.labelsVisible?"block":"none"}).text(function(e,t){return t%(d.minorTicks+1)!=0?"":_?_[e]+d.angularAxis.ticksSuffix:e+d.angularAxis.ticksSuffix}).style(I);d.angularAxis.rewriteTicks&&K.text(function(e,t){return t%(d.minorTicks+1)!=0?"":d.angularAxis.rewriteTicks(this.textContent,t)});var X=r.max(E.selectAll(".angular-tick text")[0].map(function(e,t){return e.getCTM().e+e.getBBox().width}));P.attr({transform:"translate("+[m+X,d.margin.top]+")"});var Z=e.select("g.geometry-group").selectAll("g").size()>0,J=e.select("g.geometry-group").selectAll("g.geometry").data(f);if(J.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),J.exit().remove(),f[0]||Z){var Q=[];f.forEach(function(e,t){var r={};r.radialScale=n,r.angularScale=o,r.container=J.filter(function(e,n){return n==t}),r.geometry=e.geometry,r.orientation=d.orientation,r.direction=d.direction,r.index=t,Q.push({data:e,geometryConfig:r})});var ee=[];r.nest().key(function(e,t){return void 0!==e.data.groupId||"unstacked"}).entries(Q).forEach(function(e,t){"unstacked"===e.key?ee=ee.concat(e.values.map(function(e,t){return[e]})):ee.push(e.values)}),ee.forEach(function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map(function(e,t){return a(i[n].defaultConfig(),e)});i[n]().config(r)()})}var te,ne,re=e.select(".guides-group"),ae=e.select(".tooltips-group"),ie=i.tooltipPanel().config({container:ae,fontSize:8})(),oe=i.tooltipPanel().config({container:ae,fontSize:8})(),se=i.tooltipPanel().config({container:ae,hasTick:!0})();if(!w){var le=re.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});E.on("mousemove.angular-guide",function(e,t){var n=i.util.getMousePos(H).angle;le.attr({x2:-m,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-d.orientation)%360;te=o.invert(r);var a=i.util.convertToCartesian(m+12,n+180);ie.text(i.util.round(te)).move([a[0]+b[0],a[1]+b[1]])}).on("mouseout.angular-guide",function(e,t){re.select("line").style({opacity:0})})}var ce=re.select("circle").style({stroke:"grey",fill:"none"});E.on("mousemove.radial-guide",function(e,t){var r=i.util.getMousePos(H).radius;ce.attr({r:r}).style({opacity:.5}),ne=n.invert(i.util.getMousePos(H).radius);var a=i.util.convertToCartesian(r,d.radialAxis.orientation);oe.text(i.util.round(ne)).move([a[0]+b[0],a[1]+b[1]])}).on("mouseout.radial-guide",function(e,t){ce.style({opacity:0}),se.hide(),ie.hide(),oe.hide()}),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",function(t,n){var a=r.select(this),o=a.style("fill"),s="black",l=a.style("opacity")||1;if(a.attr({"data-opacity":l}),"none"!=o){a.attr({"data-fill":o}),s=r.hsl(o).darker().toString(),a.style({fill:s,opacity:1});var c={t:i.util.round(t[0]),r:i.util.round(t[1])};w&&(c.t=_[t[0]]);var u="t: "+c.t+", r: "+c.r,d=this.getBoundingClientRect(),f=e.node().getBoundingClientRect(),h=[d.left+d.width/2-B[0]-f.left,d.top+d.height/2-B[1]-f.top];se.config({color:s}).text(u),se.move(h)}else o=a.style("stroke"),a.attr({"data-stroke":o}),s=r.hsl(o).darker().toString(),a.style({stroke:s,opacity:1})}).on("mousemove.tooltip",function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&se.show()}).on("mouseout.tooltip",function(e,t){se.hide();var n=r.select(this),a=n.attr("data-fill");a?n.style({fill:a,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})})})}(l),this},d.config=function(e){if(!arguments.length)return s;var t=i.util.cloneJson(e);return t.data.forEach(function(e,t){s.data[t]||(s.data[t]={}),a(s.data[t],i.Axis.defaultConfig().data[0]),a(s.data[t],e)}),a(s.layout,i.Axis.defaultConfig().layout),a(s.layout,t.layout),this},d.getLiveConfig=function(){return c},d.getinputConfig=function(){return l},d.radialScale=function(e){return n},d.angularScale=function(e){return o},d.svg=function(){return e},r.rebind(d,u,"on"),d},i.Axis.defaultConfig=function(e,t){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},i.util={},i.DATAEXTENT="dataExtent",i.AREA="AreaChart",i.LINE="LinePlot",i.DOT="DotPlot",i.BAR="BarChart",i.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},i.util._extend=function(e,t){for(var n in e)t[n]=e[n]},i.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},i.util.dataFromEquation2=function(e,t){var n=t||6;return r.range(0,360+n,n).map(function(t,n){var r=t*Math.PI/180;return[t,e(r)]})},i.util.dataFromEquation=function(e,t,n){var a=t||6,i=[],o=[];r.range(0,360+a,a).forEach(function(t,n){var r=t*Math.PI/180,a=e(r);i.push(t),o.push(a)});var s={t:i,r:o};return n&&(s.name=n),s},i.util.ensureArray=function(e,t){if(void 0===e)return null;var n=[].concat(e);return r.range(t).map(function(e,t){return n[t]||n[0]})},i.util.fillArrays=function(e,t,n){return t.forEach(function(t,r){e[t]=i.util.ensureArray(e[t],n)}),e},i.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},i.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},i.util.sumArrays=function(e,t){return r.zip(e,t).map(function(e,t){return r.sum(e)})},i.util.arrayLast=function(e){return e[e.length-1]},i.util.arrayEqual=function(e,t){for(var n=Math.max(e.length,t.length,1);n-- >=0&&e[n]===t[n];);return-2===n},i.util.flattenArray=function(e){for(var t=[];!i.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},i.util.deduplicate=function(e){return e.filter(function(e,t,n){return n.indexOf(e)==t})},i.util.convertToCartesian=function(e,t){var n=t*Math.PI/180;return[e*Math.cos(n),e*Math.sin(n)]},i.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},i.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],a=t[1],i={};return i.x=n,i.y=a,i.pos=t,i.angle=180*(Math.atan2(a,n)+Math.PI)/Math.PI,i.radius=Math.sqrt(n*n+a*a),i},i.util.duplicatesCount=function(e){for(var t,n={},r={},a=0,i=e.length;a0)){var l=r.select(this.parentNode).selectAll("path.line").data([0]);l.enter().insert("path"),l.attr({class:"line",d:u(s),transform:function(e,n){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return p.fill(n,a,i)},"fill-opacity":0,stroke:function(e,t){return p.stroke(n,a,i)},"stroke-width":function(e,t){return p["stroke-width"](n,a,i)},"stroke-dasharray":function(e,t){return p["stroke-dasharray"](n,a,i)},opacity:function(e,t){return p.opacity(n,a,i)},display:function(e,t){return p.display(n,a,i)}})}};var d=t.angularScale.range(),f=Math.abs(d[1]-d[0])/o[0].length*Math.PI/180,h=r.svg.arc().startAngle(function(e){return-f/2}).endAngle(function(e){return f/2}).innerRadius(function(e){return t.radialScale(l+(e[2]||0))}).outerRadius(function(e){return t.radialScale(l+(e[2]||0))+t.radialScale(e[1])});c.arc=function(e,n,a){r.select(this).attr({class:"mark arc",d:h,transform:function(e,n){return"rotate("+(t.orientation+s(e[0])+90)+")"}})};var p={fill:function(t,n,r){return e[r].data.color},stroke:function(t,n,r){return e[r].data.strokeColor},"stroke-width":function(t,n,r){return e[r].data.strokeSize+"px"},"stroke-dasharray":function(t,r,a){return n[e[a].data.strokeDash]},opacity:function(t,n,r){return e[r].data.opacity},display:function(t,n,r){return void 0===e[r].data.visible||e[r].data.visible?"block":"none"}},v=r.select(this).selectAll("g.layer").data(o);v.enter().append("g").attr({class:"layer"});var g=v.selectAll("path.mark").data(function(e,t){return e});g.enter().append("path").attr({class:"mark"}),g.style(p).each(c[t.geometryType]),g.exit().remove(),v.exit().remove()})}return o.config=function(t){return arguments.length?(t.forEach(function(t,n){e[n]||(e[n]={}),a(e[n],i.PolyChart.defaultConfig()),a(e[n],t)}),this):e},o.getColorScale=function(){},r.rebind(o,t,"on"),o},i.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}}},i.BarChart=function(){return i.PolyChart()},i.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},i.AreaChart=function(){return i.PolyChart()},i.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},i.DotPlot=function(){return i.PolyChart()},i.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},i.LinePlot=function(){return i.PolyChart()},i.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},i.Legend=function(){var e=i.Legend.defaultConfig(),t=r.dispatch("hover");function n(){var t=e.legendConfig,i=e.data.map(function(e,n){return[].concat(e).map(function(e,r){var i=a({},t.elements[n]);return i.name=e,i.color=[].concat(t.elements[n].color)[r],i})}),o=r.merge(i);o=o.filter(function(e,n){return t.elements[n]&&(t.elements[n].visibleInLegend||void 0===t.elements[n].visibleInLegend)}),t.reverseOrder&&(o=o.reverse());var s=t.container;("string"==typeof s||s.nodeName)&&(s=r.select(s));var l=o.map(function(e,t){return e.color}),c=t.fontSize,u=null==t.isContinuous?"number"==typeof o[0]:t.isContinuous,d=u?t.height:c*o.length,f=s.classed("legend-group",!0).selectAll("svg").data([0]),h=f.enter().append("svg").attr({width:300,height:d+c,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});h.append("g").classed("legend-axis",!0),h.append("g").classed("legend-marks",!0);var p=r.range(o.length),v=r.scale[u?"linear":"ordinal"]().domain(p).range(l),g=r.scale[u?"linear":"ordinal"]().domain(p)[u?"range":"rangePoints"]([0,d]);if(u){var m=f.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(l);m.enter().append("stop"),m.attr({offset:function(e,t){return t/(l.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),f.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var y=f.select(".legend-marks").selectAll("path.legend-mark").data(o);y.enter().append("path").classed("legend-mark",!0),y.attr({transform:function(e,t){return"translate("+[c/2,g(t)+c/2]+")"},d:function(e,t){var n,a,i,o=e.symbol;return i=3*(a=c),"line"===(n=o)?"M"+[[-a/2,-a/12],[a/2,-a/12],[a/2,a/12],[-a/2,a/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(n)?r.svg.symbol().type(n).size(i)():r.svg.symbol().type("square").size(i)()},fill:function(e,t){return v(t)}}),y.exit().remove()}var b=r.svg.axis().scale(g).orient("right"),_=f.select("g.legend-axis").attr({transform:"translate("+[u?t.colorBandWidth:c,c/2]+")"}).call(b);return _.selectAll(".domain").style({fill:"none",stroke:"none"}),_.selectAll("line").style({fill:"none",stroke:u?t.textColor:"none"}),_.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text(function(e,t){return o[t].name}),n}return n.config=function(t){return arguments.length?(a(e,t),this):e},r.rebind(n,t,"on"),n},i.Legend.defaultConfig=function(e,t){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},i.tooltipPanel=function(){var e,t,n,o={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},s="tooltip-"+i.tooltipPanel.uid++,l=10,c=function(){var r=(e=o.container.selectAll("g."+s).data([0])).enter().append("g").classed(s,!0).style({"pointer-events":"none",display:"none"});return n=r.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=r.append("text").attr({dx:o.padding+l,dy:.3*+o.fontSize}),c};return c.text=function(a){var i=r.hsl(o.color).l,s=i>=.5?"#aaa":"white",u=i>=.5?"black":"white",d=a||"";t.style({fill:u,"font-size":o.fontSize+"px"}).text(d);var f=o.padding,h=t.node().getBBox(),p={fill:o.color,stroke:s,"stroke-width":"2px"},v=h.width+2*f+l,g=h.height+2*f;return n.attr({d:"M"+[[l,-g/2],[l,-g/4],[o.hasTick?0:l,0],[l,g/4],[l,g/2],[v,g/2],[v,-g/2]].join("L")+"Z"}).style(p),e.attr({transform:"translate("+[l,-g/2+2*f]+")"}),e.style({display:"block"}),c},c.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),c},c.hide=function(){if(e)return e.style({display:"none"}),c},c.show=function(){if(e)return e.style({display:"block"}),c},c.config=function(e){return a(o,e),c},c},i.tooltipPanel.uid=1,i.adapter={},i.adapter.plotly=function(){var e={convert:function(e,t){var n={};if(e.data&&(n.data=e.data.map(function(e,n){var r=a({},e);return[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]].forEach(function(e,n){i.util.translator.apply(null,e.concat(t))}),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",!0===r.dotVisible?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r}),!t&&e.layout&&"stack"===e.layout.barmode)){var o=i.util.duplicates(n.data.map(function(e,t){return e.geometry}));n.data.forEach(function(e,t){var r=o.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)})}if(e.layout){var s=a({},e.layout);if([[s,["plot_bgcolor"],["backgroundColor"]],[s,["showlegend"],["showLegend"]],[s,["radialaxis"],["radialAxis"]],[s,["angularaxis"],["angularAxis"]],[s.angularaxis,["showline"],["gridLinesVisible"]],[s.angularaxis,["showticklabels"],["labelsVisible"]],[s.angularaxis,["nticks"],["ticksCount"]],[s.angularaxis,["tickorientation"],["tickOrientation"]],[s.angularaxis,["ticksuffix"],["ticksSuffix"]],[s.angularaxis,["range"],["domain"]],[s.angularaxis,["endpadding"],["endPadding"]],[s.radialaxis,["showline"],["gridLinesVisible"]],[s.radialaxis,["tickorientation"],["tickOrientation"]],[s.radialaxis,["ticksuffix"],["ticksSuffix"]],[s.radialaxis,["range"],["domain"]],[s.angularAxis,["showline"],["gridLinesVisible"]],[s.angularAxis,["showticklabels"],["labelsVisible"]],[s.angularAxis,["nticks"],["ticksCount"]],[s.angularAxis,["tickorientation"],["tickOrientation"]],[s.angularAxis,["ticksuffix"],["ticksSuffix"]],[s.angularAxis,["range"],["domain"]],[s.angularAxis,["endpadding"],["endPadding"]],[s.radialAxis,["showline"],["gridLinesVisible"]],[s.radialAxis,["tickorientation"],["tickOrientation"]],[s.radialAxis,["ticksuffix"],["ticksSuffix"]],[s.radialAxis,["range"],["domain"]],[s.font,["outlinecolor"],["outlineColor"]],[s.legend,["traceorder"],["reverseOrder"]],[s,["labeloffset"],["labelOffset"]],[s,["defaultcolorrange"],["defaultColorRange"]]].forEach(function(e,n){i.util.translator.apply(null,e.concat(t))}),t?(void 0!==s.tickLength&&(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&&(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&&void 0!==s.angularAxis.ticklen&&(s.tickLength=s.angularAxis.ticklen),s.angularAxis&&void 0!==s.angularAxis.tickcolor&&(s.tickColor=s.angularAxis.tickcolor)),s.legend&&"boolean"!=typeof s.legend.reverseOrder&&(s.legend.reverseOrder="normal"!=s.legend.reverseOrder),s.legend&&"boolean"==typeof s.legend.traceorder&&(s.legend.traceorder=s.legend.traceorder?"reversed":"normal",delete s.legend.reverseOrder),s.margin&&void 0!==s.margin.t){var l=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],u={};r.entries(s.margin).forEach(function(e,t){u[c[l.indexOf(e.key)]]=e.value}),s.margin=u}t&&(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),n.layout=s}return n}};return e}},function(e,t,n){"use strict";var r=n(0),a=n(111);var i={add:function(e,t,n,r,i){var o,s;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},s=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(s,e.undoQueue.queue.length-s,o),e.undoQueue.index+=1):o=e.undoQueue.queue[s-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(n),o.redo.calls.push(r),o.redo.args.push(i)),e.undoQueue.queue.length>a.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.undo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n1)};d(t.width)&&d(t.height)||u(new Error("Height and width should be pixel values."));var f=s(e,{format:"png",height:t.height,width:t.width}),h=f.gd;h.style.position="absolute",h.style.left="-5000px",document.body.appendChild(h);var p=o.getRedrawFunc(h);a.plot(h,f.data,f.layout,f.config).then(p).then(function(){var e=o.getDelay(h._fullLayout);return new Promise(function(n,r){setTimeout(function(){var e=l(h),a=document.createElement("canvas");a.id=i.randstr(),c({format:t.format,width:h._fullLayout.width,height:h._fullLayout.height,canvas:a,svg:e,promise:!0}).then(function(e){h&&document.body.removeChild(h),n(e)}).catch(function(e){r(e)})},e)})}).then(function(e){n(e)}).catch(function(e){u(e)})})}},function(e,t,n){"use strict";t.manage=n(274)},function(e,t,n){"use strict";var r=n(2),a=n(0);e.exports=function(e,t,n,i){var o=i.counterAxes||[],s=i.overlayableAxes||[],l=i.letter;"free"===a.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:r(e.position)?"free":o[0]||"free"}},"anchor")&&n("position"),a.coerce(e,t,{side:{valType:"enumerated",values:"x"===l?["bottom","top"]:["left","right"],dflt:"x"===l?"bottom":"left"}},"side");var c=!1;if(s.length&&(c=a.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(s),dflt:!1}},"overlaying")),!c){var u=n("domain");u[0]>u[1]-.01&&(t.domain=[0,1]),a.noneOrAll(e.domain,t.domain,[0,1])}return t}},function(e,t,n){"use strict";var r=n(1),a=n(2),i=n(0),o=i.cleanNumber,s=i.ms2DateTime,l=i.dateTime2ms,c=i.ensureNumber,u=n(15),d=u.FP_SAFE,f=u.BADNUM,h=n(14),p=n(18);function v(e){return Math.pow(10,e)}e.exports=function(e,t){t=t||{};var n=10;function u(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var a=e.range[0],i=e.range[1];return.5*(a+i-3*n*Math.abs(a-i))}return f}function g(t,n,r){var i=l(t,r||e.calendar);if(i===f){if(!a(t))return f;i=l(new Date(+t))}return i}function m(t,n,r){return s(t,n,r||e.calendar)}function y(t){return e._categories[Math.round(t)]}function b(t){if(e._categoriesMap){var n=e._categoriesMap[t];if(void 0!==n)return n}if(a(t))return+t}function _(t){return a(t)?r.round(e._b+e._m*t,2):f}function x(t){return(t-e._b)/e._m}e.c2l="log"===e.type?u:c,e.l2c="log"===e.type?v:c,e.l2p=_,e.p2l=x,e.c2p="log"===e.type?function(e,t){return _(u(e,t))}:_,e.p2c="log"===e.type?function(e){return v(x(e))}:x,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=o,e.c2d=e.c2r=e.l2d=e.l2r=c,e.d2p=e.r2p=function(t){return e.l2p(o(t))},e.p2d=e.p2r=x,e.cleanPos=c):"log"===e.type?(e.d2r=e.d2l=function(e,t){return u(o(e),t)},e.r2d=e.r2c=function(e){return v(o(e))},e.d2c=e.r2l=o,e.c2d=e.l2r=c,e.c2r=u,e.l2d=v,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return v(x(e))},e.r2p=function(t){return e.l2p(o(t))},e.p2r=x,e.cleanPos=c):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=g,e.c2d=e.c2r=e.l2d=e.l2r=m,e.d2p=e.r2p=function(t,n,r){return e.l2p(g(t,0,r))},e.p2d=e.p2r=function(e,t,n){return m(x(e),t,n)},e.cleanPos=function(t){return i.cleanDate(t,f,e.calendar)}):"category"===e.type&&(e.d2c=e.d2l=function(t){if(null!==t&&void 0!==t){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push(t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return f},e.r2d=e.c2d=e.l2d=y,e.d2r=e.d2l_noadd=b,e.r2c=function(t){var n=b(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=c,e.r2l=b,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return y(x(e))},e.r2p=e.d2p,e.p2r=x,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:c(e)}),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.cleanRange=function(t){t||(t="range");var n,r,o=i.nestedProperty(e,t).get(),s=(e._id||"x").charAt(0);if(r=(r="date"===e.type?i.dfltRange(e.calendar):"y"===s?h.DFLTRANGEY:h.DFLTRANGEX).slice(),o&&2===o.length)for("date"===e.type&&(o[0]=i.cleanDate(o[0],f,e.calendar),o[1]=i.cleanDate(o[1],f,e.calendar)),n=0;n<2;n++)if("date"===e.type){if(!i.isDateTime(o[n],e.calendar)){e[t]=r;break}if(e.r2l(o[0])===e.r2l(o[1])){var l=i.constrain(e.r2l(o[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);o[0]=e.l2r(l-1e3),o[1]=e.l2r(l+1e3);break}}else{if(!a(o[n])){if(!a(o[1-n])){e[t]=r;break}o[n]=o[1-n]*(n?10:.1)}if(o[n]<-d?o[n]=-d:o[n]>d&&(o[n]=d),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else i.nestedProperty(e,t).set(r)},e.setScale=function(n){var r=t._size,a=e._id.charAt(0);if(e._categories||(e._categories=[]),e._categoriesMap||(e._categoriesMap={}),e.overlaying){var o=p.getFromId({_fullLayout:t},e.overlaying);e.domain=o.domain}var s=n&&e._r?"_r":"range",l=e.calendar;e.cleanRange(s);var c=e.r2l(e[s][0],l),u=e.r2l(e[s][1],l);if("y"===a?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),!isFinite(e._m)||!isFinite(e._b))throw i.notifier("Something went wrong with axis scaling","long"),t._replotting=!1,new Error("axis scaling")},e.makeCalcdata=function(t,n){var r,a,i,o="date"===e.type&&t[n+"calendar"];if(n in t)for(r=t[n],a=new Array(r.length),i=0;i2*o}(e,t)?"date":function(e){for(var t,n=Math.max(1,(e.length-1)/1e3),r=0,o=0,s=0;s2*r}(e)?"category":function(e){if(!e)return!1;for(var t=0;t=0?a.Reds:a.Blues,l.colorscale=v,s.reversescale&&(v=i(v)),s.colorscale=v)}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,a,i){var o=function(e){var t=["showexponent","showtickprefix","showticksuffix"].filter(function(t){return void 0!==e[t]});if(t.every(function(n){return e[n]===e[t[0]]})||1===t.length)return e[t[0]]}(e);if(n("tickprefix")&&n("showtickprefix",o),n("ticksuffix")&&n("showticksuffix",o),n("showticklabels")){var s=i.font||{},l=t.color===e.color?t.color:s.color;if(r.coerceFont(n,"tickfont",{family:s.family,size:s.size,color:l}),n("tickangle"),"category"!==a)n("tickformat")||"date"===a||(n("showexponent",o),n("exponentformat"),n("separatethousands"))}"category"===a||i.noHover||n("hoverformat")}},function(e,t,n){"use strict";var r=n(0),a=n(23);e.exports=function(e,t,n,i){var o=r.coerce2(e,t,a,"ticklen"),s=r.coerce2(e,t,a,"tickwidth"),l=r.coerce2(e,t,a,"tickcolor",t.color);n("ticks",i.outerTicks||o||s||l?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},function(e,t,n){"use strict";var r=n(2),a=n(0),i=n(15).ONEDAY;e.exports=function(e,t,n,o){var s="auto";"array"!==e.tickmode||"log"!==o&&"date"!==o||(e.tickmode="auto"),Array.isArray(e.tickvals)?s="array":e.dtick&&(s="linear");var l=n("tickmode",s);if("auto"===l)n("nticks");else if("linear"===l){var c="date"===o?i:1,u=n("dtick",c);if(r(u))t.dtick=u>0?Number(u):c;else if("string"!=typeof u)t.dtick=c;else{var d=u.charAt(0),f=u.substr(1);((f=r(f)?Number(f):0)<=0||!("date"===o&&"M"===d&&f===Math.round(f)||"log"===o&&"L"===d||"log"===o&&"D"===d&&(1===f||2===f)))&&(t.dtick=c)}var h="date"===o?a.dateTick0(t.calendar):0,p=n("tick0",h);"date"===o?t.tick0=a.cleanDate(p,h):r(p)&&"D1"!==u&&"D2"!==u?t.tick0=Number(p):t.tick0=h}else{void 0===n("tickvals")?t.tickmode="auto":n("ticktext")}}},function(e,t,n){"use strict";t.scales=n(25),t.defaultScale=n(164),t.attributes=n(159),t.handleDefaults=n(100),t.calc=n(154),t.hasColorscale=n(39),t.isValidScale=n(99),t.getScale=n(165),t.flipScale=n(98),t.extractScale=n(290),t.makeColorScaleFunc=n(289)},function(e,t,n){"use strict";e.exports={zauto:{valType:"boolean",role:"info",dflt:!0,description:["Determines the whether or not the color domain is computed","with respect to the input data."].join(" ")},zmin:{valType:"number",role:"info",dflt:null,description:"Sets the lower bound of color domain."},zmax:{valType:"number",role:"info",dflt:null,description:"Sets the upper bound of color domain."},colorscale:{valType:"colorscale",role:"style",description:["Sets the colorscale.","The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in z space,","use zmin and zmax"].join(" ")},autocolorscale:{valType:"boolean",role:"style",dflt:!0,description:["Determines whether or not the colorscale is picked using the sign of","the input z values."].join(" ")},reversescale:{valType:"boolean",role:"style",dflt:!1,description:"Reverses the colorscale."},showscale:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not a colorbar is displayed for this trace."].join(" ")}}},function(e,t,n){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",role:"info",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",role:"info",description:"A label by which to identify the frame"},traces:{valType:"any",role:"info",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",role:"info",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",role:"object",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",role:"object",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},function(e,t,n){"use strict";t.init2dArray=function(e,t){for(var n=new Array(e),r=0;rt}function l(e,t){return e>=t}t.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size)-1:Math.floor((e-t.start)/t.size);var c,u,d=0,f=t.length,h=0;for(u=t[t.length-1]>=t[0]?n?i:o:n?l:s;d90&&a.log("Long binary search..."),d-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var n=e.slice();n.sort(t.sorterAsc);for(var r=n.length-1,a=n[r]-n[0]||1,i=a/(r||1)/1e4,o=[n[0]],s=0;sn[s]+i&&(a=Math.min(a,n[s+1]-n[s]),o.push(n[s+1]));return{vals:o,minDiff:a}},t.roundUp=function(e,t,n){for(var r,a=0,i=t.length-1,o=0,s=n?0:1,l=n?1:0,c=n?Math.ceil:Math.floor;a1)for(var n=1;n=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function _(e,t){return y.call(e,t)}function b(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var k=/-(\w)/g,x=b(function(e){return e.replace(k,function(e,t){return t?t.toUpperCase():""})}),T=b(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),A=/\B([A-Z])/g,w=b(function(e){return e.replace(A,"-$1").toLowerCase()});var M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function C(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function L(e,t){for(var n in t)e[n]=t[n];return e}function B(e){for(var t={},n=0;n0,X=q&&q.indexOf("edge/")>0,J=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===K),Z=(q&&/chrome\/\d+/.test(q),{}.watch),Q=!1;if(H)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===$&&($=!H&&!G&&void 0!==e&&"server"===e.process.env.VUE_ENV),$},ne=H&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var ae,oe="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);ae="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ie=S,le=0,se=function(){this.id=le++,this.subs=[]};se.prototype.addSub=function(e){this.subs.push(e)},se.prototype.removeSub=function(e){m(this.subs,e)},se.prototype.depend=function(){se.target&&se.target.addDep(this)},se.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!_(a,"default"))i=!1;else if(""===i||i===w(e)){var s=je(String,a.type);(s<0||l0&&(ct((c=e(c,(n||"")+"_"+s))[0])&&ct(d)&&(r[u]=ve(d.text+c[0].text),c.shift()),r.push.apply(r,c)):l(c)?ct(d)?r[u]=ve(d.text+c):""!==c&&r.push(ve(c)):ct(c)&&ct(d)?r[u]=ve(d.text+c.text):(i(t._isVList)&&o(c.tag)&&a(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+s+"__"),r.push(c)));return r}(e):void 0}function ct(e){return o(e)&&o(e.text)&&!1===e.isComment}function ut(e,t){return(e.__esModule||oe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function dt(e){return e.isComment&&e.asyncFactory}function ft(e){if(Array.isArray(e))for(var t=0;tLt&&Tt[n].id>e.id;)n--;Tt.splice(n+1,0,e)}else Tt.push(e);Mt||(Mt=!0,Qe(Bt))}}(this)},Wt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Fe(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Wt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Wt.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Wt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var zt={enumerable:!0,configurable:!0,get:S,set:S};function Ot(e,t,n){zt.get=function(){return this[t][n]},zt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,zt)}function Pt(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},a=e.$options._propKeys=[];e.$parent&&ke(!1);var o=function(o){a.push(o);var i=Ne(o,t,n,e);Me(r,o,i),o in e||Ot(e,"_props",o)};for(var i in t)o(i);ke(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?S:M(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return Fe(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,a=(e.$options.methods,n.length);for(;a--;){var o=n[a];0,r&&_(r,o)||(void 0,36!==(i=(o+"").charCodeAt(0))&&95!==i&&Ot(e,"_data",o))}var i;we(t,!0)}(e):we(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=te();for(var a in t){var o=t[a],i="function"==typeof o?o:o.get;0,r||(n[a]=new Wt(e,i||S,S,Dt)),a in e||Rt(e,a,o)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var a=0;a=0||n.indexOf(e[a])<0)&&r.push(e[a]);return r}return e}function dn(e){this._init(e)}function fn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,a=e._Ctor||(e._Ctor={});if(a[r])return a[r];var o=e.name||n.options.name;var i=function(e){this._init(e)};return(i.prototype=Object.create(n.prototype)).constructor=i,i.cid=t++,i.options=De(n.options,e),i.super=n,i.options.props&&function(e){var t=e.options.props;for(var n in t)Ot(e.prototype,"_props",n)}(i),i.options.computed&&function(e){var t=e.options.computed;for(var n in t)Rt(e.prototype,n,t[n])}(i),i.extend=n.extend,i.mixin=n.mixin,i.use=n.use,N.forEach(function(e){i[e]=n[e]}),o&&(i.options.components[o]=i),i.superOptions=n.options,i.extendOptions=e,i.sealedOptions=L({},i.options),a[r]=i,i}}function pn(e){return e&&(e.Ctor.options.name||e.tag)}function hn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function vn(e,t){var n=e.cache,r=e.keys,a=e._vnode;for(var o in n){var i=n[o];if(i){var l=pn(i.componentOptions);l&&!t(l)&&gn(n,o,r,a)}}}function gn(e,t,n,r){var a=e[t];!a||r&&a.tag===r.tag||a.componentInstance.$destroy(),e[t]=null,m(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=sn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var a=r.componentOptions;n.propsData=a.propsData,n._parentListeners=a.listeners,n._renderChildren=a.children,n._componentTag=a.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=De(cn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&vt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,a=n&&n.context;e.$slots=gt(t._renderChildren,a),e.$scopedSlots=r,e._c=function(t,n,r,a){return ln(e,t,n,r,a,!1)},e.$createElement=function(t,n,r,a){return ln(e,t,n,r,a,!0)};var o=n&&n.data;Me(e,"$attrs",o&&o.attrs||r,null,!0),Me(e,"$listeners",t._parentListeners||r,null,!0)}(t),xt(t,"beforeCreate"),function(e){var t=It(e.$options.inject,e);t&&(ke(!1),Object.keys(t).forEach(function(n){Me(e,n,t[n])}),ke(!0))}(t),Pt(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),xt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(dn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ce,e.prototype.$delete=Le,e.prototype.$watch=function(e,t,n){if(u(t))return Et(this,e,t,n);(n=n||{}).user=!0;var r=new Wt(this,e,t,n);return n.immediate&&t.call(this,r.value),function(){r.teardown()}}}(dn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){if(Array.isArray(e))for(var r=0,a=e.length;r1?C(t):t;for(var n=C(arguments,1),r=0,a=t.length;rparseInt(this.max)&&gn(i,l[0],l,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return I}};Object.defineProperty(e,"config",t),e.util={warn:ie,extend:L,mergeOptions:De,defineReactive:Me},e.set=Ce,e.delete=Le,e.nextTick=Qe,e.options=Object.create(null),N.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,L(e.options.components,yn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=C(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),fn(e),function(e){N.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(dn),Object.defineProperty(dn.prototype,"$isServer",{get:te}),Object.defineProperty(dn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(dn,"FunctionalRenderContext",{value:Zt}),dn.version="2.5.16";var _n=v("style,class"),bn=v("input,textarea,option,select,progress"),kn=v("contenteditable,draggable,spellcheck"),xn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Tn="http://www.w3.org/1999/xlink",An=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},wn=function(e){return An(e)?e.slice(6,e.length):""},Mn=function(e){return null==e||!1===e};function Cn(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Ln(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Ln(t,n.data));return function(e,t){if(o(e)||o(t))return Bn(e,Sn(t));return""}(t.staticClass,t.class)}function Ln(e,t){return{staticClass:Bn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Bn(e,t){return e?t?e+" "+t:e:t||""}function Sn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,a=e.length;r-1?Qn(e,t,n):xn(t)?Mn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):kn(t)?e.setAttribute(t,Mn(n)||"false"===n?"false":"true"):An(t)?Mn(n)?e.removeAttributeNS(Tn,wn(t)):e.setAttributeNS(Tn,t,n):Qn(e,t,n)}function Qn(e,t,n){if(Mn(n))e.removeAttribute(t);else{if(U&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var er={create:Jn,update:Jn};function tr(e,t){var n=t.elm,r=t.data,i=e.data;if(!(a(r.staticClass)&&a(r.class)&&(a(i)||a(i.staticClass)&&a(i.class)))){var l=Cn(t),s=n._transitionClasses;o(s)&&(l=Bn(l,Sn(s))),l!==n._prevClass&&(n.setAttribute("class",l),n._prevClass=l)}}var nr,rr={create:tr,update:tr},ar="__r",or="__c";function ir(e,t,n,r,a){var o;t=(o=t)._withTask||(o._withTask=function(){Ye=!0;var e=o.apply(null,arguments);return Ye=!1,e}),n&&(t=function(e,t,n){var r=nr;return function a(){null!==e.apply(null,arguments)&&lr(t,a,n,r)}}(t,e,r)),nr.addEventListener(e,t,Q?{capture:r,passive:a}:r)}function lr(e,t,n,r){(r||nr).removeEventListener(e,t._withTask||t,n)}function sr(e,t){if(!a(e.data.on)||!a(t.data.on)){var n=t.data.on||{},r=e.data.on||{};nr=t.elm,function(e){if(o(e[ar])){var t=U?"change":"input";e[t]=[].concat(e[ar],e[t]||[]),delete e[ar]}o(e[or])&&(e.change=[].concat(e[or],e.change||[]),delete e[or])}(n),ot(n,r,ir,lr,t.context),nr=void 0}}var cr={create:sr,update:sr};function ur(e,t){if(!a(e.data.domProps)||!a(t.data.domProps)){var n,r,i=t.elm,l=e.data.domProps||{},s=t.data.domProps||{};for(n in o(s.__ob__)&&(s=t.data.domProps=L({},s)),l)a(s[n])&&(i[n]="");for(n in s){if(r=s[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===l[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n){i._value=r;var c=a(r)?"":String(r);dr(i,c)&&(i.value=c)}else i[n]=r}}}function dr(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.lazy)return!1;if(r.number)return h(n)!==h(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var fr={create:ur,update:ur},pr=b(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function hr(e){var t=vr(e.style);return e.staticStyle?L(e.staticStyle,t):t}function vr(e){return Array.isArray(e)?B(e):"string"==typeof e?pr(e):e}var gr,mr=/^--/,yr=/\s*!important$/,_r=function(e,t,n){if(mr.test(t))e.style.setProperty(t,n);else if(yr.test(n))e.style.setProperty(t,n.replace(yr,""),"important");else{var r=kr(t);if(Array.isArray(n))for(var a=0,o=n.length;a-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function wr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Mr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&L(t,Cr(e.name||"v")),L(t,e),t}return"string"==typeof e?Cr(e):void 0}}var Cr=b(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Lr=H&&!Y,Br="transition",Sr="animation",Wr="transition",zr="transitionend",Or="animation",Pr="animationend";Lr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Wr="WebkitTransition",zr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Or="WebkitAnimation",Pr="webkitAnimationEnd"));var Dr=H?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Rr(e){Dr(function(){Dr(e)})}function Nr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Ar(e,t))}function Er(e,t){e._transitionClasses&&m(e._transitionClasses,t),wr(e,t)}function Ir(e,t,n){var r=Fr(e,t),a=r.type,o=r.timeout,i=r.propCount;if(!a)return n();var l=a===Br?zr:Pr,s=0,c=function(){e.removeEventListener(l,u),n()},u=function(t){t.target===e&&++s>=i&&c()};setTimeout(function(){s0&&(n=Br,u=i,d=o.length):t===Sr?c>0&&(n=Sr,u=c,d=s.length):d=(n=(u=Math.max(i,c))>0?i>c?Br:Sr:null)?n===Br?o.length:s.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===Br&&jr.test(r[Wr+"Property"])}}function $r(e,t){for(;e.length1}function Ur(e,t){!0!==t.data.show&&Hr(t)}var Yr=function(e){var t,n,r={},s=e.modules,c=e.nodeOps;for(t=0;th?_(e,a(n[m+1])?null:n[m+1].elm,n,p,m,r):p>m&&k(0,t,f,h)}(s,p,h,n,l):o(h)?(o(e.text)&&c.setTextContent(s,""),_(s,null,h,0,h.length-1,n)):o(p)?k(0,p,0,p.length-1):o(e.text)&&c.setTextContent(s,""):e.text!==t.text&&c.setTextContent(s,t.text),o(f)&&o(u=f.hook)&&o(u=u.postpatch)&&u(e,t)}}}function w(e,t,n){if(i(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,i.selected!==o&&(i.selected=o);else if(O(ea(i),r))return void(e.selectedIndex!==l&&(e.selectedIndex=l));a||(e.selectedIndex=-1)}}function Qr(e,t){return t.every(function(t){return!O(t,e)})}function ea(e){return"_value"in e?e._value:e.value}function ta(e){e.target.composing=!0}function na(e){e.target.composing&&(e.target.composing=!1,ra(e.target,"input"))}function ra(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function aa(e){return!e.componentInstance||e.data&&e.data.transition?e:aa(e.componentInstance._vnode)}var oa={model:Xr,show:{bind:function(e,t,n){var r=t.value,a=(n=aa(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&a?(n.data.show=!0,Hr(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=aa(n)).data&&n.data.transition?(n.data.show=!0,r?Hr(n,function(){e.style.display=e.__vOriginalDisplay}):Gr(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,a){a||(e.style.display=e.__vOriginalDisplay)}}},ia={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function la(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?la(ft(t.children)):e}function sa(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var a=n._parentListeners;for(var o in a)t[x(o)]=a[o];return t}function ca(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var ua={name:"transition",props:ia,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag||dt(e)})).length){0;var r=this.mode;0;var a=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return a;var o=la(a);if(!o)return a;if(this._leaving)return ca(e,a);var i="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?i+"comment":i+o.tag:l(o.key)?0===String(o.key).indexOf(i)?o.key:i+o.key:o.key;var s=(o.data||(o.data={})).transition=sa(this),c=this._vnode,u=la(c);if(o.data.directives&&o.data.directives.some(function(e){return"show"===e.name})&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!dt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=L({},s);if("out-in"===r)return this._leaving=!0,it(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ca(e,a);if("in-out"===r){if(dt(o))return c;var f,p=function(){f()};it(s,"afterEnter",p),it(s,"enterCancelled",p),it(d,"delayLeave",function(e){f=e})}}return a}}},da=L({tag:String,moveClass:String},ia);function fa(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function pa(e){e.data.newPos=e.elm.getBoundingClientRect()}function ha(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,a=t.top-n.top;if(r||a){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+a+"px)",o.transitionDuration="0s"}}delete da.mode;var va={Transition:ua,TransitionGroup:{props:da,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,a=this.$slots.default||[],o=this.children=[],i=sa(this),l=0;l-1?Dn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Dn[e]=/HTMLUnknownElement/.test(t.toString())},L(dn.options.directives,oa),L(dn.options.components,va),dn.prototype.__patch__=H?Yr:S,dn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=he),xt(e,"beforeMount"),new Wt(e,function(){e._update(e._render(),n)},S,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,xt(e,"mounted")),e}(this,e=e&&H?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},H&&setTimeout(function(){I.devtools&&ne&&ne.emit("init",dn)},0),t.default=dn}.call(this,n(44),n(337).setImmediate)},function(e,t,n){"use strict";var r=n(0);e.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("markers")},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return r.isPlainObject(e.marker)&&Array.isArray(e.marker.size)}}},function(e,t,n){"use strict";var r=n(1),a=n(0),o=n(31),i=n(288),l=n(19).LINE_SPACING;function s(e,t){return e.node().getBoundingClientRect()[t]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,n,i){var m=e.text(),B=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&m.match(c),S=r.select(e.node().parentNode);if(!S.empty()){var W=e.attr("class")?e.attr("class").split(" ")[0]:"text";return W+="-math",S.selectAll("svg."+W).remove(),S.selectAll("g."+W+"-group").remove(),e.style("display",null).attr({"data-unformatted":m,"data-math":"N"}),B?(n&&n._promises||[]).push(new Promise(function(t){e.style("display","none");var n={fontSize:parseInt(e.style("font-size"),10)};!function(e,t,n){var o="math-output-"+a.randstr([],64),i=r.select("body").append("div").attr({id:o}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text((l=e,l.replace(u,"\\lt ").replace(d,"\\gt ")));var l;MathJax.Hub.Queue(["Typeset",MathJax.Hub,i.node()],function(){var t=r.select("body").select("#MathJax_SVG_glyphs");if(i.select(".MathJax_SVG").empty()||!i.select("svg").node())a.log("There was an error in the tex syntax.",e),n();else{var o=i.select("svg").node().getBoundingClientRect();n(i.select(".MathJax_SVG"),t,o)}i.remove()})}(B[2],n,function(n,r,a){S.selectAll("svg."+W).remove(),S.selectAll("g."+W+"-group").remove();var o=n&&n.select("svg");if(!o||!o.node())return z(),void t();var l=S.append("g").classed(W+"-group",!0).attr({"pointer-events":"none","data-unformatted":m,"data-math":"Y"});l.node().appendChild(o.node()),r&&r.node()&&o.node().insertBefore(r.node().cloneNode(!0),o.node().firstChild),o.attr({class:W,height:a.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var c=e.style("fill")||"black";o.select("g").attr({fill:c,stroke:c});var u=s(o,"width"),d=s(o,"height"),f=+e.attr("x")-u*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],p=-(parseInt(e.style("font-size"),10)||s(e,"height"))/4;"y"===W[0]?(l.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+") translate("+[-u/2,p-d/2]+")"}),o.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===W[0]?o.attr({x:e.attr("x"),y:p-d/2}):"a"===W[0]?o.attr({x:0,y:p}):o.attr({x:f,y:+e.attr("y")+p-d/2}),i&&i.call(e,l),t(l)})})):z(),e}function z(){S.empty()||(W=e.attr("class")+"-math",S.select("svg."+W).remove()),e.text("").style("white-space","pre"),function(e,t){t=(n=t,function(e,t){if(!e)return"";for(var n=0;n1)for(var a=1;a doesnt match end tag <"+e+">. Pretending it did match.",t),i=c[c.length-1].node}x.test(t)?d():(i=e,c=[{node:e}]);for(var W=t.split(b),z=0;z|>|>)/g;var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},p={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},v="โ€‹",g=["http:","https:","mailto:","",void 0,":"],m=new RegExp("]*)?/?>","g"),y=Object.keys(i.entityToUnicode).map(function(e){return{regExp:new RegExp("&"+e+";","g"),sub:i.entityToUnicode[e]}}),_=/(\r\n?|\n)/g,b=/(<[^<>]*>)/,k=/<(\/?)([^ >]*)(\s+(.*))?>/i,x=//i,T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,A=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,M=/(^|[\s"'])popup\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i;function C(e,t){if(!e)return null;var n=e.match(t);return n&&(n[3]||n[4])}var L=/(^|;)\s*color:/;function B(e,t,n){var r,a,o,i=n.horizontalAlign,l=n.verticalAlign||"top",s=e.node().getBoundingClientRect(),c=t.node().getBoundingClientRect();return a="bottom"===l?function(){return s.bottom-r.height}:"middle"===l?function(){return s.top+(s.height-r.height)/2}:function(){return s.top},o="right"===i?function(){return s.right-r.width}:"center"===i?function(){return s.left+(s.width-r.width)/2}:function(){return s.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:a()-c.top+"px",left:o()-c.left+"px","z-index":1e3}),this}}t.plainText=function(e){return(e||"").replace(m," ")},t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,n){return e.each(function(){var e=r.select(this);function a(t,n){return void 0===n?null===(n=e.attr(t))&&(e.attr(t,0),n=0):e.attr(t,n),n}var o=a("x",t),i=a("y",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:o,y:i})})},t.makeEditable=function(e,t){var n=t.gd,a=t.delegate,o=r.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),1!==e.size())throw new Error("boo");function l(){var a,l;a=r.select(n).select(".svg-container"),(l=a.append("div")).classed("plugin-editable editable",!0).style({position:"absolute","font-family":e.style("font-family")||"Arial","font-size":e.style("font-size")||12,color:t.fill||e.style("fill")||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-parseFloat(e.style("font-size"))/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(t.text||e.attr("data-unformatted")).call(B(e,a,t)).on("blur",function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,a=r.select(this).attr("class");(t=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(t).style({opacity:0});var i=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),o.edit.call(e,i)}).on("focus",function(){var e=this;n._editing=!0,r.select(document).on("mouseup",function(){if(r.event.target===e)return!1;document.activeElement===l.node()&&l.node().blur()})}).on("keyup",function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),o.cancel.call(e,this.textContent)):(o.input.call(e,this.textContent),r.select(this).call(B(e,a,t)))}).on("keydown",function(){13===r.event.which&&this.blur()}).call(s),e.style({opacity:0});var c,u=i.attr("class");(c=u?"."+u.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(c).style({opacity:0})}function s(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}return t.immediate?l():i.on("click",l),r.rebind(e,o,"on")}},function(e,t,n){"use strict";e.exports={idRegex:{x:/^x([2-9]|[1-9][0-9]+)?$/,y:/^y([2-9]|[1-9][0-9]+)?$/},attrRegex:{x:/^xaxis([2-9]|[1-9][0-9]+)?$/,y:/^yaxis([2-9]|[1-9][0-9]+)?$/},xAxisMatch:/^xaxis[0-9]*$/,yAxisMatch:/^yaxis[0-9]*$/,AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4]}},function(e,t,n){"use strict";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6}},function(e,t,n){"use strict";var r=n(326),a=n(325),o=n(324);function i(e){if(!e||"NoTalent"==e)return"None";switch(e.slice(e.length-7-1,e.length-1)){case"TalentA":return"Rare";case"TalentB":return"Epic";case"TalentC":return"Legendary";default:return Object.keys(r).includes(e)?r[e]:"unknown"}}function l(e){switch(i(e.Talent)){case"unknown":case"None":return-1;case"Rare":return 20;case"Epic":return 10;case"Legendary":return 5}}e.exports={RARITIES:["None","Rare","Epic","Legendary"],getTalentName:function(e){if("NoTalent"==e)return"No Talent";switch(e.slice(e.length-7-1,e.length-1)){case"TalentA":case"TalentB":case"TalentC":return Object.keys(a).includes(e)?a[e]:"unknown";default:return e.substring(e.lastIndexOf("_")+1,e.length-1).replace(/([A-Z])/g,function(e){return" "+e.toLowerCase()}).split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")}},getTalentRarity:i,getMaxLevel:l,getScaledLevel:function(e){return["unknown","None"].includes(i(e.Talent))?0:e.Level/l(e)},getHero:function(e){return e.substring(1,e.length-1)},getMode:function(e){return o[e]},hasTalents:function(e){return["blitz_pvp_ranked","casual_aral"].includes(e)},playersPerMatch:function(e){return e.includes("5v5")?10:6}}},function(e,t,n){"use strict";e.exports={family:{valType:"string",role:"style",noBlank:!0,strict:!0,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The plotly service (at https://plot.ly or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",role:"style",min:1},color:{valType:"color",role:"style"}}},function(e,t,n){"use strict";var r=n(4),a=n(9),o=n(0),i=n(14);function l(e,t,n){var r=e._fullLayout;if(!r)return[];function o(e,n){for(var r=Object.keys(e),a=/^[xyz]axis[0-9]*/,o=[],i=0;ih&&(p=Math.max(p-1,1)),e.doneFn&&e.doneFn(f._dragged,p,t),!f._dragged){var n;try{n=new MouseEvent("click",t)}catch(e){(n=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}d.dispatchEvent(n)}return function(e){e._dragging=!1,e._replotPending&&r.plot(e)}(f),f._dragged=!1,a.pauseEvent(t)}f._dragged=!1}f._mouseDownTime||(f._mouseDownTime=0),e.element.onmousedown=function(r){return f._dragged=!1,f._dragging=!0,t=r.clientX,n=r.clientY,d=r.target,(s=(new Date).getTime())-f._mouseDownTime1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=O(e,360),t=O(t,100),n=O(n,100),0===t)r=a=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),a=i(s,l,e),o=i(s,l,e-1/3)}return{r:255*r,g:255*a,b:255*o}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,v;return n=z(n),{ok:d,format:e.format||f,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=l++}function p(e,t,n){e=O(e,255),t=O(t,255),n=O(n,255);var r,a,o=u(e,t,n),i=c(e,t,n),l=(o+i)/2;if(o==i)r=a=0;else{var s=o-i;switch(a=l>.5?s/(2-o-i):s/(o+i),o){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(f(r));return o}function B(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(f({h:r,s:a,v:o})),o=(o+l)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,a){var o=[R(s(e).toString(16)),R(s(t).toString(16)),R(s(n).toString(16)),R(E(r))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*O(this._r,255))+"%",g:s(100*O(this._g,255))+"%",b:s(100*O(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*O(this._r,255))+"%, "+s(100*O(this._g,255))+"%, "+s(100*O(this._b,255))+"%)":"rgba("+s(100*O(this._r,255))+"%, "+s(100*O(this._g,255))+"%, "+s(100*O(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(W[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);n="#"+g(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:N(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),a=f(t).toRgb(),o=n/100;return f({r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,a,o=f.readability(e,t);switch(a=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},f.mostReadable=function(e,t,n){var r,a,o,i,l=null,s=0;a=(n=n||{}).includeFallbackColors,o=n.level,i=n.size;for(var c=0;cs&&(s=r,l=f(t[c]));return f.isReadable(e,l,{level:o,size:i})||!a?l:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var S=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},W=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(S);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function O(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function P(e){return c(1,u(0,e))}function D(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function N(e){return e<=1&&(e=100*e+"%"),e}function E(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return D(e)/255}var j,F,$,V=(F="[\\s|\\(]+("+(j="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",$="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!V.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={computed:{selectedActor:{get:function(){return this.$route.query.actor||"*Kinetic*"},set:function(e){this.$ga.event("Hero","update",e);var t=Object.assign({},this.$route.query,{actor:e});this.$router.push({query:t})}},selectedMode:{get:function(){return this.$route.query.mode||"blitz_pvp_ranked"},set:function(e){this.$ga.event("Mode","update",e);var t=Object.assign({},this.$route.query,{mode:e});this.$router.push({query:t})}}}}},function(e,t,n){"use strict";var r=n(17),a=n(24),o=n(101).dash,i=n(10).extendFlat,l=n(14);e.exports={visible:{valType:"boolean",role:"info",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:a.defaultLine,role:"style",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{valType:"string",role:"info",description:"Sets the title of this axis."},titlefont:i({},r,{description:["Sets this axis' title font."].join(" ")}),type:{valType:"enumerated",values:["-","linear","log","date","category"],dflt:"-",role:"info",description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,role:"style",description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",role:"style",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data."].join(" ")},range:{valType:"info_array",role:"info",items:[{valType:"any"},{valType:"any"}],description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,role:"info",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[l.idRegex.x.toString(),l.idRegex.y.toString()],role:"info",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,role:"info",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],dflt:"range",role:"info",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range* (default), or by decreasing the *domain*."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],role:"info",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},tickmode:{valType:"enumerated",values:["auto","linear","array"],role:"info",description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},nticks:{valType:"integer",min:0,dflt:0,role:"style",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tick0:{valType:"any",role:"style",description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",role:"style",description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tickvals:{valType:"data_array",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],role:"style",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,role:"style",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,role:"style",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:a.defaultLine,role:"style",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,role:"style",description:"Determines whether or not the tick labels are drawn."},showspikes:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,role:"style",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,role:"style",description:"Sets the width (in px) of the zero line."},spikedash:i({},o,{dflt:"dash"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],role:"style",dflt:"toaxis",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},tickfont:i({},r,{description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",role:"style",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",role:"style",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,role:"style",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",role:"style",description:["Sets the tick label formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},hoverformat:{valType:"string",dflt:"",role:"style",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},showline:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:a.defaultLine,role:"style",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",role:"style",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:a.lightLine,role:"style",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",role:"style",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:a.defaultLine,role:"style",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,role:"style",description:"Sets the width (in px) of the zero line."},anchor:{valType:"enumerated",values:["free",l.idRegex.x.toString(),l.idRegex.y.toString()],role:"info",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",l.idRegex.x.toString(),l.idRegex.y.toString()],role:"info",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis.","If *false*, this axis does not overlay any same-letter axes."].join(" ")},domain:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1},{valType:"number",min:0,max:1}],dflt:[0,1],description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,role:"style",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",role:"info",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`."].join(" ")},categoryarray:{valType:"data_array",role:"info",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},_deprecated:{autotick:{valType:"boolean",role:"info",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")}}}},function(e,t,n){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},function(e,t,n){"use strict";e.exports={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(16)),a=o(n(319));function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0}),u=c.map(function(e){return e.LevelBucket}).sort(),d=function(e){return c.find(function(t){return t.LevelBucket==e})},f=u.map(function(e){return d(e).Count}),p=f.reduce(l,0),h=(t=[]).concat.apply(t,i(u.map(function(e,t){return s(f[t]).map(function(t){return e/a.config.self.levelBuckets})}))),v=(n=[]).concat.apply(n,i(u.map(function(e,t){return s(f[t]).map(function(t){return d(e).Winner})}))),g=h.length,m=h.reduce(l,0),y=v.reduce(l,0),_=h.map(function(e,t){return e*v[t]}).reduce(l,0),b=h.map(function(e){return e*e}).reduce(l,0),k=(v.map(function(e){return e*e}).reduce(l,0),(g*_-m*y)/(g*b-m*m)),x=(y-k*m)/g;return Object.assign({},e,{TalentWinrateBase:x,TalentWinrateScaling:k,TalentWinrateLevelScaling:k/r.getMaxLevel(e),TotalPicks:p||e.Count,TotalWinner:y/p||e.Winner,SampleTooSmall:p<200})});s.set(e,k),c.set(e,s.get(e).map(function(e){return e.TotalPicks}).reduce(function(e,t){return e+t},0)),_+=c.get(e)/r.playersPerMatch(e),u.set(e,s.get(e).sort(function(e,n){return t(n)-t(e)}).slice(0,10)),d.set(e,s.get(e).sort(function(e,t){return t.TotalPicks-e.TotalPicks})[0]),f.set(e,s.get(e).filter(function(t){return 100*n*t.TotalPicks/c.get(e)>1}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),y.set(e,s.get(e).filter(function(t){return 100*n*t.TotalPicks/c.get(e)<=1&&t.TotalPicks>200}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),p.set(e,s.get(e).filter(function(t){return"Rare"==r.getTalentRarity(t.Talent)&&100*n*t.TotalPicks/c.get(e)}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),h.set(e,s.get(e).filter(function(t){return"Epic"==r.getTalentRarity(t.Talent)&&100*n*t.TotalPicks/c.get(e)}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),v.set(e,s.get(e).filter(function(t){return"Legendary"==r.getTalentRarity(t.Talent)&&100*n*t.TotalPicks/c.get(e)}).sort(function(e,t){return t.TotalWinner-e.TotalWinner})[0]),g.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall}).sort(function(e,t){return t.TalentWinrateBase-e.TalentWinrateBase})[0]),m.set(e,s.get(e).filter(function(e){return!e.SampleTooSmall}).sort(function(e,t){return t.TalentWinrateLevelScaling-e.TalentWinrateLevelScaling})[0]),0==b.length&&(b=[].concat(i(new Set(s.get(e).map(function(e){return e.Actor})))))},T=!0,A=!1,w=void 0;try{for(var M,C=k[Symbol.iterator]();!(T=(M=C.next()).done);T=!0){x(M.value)}}catch(e){A=!0,w=e}finally{try{!T&&C.return&&C.return()}finally{if(A)throw w}}t.default={getReport:function(e){return s.get(e)},getTotalPicks:function(e){return c.get(e)},getTopPick:function(e){return d.get(e)},getTop10Picks:function(e){return u.get(e)},getTopLowLevel:function(e){return g.get(e)},getTopScaling:function(e){return m.get(e)},getTopWin:function(e){return f.get(e)},getTopUnpopularWin:function(e){return y.get(e)},getTopRareWins:function(e){return p.get(e)},getTopEpicWins:function(e){return h.get(e)},getTopLegendaryWins:function(e){return v.get(e)},getBestUnpopular:function(e){return topUnpopular.get(e)},getActors:function(){return b},getModes:function(){return k},getTotalMatches:function(){return _},getLastUpdate:function(){return a.lastUpdate},getLevelBuckets:function(){return a.config.self.levelBuckets}}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){var a,o=n.name,i=t[o],l=r.isArray(e[o])?e[o]:[],s=t[o]=[];for(a=0;a1){for(var e=["LOG:"],t=0;t0){for(var e=["WARN:"],t=0;t0){for(var e=["ERROR:"],t=0;t), bold (), italics (),","hyperlinks (). Tags , , "," are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,role:"style",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:i({},a,{description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use
to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"style",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",role:"style",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans more two or more lines","(i.e. `text` contains one or more
HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",role:"style",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,role:"style",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",role:"style",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",description:"Sets the annotation arrow head style."},arrowsize:{valType:"number",min:.3,dflt:1,role:"style",description:"Sets the size (in px) of annotation arrow head."},arrowwidth:{valType:"number",min:.1,role:"style",description:"Sets the width (in px) of annotation arrow."},standoff:{valType:"number",min:0,dflt:0,role:"style",description:["Sets a distance, in pixels, to move the arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",role:"info",description:["Sets the x component of the arrow tail about the arrow head.","If `axref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from right to left (left to right).","If `axref` is an axis, this is an absolute value on that axis,","like `x`, NOT a relative value."].join(" ")},ay:{valType:"any",role:"info",description:["Sets the y component of the arrow tail about the arrow head.","If `ayref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from bottom to top (top to bottom).","If `ayref` is an axis, this is an absolute value on that axis,","like `y`, NOT a relative value."].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",o.idRegex.x.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ax` is a relative offset in pixels ","from `x`. If set to an x axis id (e.g. *x* or *x2*), `ax` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",o.idRegex.y.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ay` is a relative offset in pixels ","from `y`. If set to a y axis id (e.g. *y* or *y2*), `ay` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},xref:{valType:"enumerated",values:["paper",o.idRegex.x.toString()],role:"info",description:["Sets the annotation's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where 0 (1) corresponds to the left (right) side."].join(" ")},x:{valType:"any",role:"info",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",role:"info",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",o.idRegex.y.toString()],role:"info",description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where 0 (1) corresponds to the bottom (top)."].join(" ")},y:{valType:"any",role:"info",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,role:"style",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",role:"info",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:i({},a,{description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")})},captureevents:{valType:"boolean",role:"info",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},_deprecated:{ref:{valType:"string",role:"info",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}}},function(e,t,n){"use strict";t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3}},function(e,t,n){"use strict";e.exports={MAXDIST:20,YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50}},function(e,t,n){"use strict";var r=n(2),a=n(0),o=n(99);e.exports=function(e,t){var n=t?a.nestedProperty(e,t).get()||{}:e,i=n.color,l=!1;if(Array.isArray(i))for(var s=0;s2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}t._w=D,t._h=R;for(var j=!1,F=["x","y"],$=0;$1)&&(X===Y?((oe=J.r2fraction(t["a"+U]))<0||oe>1)&&(j=!0):j=!0,j))continue;V=J._offset+J.r2p(t[U]),K=.5}else"x"===U?(G=t[U],V=b.l+b.w*G):(G=1-t[U],V=b.t+b.h*G),K=t.showarrow?.5:G;if(t.showarrow){ae.head=V;var ie=t["a"+U];q=Q*I(.5,t.xanchor)-ee*I(.5,t.yanchor),X===Y?(ae.tail=J._offset+J.r2p(ie),H=q):(ae.tail=V+ie,H=q+ie),ae.text=ae.tail+q;var le=_["x"===U?"width":"height"];if("paper"===Y&&(ae.head=i.constrain(ae.head,1,le-1)),"pixel"===X){var se=-Math.max(ae.tail-3,ae.text),ce=Math.min(ae.tail+3,ae.text)-le;se>0?(ae.tail+=se,ae.text+=se):ce>0&&(ae.tail-=ce,ae.text-=ce)}ae.tail+=re,ae.head+=re}else H=q=te*I(K,ne),ae.text=V+q;ae.text+=re,q+=re,H+=re,t["_"+U+"padplus"]=te/2+H,t["_"+U+"padminus"]=te/2-H,t["_"+U+"size"]=te,t["_"+U+"shift"]=q}if(j)M.remove();else{var ue=0,de=0;if("left"!==t.align&&(ue=(D-L)*("center"===t.align?.5:1)),"top"!==t.valign&&(de=(R-O)*("middle"===t.valign?.5:1)),u)r.select("svg").attr({x:B+ue-1,y:B+de}).call(c.setClipUrl,W?k:null);else{var fe=B+de-g.top,pe=B+ue-g.left;P.call(d.positionText,pe,fe).call(c.setClipUrl,W?k:null)}z.select("rect").call(c.setRect,B,B,D,R),S.call(c.setRect,C/2,C/2,N-C,E-C),M.call(c.setTranslate,Math.round(x.x.text-N/2),Math.round(x.y.text-E/2)),w.attr({transform:"rotate("+T+","+x.x.text+","+x.y.text+")"});var he,ve,ge=function(n,r){A.selectAll(".annotation-arrow-g").remove();var u=x.x.head,d=x.y.head,f=x.x.tail+n,g=x.y.tail+r,_=x.x.text+n,k=x.y.text+r,C=i.rotationXYMatrix(T,_,k),L=i.apply2DTransform(C),B=i.apply2DTransform2(C),W=+S.attr("width"),z=+S.attr("height"),O=_-.5*W,P=O+W,D=k-.5*z,R=D+z,N=[[O,D,O,R],[O,R,P,R],[P,R,P,D],[P,D,O,D]].map(B);if(!N.reduce(function(e,t){return e^!!m(u,d,u+1e6,d+1e6,t[0],t[1],t[2],t[3])},!1)){N.forEach(function(e){var t=m(f,g,u,d,e[0],e[1],e[2],e[3]);t&&(f=t.x,g=t.y)});var E=t.arrowwidth,I=t.arrowcolor,j=A.append("g").style({opacity:s.opacity(I)}).classed("annotation-arrow-g",!0),F=j.append("path").attr("d","M"+f+","+g+"L"+u+","+d).style("stroke-width",E+"px").call(s.stroke,s.rgb(I));if(h(F,t.arrowhead,"end",t.arrowsize,t.standoff),e._context.editable&&F.node().parentNode&&!o){var $=u,V=d;if(t.standoff){var H=Math.sqrt(Math.pow(u-f,2)+Math.pow(d-g,2));$+=t.standoff*(f-u)/H,V+=t.standoff*(g-d)/H}var G,K,q,U=j.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-$)+","+(g-V),transform:"translate("+$+","+V+")"}).style("stroke-width",E+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");p.init({element:U.node(),gd:e,prepFn:function(){var e=c.getTranslate(M);K=e.x,q=e.y,G={},l&&l.autorange&&(G[l._name+".autorange"]=!0),v&&v.autorange&&(G[v._name+".autorange"]=!0)},moveFn:function(e,n){var r=L(K,q),a=r[0]+e,o=r[1]+n;M.call(c.setTranslate,a,o),G[y+".x"]=l?l.p2r(l.r2p(t.x)+e):t.x+e/b.w,G[y+".y"]=v?v.p2r(v.r2p(t.y)+n):t.y-n/b.h,t.axref===t.xref&&(G[y+".ax"]=l.p2r(l.r2p(t.ax)+e)),t.ayref===t.yref&&(G[y+".ay"]=v.p2r(v.r2p(t.ay)+n)),j.attr("transform","translate("+e+","+n+")"),w.attr({transform:"rotate("+T+","+a+","+o+")"})},doneFn:function(t){if(t){a.relayout(e,G);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}};if(t.showarrow&&ge(0,0),e._context.editable)p.init({element:M.node(),gd:e,prepFn:function(){ve=w.attr("transform"),he={}},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?he[y+".ax"]=l.p2r(l.r2p(t.ax)+e):he[y+".ax"]=t.ax+e,t.ayref===t.yref?he[y+".ay"]=v.p2r(v.r2p(t.ay)+n):he[y+".ay"]=t.ay+n,ge(e,n);else{if(o)return;if(l)he[y+".x"]=t.x+e/l._m;else{var a=t._xsize/b.w,i=t.x+(t._xshift-t.xshift)/b.w-a/2;he[y+".x"]=p.align(i+e/b.w,a,0,1,t.xanchor)}if(v)he[y+".y"]=t.y+n/v._m;else{var s=t._ysize/b.h,c=t.y-(t._yshift+t.yshift)/b.h-s/2;he[y+".y"]=p.align(c-n/b.h,s,0,1,t.yanchor)}l&&v||(r=p.getCursor(l?.5:he[y+".x"],v?.5:he[y+".y"],t.xanchor,t.yanchor))}w.attr({transform:"translate("+e+","+n+")"+ve}),f(M,r)},doneFn:function(t){if(f(M),t){a.relayout(e,he);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}}function m(e,t,n,r,a,o,i,l){var s=n-e,c=a-e,u=i-a,d=r-t,f=o-t,p=l-o,h=s*p-u*d;if(0===h)return null;var v=(c*p-u*f)/h,g=(c*d-s*f)/h;return g<0||g>1||v<0||v>1?null:{x:e+s*v,y:t+d*v}}e.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;nZ.width||J<0||J>Z.height)return f.unhoverRaw(e,t)}if(D="xval"in t?v.flat(m,t.xval):v.p2c(A,X),R="yval"in t?v.flat(m,t.yval):v.p2c(B,J),!a(D[0])||!a(R[0]))return i.warn("Fx.hover failed",t,e),f.unhoverRaw(e,t)}var Q=1/0;for(E=0;Eq&&(U.splice(0,q),Q=U[0].distance)}if(0===U.length)return f.unhoverRaw(e,t);U.sort(function(e,t){return e.distance-t.distance});var ae=e._hoverdata,oe=[];for(N=0;N1,ce=w(U,{hovermode:P,rotateLabels:se,bgColor:d.combine(y.plot_bgcolor||d.background,y.paper_bgcolor),container:y._hoverlayer,outerContainer:y._paperdiv,commonLabelOpts:y.hoverlabel},e);if(function(e,t){var n,r,a,o,i,l,s,c=0,u=e.map(function(e,n){var r=e[t];return[{i:n,dp:0,pos:e.pos,posref:e.posref,size:e.by*("x"===r._id.charAt(0)?_:1)/2,pmin:r._offset,pmax:r._offset+r._length}]}).sort(function(e,t){return e[0].posref-t[0].posref});function d(e){var t=e[0],s=e[e.length-1];if(r=t.pmin-t.pos-t.dp+t.size,a=s.pos+s.dp+s.size-t.pmax,r>.01){for(i=e.length-1;i>=0;i--)e[i].dp+=r;n=!1}if(!(a<.01)){if(r<-.01){for(i=e.length-1;i>=0;i--)e[i].dp-=a;n=!1}if(n){var c=0;for(o=0;ot.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(l=e[o]).pos>t.pmax-1&&(l.del=!0,c--);for(o=0;o=0;i--)e[i].dp-=a;for(o=e.length-1;o>=0&&!(c<=0);o--)(l=e[o]).pos+l.dp+l.size>t.pmax&&(l.del=!0,c--)}}}for(;!n&&c<=e.length;){for(c++,n=!0,o=0;o.01&&h.pmin===v.pmin&&h.pmax===v.pmax){for(i=p.length-1;i>=0;i--)p[i].dp+=r;for(f.push.apply(f,p),u.splice(o+1,1),s=0,i=f.length-1;i>=0;i--)s+=f[i].dp;for(a=s/f.length,i=f.length-1;i>=0;i--)f[i].dp-=a;n=!1}else o++}u.forEach(d)}for(o=u.length-1;o>=0;o--){var g=u[o];for(i=g.length-1;i>=0;i--){var m=g[i],y=e[m.i];y.offset=m.dp,y.del=m.del}}}(U,se?"xa":"ya"),M(ce,se),t.target&&t.target.tagName){var ue=h.getComponentMethod("annotations","hasClickToShow")(e,oe);c(r.select(t.target),ue?"pointer":"")}t.target&&!s&&L(e,t,ae)&&(ae&&e.emit("plotly_unhover",{event:t,points:ae}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:A,yaxes:B,xvals:D,yvals:R}))}else e.emit("plotly_hover",{event:t.originalEvent,points:[t]})}function w(e,t,n){var a,o=t.hovermode,i=t.rotateLabels,l=t.bgColor,c=t.container,f=t.outerContainer,p=t.commonLabelOpts||{},h=t.fontFamily||g.HOVERFONT,v=t.fontSize||g.HOVERFONTSIZE,y=e[0],_=y.xa,b=y.ya,k="y"===o?"yLabel":"xLabel",A=y[k],w=(String(A)||"").split(" ")[0],M=f.node().getBoundingClientRect(),C=M.top,L=M.width,B=M.height,S=y.distance<=g.MAXDIST&&("x"===o||"y"===o);for(a=0;a15&&(a=a.substr(0,12)+"..."),void 0!==e.extraText&&(c+=e.extraText),void 0!==e.zLabel?(void 0!==e.xLabel&&(c+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(c+="y: "+e.yLabel+"
"),c+=(c?"z: ":"")+e.zLabel):S&&e[o+"Label"]===A?c=e[("x"===o?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&(c=e.yLabel):c=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",e.text&&!Array.isArray(e.text)&&(c+=(c?"
":"")+e.text),""===c&&(""===a&&t.remove(),c=a);var y=t.select("text.nums").call(u.font,e.fontFamily||h,e.fontSize||v,e.fontColor||g).text(c).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n),_=t.select("text.name"),b=0;a&&a!==c?(_.call(u.font,e.fontFamily||h,e.fontSize||v,p).text(a).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n),b=_.node().getBoundingClientRect().width+2*T):(_.remove(),t.select("rect").remove()),t.select("path").style({fill:p,stroke:g});var k,w,M=y.node().getBoundingClientRect(),W=e.xa._offset+(e.x0+e.x1)/2,z=e.ya._offset+(e.y0+e.y1)/2,O=Math.abs(e.x1-e.x0),P=Math.abs(e.y1-e.y0),D=M.width+x+T+b;e.ty0=C-M.top,e.bx=M.width+2*T,e.by=M.height+2*T,e.anchor="start",e.txwidth=M.width,e.tx2width=b,e.offset=0,i?(e.pos=W,k=z+P/2+D<=B,w=z-P/2-D>=0,"top"!==e.idealAlign&&k||!w?k?(z+=P/2,e.anchor="start"):e.anchor="middle":(z-=P/2,e.anchor="end")):(e.pos=z,k=W+O/2+D<=L,w=W-O/2-D>=0,"left"!==e.idealAlign&&k||!w?k?(W+=O/2,e.anchor="start"):e.anchor="middle":(W-=O/2,e.anchor="end")),y.attr("text-anchor",e.anchor),b&&_.attr("text-anchor",e.anchor),t.attr("transform","translate("+W+","+z+")"+(i?"rotate("+m+")":""))}),O}function M(e,t){e.each(function(e){var n=r.select(this);if(e.del)n.remove();else{var a="end"===e.anchor?-1:1,o=n.select("text.nums"),i={start:1,end:-1,middle:0}[e.anchor],l=i*(x+T),c=l+i*(e.txwidth+T),d=0,f=e.offset;"middle"===e.anchor&&(l-=e.tx2width/2,c-=e.tx2width/2),t&&(f*=-k,d=e.offset*b),n.select("path").attr("d","middle"===e.anchor?"M-"+e.bx/2+",-"+e.by/2+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(a*x+d)+","+(x+f)+"v"+(e.by/2-x)+"h"+a*e.bx+"v-"+e.by+"H"+(a*x+d)+"V"+(f-x)+"Z"),o.call(s.positionText,l+d,f+e.ty0-e.by/2+T),e.tx2width&&(n.select("text.name").call(s.positionText,c+i*T+d,f+e.ty0-e.by/2+T),n.select("rect").call(u.setRect,c+(i-1)*e.tx2width/2+d,f-e.by/2-1,e.tx2width,e.by+2))}})}function C(e,t){var n,r=e.trace||{},a=e.cd[0],o=e.cd[e.index]||{};function l(t,n,l){var s;if(o[n])s=o[n];else if(a[n]){var c=a[n];Array.isArray(c)&&Array.isArray(c[e.index[0]])&&(s=c[e.index[0]][e.index[1]])}else s=i.nestedProperty(r,l).get();s&&(e[t]=s)}if(l("hoverinfo","hi","hoverinfo"),l("color","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),e.posref="y"===t?(e.x0+e.x1)/2:(e.y0+e.y1)/2,e.x0=i.constrain(e.x0,0,e.xa._length),e.x1=i.constrain(e.x1,0,e.xa._length),e.y0=i.constrain(e.y0,0,e.ya._length),e.y1=i.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal){n="log"===e.xa.type&&e.xLabelVal<=0;var s=p.tickText(e.xa,e.xa.c2l(n?-e.xLabelVal:e.xLabelVal),"hover");n?0===e.xLabelVal?e.xLabel="0":e.xLabel="-"+s.text:e.xLabel=s.text,e.xVal=e.xa.c2d(e.xLabelVal)}if(void 0!==e.yLabelVal){n="log"===e.ya.type&&e.yLabelVal<=0;var c=p.tickText(e.ya,e.ya.c2l(n?-e.yLabelVal:e.yLabelVal),"hover");n?0===e.yLabelVal?e.yLabel="0":e.yLabel="-"+c.text:e.yLabel=c.text,e.yVal=e.ya.c2d(e.yLabelVal)}if(void 0!==e.zLabelVal&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var u=p.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+u+" / -"+p.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ยฑ "+u,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=p.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+p.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ยฑ "+d,"y"===t&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return"all"!==f&&(-1===(f=f.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===f.indexOf("y")&&(e.yLabel=void 0),-1===f.indexOf("z")&&(e.zLabel=void 0),-1===f.indexOf("text")&&(e.text=void 0),-1===f.indexOf("name")&&(e.name=void 0)),e}function L(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var a=n[r],o=e._hoverdata[r];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber))return!0}return!1}t.hover=function(e,t,n,r){if("string"==typeof e&&(e=document.getElementById(e)),void 0===e._lastHoverTime&&(e._lastHoverTime=0),void 0!==e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=void 0),Date.now()>e._lastHoverTime+g.HOVERMINTIME)return A(e,t,n,r),void(e._lastHoverTime=Date.now());e._hoverTimer=setTimeout(function(){A(e,t,n,r),e._lastHoverTime=Date.now(),e._hoverTimer=void 0},g.HOVERMINTIME)},t.loneHover=function(e,t){var n={color:e.color||d.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,trace:{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0},a=r.select(t.container),o=t.outerContainer?r.select(t.outerContainer):a,i={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||d.background,container:a,outerContainer:o},l=w([n],i,t.gd);return M(l,i.rotateLabels),l.node()}},function(e,t,n){"use strict";var r=n(10).extendFlat,a=n(17),o=n(38);e.exports={dragmode:{valType:"enumerated",role:"info",values:["zoom","pan","select","lasso","orbit","turntable"],dflt:"zoom",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",role:"info",values:["x","y","closest",!1],description:"Determines the mode of hover interactions."},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of all hover labels on graph."].join(" ")},font:{family:r({},a.family,{dflt:o.HOVERFONT}),size:r({},a.size,{dflt:o.HOVERFONTSIZE}),color:r({},a.color)}}}},function(e,t,n){"use strict";var r=n(0),a=n(38);t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.flat=function(e,t){for(var n=new Array(e.length),r=0;r=0&&n.index0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function a(){this.removeListener(e,a),n||(n=!0,t.apply(this,arguments))}return a.listener=t,this.on(e,a),this},n.prototype.removeListener=function(e,t){var n,o,i,l;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(l=i;l-- >0;)if(n[l]===t||n[l].listener&&n[l].listener===t){o=l;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";var r=n(0),a=n(89).EventEmitter;e.exports=function(e){var t=e.emitter||new a,n=new Promise(function(a,o){var i=window.Image,l=e.svg,s=e.format||"png";if(r.isIE()&&(l=(l=(l=l.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("$2")')).replace(/(\\')/gi,'"'),"svg"!==s)){var c=new Error("Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.");return o(c),e.promise?n:t.emit("error",c)}var u=e.canvas,d=u.getContext("2d"),f=new i,p="data:image/svg+xml,"+encodeURIComponent(l);u.height=e.height||150,u.width=e.width||300,f.onload=function(){var n;switch("svg"!==s&&d.drawImage(f,0,0),s){case"jpeg":n=u.toDataURL("image/jpeg");break;case"png":n=u.toDataURL("image/png");break;case"webp":n=u.toDataURL("image/webp");break;case"svg":n=p;break;default:if(o(new Error("Image format is not jpeg, png or svg")),!e.promise)return t.emit("error","Image format is not jpeg, png or svg")}a(n),e.promise||t.emit("success",n)},f.onerror=function(n){if(o(n),!e.promise)return t.emit("error",n)},f.src=p});return e.promise?n:t}},function(e,t,n){"use strict";var r=n(1),a=n(7),o=n(3),i=n(31),l=/"/g,s=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t){var n,c=e._fullLayout,u=c._paper,d=c._toppaper;u.insert("rect",":first-child").call(a.setRect,0,0,c.width,c.height).call(o.fill,c.paper_bgcolor);var f=c._basePlotModules||[];for(n=0;n")?"":t.html(e).text()});return t.remove(),n}(m),m=(m=m.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(s,"'")}},function(e,t,n){"use strict";var r=n(0),a=n(9),o=r.extendFlat,i=r.extendDeep;function l(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:"",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:"",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}e.exports=function(e,t){var n;e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var r,s=e.data,c=e.layout,u=i([],s),d=i({},c,l(t.tileClass)),f=e._context||{};if(t.width&&(d.width=t.width),t.height&&(d.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){d.annotations=[];var p=Object.keys(d);for(n=0;n-1&&(d[p[n]].title="");for(n=0;n0||f<0){var v={left:[-n,0],right:[n,0],top:[0,-n],bottom:[0,n]}[m.side];t.attr("transform","translate("+v+")")}}}}},function(e,t,n){"use strict";e.exports=function(e){for(var t,n=e.length,r=new Array(n),a=n-1,o=0;a>=0;a--,o++)t=e[a],r[o]=[1-t[0],t[1]];return r}},function(e,t,n){"use strict";var r=n(25),a=n(163);e.exports=function(e){return void 0!==r[e]||a(e)}},function(e,t,n){"use strict";var r=n(2),a=n(0),o=n(292),i=n(291),l=n(99),s=n(98);e.exports=function(e,t,n,c,u){var d,f=u.prefix,p=u.cLetter,h=f.slice(0,f.length-1),v=f?a.nestedProperty(e,h).get()||{}:e,g=f?a.nestedProperty(t,h).get()||{}:t,m=v[p+"min"],y=v[p+"max"],_=v.colorscale;c(f+p+"auto",!(r(m)&&r(y)&&m0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},function(e,t,n){"use strict";var r="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}};e.exports=function(e){return Array.isArray(e)||r.isView(e)}},function(e,t,n){"use strict";var r=n(2),a=n(106),o=n(32),i=n(167);e.exports=function(e,t){if(r(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var n,o,i,l=0,s=t.split(".");l=0;t--){if(r=e[t][0],o=e[t][1],l=!1,a(r))for(n=r.length-1;n>=0;n--)c(r[n],d(o,n))?l?r[n]=void 0:r.pop():l=!0;else if("object"==typeof r&&null!==r)for(i=Object.keys(r),l=!1,n=i.length-1;n>=0;n--)c(r[i[n]],d(o,i[n]))?delete r[i[n]]:l=!0;if(l)return}}(u)):l[t[i]]=r}}function d(e,t){var n=t;return r(t)?n="["+t+"]":e&&(n="."+t),e+n}function f(e,t,n,r){var o,i=a(n),l=!0,s=n,d=r.replace("-1",0),f=!i&&c(n,d),h=t[0];for(o=0;o0&&console.error(t)}},topojsonURL:"https://cdn.plot.ly/",mapboxAccessToken:null,logging:!1,globalTransforms:[]}},function(e,t,n){"use strict";var r=function(){var e=this.$createElement,t=this._self._c||e;return t("figure",{staticClass:"image"},[t("img",{style:this.round?"border-radius: 50%":"",attrs:{src:"/dist/assets/hero-icons/"+this.hero.toLowerCase()+".jpg",alt:this.hero,title:this.hero}})])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",{staticClass:"title-box"},[e._v(e._s(e.title))]),e._v(" "),n("div",{staticClass:"columns is-mobile"},[n("div",{staticClass:"column is-centered"},[n("hero-image",{staticClass:"is-64x64 hero-image-slot",attrs:{actor:e.entry.Actor}}),e._v(" "),n("span",{staticClass:"hero-name"},[e._v(e._s(e.hero))])],1),e._v(" "),n("div",{staticClass:"column value is-centered"},[e.hasTalent?n("talent-image",{attrs:{entry:e.entry,size:64}}):n("span",[e._v("No Talent")]),e._v(" "),n("span",[e._v(e._s(e.value)+e._s(e.label))]),e._v(" "),n("span",{staticClass:"type"},[e._v(e._s(e.type))])],1)])])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"None"!=e.rarity?n("div",{staticClass:"talent-image",style:"background-image: url('/dist/assets/talent-icons-small/"+e.hero+"/"+e.hero+"_"+e.rarity+".jpg'); width: "+e.size+"px; height: "+e.size+"px",attrs:{alt:e.hero+" "+e.rarity,title:e.hero+" "+e.rarity}}):e._e()},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"columns is-multiline is-mobile"},[e.stats.topWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Overpowered",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topWin.TotalWinner),entry:e.stats.topWin}})],1):e._e(),e._v(" "),e.stats.topPick?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Trending",type:"Total Pick Rate",label:"%",value:(100*e.playersPerMatch*e.stats.topPick.Count/e.stats.totalPicks).toFixed(2),entry:e.stats.topPick}})],1):e._e(),e._v(" "),e.stats.topLowLevel?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Beginner",type:"Level 1 Win Rate",label:"%",value:Math.round(100*e.stats.topLowLevel.Winner),entry:e.stats.topLowLevel}})],1):e._e(),e._v(" "),e.stats.topScaling?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Spender",type:"Win Rate per Level",label:"%",value:"+"+Math.round(100*e.stats.topScaling.TalentWinrateLevelScaling),entry:e.stats.topScaling}})],1):e._e(),e._v(" "),e.stats.topUnpopularWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Hidden Gem",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topUnpopularWin.TotalWinner),entry:e.stats.topUnpopularWin}})],1):e._e(),e._v(" "),e.stats.topRareWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Rare",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topRareWin.TotalWinner),entry:e.stats.topRareWin}})],1):e._e(),e._v(" "),e.stats.topEpicWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Epic",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topEpicWin.TotalWinner),entry:e.stats.topEpicWin}})],1):e._e(),e._v(" "),e.stats.topLegendaryWin?n("div",{staticClass:"column"},[n("talent-box",{staticClass:"is-dark notification",attrs:{title:"Best Legendary",type:"Win Rate",label:"%",value:Math.round(100*e.stats.topLegendaryWin.TotalWinner),entry:e.stats.topLegendaryWin}})],1):e._e()])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticClass:"columns is-mobile is-multiline is-centered"},e._l(e.actors,function(t){return n("div",{key:t,staticClass:"column is-narrow"},[n("a",{on:{click:function(n){e.selectedActor=t}}},[n("hero-image",{class:"is-48x48 "+(e.selectedActor==t?"highlight-selection":""),attrs:{actor:t}})],1)])}))])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("b-table",{attrs:{data:e.top10Talents,"mobile-cards":!1},scopedSlots:e._u([{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Actor",label:"Hero"}},[n("hero-image",{staticClass:"is-square",attrs:{actor:t.row.Actor}})],1),e._v(" "),n("b-table-column",{attrs:{field:"Talent",label:"Talent",visible:e.hasTalents}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("span",[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)]),e._v(" "),n("b-table-column",{attrs:{field:"Count",label:"Pick Rate",visible:!e.hasTalents,sortable:"",numeric:""}},[n("span",[e._v(e._s(Math.round(100*e.playersPerMatch*t.row.Count/e.totalPicks))+"%")])]),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Win Rate",sortable:"",numeric:""}},[n("span",[e._v(e._s(Math.round(100*t.row.Winner))+"%")])])]}}])})],1)},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[e._m(0),e._v(" "),n("div",{staticClass:"tabs is-fullwidth"},[n("ul",e._l(e.modes,function(t){return n("li",{key:t,class:t==e.selectedMode?"is-active":""},[n("a",{on:{click:function(n){e.selectedMode=t}}},[n("span",[e._v(e._s(e.getMode(t)))])])])}))]),e._v(" "),n("mode-tab",{staticClass:"tab"}),e._v(" "),n("footer",{staticClass:"footer"},[n("div",{staticClass:"container"},[n("div",{staticClass:"content has-text-centered"},[n("p",[e._v("\n Last update: "+e._s(e.lastUpdate)+", with "+e._s(e.totalMatches)+" matches total.\n ")]),e._v(" "),e._m(1),e._v(" "),n("p")])])])],1)},a=[function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"hero is-medium is-bold header"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("h1",{staticClass:"title has-text-white"},[this._v("\n Broken Talents\n ")]),this._v(" "),t("h2",{staticClass:"subtitle has-text-white"},[this._v("\n Tilting Brawlers since Update 2.5\n ")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("strong",[e._v("BrokenTalentsFun")]),e._v(", the Vainglory Talents and Hero win rate statistics site, by shutterfly ("),n("a",{attrs:{href:"https://schneefux.xyz"}},[e._v("@schneefux")]),e._v(").\n "),n("br"),e._v(" "),n("a",{attrs:{href:"https://github.com/BrokenTalents/brokentalents.github.io"}},[e._v("Source Code")]),e._v(".\n Built with the "),n("a",{attrs:{href:"http://developer.vainglorygame.com"}},[e._v("Vainglory API")]),e._v(".\n Images by "),n("a",{attrs:{href:"https://vainglorygame.com"}},[e._v("Super Evil Mega Corp")]),e._v(", Gwen Icon by Bleeko.\n "),n("br"),e._v("\n Join the "),n("a",{attrs:{href:"https://discord.gg/txTchJY"}},[e._v("Discord Server")]),e._v(" if you have questions.\n ")])}];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",[n("b-table",{attrs:{data:e.report,"default-sort":["TotalPicks","desc"],"default-sort-directon":"desc",paginated:!0},scopedSlots:e._u([{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Actor",label:"Hero",sortable:""}},[n("div",{staticClass:"is-hidden-touch"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("hero-image",{staticClass:"is-48x48",attrs:{round:"true",actor:t.row.Actor}}),e._v(" "),n("span",{staticStyle:{"padding-left":"0.75em"}},[e._v(e._s(e.getHero(t.row.Actor)))])],1)]),e._v(" "),n("div",{staticClass:"is-hidden-desktop"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("span",{staticStyle:{"padding-right":"0.5em"}},[e._v(e._s(e.getHero(t.row.Actor)))]),e._v(" "),n("hero-image",{staticClass:"is-48x48",attrs:{round:"true",actor:t.row.Actor}})],1)])]),e._v(" "),n("b-table-column",{attrs:{field:"Talent",label:"Talent",visible:e.hasTalents}},[n("div",{staticClass:"is-hidden-touch"},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("span",[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)]),e._v(" "),n("div",{staticClass:"is-hidden-desktop"},[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("span",{staticStyle:{"padding-right":"0.5em"}},[e._v(e._s(e.getTalentName(t.row.Talent)))]),e._v(" "),n("talent-image",{attrs:{entry:t.row,size:48}})],1)])]),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Level 1 Win Rate",sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateBase)||t.row.SampleTooSmall?[e._v("\n "+e._s((100*t.row.Winner).toFixed(2))+"%\n ")]:[e._v("\n "+e._s((100*t.row.TalentWinrateBase).toFixed(2))+"%\n ")]],2),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateScaling",label:"Win Rate Advantage",sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateScaling)||t.row.SampleTooSmall?[n("span",{staticClass:"mdi mdi-gauge-empty mdi-18px",attrs:{title:"Not enough data"}})]:[e._v("\n "+e._s((t.row.TalentWinrateScaling>0?"+":"")+(100*t.row.TalentWinrateScaling/e.getLevelBuckets()).toFixed(2))+"% "),n("small",[e._v("for "+e._s(e.getLevelsPerBucket(t.row)+(e.getLevelsPerBucket(t.row)>1?" Levels":" Level")))])]],2),e._v(" "),n("b-table-column",{attrs:{field:"TotalPicks",label:"Pick Rate",sortable:"",numeric:""}},[e._v("\n "+e._s((100*e.playersPerMatch*t.row.TotalPicks/e.totalPicks).toFixed(2))+"%\n ")])]}}])})],1)},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:"notification "+(e.hideIntro?"is-hidden":"")},[n("button",{staticClass:"delete",on:{click:function(t){e.hideIntro=!0}}}),e._v(" "),n("div",{staticClass:"content"},[n("h3",[e._v("Hi There!")]),e._v(" "),n("img",{staticClass:"image is-64x64",staticStyle:{float:"right"},attrs:{src:"/dist/assets/gwenbarf.png"}}),e._v(" "),e._m(0),e._v(" "),n("p",[e._v("\n This site shares visitor data with Google Analytics and Google AdSense which store cookies. If you do not want that, you can "),n("a",{on:{click:function(e){this.$ga.disable()}}},[e._v("opt out of Google Analytics")]),e._v(" and "),n("a",{attrs:{href:"http://www.youronlinechoices.com/"}},[e._v("opt out of targeted advertisements")]),e._v(".\n ")])])])},a=[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[this._v("\n Broken Talents Fun will help you find the best Talents for the Vainglory mobile MOBA game.\n "),t("br"),this._v("\n Talents are special boosts for Vainglory's Brawl modes that upgrade and change hero abilities in a variety of different ways.\n "),t("br"),this._v("\n The pick and win rates on this site have been gathered from real Vainglory matches.\n The data can be imprecise and can be contrary to your personal experience.\n ")])}];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:void 0!=e.deferredPrompt,expression:"deferredPrompt != undefined"}],staticClass:"notification is-primary"},[n("button",{staticClass:"delete",on:{click:function(t){e.deferredPrompt=void 0}}}),e._v(" "),n("div",{staticClass:"has-text-centered"},[e._v("Add to your homescreen for fast and offline access?")]),e._v(" "),n("div",{staticClass:"has-text-centered install-button"},[n("button",{staticClass:"button is-medium",on:{click:function(t){e.deferredPrompt.prompt()}}},[n("span",{staticClass:"mdi mdi-download"}),e._v(" "),n("span",[e._v("ย Install")])])])])},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this.$createElement;return(this._self._c||e)("div",{ref:"graph",staticClass:"plotly"})},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("intro-box"),e._v(" "),n("install-notification"),e._v(" "),n("div",{staticClass:"columns is-multiline"},[e.hasTalents?n("div",{staticClass:"column"},[n("h2",{staticClass:"title is-2"},[e._v("Highlights")]),e._v(" "),n("highlights")],1):e._e(),e._v(" "),n("div",{staticClass:"column is-narrow"},[n("h2",{staticClass:"title is-2"},[e._v("Top 10")]),e._v(" "),n("top-talents-box")],1)]),e._v(" "),n("Adsense",{staticClass:"adsense",attrs:{"data-ad-client":"ca-pub-6856963757796636","data-ad-slot":"3898218968"}}),e._v(" "),e.hasTalents?n("div",{staticClass:"columns is-multiline"},[n("div",{staticClass:"column is-two-thirds"},[n("h2",{staticClass:"title is-2"},[e._v("Individual Hero Statistics")]),e._v(" "),n("h3",{staticClass:"subtitle"},[e._v("Select a Hero")]),e._v(" "),n("hero-draft-grid")],1),e._v(" "),n("div",{staticClass:"column is-one-third"},[n("h2",{staticClass:"title is-2"},[e._v(e._s(e.getHero(e.selectedActor))+" Statistics")]),e._v(" "),n("hero-talent-table")],1)]):e._e(),e._v(" "),n("div",{staticClass:"box"},[n("h2",{staticClass:"title is-2"},[e._v("Hero Balance Overview")]),e._v(" "),n("h3",{staticClass:"subtitle is-hidden-desktop"},[e._v("Best viewed on a large screen")]),e._v(" "),n("win-pick-scatter")],1),e._v(" "),n("Adsense",{staticClass:"adsense",attrs:{"data-ad-client":"ca-pub-6856963757796636","data-ad-slot":"4801023518"}}),e._v(" "),n("div",[n("h2",{staticClass:"title is-2"},[e._v("All Hero Statistics")]),e._v(" "),n("report-table")],1)],1)},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[n("hero-image",{staticClass:"is-64x64",attrs:{actor:e.selectedActor}})],1),e._v(" "),n("b-table",{attrs:{data:e.heroReport,"mobile-cards":!1},scopedSlots:e._u([{key:"default",fn:function(t){return[n("b-table-column",{attrs:{field:"Talent",label:"Talent"}},[n("talent-image",{attrs:{entry:t.row,size:48}})],1),e._v(" "),n("b-table-column",{attrs:{field:"Winner",label:"Level 1 Win Rate",sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateBase)?[e._v("\n "+e._s((100*t.row.Winner).toFixed(2))+"%\n ")]:[e._v("\n "+e._s((100*t.row.TalentWinrateBase).toFixed(2))+"%\n ")]],2),e._v(" "),n("b-table-column",{attrs:{field:"TalentWinrateScaling",label:"Win Rate Advantage",sortable:"",numeric:""}},[isNaN(t.row.TalentWinrateScaling)||t.row.SampleTooSmall?[n("span",{staticClass:"mdi mdi-gauge-empty mdi-18px",attrs:{title:"Not enough data"}})]:[e._v("\n "+e._s((t.row.TalentWinrateScaling>0?"+":"")+(100*t.row.TalentWinrateScaling/e.getLevelBuckets()).toFixed(2))+"% "),n("small",[e._v("for "+e._s(e.getLevelsPerBucket(t.row)+(e.getLevelsPerBucket(t.row)>1?" Levels":" Level")))])]],2)]}}])})],1)},a=[];n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a})},function(e,t,n){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},function(e,t,n){"use strict";e.exports={step:{valType:"enumerated",role:"info",values:["month","year","day","hour","minute","second","all"],dflt:"month",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",role:"info",values:["backward","todate"],dflt:"backward",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",role:"info",min:0,dflt:1,description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the button."}}},function(e,t,n){"use strict";e.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskColor:"rgba(0,0,0,0.4)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},function(e,t,n){"use strict";var r=n(17),a=n(129),o=n(10).extendFlat,i=n(10).extendDeep,l=n(104),s=n(35),c={_isLinkedToArray:"step",method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called when the slider value is changed.","If the `skip` method is used, the API slider will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","slider events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the slider"},value:{valType:"string",role:"info",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_sliderchange` method and executing the API command manually without losing","the benefit of the slider automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}};e.exports={_isLinkedToArray:"slider",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",role:"info",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:c,lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the x position (in normalized coordinates) of the slider."},pad:i({},a,{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",role:"info",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:l.transition.easing.values,role:"info",dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",role:"info",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,role:"info",description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:o({},r,{description:"Sets the font of the current value label text."})},font:o({},r,{description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",role:"style",dflt:s.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:s.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:s.railBorderColor,role:"style",description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:s.railBorderWidth,role:"style",description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:s.tickLength,role:"style",description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:s.tickColor,role:"style",description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:s.minorTickLength,role:"style",description:"Sets the length in pixels of minor step tick marks"}}},function(e,t,n){"use strict";e.exports={t:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the left side of the component."}}},function(e,t,n){"use strict";var r=n(17),a=n(24),o=n(10).extendFlat,i=n(129),l={_isLinkedToArray:"button",method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called on click.","If the `skip` method is used, the API updatemenu will function as normal","but will perform no API calls and will not bind automatically to state","updates. This may be used to create a component interface and attach to","updatemenu events manually via JavaScript."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},label:{valType:"string",role:"info",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",role:"info",dflt:!0,description:["When true, the API method is executed. When false, all other behaviors are the same","and command execution is skipped. This may be useful when hooking into, for example,","the `plotly_buttonclicked` method and executing the API command manually without losing","the benefit of the updatemenu automatically binding to the state of the plot through the","specification of `method` and `args`."].join(" ")}};e.exports={_isLinkedToArray:"updatemenu",_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",role:"info",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",role:"info",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",role:"info",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",role:"info",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",role:"info",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:l,x:{valType:"number",min:-2,max:3,dflt:-.05,role:"style",description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",role:"info",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:o({},i,{description:"Sets the padding around the buttons or dropdown menu."}),font:o({},r,{description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",role:"style",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:a.borderLine,role:"style",description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the border enclosing the update menu."}}},function(e,t,n){"use strict";var r=n(14);e.exports={_isLinkedToArray:"image",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",role:"info",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",role:"info",dflt:0,description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width."].join(" ")},sizey:{valType:"number",role:"info",dflt:0,description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",role:"info",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",role:"info",min:0,max:1,dflt:1,description:"Sets the opacity of the image."},x:{valType:"any",role:"info",dflt:0,description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",role:"info",dflt:0,description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",role:"info",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",role:"info",description:["Sets the images's x coordinate axis.","If set to a x axis id (e.g. *x* or *x2*), the `x` position","refers to an x data coordinate","If set to *paper*, the `x` position refers to the distance from","the left of plot in normalized coordinates","where *0* (*1*) corresponds to the left (right)."].join(" ")},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",role:"info",description:["Sets the images's y coordinate axis.","If set to a y axis id (e.g. *y* or *y2*), the `y` position","refers to a y data coordinate.","If set to *paper*, the `y` position refers to the distance from","the bottom of the plot in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}}},function(e,t,n){"use strict";var r=n(36),a=n(40).line,o=n(101).dash,i=n(10).extendFlat;e.exports={_isLinkedToArray:"shape",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],role:"info",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","If *path*, draw a custom SVG path using `path`."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:"Specifies whether shapes are drawn below or above traces."},xref:i({},r.xref,{description:["Sets the shape's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the left (right) side.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, then you must convert","the date to unix time in milliseconds."].join(" ")}),x0:{valType:"any",role:"info",description:["Sets the shape's starting x position.","See `type` for more info."].join(" ")},x1:{valType:"any",role:"info",description:["Sets the shape's end x position.","See `type` for more info."].join(" ")},yref:i({},r.yref,{description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}),y0:{valType:"any",role:"info",description:["Sets the shape's starting y position.","See `type` for more info."].join(" ")},y1:{valType:"any",role:"info",description:["Sets the shape's end y position.","See `type` for more info."].join(" ")},path:{valType:"string",role:"info",description:["For `type` *path* - a valid SVG path but with the pixel values","replaced by data values. There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",description:"Sets the opacity of the shape."},line:{color:a.color,width:a.width,dash:o,role:"info"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",description:["Sets the color filling the shape's interior."].join(" ")}}},function(e,t,n){"use strict";e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},function(e,t,n){"use strict";var r=n(0),a=n(3);e.exports=function(e,t,n,o){o("opacity");var i=o("bgcolor"),l=o("bordercolor"),s=a.opacity(l);o("borderpad");var c=o("borderwidth"),u=o("showarrow");o("text",u?" ":"new text"),o("textangle"),r.coerceFont(o,"font",n.font),o("width"),o("align"),o("height")&&o("valign"),u&&(o("arrowcolor",s?t.bordercolor:a.defaultLine),o("arrowhead"),o("arrowsize"),o("arrowwidth",2*(s&&c||1)),o("standoff"));var d=o("hovertext"),f=n.hoverlabel||{};if(d){var p=o("hoverlabel.bgcolor",f.bgcolor||(a.opacity(i)?a.rgb(i):a.defaultLine)),h=o("hoverlabel.bordercolor",f.bordercolor||a.contrast(p));r.coerceFont(o,"hoverlabel.font",{family:f.font.family,size:f.font.size,color:f.font.color||h})}o("captureevents",!!d)}},function(e,t,n){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0},{path:"M2,2V-2H-2V2Z",backoff:0}]},function(e,t,n){"use strict";var r=n(1),a=n(4),o=n(0),i=n(7),l=n(3),s=n(12),c=n(216);e.exports=function(e,t){e.each(function(e){var t=r.select(this).selectAll("g.layers").data([0]);t.enter().append("g").classed("layers",!0),t.style("opacity",e[0].trace.opacity),t.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),t.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var n=t.selectAll("g.legendsymbols").data([e]);n.enter().append("g").classed("legendsymbols",!0),n.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)}).each(function(e){var t=e[0].trace,n=t.marker||{},o=n.line||{},i=r.select(this).select("g.legendpoints").selectAll("path.legendbar").data(a.traceIs(t,"bar")?[e]:[]);i.enter().append("path").classed("legendbar",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),i.exit().remove(),i.each(function(e){var t=r.select(this),a=e[0],i=(a.mlw+1||o.width+1)-1;t.style("stroke-width",i+"px").call(l.fill,a.mc||n.color),i&&t.call(l.stroke,a.mlc||o.color)})}).each(function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(a.traceIs(t,"box")&&t.visible?[e]:[]);n.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.each(function(){var e=t.line.width,n=r.select(this);n.style("stroke-width",e+"px").call(l.fill,t.fillcolor),e&&n.call(l.stroke,t.line.color)})}).each(function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendpie").data(a.traceIs(t,"pie")&&t.visible?[e]:[]);n.enter().append("path").classed("legendpie",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.size()&&n.call(c,e[0],t)}).each(function(e){var t=e[0].trace,n=t.visible&&t.fill&&"none"!==t.fill,a=s.hasLines(t);t&&t._module&&"contourcarpet"===t._module.name&&(a=t.contours.showlines,n="fill"===t.contours.coloring);var o=r.select(this).select(".legendfill").selectAll("path").data(n?[e]:[]);o.enter().append("path").classed("js-fill",!0),o.exit().remove(),o.attr("d","M5,0h30v6h-30z").call(i.fillGroupStyle);var l=r.select(this).select(".legendlines").selectAll("path").data(a?[e]:[]);l.enter().append("path").classed("js-line",!0).attr("d","M5,0h30"),l.exit().remove(),l.call(i.lineGroupStyle)}).each(function(e){var n,a,l=e[0],c=l.trace,u=s.hasMarkers(c),d=s.hasText(c),f=s.hasLines(c);function p(e,t,n){var r=o.nestedProperty(c,e).get(),a=Array.isArray(r)&&t?t(r):r;if(n){if(an[1])return n[1]}return a}function h(e){return e[0]}if(u||d||f){var v={},g={};u&&(v.mc=p("marker.color",h),v.mo=p("marker.opacity",o.mean,[.2,1]),v.ms=p("marker.size",o.mean,[2,16]),v.mlc=p("marker.line.color",h),v.mlw=p("marker.line.width",o.mean,[0,5]),g.marker={sizeref:1,sizemin:1,sizemode:"diameter"}),f&&(g.line={width:p("line.width",h,[0,10])}),d&&(v.tx="Aa",v.tp=p("textposition",h),v.ts=10,v.tc=p("textfont.color",h),v.tf=p("textfont.family",h)),n=[o.minExtend(l,v)],a=o.minExtend(c,g)}var m=r.select(this).select("g.legendpoints"),y=m.selectAll("path.scatterpts").data(u?n:[]);y.enter().append("path").classed("scatterpts",!0).attr("transform","translate(20,0)"),y.exit().remove(),y.call(i.pointStyle,a,t),u&&(n[0].mrc=3);var _=m.selectAll("g.pointtext").data(d?n:[]);_.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),_.exit().remove(),_.selectAll("text").call(i.textPointStyle,a,t)})}},function(e,t,n){"use strict";var r=n(17),a=n(24),o=n(10).extendFlat;e.exports={bgcolor:{valType:"color",role:"style",description:"Sets the legend background color."},bordercolor:{valType:"color",dflt:a.defaultLine,role:"style",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",description:"Sets the width (in px) of the border enclosing the legend."},font:o({},r,{description:"Sets the font used to text the legend items."}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",role:"info",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],role:"style",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,role:"style",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:1.02,role:"style",description:"Sets the x position (in normalized coordinates) of the legend."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the legend."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend."].join(" ")}}},function(e,t,n){"use strict";var r=n(1),a=n(0),o=n(9),i=n(18),l=n(14);function s(e,t,n,r,a){var o=e._fullLayout._modules;t.plot&&t.plot.selectAll("g:not(.scatterlayer)").selectAll("g.trace").remove();for(var i=0;ir||c===a||ci||t&&s(e))}:function(e,l){var s=e[0],c=e[1];if(s===a||sr||c===a||ci)return!1;var u,d,f,p,h,v=t.length,g=t[0][0],m=t[0][1],y=0;for(u=1;uMath.max(d,g)||c>Math.max(f,m)))if(cu||Math.abs(r(i,f))>a)return!0;return!1};o.filter=function(e,t){var n=[e[0]],r=0,a=0;function o(o){e.push(o);var l=n.length,s=r;n.splice(a+1);for(var c=s+1;c1&&o(e.pop());return{addPt:o,raw:e,filtered:n}}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,a){n("hoverlabel.bgcolor",(a=a||{}).bgcolor),n("hoverlabel.bordercolor",a.bordercolor),r.coerceFont(n,"hoverlabel.font",a.font)}},function(e,t,n){"use strict";var r=n(2),a=n(29),o=n(20),i=n(14),l=n(257);e.exports=function(e){var t=e._fullLayout;if((t._has("cartesian")||t._has("gl2d"))&&!e._context.staticPlot){Object.keys(t._plots||{}).sort(function(e,n){if((t._plots[e].mainplot&&!0)===(t._plots[n].mainplot&&!0)){var r=e.split("y"),a=n.split("y");return r[0]===a[0]?Number(r[1]||1)-Number(a[1]||1):Number(r[0]||1)-Number(a[0]||1)}return t._plots[e].mainplot?1:-1}).forEach(function(n){var s=t._plots[n],c=s.xaxis,u=s.yaxis,d=(c._linepositions[n]||[])[3],f=(u._linepositions[n]||[])[3],p=i.DRAGGERSIZE;if(r(d)&&"top"===c.side&&(d-=p),r(f)&&"right"!==u.side&&(f-=p),!s.mainplot){var h=l(e,s,0,0,c._length,u._length,"ns","ew");h.onmousemove=function(t){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===n&&a.hover(e,t,n)},a.hover(e,t,n),e._fullLayout._lasthover=h,e._fullLayout._hoversubplot=n},h.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,o.unhover(e,t))},h.onclick=function(t){a.click(e,t,n)},e._context.showAxisDragHandles&&(l(e,s,-p,-p,p,p,"n","w"),l(e,s,c._length,-p,p,p,"n","e"),l(e,s,-p,u._length,p,p,"s","w"),l(e,s,c._length,u._length,p,p,"s","e"))}e._context.showAxisDragHandles&&(r(d)&&("free"===c.anchor&&(d-=t._size.h*(1-u.domain[1])),l(e,s,.1*c._length,d,.8*c._length,p,"","ew"),l(e,s,0,d,.1*c._length,p,"","w"),l(e,s,.9*c._length,d,.1*c._length,p,"","e")),r(f)&&("free"===u.anchor&&(f-=t._size.w*c.domain[0]),l(e,s,f,.1*u._length,p,.8*u._length,"ns",""),l(e,s,f,.9*u._length,p,.1*u._length,"s",""),l(e,s,f,0,p,.1*u._length,"n","")))});var n=t._hoverlayer.node();n.onmousemove=function(n){n.target=t._lasthover,a.hover(e,n,t._hoversubplot)},n.onclick=function(n){n.target=t._lasthover,a.click(e,n)},n.onmousedown=function(e){t._lasthover.onmousedown(e)}}}},function(e,t,n){var r=n(1),a=n(0).extendDeepAll,o=e.exports={version:"0.2.2"};o.Axis=function(){var e,t,n,i,l={data:[],layout:{}},s={},c={},u=r.dispatch("hover"),d={};return d.render=function(s){return function(s){t=s||t;var u=l.data,d=l.layout;("string"==typeof t||t.nodeName)&&(t=r.select(t)),t.datum(u).each(function(t,l){var s=t.slice();c={data:o.util.cloneJson(s),layout:o.util.cloneJson(d)};var u=0;s.forEach(function(e,t){e.color||(e.color=d.defaultColorRange[u],u=(u+1)%d.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:r.rgb(e.color).darker().toString()),c.data[t].color=e.color,c.data[t].strokeColor=e.strokeColor,c.data[t].strokeDash=e.strokeDash,c.data[t].strokeSize=e.strokeSize});var f=s.filter(function(e,t){var n=e.visible;return void 0===n||!0===n}),p=!1,h=f.map(function(e,t){return p=p||void 0!==e.groupId,e});if(p){var v=[],g=r.nest().key(function(e,t){return void 0!==e.groupId?e.groupId:"unstacked"}).entries(h).map(function(e,t){if("unstacked"===e.key)return e.values;var n=e.values[0].r.map(function(e,t){return 0});return e.values.forEach(function(e,t,r){e.yStack=[n],v.push(n),n=o.util.sumArrays(e.r,n)}),e.values});f=r.merge(g)}f.forEach(function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]});var m=Math.min(d.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2;m=Math.max(10,m);var y,_=[d.margin.left+m,d.margin.top+m];y=p?[0,r.max(o.util.sumArrays(o.util.arrayLast(f).r[0],o.util.arrayLast(v)))]:r.extent(o.util.flattenArray(f.map(function(e,t){return e.r}))),d.radialAxis.domain!=o.DATAEXTENT&&(y[0]=0),n=r.scale.linear().domain(d.radialAxis.domain!=o.DATAEXTENT&&d.radialAxis.domain?d.radialAxis.domain:y).range([0,m]),c.layout.radialAxis.domain=n.domain();var b,k=o.util.flattenArray(f.map(function(e,t){return e.t})),x="string"==typeof k[0];x&&(k=o.util.deduplicate(k),b=k.slice(),k=r.range(k.length),f=f.map(function(e,t){var n=e;return e.t=[k],p&&(n.yStack=e.yStack),n}));var T=f.filter(function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry}).length===f.length,A=null===d.needsEndSpacing?x||!T:d.needsEndSpacing,w=d.angularAxis.domain&&d.angularAxis.domain!=o.DATAEXTENT&&!x&&d.angularAxis.domain[0]>=0?d.angularAxis.domain:r.extent(k),M=Math.abs(k[1]-k[0]);T&&!x&&(M=0);var C=w.slice();A&&x&&(C[1]+=M);var L=d.angularAxis.ticksCount||4;L>8&&(L=L/(L/8)+L%8),d.angularAxis.ticksStep&&(L=(C[1]-C[0])/L);var B=d.angularAxis.ticksStep||(C[1]-C[0])/(L*(d.minorTicks+1));b&&(B=Math.max(Math.round(B),1)),C[2]||(C[2]=B);var S=r.range.apply(this,C);if(S=S.map(function(e,t){return parseFloat(e.toPrecision(12))}),i=r.scale.linear().domain(C.slice(0,2)).range("clockwise"===d.direction?[0,360]:[360,0]),c.layout.angularAxis.domain=i.domain(),c.layout.angularAxis.endPadding=A?M:0,void 0===(e=r.select(this).select("svg.chart-root"))||e.empty()){var W=(new DOMParser).parseFromString("' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '","application/xml"),z=this.appendChild(this.ownerDocument.importNode(W.documentElement,!0));e=r.select(z)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var O,P=e.select(".chart-group"),D={fill:"none",stroke:d.tickColor},R={"font-size":d.font.size,"font-family":d.font.family,fill:d.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map(function(e,t){return" "+e+" 0 "+d.font.outlineColor}).join(",")};if(d.showLegend){O=e.select(".legend-group").attr({transform:"translate("+[m,d.margin.top]+")"}).style({display:"block"});var N=f.map(function(e,t){var n=o.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n});o.Legend().config({data:f.map(function(e,t){return e.name||"Element"+t}),legendConfig:a({},o.Legend.defaultConfig().legendConfig,{container:O,elements:N,reverseOrder:d.legend.reverseOrder})})();var E=O.node().getBBox();m=Math.min(d.width-E.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2,m=Math.max(10,m),_=[d.margin.left+m,d.margin.top+m],n.range([0,m]),c.layout.radialAxis.domain=n.domain(),O.attr("transform","translate("+[_[0]+m,_[1]-m]+")")}else O=e.select(".legend-group").style({display:"none"});e.attr({width:d.width,height:d.height}).style({opacity:d.opacity}),P.attr("transform","translate("+_+")").style({cursor:"crosshair"});var I=[(d.width-(d.margin.left+d.margin.right+2*m+(E?E.width:0)))/2,(d.height-(d.margin.top+d.margin.bottom+2*m))/2];if(I[0]=Math.max(0,I[0]),I[1]=Math.max(0,I[1]),e.select(".outer-group").attr("transform","translate("+I+")"),d.title){var j=e.select("g.title-group text").style(R).text(d.title),F=j.node().getBBox();j.attr({x:_[0]-F.width/2,y:_[1]-m-20})}var $=e.select(".radial.axis-group");if(d.radialAxis.gridLinesVisible){var V=$.selectAll("circle.grid-circle").data(n.ticks(5));V.enter().append("circle").attr({class:"grid-circle"}).style(D),V.attr("r",n),V.exit().remove()}$.select("circle.outside-circle").attr({r:m}).style(D);var H=e.select("circle.background-circle").attr({r:m}).style({fill:d.backgroundColor,stroke:d.stroke});function G(e,t){return i(e)%360+d.orientation}if(d.radialAxis.visible){var K=r.svg.axis().scale(n).ticks(5).tickSize(5);$.call(K).attr({transform:"rotate("+d.radialAxis.orientation+")"}),$.selectAll(".domain").style(D),$.selectAll("g>text").text(function(e,t){return this.textContent+d.radialAxis.ticksSuffix}).style(R).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===d.radialAxis.tickOrientation?"rotate("+-d.radialAxis.orientation+") translate("+[0,R["font-size"]]+")":"translate("+[0,R["font-size"]]+")"}}),$.selectAll("g>line").style({stroke:"black"})}var q=e.select(".angular.axis-group").selectAll("g.angular-tick").data(S),U=q.enter().append("g").classed("angular-tick",!0);q.attr({transform:function(e,t){return"rotate("+G(e)+")"}}).style({display:d.angularAxis.visible?"block":"none"}),q.exit().remove(),U.append("line").classed("grid-line",!0).classed("major",function(e,t){return t%(d.minorTicks+1)==0}).classed("minor",function(e,t){return!(t%(d.minorTicks+1)==0)}).style(D),U.selectAll(".minor").style({stroke:d.minorTickColor}),q.select("line.grid-line").attr({x1:d.tickLength?m-d.tickLength:0,x2:m}).style({display:d.angularAxis.gridLinesVisible?"block":"none"}),U.append("text").classed("axis-text",!0).style(R);var Y=q.select("text.axis-text").attr({x:m+d.labelOffset,dy:".35em",transform:function(e,t){var n=G(e),r=m+d.labelOffset,a=d.angularAxis.tickOrientation;return"horizontal"==a?"rotate("+-n+" "+r+" 0)":"radial"==a?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:d.angularAxis.labelsVisible?"block":"none"}).text(function(e,t){return t%(d.minorTicks+1)!=0?"":b?b[e]+d.angularAxis.ticksSuffix:e+d.angularAxis.ticksSuffix}).style(R);d.angularAxis.rewriteTicks&&Y.text(function(e,t){return t%(d.minorTicks+1)!=0?"":d.angularAxis.rewriteTicks(this.textContent,t)});var X=r.max(P.selectAll(".angular-tick text")[0].map(function(e,t){return e.getCTM().e+e.getBBox().width}));O.attr({transform:"translate("+[m+X,d.margin.top]+")"});var J=e.select("g.geometry-group").selectAll("g").size()>0,Z=e.select("g.geometry-group").selectAll("g.geometry").data(f);if(Z.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),Z.exit().remove(),f[0]||J){var Q=[];f.forEach(function(e,t){var r={};r.radialScale=n,r.angularScale=i,r.container=Z.filter(function(e,n){return n==t}),r.geometry=e.geometry,r.orientation=d.orientation,r.direction=d.direction,r.index=t,Q.push({data:e,geometryConfig:r})});var ee=[];r.nest().key(function(e,t){return void 0!==e.data.groupId||"unstacked"}).entries(Q).forEach(function(e,t){"unstacked"===e.key?ee=ee.concat(e.values.map(function(e,t){return[e]})):ee.push(e.values)}),ee.forEach(function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map(function(e,t){return a(o[n].defaultConfig(),e)});o[n]().config(r)()})}var te,ne,re=e.select(".guides-group"),ae=e.select(".tooltips-group"),oe=o.tooltipPanel().config({container:ae,fontSize:8})(),ie=o.tooltipPanel().config({container:ae,fontSize:8})(),le=o.tooltipPanel().config({container:ae,hasTick:!0})();if(!x){var se=re.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});P.on("mousemove.angular-guide",function(e,t){var n=o.util.getMousePos(H).angle;se.attr({x2:-m,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-d.orientation)%360;te=i.invert(r);var a=o.util.convertToCartesian(m+12,n+180);oe.text(o.util.round(te)).move([a[0]+_[0],a[1]+_[1]])}).on("mouseout.angular-guide",function(e,t){re.select("line").style({opacity:0})})}var ce=re.select("circle").style({stroke:"grey",fill:"none"});P.on("mousemove.radial-guide",function(e,t){var r=o.util.getMousePos(H).radius;ce.attr({r:r}).style({opacity:.5}),ne=n.invert(o.util.getMousePos(H).radius);var a=o.util.convertToCartesian(r,d.radialAxis.orientation);ie.text(o.util.round(ne)).move([a[0]+_[0],a[1]+_[1]])}).on("mouseout.radial-guide",function(e,t){ce.style({opacity:0}),le.hide(),oe.hide(),ie.hide()}),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",function(t,n){var a=r.select(this),i=a.style("fill"),l="black",s=a.style("opacity")||1;if(a.attr({"data-opacity":s}),"none"!=i){a.attr({"data-fill":i}),l=r.hsl(i).darker().toString(),a.style({fill:l,opacity:1});var c={t:o.util.round(t[0]),r:o.util.round(t[1])};x&&(c.t=b[t[0]]);var u="t: "+c.t+", r: "+c.r,d=this.getBoundingClientRect(),f=e.node().getBoundingClientRect(),p=[d.left+d.width/2-I[0]-f.left,d.top+d.height/2-I[1]-f.top];le.config({color:l}).text(u),le.move(p)}else i=a.style("stroke"),a.attr({"data-stroke":i}),l=r.hsl(i).darker().toString(),a.style({stroke:l,opacity:1})}).on("mousemove.tooltip",function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&le.show()}).on("mouseout.tooltip",function(e,t){le.hide();var n=r.select(this),a=n.attr("data-fill");a?n.style({fill:a,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})})})}(s),this},d.config=function(e){if(!arguments.length)return l;var t=o.util.cloneJson(e);return t.data.forEach(function(e,t){l.data[t]||(l.data[t]={}),a(l.data[t],o.Axis.defaultConfig().data[0]),a(l.data[t],e)}),a(l.layout,o.Axis.defaultConfig().layout),a(l.layout,t.layout),this},d.getLiveConfig=function(){return c},d.getinputConfig=function(){return s},d.radialScale=function(e){return n},d.angularScale=function(e){return i},d.svg=function(){return e},r.rebind(d,u,"on"),d},o.Axis.defaultConfig=function(e,t){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT="dataExtent",o.AREA="AreaChart",o.LINE="LinePlot",o.DOT="DotPlot",o.BAR="BarChart",o.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},o.util._extend=function(e,t){for(var n in e)t[n]=e[n]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(e,t){var n=t||6;return r.range(0,360+n,n).map(function(t,n){var r=t*Math.PI/180;return[t,e(r)]})},o.util.dataFromEquation=function(e,t,n){var a=t||6,o=[],i=[];r.range(0,360+a,a).forEach(function(t,n){var r=t*Math.PI/180,a=e(r);o.push(t),i.push(a)});var l={t:o,r:i};return n&&(l.name=n),l},o.util.ensureArray=function(e,t){if(void 0===e)return null;var n=[].concat(e);return r.range(t).map(function(e,t){return n[t]||n[0]})},o.util.fillArrays=function(e,t,n){return t.forEach(function(t,r){e[t]=o.util.ensureArray(e[t],n)}),e},o.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},o.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},o.util.sumArrays=function(e,t){return r.zip(e,t).map(function(e,t){return r.sum(e)})},o.util.arrayLast=function(e){return e[e.length-1]},o.util.arrayEqual=function(e,t){for(var n=Math.max(e.length,t.length,1);n-- >=0&&e[n]===t[n];);return-2===n},o.util.flattenArray=function(e){for(var t=[];!o.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},o.util.deduplicate=function(e){return e.filter(function(e,t,n){return n.indexOf(e)==t})},o.util.convertToCartesian=function(e,t){var n=t*Math.PI/180;return[e*Math.cos(n),e*Math.sin(n)]},o.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},o.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],a=t[1],o={};return o.x=n,o.y=a,o.pos=t,o.angle=180*(Math.atan2(a,n)+Math.PI)/Math.PI,o.radius=Math.sqrt(n*n+a*a),o},o.util.duplicatesCount=function(e){for(var t,n={},r={},a=0,o=e.length;a0)){var s=r.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:u(l),transform:function(e,n){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return h.fill(n,a,o)},"fill-opacity":0,stroke:function(e,t){return h.stroke(n,a,o)},"stroke-width":function(e,t){return h["stroke-width"](n,a,o)},"stroke-dasharray":function(e,t){return h["stroke-dasharray"](n,a,o)},opacity:function(e,t){return h.opacity(n,a,o)},display:function(e,t){return h.display(n,a,o)}})}};var d=t.angularScale.range(),f=Math.abs(d[1]-d[0])/i[0].length*Math.PI/180,p=r.svg.arc().startAngle(function(e){return-f/2}).endAngle(function(e){return f/2}).innerRadius(function(e){return t.radialScale(s+(e[2]||0))}).outerRadius(function(e){return t.radialScale(s+(e[2]||0))+t.radialScale(e[1])});c.arc=function(e,n,a){r.select(this).attr({class:"mark arc",d:p,transform:function(e,n){return"rotate("+(t.orientation+l(e[0])+90)+")"}})};var h={fill:function(t,n,r){return e[r].data.color},stroke:function(t,n,r){return e[r].data.strokeColor},"stroke-width":function(t,n,r){return e[r].data.strokeSize+"px"},"stroke-dasharray":function(t,r,a){return n[e[a].data.strokeDash]},opacity:function(t,n,r){return e[r].data.opacity},display:function(t,n,r){return void 0===e[r].data.visible||e[r].data.visible?"block":"none"}},v=r.select(this).selectAll("g.layer").data(i);v.enter().append("g").attr({class:"layer"});var g=v.selectAll("path.mark").data(function(e,t){return e});g.enter().append("path").attr({class:"mark"}),g.style(h).each(c[t.geometryType]),g.exit().remove(),v.exit().remove()})}return i.config=function(t){return arguments.length?(t.forEach(function(t,n){e[n]||(e[n]={}),a(e[n],o.PolyChart.defaultConfig()),a(e[n],t)}),this):e},i.getColorScale=function(){},r.rebind(i,t,"on"),i},o.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},o.Legend=function(){var e=o.Legend.defaultConfig(),t=r.dispatch("hover");function n(){var t=e.legendConfig,o=e.data.map(function(e,n){return[].concat(e).map(function(e,r){var o=a({},t.elements[n]);return o.name=e,o.color=[].concat(t.elements[n].color)[r],o})}),i=r.merge(o);i=i.filter(function(e,n){return t.elements[n]&&(t.elements[n].visibleInLegend||void 0===t.elements[n].visibleInLegend)}),t.reverseOrder&&(i=i.reverse());var l=t.container;("string"==typeof l||l.nodeName)&&(l=r.select(l));var s=i.map(function(e,t){return e.color}),c=t.fontSize,u=null==t.isContinuous?"number"==typeof i[0]:t.isContinuous,d=u?t.height:c*i.length,f=l.classed("legend-group",!0).selectAll("svg").data([0]),p=f.enter().append("svg").attr({width:300,height:d+c,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});p.append("g").classed("legend-axis",!0),p.append("g").classed("legend-marks",!0);var h=r.range(i.length),v=r.scale[u?"linear":"ordinal"]().domain(h).range(s),g=r.scale[u?"linear":"ordinal"]().domain(h)[u?"range":"rangePoints"]([0,d]);if(u){var m=f.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(s);m.enter().append("stop"),m.attr({offset:function(e,t){return t/(s.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),f.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var y=f.select(".legend-marks").selectAll("path.legend-mark").data(i);y.enter().append("path").classed("legend-mark",!0),y.attr({transform:function(e,t){return"translate("+[c/2,g(t)+c/2]+")"},d:function(e,t){var n,a,o,i=e.symbol;return o=3*(a=c),"line"===(n=i)?"M"+[[-a/2,-a/12],[a/2,-a/12],[a/2,a/12],[-a/2,a/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(n)?r.svg.symbol().type(n).size(o)():r.svg.symbol().type("square").size(o)()},fill:function(e,t){return v(t)}}),y.exit().remove()}var _=r.svg.axis().scale(g).orient("right"),b=f.select("g.legend-axis").attr({transform:"translate("+[u?t.colorBandWidth:c,c/2]+")"}).call(_);return b.selectAll(".domain").style({fill:"none",stroke:"none"}),b.selectAll("line").style({fill:"none",stroke:u?t.textColor:"none"}),b.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text(function(e,t){return i[t].name}),n}return n.config=function(t){return arguments.length?(a(e,t),this):e},r.rebind(n,t,"on"),n},o.Legend.defaultConfig=function(e,t){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},o.tooltipPanel=function(){var e,t,n,i={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},l="tooltip-"+o.tooltipPanel.uid++,s=10,c=function(){var r=(e=i.container.selectAll("g."+l).data([0])).enter().append("g").classed(l,!0).style({"pointer-events":"none",display:"none"});return n=r.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=r.append("text").attr({dx:i.padding+s,dy:.3*+i.fontSize}),c};return c.text=function(a){var o=r.hsl(i.color).l,l=o>=.5?"#aaa":"white",u=o>=.5?"black":"white",d=a||"";t.style({fill:u,"font-size":i.fontSize+"px"}).text(d);var f=i.padding,p=t.node().getBBox(),h={fill:i.color,stroke:l,"stroke-width":"2px"},v=p.width+2*f+s,g=p.height+2*f;return n.attr({d:"M"+[[s,-g/2],[s,-g/4],[i.hasTick?0:s,0],[s,g/4],[s,g/2],[v,g/2],[v,-g/2]].join("L")+"Z"}).style(h),e.attr({transform:"translate("+[s,-g/2+2*f]+")"}),e.style({display:"block"}),c},c.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),c},c.hide=function(){if(e)return e.style({display:"none"}),c},c.show=function(){if(e)return e.style({display:"block"}),c},c.config=function(e){return a(i,e),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var e={convert:function(e,t){var n={};if(e.data&&(n.data=e.data.map(function(e,n){var r=a({},e);return[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]].forEach(function(e,n){o.util.translator.apply(null,e.concat(t))}),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",!0===r.dotVisible?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r}),!t&&e.layout&&"stack"===e.layout.barmode)){var i=o.util.duplicates(n.data.map(function(e,t){return e.geometry}));n.data.forEach(function(e,t){var r=i.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)})}if(e.layout){var l=a({},e.layout);if([[l,["plot_bgcolor"],["backgroundColor"]],[l,["showlegend"],["showLegend"]],[l,["radialaxis"],["radialAxis"]],[l,["angularaxis"],["angularAxis"]],[l.angularaxis,["showline"],["gridLinesVisible"]],[l.angularaxis,["showticklabels"],["labelsVisible"]],[l.angularaxis,["nticks"],["ticksCount"]],[l.angularaxis,["tickorientation"],["tickOrientation"]],[l.angularaxis,["ticksuffix"],["ticksSuffix"]],[l.angularaxis,["range"],["domain"]],[l.angularaxis,["endpadding"],["endPadding"]],[l.radialaxis,["showline"],["gridLinesVisible"]],[l.radialaxis,["tickorientation"],["tickOrientation"]],[l.radialaxis,["ticksuffix"],["ticksSuffix"]],[l.radialaxis,["range"],["domain"]],[l.angularAxis,["showline"],["gridLinesVisible"]],[l.angularAxis,["showticklabels"],["labelsVisible"]],[l.angularAxis,["nticks"],["ticksCount"]],[l.angularAxis,["tickorientation"],["tickOrientation"]],[l.angularAxis,["ticksuffix"],["ticksSuffix"]],[l.angularAxis,["range"],["domain"]],[l.angularAxis,["endpadding"],["endPadding"]],[l.radialAxis,["showline"],["gridLinesVisible"]],[l.radialAxis,["tickorientation"],["tickOrientation"]],[l.radialAxis,["ticksuffix"],["ticksSuffix"]],[l.radialAxis,["range"],["domain"]],[l.font,["outlinecolor"],["outlineColor"]],[l.legend,["traceorder"],["reverseOrder"]],[l,["labeloffset"],["labelOffset"]],[l,["defaultcolorrange"],["defaultColorRange"]]].forEach(function(e,n){o.util.translator.apply(null,e.concat(t))}),t?(void 0!==l.tickLength&&(l.angularaxis.ticklen=l.tickLength,delete l.tickLength),l.tickColor&&(l.angularaxis.tickcolor=l.tickColor,delete l.tickColor)):(l.angularAxis&&void 0!==l.angularAxis.ticklen&&(l.tickLength=l.angularAxis.ticklen),l.angularAxis&&void 0!==l.angularAxis.tickcolor&&(l.tickColor=l.angularAxis.tickcolor)),l.legend&&"boolean"!=typeof l.legend.reverseOrder&&(l.legend.reverseOrder="normal"!=l.legend.reverseOrder),l.legend&&"boolean"==typeof l.legend.traceorder&&(l.legend.traceorder=l.legend.traceorder?"reversed":"normal",delete l.legend.reverseOrder),l.margin&&void 0!==l.margin.t){var s=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],u={};r.entries(l.margin).forEach(function(e,t){u[c[s.indexOf(e.key)]]=e.value}),l.margin=u}t&&(delete l.needsEndSpacing,delete l.minorTickColor,delete l.minorTicks,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksStep,delete l.angularaxis.rewriteTicks,delete l.angularaxis.nticks,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksStep,delete l.radialaxis.rewriteTicks,delete l.radialaxis.nticks),n.layout=l}return n}};return e}},function(e,t,n){"use strict";var r=n(0),a=n(111);var o={add:function(e,t,n,r,o){var i,l;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(i={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(l,e.undoQueue.queue.length-l,i),e.undoQueue.index+=1):i=e.undoQueue.queue[l-1],e.undoQueue.beginSequence=!1,i&&(i.undo.calls.unshift(t),i.undo.args.unshift(n),i.redo.calls.push(r),i.redo.args.push(o)),e.undoQueue.queue.length>a.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.undo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n1)};d(t.width)&&d(t.height)||u(new Error("Height and width should be pixel values."));var f=l(e,{format:"png",height:t.height,width:t.width}),p=f.gd;p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var h=i.getRedrawFunc(p);a.plot(p,f.data,f.layout,f.config).then(h).then(function(){var e=i.getDelay(p._fullLayout);return new Promise(function(n,r){setTimeout(function(){var e=s(p),a=document.createElement("canvas");a.id=o.randstr(),c({format:t.format,width:p._fullLayout.width,height:p._fullLayout.height,canvas:a,svg:e,promise:!0}).then(function(e){p&&document.body.removeChild(p),n(e)}).catch(function(e){r(e)})},e)})}).then(function(e){n(e)}).catch(function(e){u(e)})})}},function(e,t,n){"use strict";t.manage=n(274)},function(e,t,n){"use strict";var r=n(2),a=n(0);e.exports=function(e,t,n,o){var i=o.counterAxes||[],l=o.overlayableAxes||[],s=o.letter;"free"===a.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:r(e.position)?"free":i[0]||"free"}},"anchor")&&n("position"),a.coerce(e,t,{side:{valType:"enumerated",values:"x"===s?["bottom","top"]:["left","right"],dflt:"x"===s?"bottom":"left"}},"side");var c=!1;if(l.length&&(c=a.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!c){var u=n("domain");u[0]>u[1]-.01&&(t.domain=[0,1]),a.noneOrAll(e.domain,t.domain,[0,1])}return t}},function(e,t,n){"use strict";var r=n(1),a=n(2),o=n(0),i=o.cleanNumber,l=o.ms2DateTime,s=o.dateTime2ms,c=o.ensureNumber,u=n(15),d=u.FP_SAFE,f=u.BADNUM,p=n(14),h=n(18);function v(e){return Math.pow(10,e)}e.exports=function(e,t){t=t||{};var n=10;function u(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var a=e.range[0],o=e.range[1];return.5*(a+o-3*n*Math.abs(a-o))}return f}function g(t,n,r){var o=s(t,r||e.calendar);if(o===f){if(!a(t))return f;o=s(new Date(+t))}return o}function m(t,n,r){return l(t,n,r||e.calendar)}function y(t){return e._categories[Math.round(t)]}function _(t){if(e._categoriesMap){var n=e._categoriesMap[t];if(void 0!==n)return n}if(a(t))return+t}function b(t){return a(t)?r.round(e._b+e._m*t,2):f}function k(t){return(t-e._b)/e._m}e.c2l="log"===e.type?u:c,e.l2c="log"===e.type?v:c,e.l2p=b,e.p2l=k,e.c2p="log"===e.type?function(e,t){return b(u(e,t))}:b,e.p2c="log"===e.type?function(e){return v(k(e))}:k,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=i,e.c2d=e.c2r=e.l2d=e.l2r=c,e.d2p=e.r2p=function(t){return e.l2p(i(t))},e.p2d=e.p2r=k,e.cleanPos=c):"log"===e.type?(e.d2r=e.d2l=function(e,t){return u(i(e),t)},e.r2d=e.r2c=function(e){return v(i(e))},e.d2c=e.r2l=i,e.c2d=e.l2r=c,e.c2r=u,e.l2d=v,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return v(k(e))},e.r2p=function(t){return e.l2p(i(t))},e.p2r=k,e.cleanPos=c):"date"===e.type?(e.d2r=e.r2d=o.identity,e.d2c=e.r2c=e.d2l=e.r2l=g,e.c2d=e.c2r=e.l2d=e.l2r=m,e.d2p=e.r2p=function(t,n,r){return e.l2p(g(t,0,r))},e.p2d=e.p2r=function(e,t,n){return m(k(e),t,n)},e.cleanPos=function(t){return o.cleanDate(t,f,e.calendar)}):"category"===e.type&&(e.d2c=e.d2l=function(t){if(null!==t&&void 0!==t){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push(t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return f},e.r2d=e.c2d=e.l2d=y,e.d2r=e.d2l_noadd=_,e.r2c=function(t){var n=_(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=c,e.r2l=_,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return y(k(e))},e.r2p=e.d2p,e.p2r=k,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:c(e)}),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.cleanRange=function(t){t||(t="range");var n,r,i=o.nestedProperty(e,t).get(),l=(e._id||"x").charAt(0);if(r=(r="date"===e.type?o.dfltRange(e.calendar):"y"===l?p.DFLTRANGEY:p.DFLTRANGEX).slice(),i&&2===i.length)for("date"===e.type&&(i[0]=o.cleanDate(i[0],f,e.calendar),i[1]=o.cleanDate(i[1],f,e.calendar)),n=0;n<2;n++)if("date"===e.type){if(!o.isDateTime(i[n],e.calendar)){e[t]=r;break}if(e.r2l(i[0])===e.r2l(i[1])){var s=o.constrain(e.r2l(i[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);i[0]=e.l2r(s-1e3),i[1]=e.l2r(s+1e3);break}}else{if(!a(i[n])){if(!a(i[1-n])){e[t]=r;break}i[n]=i[1-n]*(n?10:.1)}if(i[n]<-d?i[n]=-d:i[n]>d&&(i[n]=d),i[0]===i[1]){var c=Math.max(1,Math.abs(1e-6*i[0]));i[0]-=c,i[1]+=c}}else o.nestedProperty(e,t).set(r)},e.setScale=function(n){var r=t._size,a=e._id.charAt(0);if(e._categories||(e._categories=[]),e._categoriesMap||(e._categoriesMap={}),e.overlaying){var i=h.getFromId({_fullLayout:t},e.overlaying);e.domain=i.domain}var l=n&&e._r?"_r":"range",s=e.calendar;e.cleanRange(l);var c=e.r2l(e[l][0],s),u=e.r2l(e[l][1],s);if("y"===a?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),!isFinite(e._m)||!isFinite(e._b))throw o.notifier("Something went wrong with axis scaling","long"),t._replotting=!1,new Error("axis scaling")},e.makeCalcdata=function(t,n){var r,a,o,i="date"===e.type&&t[n+"calendar"];if(n in t)for(r=t[n],a=new Array(r.length),o=0;o2*i}(e,t)?"date":function(e){for(var t,n=Math.max(1,(e.length-1)/1e3),r=0,i=0,l=0;l2*r}(e)?"category":function(e){if(!e)return!1;for(var t=0;t=0?a.Reds:a.Blues,s.colorscale=v,l.reversescale&&(v=o(v)),l.colorscale=v)}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,a,o){var i=function(e){var t=["showexponent","showtickprefix","showticksuffix"].filter(function(t){return void 0!==e[t]});if(t.every(function(n){return e[n]===e[t[0]]})||1===t.length)return e[t[0]]}(e);if(n("tickprefix")&&n("showtickprefix",i),n("ticksuffix")&&n("showticksuffix",i),n("showticklabels")){var l=o.font||{},s=t.color===e.color?t.color:l.color;if(r.coerceFont(n,"tickfont",{family:l.family,size:l.size,color:s}),n("tickangle"),"category"!==a)n("tickformat")||"date"===a||(n("showexponent",i),n("exponentformat"),n("separatethousands"))}"category"===a||o.noHover||n("hoverformat")}},function(e,t,n){"use strict";var r=n(0),a=n(23);e.exports=function(e,t,n,o){var i=r.coerce2(e,t,a,"ticklen"),l=r.coerce2(e,t,a,"tickwidth"),s=r.coerce2(e,t,a,"tickcolor",t.color);n("ticks",o.outerTicks||i||l||s?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},function(e,t,n){"use strict";var r=n(2),a=n(0),o=n(15).ONEDAY;e.exports=function(e,t,n,i){var l="auto";"array"!==e.tickmode||"log"!==i&&"date"!==i||(e.tickmode="auto"),Array.isArray(e.tickvals)?l="array":e.dtick&&(l="linear");var s=n("tickmode",l);if("auto"===s)n("nticks");else if("linear"===s){var c="date"===i?o:1,u=n("dtick",c);if(r(u))t.dtick=u>0?Number(u):c;else if("string"!=typeof u)t.dtick=c;else{var d=u.charAt(0),f=u.substr(1);((f=r(f)?Number(f):0)<=0||!("date"===i&&"M"===d&&f===Math.round(f)||"log"===i&&"L"===d||"log"===i&&"D"===d&&(1===f||2===f)))&&(t.dtick=c)}var p="date"===i?a.dateTick0(t.calendar):0,h=n("tick0",p);"date"===i?t.tick0=a.cleanDate(h,p):r(h)&&"D1"!==u&&"D2"!==u?t.tick0=Number(h):t.tick0=p}else{void 0===n("tickvals")?t.tickmode="auto":n("ticktext")}}},function(e,t,n){"use strict";t.scales=n(25),t.defaultScale=n(164),t.attributes=n(159),t.handleDefaults=n(100),t.calc=n(154),t.hasColorscale=n(39),t.isValidScale=n(99),t.getScale=n(165),t.flipScale=n(98),t.extractScale=n(290),t.makeColorScaleFunc=n(289)},function(e,t,n){"use strict";e.exports={zauto:{valType:"boolean",role:"info",dflt:!0,description:["Determines the whether or not the color domain is computed","with respect to the input data."].join(" ")},zmin:{valType:"number",role:"info",dflt:null,description:"Sets the lower bound of color domain."},zmax:{valType:"number",role:"info",dflt:null,description:"Sets the upper bound of color domain."},colorscale:{valType:"colorscale",role:"style",description:["Sets the colorscale.","The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in z space,","use zmin and zmax"].join(" ")},autocolorscale:{valType:"boolean",role:"style",dflt:!0,description:["Determines whether or not the colorscale is picked using the sign of","the input z values."].join(" ")},reversescale:{valType:"boolean",role:"style",dflt:!1,description:"Reverses the colorscale."},showscale:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not a colorbar is displayed for this trace."].join(" ")}}},function(e,t,n){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",role:"info",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",role:"info",description:"A label by which to identify the frame"},traces:{valType:"any",role:"info",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",role:"info",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",role:"object",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",role:"object",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},function(e,t,n){"use strict";t.init2dArray=function(e,t){for(var n=new Array(e),r=0;rt}function s(e,t){return e>=t}t.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size)-1:Math.floor((e-t.start)/t.size);var c,u,d=0,f=t.length,p=0;for(u=t[t.length-1]>=t[0]?n?o:i:n?s:l;d90&&a.log("Long binary search..."),d-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var n=e.slice();n.sort(t.sorterAsc);for(var r=n.length-1,a=n[r]-n[0]||1,o=a/(r||1)/1e4,i=[n[0]],l=0;ln[l]+o&&(a=Math.min(a,n[l+1]-n[l]),i.push(n[l+1]));return{vals:i,minDiff:a}},t.roundUp=function(e,t,n){for(var r,a=0,o=t.length-1,i=0,l=n?0:1,s=n?1:0,c=n?Math.ceil:Math.floor;a1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{parent:document.head};return e.loaded[n]?Promise.resolve(n):new Promise(function(a,i){var o=document.createElement("script");t.defaults2(o,t.omit(r,["unload","parent"]),{type:"text/javascript"}),o.async=!1,o.src=n,r.crossorigin&&(o.crossOrigin=r.crossorigin),o.onload=function(){e.loaded[n]=1,a(n)},o.onerror=function(){return i(new Error(n))},r.parent.appendChild(o)})}},t={isUndefined:function(e){return void 0===e},pick:function(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n},omit:function(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n},omitBy:function(e,t){var n={};return Object.keys(e).forEach(function(r){t(e[r])||(n[r]=e[r])}),n},defaults2:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a0)){var h=function(e,t,n){for(var r=n.filter(function(n){return t[n].anchor===e._id}),a=0,i=0;i0&&(o=o.transition().duration(t.transition.duration).ease(t.transition.easing)),o.attr("transform","translate("+(i-.5*c.gripWidth)+","+t.currentValueTotalHeight+")")}}function w(e,t){return e.inputAreaStart+c.stepInset+(e.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,t))}function k(e,t){return Math.min(1,Math.max(0,(t-c.stepInset-e.inputAreaStart)/(e.inputAreaLength-2*c.stepInset-2*e.inputAreaStart)))}function T(e,t,n){var r=e.selectAll("rect."+c.railTouchRectClass).data([0]);r.enter().append("rect").classed(c.railTouchRectClass,!0).call(b,t,e,n).style("pointer-events","all"),r.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,c.tickOffset+n.ticklen+n.labelHeight)}).call(i.fill,n.bgcolor).attr("opacity",0),o.setTranslate(r,0,n.currentValueTotalHeight)}function A(e,t){var n=e.selectAll("rect."+c.railRectClass).data([0]);n.enter().append("rect").classed(c.railRectClass,!0);var r=t.inputAreaLength-2*c.railInset;n.attr({width:r,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(n,c.railInset,.5*(t.inputAreaWidth-c.railWidth)+t.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,n=function(e,t){for(var n=e[c.name],r=[],a=0;a0?[0]:[]);if(i.enter().append("g").classed(c.containerClassName,!0).style("cursor","ew-resize"),i.exit().remove(),i.exit().size()&&function(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r=n.steps.length&&(n.active=0);t.call(h,n).call(A,n).call(g,n).call(_,n).call(T,e,n).call(p,e,n),o.setTranslate(t,n.lx+n.pad.l,n.ly+n.pad.t),t.call(x,n,n.active/(n.steps.length-1),!1),t.call(h,n)}(e,r.select(this),t)}})}}},function(e,t,n){"use strict";var r=n(0),a=n(27),i=n(128),o=n(35).name,s=i.steps;function l(e,t,n){function a(n,a){return r.coerce(e,t,i,n,a)}a("visible",function(e,t){var n,a,i=e.steps||[],o=t.steps=[];function l(e,t){return r.coerce(n,a,s,e,t)}for(var c=0;c0)&&(a("active"),a("x"),a("y"),r.noneOrAll(e,t,["x","y"]),a("xanchor"),a("yanchor"),a("len"),a("lenmode"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),r.coerceFont(a,"font",n.font),a("currentvalue.visible")&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),r.coerceFont(a,"currentvalue.font",t.font)),a("transition.duration"),a("transition.easing"),a("bgcolor"),a("activebgcolor"),a("bordercolor"),a("borderwidth"),a("ticklen"),a("tickwidth"),a("tickcolor"),a("minorticklen"))}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:l})}},function(e,t,n){"use strict";var r=n(35);e.exports={moduleType:"component",name:r.name,layoutAttributes:n(128),supplyLayoutDefaults:n(189),draw:n(188)}},function(e,t,n){"use strict";e.exports=s;var r=n(1),a=n(3),i=n(7),o=n(0);function s(e,t,n){this.gd=e,this.container=t,this.id=n,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor="#808BA4",s.prototype.enable=function(e,t,n){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=e;var u,d,f,h,p=this.position.l,v=this.position.w,g=this.position.t,m=this.position.h,y=this.position.direction,b="down"===y,_="left"===y,x="up"===y,w=v,k=m;b||_||"right"===y||x||(this.position.direction="down",b=!0),b||x?(d=(u=p)+w,b?(f=g,k=(h=Math.min(f+k,c))-f):k=(h=g+k)-(f=Math.max(h-k,0))):(h=(f=g)+k,_?w=(d=p+w)-(u=Math.max(d-w,0)):(u=p,w=(d=Math.min(u+w,l))-u)),this._box={l:u,t:f,w:w,h:k};var T=v>w,A=s.barLength+2*s.barPad,M=s.barWidth+2*s.barPad,C=p,S=g+m;S+M>c&&(S=c-M);var L=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,s.barColor),T?(this.hbar=L.attr({rx:s.barRadius,ry:s.barRadius,x:C,y:S,width:A,height:M}),this._hbarXMin=C+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=m>k,D=s.barWidth+2*s.barPad,z=s.barLength+2*s.barPad,P=p+v,E=g;P+D>l&&(P=l-D);var N=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,s.barColor),O?(this.vbar=N.attr({rx:s.barRadius,ry:s.barRadius,x:P,y:E,width:D,height:z}),this._vbarYMin=E+z/2,this._vbarTranslateMax=k-z):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,j=u-.5,R=O?d+D+.5:d+.5,B=f-.5,F=T?h+M+.5:h+.5,$=o._topdefs.selectAll("#"+I).data(T||O?[0]:[]);if($.exit().remove(),$.enter().append("clipPath").attr("id",I).append("rect"),T||O?(this._clipRect=$.select("rect").attr({x:Math.floor(j),y:Math.floor(B),width:Math.ceil(R)-Math.floor(j),height:Math.ceil(F)-Math.floor(B)}),this.container.call(i.setClipUrl,I),this.bg.attr({x:p,y:g,width:v,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),T||O){var W=r.behavior.drag().on("dragstart",function(){r.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(W);var V=r.behavior.drag().on("dragstart",function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(V),O&&this.vbar.on(".drag",null).call(V)}this.setTranslate(t,n)},s.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},s.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},s.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,a=n+this._hbarTranslateMax;e=(o.constrain(r.event.x,n,a)-n)/(a-n)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,s=i+this._vbarTranslateMax;t=(o.constrain(r.event.y,i,s)-i)/(s-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},s.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=o.constrain(e||0,0,n),t=o.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(i.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var a=e/n;this.hbar.call(i.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var s=t/r;this.vbar.call(i.setTranslate,e,t+s*this._vbarTranslateMax)}}},function(e,t,n){"use strict";var r=n(1),a=n(9),i=n(3),o=n(7),s=n(13),l=n(37),c=n(19).LINE_SPACING,u=n(80),d=n(191);function f(e){return e._index}function h(e,t){return+e.attr(u.menuIndexAttrName)===t._index}function p(e,t,n,r,a,i,o,s){t._input.active=t.active=o,"buttons"===t.type?g(e,r,null,null,t):"dropdown"===t.type&&(a.attr(u.menuIndexAttrName,"-1"),v(e,r,a,i,t),s||g(e,r,a,i,t))}function v(e,t,n,r,a){var i=t.selectAll("g."+u.headerClassName).data([0]);i.enter().append("g").classed(u.headerClassName,!0).style("pointer-events","all");var s=a.active,l=a.buttons[s]||u.blankHeaderOpts,c={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},d={width:a.headerWidth,height:a.headerHeight};i.call(m,a,l,e).call(T,a,c,d);var f=t.selectAll("text."+u.headerArrowClassName).data([0]);f.enter().append("text").classed(u.headerArrowClassName,!0).classed("user-select-none",!0).attr("text-anchor","end").call(o.font,a.font).text(u.arrowSymbol[a.direction]),f.attr({x:a.headerWidth-u.arrowOffsetX+a.pad.l,y:a.headerHeight/2+u.textOffsetY+a.pad.t}),i.on("click",function(){n.call(A),n.attr(u.menuIndexAttrName,h(n,a)?-1:String(a._index)),g(e,t,n,r,a)}),i.on("mouseover",function(){i.call(x)}),i.on("mouseout",function(){i.call(w,a)}),o.setTranslate(t,a.lx,a.ly)}function g(e,t,n,i,o){n||(n=t).attr("pointer-events","all");var s=function(e){return-1==+e.attr(u.menuIndexAttrName)}(n)&&"buttons"!==o.type?[]:o.buttons,l="dropdown"===o.type?u.dropdownButtonClassName:u.buttonClassName,c=n.selectAll("g."+l).data(s),d=c.enter().append("g").classed(l,!0),f=c.exit();"dropdown"===o.type?(d.attr("opacity","0").transition().attr("opacity","1"),f.transition().attr("opacity","0").remove()):f.remove();var h=0,v=0,g=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(g?v=o.headerHeight+u.gapButtonHeader:h=o.headerWidth+u.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(v=-u.gapButtonHeader+u.gapButton-o.openHeight),"dropdown"===o.type&&"left"===o.direction&&(h=-u.gapButtonHeader+u.gapButton-o.openWidth);var y={x:o.lx+h+o.pad.l,y:o.ly+v+o.pad.t,yPad:u.gapButton,xPad:u.gapButton,index:0},b={l:y.x+o.borderwidth,t:y.y+o.borderwidth};c.each(function(s,l){var u=r.select(this);u.call(m,o,s,e).call(T,o,y),u.on("click",function(){r.event.defaultPrevented||(p(e,o,0,t,n,i,l),s.execute&&a.executeAPICommand(e,s.method,s.args),e.emit("plotly_buttonclicked",{menu:o,button:s,active:o.active}))}),u.on("mouseover",function(){u.call(x)}),u.on("mouseout",function(){u.call(w,o),c.call(_,o)})}),c.call(_,o),g?(b.w=Math.max(o.openWidth,o.headerWidth),b.h=y.y-b.t):(b.w=y.x-b.l,b.h=Math.max(o.openHeight,o.headerHeight)),b.direction=o.direction,i&&(c.size()?function(e,t,n,r,a,i){var o,s,l,c=a.direction,d="up"===c||"down"===c,f=a.active;if(d)for(s=0,l=0;l0?[0]:[]);if(i.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),i.exit().remove(),i.exit().size()&&function(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r0)&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),r.noneOrAll(e,t,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),r.coerceFont(a,"font",n.font),a("bgcolor",n.paper_bgcolor),a("bordercolor"),a("borderwidth"))}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:l})}},function(e,t,n){"use strict";var r=n(80);e.exports={moduleType:"component",name:r.name,layoutAttributes:n(130),supplyLayoutDefaults:n(193),draw:n(192)}},function(e,t,n){"use strict";var r=n(2),a=n(105);e.exports=function(e,t,n,i){t=t||{};var o="log"===n&&"linear"===t.type,s="linear"===n&&"log"===t.type;if(o||s)for(var l,c,u=e._fullLayout.images,d=t._id.charAt(0),f=0;fh&&(h=d)));return h>=f?[f,h]:void 0}}e.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var o=0;o$&&r>W&&!e.shiftKey?l.getCursor(a/n,1-i/r):"move";c(t,o),F=o.split("-")[0]}function U(r,a){if("path"===n.type){var i=function(e){return R(I(e)+r)};E&&"date"===E.type&&(i=d.encodeDate(i));var l=function(e){return B(j(e)+a)};N&&"date"===N.type&&(l=d.encodeDate(l)),n.path=p(z,i,l),o[P]=n.path}else o[g]=n.x0=R(s+r),o[m]=n.y0=B(u+a),o[y]=n.x1=R(f+r),o[b]=n.y1=B(v+a);t.attr("d",h(e,n))}function G(r,a){if("path"===n.type){var i=function(e){return R(I(e)+r)};E&&"date"===E.type&&(i=d.encodeDate(i));var s=function(e){return B(j(e)+a)};N&&"date"===N.type&&(s=d.encodeDate(s)),n.path=p(z,i,s),o[P]=n.path}else{var l=~F.indexOf("n")?_+a:_,c=~F.indexOf("s")?x+a:x,u=~F.indexOf("w")?w+r:w,f=~F.indexOf("e")?k+r:k;c-l>W&&(o[T]=n[S]=B(l),o[A]=n[L]=B(c)),f-u>$&&(o[M]=n[O]=R(u),o[C]=n[D]=R(f))}t.attr("d",h(e,n))}l.init(V),t.node().onmousemove=q}(e,v,a,t)}}function h(e,t){var n,r,o,s,l=t.type,c=i.getFromId(e,t.xref),f=i.getFromId(e,t.yref),h=e._fullLayout._size;if(c?(n=d.shapePositionToRange(c),r=function(e){return c._offset+c.r2p(n(e,!0))}):r=function(e){return h.l+h.w*e},f?(o=d.shapePositionToRange(f),s=function(e){return f._offset+f.r2p(o(e,!0))}):s=function(e){return h.t+h.h*(1-e)},"path"===l)return c&&"date"===c.type&&(r=d.decodeDate(r)),f&&"date"===f.type&&(s=d.decodeDate(s)),function(e,t,n){return e.replace(u.segmentRE,function(e){var r=0,i=e.charAt(0),o=u.paramIsX[i],s=u.paramIsY[i],l=u.numParams[i],c=e.substr(1).replace(u.paramRE,function(e){return o[r]?e=t(e):s[r]&&(e=n(e)),++r>l&&(e="X"),e});return r>l&&(c=c.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),i+c})}(t.path,r,s);var p=r(t.x0),v=r(t.x1),g=s(t.y0),m=s(t.y1);if("line"===l)return"M"+p+","+g+"L"+v+","+m;if("rect"===l)return"M"+p+","+g+"H"+v+"V"+m+"H"+p+"Z";var y=(p+v)/2,b=(g+m)/2,_=Math.abs(y-p),x=Math.abs(b-g),w="A"+_+","+x,k=y+_+","+b;return"M"+k+w+" 0 1,1 "+(y+","+(b-x))+w+" 0 0,1 "+k+"Z"}function p(e,t,n){return e.replace(u.segmentRE,function(e){var r=0,a=e.charAt(0),i=u.paramIsX[a],o=u.paramIsY[a],s=u.numParams[a];return a+e.substr(1).replace(u.paramRE,function(e){return r>=s?e:(i[r]?e=t(e):o[r]&&(e=n(e)),r++,e)})})}e.exports={draw:function(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeSubplotLayers.selectAll("path").remove();for(var n=0;n1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+s+'"]').remove():(l.pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(l.x)*n[0],t.yaxis.r2l(l.y)*n[1],t.zaxis.r2l(l.z)*n[2]]),r(e.graphDiv,l,s,e.id,l._xa,l._ya))}}},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(e,t){var n=t.fullSceneLayout.domain,i=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},r.extendFlat(e._xa,o),a.setConvert(e._xa),e._xa._offset=i.l+n.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e.pdata[0]/e.pdata[3])*i.w*(n.x[1]-n.x[0])},e._ya={},r.extendFlat(e._ya,o),a.setConvert(e._ya),e._ya._offset=i.t+(1-n.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e.pdata[1]/e.pdata[3])*i.h*(n.y[1]-n.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,n=0;n0||n.explicitOff.length>0},onClick:function(e,t){var n,i=a(e,t),o=i.on,s=i.off.concat(i.explicitOff),l={};if(!o.length&&!s.length)return;for(n=0;n=0,_=n.indexOf("end")>=0,x=d.backoff*g+c;if("line"===u.nodeName){f={x:+e.attr("x1"),y:+e.attr("y1")},h={x:+e.attr("x2"),y:+e.attr("y2")};var w=f.x-h.x,k=f.y-h.y;if(v=(p=Math.atan2(k,w))+Math.PI,x){if(x*x>w*w+k*k)return void z();var T=x*Math.cos(p),A=x*Math.sin(p);b&&(f.x-=T,f.y-=A,e.attr({x1:f.x,y1:f.y})),_&&(h.x+=T,h.y+=A,e.attr({x2:h.x,y2:h.y}))}}else if("path"===u.nodeName){var M=u.getTotalLength(),C="";if(M5&&(a=0),r.select(u.parentNode).append("path").attr({class:e.attr("class"),d:d.path,transform:"translate("+n.x+","+n.y+")rotate("+180*a/Math.PI+")scale("+g+")"}).style({fill:m,opacity:y,"stroke-width":0}))}b&&P(f,p),_&&P(h,v)}},function(e,t,n){"use strict";var r=n(83),a=n(213);e.exports={moduleType:"component",name:"annotations",layoutAttributes:n(36),supplyLayoutDefaults:n(212),calcAutorange:n(210),draw:r.draw,drawOne:r.drawOne,drawRaw:r.drawRaw,hasClickToShow:a.hasClickToShow,onClick:a.onClick,convertCoords:n(209)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n){var a=n.marker.line.color;Array.isArray(a)&&(a=a[t.i]||r.defaultLine);var i=n.marker.line.width||0;Array.isArray(i)&&(i=i[t.i]||0),e.style({"stroke-width":i}).call(r.fill,t.color).call(r.stroke,a)}},function(e,t,n){"use strict";var r=n(4),a=n(84);e.exports=function(e,t){var n,i,o={},s=[],l=!1,c={},u=0;function d(e,n){if(""!==e&&a.isGrouped(t))-1===s.indexOf(e)?(s.push(e),l=!0,o[e]=[[n]]):o[e].push([n]);else{var r="~~i"+u;s.push(r),o[r]=[[n]],u++}}for(n=0;n_&&(r=Math.max(r-1,1)),1===r?n._clickTimeout=setTimeout(function(){k(e,t,r)},_):2===r&&(n._clickTimeout&&clearTimeout(n._clickTimeout),t._legendMouseDownTime=0,k(e,t,r))}})}function k(e,t,n){if(!t._dragged&&!t._editing){var r,o,l=t._fullLayout.hiddenlabels?t._fullLayout.hiddenlabels.slice():[],c=e.data()[0][0],u=t._fullData,d=c.trace,f=d.legendgroup,h=[];if(1===n&&b&&t.data&&t._context.showTips?(i.notifier("Double click on legend to isolate individual trace","long"),b=!1):b=!1,s.traceIs(d,"pie")){var p=c.label,v=l.indexOf(p);1===n?-1===v?l.push(p):l.splice(v,1):2===n&&(l=[],t.calcdata[0].forEach(function(e){p!==e.label&&l.push(e.label)}),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===l.length&&-1===v&&(l=[])),a.relayout(t,"hiddenlabels",l)}else{var g,m=[],y=[];for(g=0;ga.width-(a.margin.r+a.margin.l)&&(b=0,v+=g,i.height=i.height+g,g=0),c.setTranslate(this,o+b,5+o+t.height/2+v),i.width+=r+n,i.height=Math.max(i.height,t.height),b+=r+n,g=Math.max(t.height,g)}),i.width+=2*o,i.height+=10+2*o,i.width=Math.ceil(i.width),i.height=Math.ceil(i.height),n.each(function(t){var n=t[0];r.select(this).select(".legendtoggle").call(c.setRect,0,-n.height/2,e._context.editable?0:i.width,n.height)})}}function A(e){var t=e._fullLayout.legend,n="left";y.isRightAnchor(t)?n="right":y.isCenterAnchor(t)&&(n="center");var r="top";y.isBottomAnchor(t)?r="bottom":y.isMiddleAnchor(t)&&(r="middle"),o.autoMargin(e,"legend",{x:t.x,y:t.y,l:t.width*({right:1,center:.5}[n]||0),r:t.width*({left:1,center:.5}[n]||0),b:t.height*({top:1,middle:.5}[r]||0),t:t.height*({bottom:1,middle:.5}[r]||0)})}e.exports=function(e){var t=e._fullLayout,n="legend"+t._uid;if(t._infolayer&&e.calcdata){e._legendMouseDownTime||(e._legendMouseDownTime=0);var d=t.legend,h=t.showlegend&&v(e.calcdata,d),p=t.hiddenlabels||[];if(!t.showlegend||!h.length)return t._infolayer.selectAll(".legend").remove(),t._topdefs.select("#"+n).remove(),void o.autoMargin(e,"legend");var m=t._infolayer.selectAll("g.legend").data([0]);m.enter().append("g").attr({class:"legend","pointer-events":"all"});var b=t._topdefs.selectAll("#"+n).data([0]);b.enter().append("clipPath").attr("id",n).append("rect");var M=m.selectAll("rect.bg").data([0]);M.enter().append("rect").attr({class:"bg","shape-rendering":"crispEdges"}),M.call(u.stroke,d.bordercolor),M.call(u.fill,d.bgcolor),M.style("stroke-width",d.borderwidth+"px");var C=m.selectAll("g.scrollbox").data([0]);C.enter().append("g").attr("class","scrollbox");var S=m.selectAll("rect.scrollbar").data([0]);S.enter().append("rect").attr({class:"scrollbar",rx:20,ry:2,width:0,height:0}).call(u.fill,"#808BA4");var L=C.selectAll("g.groups").data(h);L.enter().append("g").attr("class","groups"),L.exit().remove();var O=L.selectAll("g.traces").data(i.identity);O.enter().append("g").attr("class","traces"),O.exit().remove(),O.call(g,e).style("opacity",function(e){var t=e[0].trace;return s.traceIs(t,"pie")?-1!==p.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1}).each(function(){r.select(this).call(x,e).call(w,e)});var D=0!==m.enter().size();D&&(T(e,L,O),A(e));var z=t.width,P=t.height;T(e,L,O),d.height>P?function(e){var t=e._fullLayout.legend,n="left";y.isRightAnchor(t)?n="right":y.isCenterAnchor(t)&&(n="center");o.autoMargin(e,"legend",{x:t.x,y:.5,l:t.width*({right:1,center:.5}[n]||0),r:t.width*({left:1,center:.5}[n]||0),b:0,t:0})}(e):A(e);var E=t._size,N=E.l+E.w*d.x,I=E.t+E.h*(1-d.y);y.isRightAnchor(d)?N-=d.width:y.isCenterAnchor(d)&&(N-=d.width/2),y.isBottomAnchor(d)?I-=d.height:y.isMiddleAnchor(d)&&(I-=d.height/2);var j=d.width,R=E.w;j>R?(N=E.l,j=R):(N+j>z&&(N=z-j),N<0&&(N=0),j=Math.min(z-N,d.width));var B=d.height,F=E.h;B>F?(I=E.t,B=F):(I+B>P&&(I=P-B),I<0&&(I=0),B=Math.min(P-I,d.height)),c.setTranslate(m,N,I);var $,W,V,H,q,U,G=B-f.scrollBarHeight-2*f.scrollBarMargin,Y=d.height-B;if(d.height<=B||e._context.staticPlot)M.attr({width:j-d.borderwidth,height:B-d.borderwidth,x:d.borderwidth/2,y:d.borderwidth/2}),c.setTranslate(C,0,0),b.select("rect").attr({width:j-2*d.borderwidth,height:B-2*d.borderwidth,x:d.borderwidth,y:d.borderwidth}),C.call(c.setClipUrl,n);else{$=f.scrollBarMargin,W=C.attr("data-scroll")||0,M.attr({width:j-2*d.borderwidth+f.scrollBarWidth+f.scrollBarMargin,height:B-d.borderwidth,x:d.borderwidth/2,y:d.borderwidth/2}),b.select("rect").attr({width:j-2*d.borderwidth+f.scrollBarWidth+f.scrollBarMargin,height:B-2*d.borderwidth,x:d.borderwidth,y:d.borderwidth-W}),C.call(c.setClipUrl,n),D&&X($,W),m.on("wheel",null),m.on("wheel",function(){W=i.constrain(C.attr("data-scroll")-r.event.deltaY/G*Y,-Y,0),X($=f.scrollBarMargin-W/Y*G,W),0!==W&&W!==-Y&&r.event.preventDefault()}),S.on(".drag",null),C.on(".drag",null);var K=r.behavior.drag().on("drag",function(){$=i.constrain(r.event.y-f.scrollBarHeight/2,f.scrollBarMargin,f.scrollBarMargin+G),W=-($-f.scrollBarMargin)/G*Y,X($,W)});S.call(K),C.call(K)}if(e._context.editable)m.classed("cursor-move",!0),l.init({element:m.node(),gd:e,prepFn:function(){var e=c.getTranslate(m);q=e.x,U=e.y},moveFn:function(e,t){var n=q+e,r=U+t;c.setTranslate(m,n,r),V=l.align(n,0,E.l,E.l+E.w,d.xanchor),H=l.align(r,0,E.t+E.h,E.t,d.yanchor)},doneFn:function(n,r,i){if(n&&void 0!==V&&void 0!==H)a.relayout(e,{"legend.x":V,"legend.y":H});else{var o=t._infolayer.selectAll("g.traces").filter(function(){var e=this.getBoundingClientRect();return i.clientX>=e.left&&i.clientX<=e.right&&i.clientY>=e.top&&i.clientY<=e.bottom});o.size()>0&&(1===r?m._clickTimeout=setTimeout(function(){k(o,e,r)},_):2===r&&(m._clickTimeout&&clearTimeout(m._clickTimeout),k(o,e,r)))}}})}function X(e,t){C.attr("data-scroll",t).call(c.setTranslate,0,t),S.call(c.setRect,j,e,f.scrollBarWidth,f.scrollBarHeight),b.select("rect").attr({y:d.borderwidth-t})}}},function(e,t,n){"use strict";var r=n(4),a=n(0),i=n(137),o=n(41),s=n(84);e.exports=function(e,t,n){for(var l,c,u,d,f=e.legend||{},h=t.legend={},p=0,v="normal",g=0;g1)){if(y("bgcolor",t.paper_bgcolor),y("bordercolor"),y("borderwidth"),a.coerceFont(y,"font",t.font),y("orientation"),"h"===h.orientation){var b=e.xaxis;b&&b.rangeslider&&b.rangeslider.visible?(l=0,u="left",c=1.1,d="bottom"):(l=0,u="left",c=-.1,d="top")}y("traceorder",v),s.isGrouped(t.legend)&&y("tracegroupgap"),y("x",l),y("xanchor",u),y("y",c),y("yanchor",d),a.noneOrAll(f,h,["x","y"])}}},function(e,t,n){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:n(137),supplyLayoutDefaults:n(220),draw:n(219),style:n(136)}},function(e,t,n){"use strict";var r=n(1),a=n(8),i=n(4),o=n(7),s=n(6),l=/((x|y)([2-9]|[1-9][0-9]+)?)axis$/;e.exports=function(e,t,n,c){var u=e._fullLayout,d=[];var f,h,p,v,g=function(e){var t,n,r,a,i={};for(t in e)if(n=t.split(".")[0].match(l)){var o=n[1],s=o+"axis";if(r=u[s],a={},Array.isArray(e[t])?a.to=e[t].slice(0):Array.isArray(e[t].range)&&(a.to=e[t].range.slice(0)),!a.to)continue;a.axisName=s,a.length=r._length,d.push(o),i[o]=a}return i}(t),m=Object.keys(g),y=function(e,t,n){var r,a,i,o=e._plots,s=[];for(r in o){var l=o[r];if(-1===s.indexOf(l)){var c=l.xaxis._id,u=l.yaxis._id,d=l.xaxis.range,f=l.yaxis.range;l.xaxis._r=l.xaxis.range.slice(),l.yaxis._r=l.yaxis.range.slice(),a=n[c]?n[c].to:d,i=n[u]?n[u].to:f,d[0]===a[0]&&d[1]===a[1]&&f[0]===i[0]&&f[1]===i[1]||-1===t.indexOf(c)&&-1===t.indexOf(u)||s.push(l)}}return s}(u,m,g);if(!y.length)return!1;function b(e){var t=e.xaxis,n=e.yaxis;u._defs.selectAll("#"+e.clipId).call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,n._offset).call(o.setScale,1,1).select(".scatterlayer").selectAll(".points").selectAll(".point").call(o.setPointGroupScale,1,1),e.plot.select(".scatterlayer").selectAll(".points").selectAll(".textpoint").call(o.setTextPointsScale,1,1)}function _(t,n){var r,a,l,c=g[t.xaxis._id],d=g[t.yaxis._id],f=[];if(c){a=(r=e._fullLayout[c.axisName])._r,l=c.to,f[0]=(a[0]*(1-n)+n*l[0]-a[0])/(a[1]-a[0])*t.xaxis._length;var h=a[1]-a[0],p=l[1]-l[0];r.range[0]=a[0]*(1-n)+n*l[0],r.range[1]=a[1]*(1-n)+n*l[1],f[2]=t.xaxis._length*(1-n+n*p/h)}else f[0]=0,f[2]=t.xaxis._length;if(d){a=(r=e._fullLayout[d.axisName])._r,l=d.to,f[1]=(a[1]*(1-n)+n*l[1]-a[1])/(a[0]-a[1])*t.yaxis._length;var v=a[1]-a[0],m=l[1]-l[0];r.range[0]=a[0]*(1-n)+n*l[0],r.range[1]=a[1]*(1-n)+n*l[1],f[3]=t.yaxis._length*(1-n+n*m/v)}else f[1]=0,f[3]=t.yaxis._length;!function(t,n){var r,a=[];for(a=[t._id,n._id],r=0;rn.duration?(function(){for(var t={},n=0;nR!=(O=M[T][1])>=R&&(C=(S=M[T-1][0])+(M[T][0]-S)*(R-L)/(O-L),E=Math.min(E,C),N=Math.max(N,C));E=Math.max(E,0),N=Math.min(N,f._length);var B=s.defaultLine;return s.opacity(d.fillcolor)?B=d.fillcolor:s.opacity((d.line||{}).color)&&(B=d.line.color),r.extendFlat(e,{distance:l+10,x0:E,x1:N,y0:R,y1:R,color:B}),delete e.index,d.text&&!Array.isArray(d.text)?e.text=String(d.text):e.text=d.name,[e]}}}},function(e,t,n){"use strict";var r=n(1),a=n(7),i=n(30);e.exports=function(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",function(e){return e[0].trace.opacity}),t.selectAll("g.points").each(function(t){var n=r.select(this),i=n.selectAll("path.point"),o=t.trace||t[0].trace;i.call(a.pointStyle,o,e),n.selectAll("text").call(a.textPointStyle,o,e)}),t.selectAll("g.trace path.js-line").call(a.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a.fillGroupStyle),t.call(i.style)}},function(e,t,n){"use strict";var r=n(1),a=n(21),i=n(8),o=n(9),s=n(4),l=n(6),c=n(20),u=n(0),d=n(10).extendFlat,f=n(28),h=n(7),p=n(3),v=n(97),g=n(13),m=n(19).LINE_SPACING,y=n(150),b=n(148),_=n(23),x=n(102);e.exports=function(e,t){var n={};function w(){var x=e._fullLayout,T=x._size;if("function"==typeof n.fillcolor||"function"==typeof n.line.color){var A,M=r.extent(("function"==typeof n.fillcolor?n.fillcolor:n.line.color).domain()),C=[],S=[],L="function"==typeof n.line.color?n.line.color:function(){return n.line.color},O="function"==typeof n.fillcolor?n.fillcolor:function(){return n.fillcolor},D=n.levels.end+n.levels.size/100,z=n.levels.size,P=1.001*M[0]-.001*M[1],E=1.001*M[1]-.001*M[0];for(A=n.levels.start;(A-D)*z<0;A+=z)A>P&&AM[0]&&A1){var ne=Math.pow(10,Math.floor(Math.log(te)/Math.LN10));Q*=ne*u.roundUp(te/ne,[2,5,10]),(Math.abs(n.levels.start)/n.levels.size+1e-6)%1<2e-6&&(Z.tick0=0)}Z.dtick=Q}Z.domain=[G+H,G+$-H],Z.setScale();var re=x._infolayer.selectAll("g."+t).data([0]);re.enter().append("g").classed(t,!0).each(function(){var e=r.select(this);e.append("rect").classed("cbbg",!0),e.append("g").classed("cbfills",!0),e.append("g").classed("cblines",!0),e.append("g").classed("cbaxis",!0).classed("crisp",!0),e.append("g").classed("cbtitleunshift",!0).append("g").classed("cbtitle",!0),e.append("rect").classed("cboutline",!0),e.select(".cbtitle").datum(0)}),re.attr("transform","translate("+Math.round(T.l)+","+Math.round(T.t)+")");var ae=re.select(".cbtitleunshift").attr("transform","translate(-"+Math.round(T.l)+",-"+Math.round(T.t)+")");Z._axislayer=re.select(".cbaxis");var ie=0;if(-1!==["top","bottom"].indexOf(n.titleside)){var oe,se=T.l+(n.x+W)*T.w,le=Z.titlefont.size;oe="top"===n.titleside?(1-(G+$-H))*T.h+T.t+3+.75*le:(1-(G+H))*T.h+T.t-3-.25*le,pe(Z._id+"title",{attributes:{x:se,y:oe,"text-anchor":"start"}})}var ce,ue,de,fe=u.syncOrAsync([o.previousPromises,function(){if(-1!==["top","bottom"].indexOf(n.titleside)){var t=re.select(".cbtitle"),i=t.select("text"),o=[-n.outlinewidth/2,n.outlinewidth/2],s=t.select(".h"+Z._id+"title-math-group").node(),c=15.6;if(i.node()&&(c=parseInt(i.style("font-size"),10)*m),s?(ie=h.bBox(s).height)>c&&(o[1]-=(ie-c)/2):i.node()&&!i.classed("js-placeholder")&&(ie=h.bBox(i.node()).height),ie){if(ie+=5,"top"===n.titleside)Z.domain[1]-=ie/T.h,o[1]*=-1;else{Z.domain[0]+=ie/T.h;var d=g.lineCount(i);o[1]+=(1-d)*c}t.attr("transform","translate("+o+")"),Z.setScale()}}re.selectAll(".cbfills,.cblines,.cbaxis").attr("transform","translate(0,"+Math.round(T.h*(1-Z.domain[1]))+")");var f=re.select(".cbfills").selectAll("rect.cbfill").data(S);f.enter().append("rect").classed("cbfill",!0).style("stroke","none"),f.exit().remove(),f.each(function(e,t){var n=[0===t?M[0]:(S[t]+S[t-1])/2,t===S.length-1?M[1]:(S[t]+S[t+1])/2].map(Z.c2p).map(Math.round);t!==S.length-1&&(n[1]+=n[1]>n[0]?1:-1);var i=O(e).replace("e-",""),o=a(i).toHexString();r.select(this).attr({x:q,width:Math.max(R,2),y:r.min(n),height:Math.max(r.max(n)-r.min(n),2),fill:o})});var p=re.select(".cblines").selectAll("path.cbline").data(n.line.color&&n.line.width?C:[]);return p.enter().append("path").classed("cbline",!0),p.exit().remove(),p.each(function(e){r.select(this).attr("d","M"+q+","+(Math.round(Z.c2p(e))+n.line.width/2%1)+"h"+R).call(h.lineGroupStyle,n.line.width,L(e),n.line.dash)}),Z._axislayer.selectAll("g."+Z._id+"tick,path").remove(),Z._pos=q+R+(n.outlinewidth||0)/2-("outside"===n.ticks?1:0),Z.side="right",u.syncOrAsync([function(){return l.doTicks(e,Z,!0)},function(){if(-1===["top","bottom"].indexOf(n.titleside)){var t=Z.titlefont.size,a=Z._offset+Z._length/2,i=T.l+(Z.position||0)*T.w+("right"===Z.side?10+t*(Z.showticklabels?1:.5):-10-t*(Z.showticklabels?.5:0));pe("h"+Z._id+"title",{avoid:{selection:r.select(e).selectAll("g."+Z._id+"tick"),side:n.titleside,offsetLeft:T.l,offsetTop:T.t,maxShift:x.width},attributes:{x:i,y:a,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}])},o.previousPromises,function(){var r=R+n.outlinewidth/2+h.bBox(Z._axislayer.node()).width;if((N=ae.select("text")).node()&&!N.classed("js-placeholder")){var a,i=ae.select(".h"+Z._id+"title-math-group").node();a=i&&-1!==["top","bottom"].indexOf(n.titleside)?h.bBox(i).width:h.bBox(ae.node()).right-q-T.l,r=Math.max(r,a)}var s=2*n.xpad+r+n.borderwidth+n.outlinewidth/2,l=Y-K;re.select(".cbbg").attr({x:q-n.xpad-(n.borderwidth+n.outlinewidth)/2,y:K-V,width:Math.max(s,2),height:Math.max(l+2*V,2)}).call(p.fill,n.bgcolor).call(p.stroke,n.bordercolor).style({"stroke-width":n.borderwidth}),re.selectAll(".cboutline").attr({x:q,y:K+n.ypad+("top"===n.titleside?ie:0),width:Math.max(R,2),height:Math.max(l-2*n.ypad-ie,2)}).call(p.stroke,n.outlinecolor).style({fill:"None","stroke-width":n.outlinewidth});var c=({center:.5,right:1}[n.xanchor]||0)*s;re.attr("transform","translate("+(T.l-c)+","+T.t+")"),o.autoMargin(e,t,{x:n.x,y:n.y,l:s*({right:1,center:.5}[n.xanchor]||0),r:s*({left:1,center:.5}[n.xanchor]||0),t:l*({bottom:1,middle:.5}[n.yanchor]||0),b:l*({top:1,middle:.5}[n.yanchor]||0)})}],e);if(fe&&fe.then&&(e._promises||[]).push(fe),e._context.editable)c.init({element:re.node(),gd:e,prepFn:function(){ce=re.attr("transform"),f(re)},moveFn:function(e,t){re.attr("transform",ce+" translate("+e+","+t+")"),ue=c.align(U+e/T.w,B,0,1,n.xanchor),de=c.align(G-t/T.h,$,0,1,n.yanchor);var r=c.getCursor(ue,de,n.xanchor,n.yanchor);f(re,r)},doneFn:function(t){f(re),t&&void 0!==ue&&void 0!==de&&i.restyle(e,{"colorbar.x":ue,"colorbar.y":de},k().index)}});return fe}function he(e,t){return u.coerce(X,Z,_,e,t)}function pe(t,n){var r,a=k();r=s.traceIs(a,"markerColorscale")?"marker.colorbar.title":"colorbar.title";var i={propContainer:Z,propName:r,traceIndex:a.index,dfltName:"colorscale",containerGroup:re.select(".cbtitle")},o="h"===t.charAt(0)?t.substr(1):"h"+t;re.selectAll("."+o+",."+o+"-math-group").remove(),v.draw(e,t,d(i,n||{}))}x._infolayer.selectAll("g."+t).remove()}function k(){var n,r,a=t.substr(2);for(n=0;nE(l))break;i=l,(v=f[0]*d[0]+f[1]*d[1])>h?(h=v,o=l,u=!1):v=e.length||!l)break;D[z++]=l,a=l}}else D[z++]=o}L.push(D.slice(0,z))}return L}},function(e,t,n){"use strict";var r=n(1),a=n(0),i=n(7),o=n(30),s=n(12),l=n(231),c=n(230),u=n(141).tester;function d(e,t,n,c,d,f,h){var p,v;!function(e,t,n,i,o){var l=n.xaxis,c=n.yaxis,u=r.extent(a.simpleMap(l.range,l.r2c)),d=r.extent(a.simpleMap(c.range,c.r2c)),f=i[0].trace;if(!s.hasMarkers(f))return;var h=f.marker.maxdisplayed;if(0===h)return;var p=i.filter(function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=d[0]&&e.y<=d[1]}),v=Math.ceil(p.length/h),g=0;o.forEach(function(e,n){var r=e[0].trace;s.hasMarkers(r)&&r.marker.maxdisplayed>0&&n0;function m(e){return g?e.transition():e}var y=n.xaxis,b=n.yaxis,_=c[0].trace,x=_.line,w=r.select(f);if(w.call(o.plot,n,h),!0===_.visible){var k,T;m(w).style("opacity",_.opacity);var A=_.fill.charAt(_.fill.length-1);"x"!==A&&"y"!==A&&(A=""),c[0].node3=w;var M="",C=[],S=_._prevtrace;S&&(M=S._prevRevpath||"",T=S._nextFill,C=S._polygons);var L,O,D,z,P,E,N,I,j,R="",B="",F=[],$=[],W=a.noop;if(k=_._ownFill,s.hasLines(_)||"none"!==_.fill){for(T&&T.datum(c),-1!==["hv","vh","hvh","vhv"].indexOf(x.shape)?(D=i.steps(x.shape),z=i.steps(x.shape.split("").reverse().join(""))):D=z="spline"===x.shape?function(e){var t=e[e.length-1];return e[0][0]===t[0]&&e[0][1]===t[1]?i.smoothclosed(e.slice(1),x.smoothing):i.smoothopen(e,x.smoothing)}:function(e){return"M"+e.join("L")},P=function(e){return z(e.reverse())},F=l(c,{xaxis:y,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(x.width||1,3)/4,linear:"linear"===x.shape,simplify:x.simplify}),j=_._polygons=new Array(F.length),v=0;v1}),W=function(e){return function(t){if(L=D(t),O=P(t),R?A?(R+="L"+L.substr(1),B=O+"L"+B.substr(1)):(R+="Z"+L,B=O+"Z"+B):(R=L,B=O),s.hasLines(_)&&t.length>1){var n=r.select(this);if(n.datum(c),e)m(n.style("opacity",0).attr("d",L).call(i.lineGroupStyle)).style("opacity",1);else{var a=m(n);a.attr("d",L),i.singleLineStyle(c,a)}}}}}var V=w.selectAll(".js-line").data($);m(V.exit()).style("opacity",0).remove(),V.each(W(!1)),V.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(i.lineGroupStyle).each(W(!0)),F.length&&(k?E&&I&&(A?("y"===A?E[1]=I[1]=b.c2p(0,!0):"x"===A&&(E[0]=I[0]=y.c2p(0,!0)),m(k).attr("d","M"+I+"L"+E+"L"+R.substr(1)).call(i.singleFillStyle)):m(k).attr("d",R+"Z").call(i.singleFillStyle)):"tonext"===_.fill.substr(0,6)&&R&&M&&("tonext"===_.fill?m(T).attr("d",R+"Z"+M+"Z").call(i.singleFillStyle):m(T).attr("d",R+"L"+M.substr(1)+"Z").call(i.singleFillStyle),_._polygons=_._polygons.concat(C)),_._prevRevpath=B,_._prevPolygons=j);var H=w.selectAll(".points");p=H.data([c]),H.each(K),p.enter().append("g").classed("points",!0).each(K),p.exit().remove()}function q(e){return e.filter(function(e){return e.vis})}function U(e){return e.id}function G(e){if(e.ids)return U}function Y(){return!1}function K(t){var n,o=t[0].trace,l=r.select(this),c=s.hasMarkers(o),u=s.hasText(o),d=G(o),f=Y,h=Y;c&&(f=o.marker.maxdisplayed||o._needsCull?q:a.identity),u&&(h=o.marker.maxdisplayed||o._needsCull?q:a.identity);var p=(n=l.selectAll("path.point").data(f,d)).enter().append("path").classed("point",!0);g&&p.call(i.pointStyle,o,e).call(i.translatePoints,y,b,o).style("opacity",0).transition().style("opacity",1);var v=c&&i.tryColorscale(o.marker,""),_=c&&i.tryColorscale(o.marker,"line");n.order(),n.each(function(t){var n=r.select(this),a=m(n);i.translatePoint(t,a,y,b)?(i.singlePointStyle(t,a,o,v,_,e),o.customdata&&n.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):a.remove()}),g?n.exit().transition().style("opacity",0).remove():n.exit().remove(),(n=l.selectAll("g").data(h,d)).enter().append("g").classed("textpoint",!0).append("text"),n.order(),n.each(function(e){var t=r.select(this),n=m(t.select("text"));i.translatePoint(e,n,y,b)||t.remove()}),n.selectAll("text").call(i.textPointStyle,o,e).each(function(e){var t=e.xp||y.c2p(e.x),n=e.yp||b.c2p(e.y);r.select(this).selectAll("tspan.line").each(function(){m(r.select(this)).attr({x:t,y:n})})}),n.exit().remove()}}e.exports=function(e,t,n,a,i){var o,s,l,u,f=t.plot.select("g.scatterlayer"),h=!a,p=!!a&&a.duration>0;for((l=f.selectAll("g.trace").data(n,function(e){return e[0].trace.uid})).enter().append("g").attr("class",function(e){return"trace scatter trace"+e[0].trace.uid}).style("stroke-miterlimit",2),c(e,t,n),function(e,t){var n;t.selectAll("g.trace").each(function(e){var t=r.select(this);if((n=e[0].trace)._nexttrace){if(n._nextFill=t.select(".js-fill.js-tonext"),!n._nextFill.size()){var a=":first-child";t.select(".js-fill.js-tozero").size()&&(a+=" + *"),n._nextFill=t.insert("path",a).attr("class","js-fill js-tonext")}}else t.selectAll(".js-fill.js-tonext").remove(),n._nextFill=null;n.fill&&("tozero"===n.fill.substr(0,6)||"toself"===n.fill||"to"===n.fill.substr(0,2)&&!n._prevtrace)?(n._ownFill=t.select(".js-fill.js-tozero"),n._ownFill.size()||(n._ownFill=t.insert("path",":first-child").attr("class","js-fill js-tozero"))):(t.selectAll(".js-fill.js-tozero").remove(),n._ownFill=null)})}(0,f),o=0,s={};os[t[0].trace.uid]?1:-1}),p)?(i&&(u=i()),r.transition().duration(a.duration).ease(a.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()}).each(function(){f.selectAll("g.trace").each(function(r,i){d(e,i,t,r,n,this,a)})})):f.selectAll("g.trace").each(function(r,i){d(e,i,t,r,n,this,a)});h&&l.exit().remove(),f.selectAll("path:not([d])").remove()}},function(e,t,n){"use strict";var r=n(39),a=n(154),i=n(12);e.exports=function(e){i.hasLines(e)&&r(e,"line")&&a(e,e.line.color,"line","c"),i.hasMarkers(e)&&(r(e,"marker")&&a(e,e.marker.color,"marker","c"),r(e,"marker.line")&&a(e,e.marker.line.color,"marker.line","c"))}},function(e,t,n){"use strict";var r=n(2),a=n(6),i=n(15).BADNUM,o=n(12),s=n(233),l=n(139);e.exports=function(e,t){var n,c,u=a.getFromId(e,t.xaxis||"x"),d=a.getFromId(e,t.yaxis||"y"),f=u.makeCalcdata(t,"x"),h=d.makeCalcdata(t,"y"),p=Math.min(f.length,h.length);u._minDtick=0,d._minDtick=0,f.length>p&&f.splice(p,f.length-p),h.length>p&&h.splice(p,h.length-p);var v={padded:!0},g={padded:!0};if(o.hasMarkers(t)){if(n=t.marker.size,Array.isArray(n)){var m={type:"linear"};a.setConvert(m),(n=m.makeCalcdata(t.marker,"size")).length>p&&n.splice(p,n.length-p)}var y,b=1.6*(t.marker.sizeref||1);y="area"===t.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/b),3)}:function(e){return Math.max((e||0)/b,3)},v.ppad=g.ppad=Array.isArray(n)?n.map(y):y(n)}s(t),!("tozerox"===t.fill||"tonextx"===t.fill&&e.firstscatter)||f[0]===f[p-1]&&h[0]===h[p-1]?t.error_y.visible||-1===["tonexty","tozeroy"].indexOf(t.fill)&&(o.hasMarkers(t)||o.hasText(t))||(v.padded=!1,v.ppad=0):v.tozero=!0,!("tozeroy"===t.fill||"tonexty"===t.fill&&e.firstscatter)||f[0]===f[p-1]&&h[0]===h[p-1]?-1!==["tonextx","tozerox"].indexOf(t.fill)&&(g.padded=!1):g.tozero=!0,a.expand(u,f,v),a.expand(d,h,g);var _=new Array(p);for(c=0;c=0;a--){var i=e[a];if("scatter"===i.type&&i.xaxis===n.xaxis&&i.yaxis===n.yaxis){i.opacity=void 0;break}}}}}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n,a){var i=!1;if(t.marker){var o=t.marker.color,s=(t.marker.line||{}).color;o&&!Array.isArray(o)?i=o:s&&!Array.isArray(s)&&(i=s)}a("fillcolor",r.addOpacity((t.line||{}).color||i||n,.5))}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,a){a("textposition"),r.coerceFont(a,"textfont",n.font)}},function(e,t,n){"use strict";e.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}},function(e,t,n){"use strict";var r=n(39),a=n(100);e.exports=function(e,t,n,i,o,s){var l=(e.marker||{}).color;(o("line.color",n),r(e,"line"))?a(e,t,i,o,{prefix:"line.",cLetter:"c"}):o("line.color",!Array.isArray(l)&&l||n);o("line.width"),(s||{}).noDash||o("line.dash")}},function(e,t,n){"use strict";var r=n(3),a=n(39),i=n(100),o=n(12);e.exports=function(e,t,n,s,l,c){var u=o.isBubble(e),d=(e.line||{}).color;(c=c||{},d&&(n=d),l("marker.symbol"),l("marker.opacity",u?.7:1),l("marker.size"),l("marker.color",n),a(e,"marker")&&i(e,t,s,l,{prefix:"marker.",cLetter:"c"}),c.noLine||(l("marker.line.color",d&&!Array.isArray(d)&&t.marker.color!==d?d:u?r.background:r.defaultLine),a(e,"marker.line")&&i(e,t,s,l,{prefix:"marker.line.",cLetter:"c"}),l("marker.line.width",u?1:0)),u&&(l("marker.sizeref"),l("marker.sizemin"),l("marker.sizemode")),c.gradient)&&("none"!==l("marker.gradient.type")&&l("marker.gradient.color"))}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n,a){var i,o=a("x"),s=a("y");if(r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],n),o)s?((i=Math.min(o.length,s.length))1&&f.push(d("object","layout"))),a.supplyDefaults(h);for(var p=h._fullData,v=n.length,g=0;g1&&void 0!==arguments[1]?arguments[1]:{parent:document.head};return e.loaded[n]?Promise.resolve(n):new Promise(function(a,o){var i=document.createElement("script");t.defaults2(i,t.omit(r,["unload","parent"]),{type:"text/javascript"}),i.async=!1,i.src=n,r.crossorigin&&(i.crossOrigin=r.crossorigin),i.onload=function(){e.loaded[n]=1,a(n)},i.onerror=function(){return o(new Error(n))},r.parent.appendChild(i)})}},t={isUndefined:function(e){return void 0===e},pick:function(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n},omit:function(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n},omitBy:function(e,t){var n={};return Object.keys(e).forEach(function(r){t(e[r])||(n[r]=e[r])}),n},defaults2:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a0)){var p=function(e,t,n){for(var r=n.filter(function(n){return t[n].anchor===e._id}),a=0,o=0;o0&&(i=i.transition().duration(t.transition.duration).ease(t.transition.easing)),i.attr("transform","translate("+(o-.5*c.gripWidth)+","+t.currentValueTotalHeight+")")}}function x(e,t){return e.inputAreaStart+c.stepInset+(e.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,t))}function T(e,t){return Math.min(1,Math.max(0,(t-c.stepInset-e.inputAreaStart)/(e.inputAreaLength-2*c.stepInset-2*e.inputAreaStart)))}function A(e,t,n){var r=e.selectAll("rect."+c.railTouchRectClass).data([0]);r.enter().append("rect").classed(c.railTouchRectClass,!0).call(_,t,e,n).style("pointer-events","all"),r.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,c.tickOffset+n.ticklen+n.labelHeight)}).call(o.fill,n.bgcolor).attr("opacity",0),i.setTranslate(r,0,n.currentValueTotalHeight)}function w(e,t){var n=e.selectAll("rect."+c.railRectClass).data([0]);n.enter().append("rect").classed(c.railRectClass,!0);var r=t.inputAreaLength-2*c.railInset;n.attr({width:r,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(o.stroke,t.bordercolor).call(o.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),i.setTranslate(n,c.railInset,.5*(t.inputAreaWidth-c.railWidth)+t.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,n=function(e,t){for(var n=e[c.name],r=[],a=0;a0?[0]:[]);if(o.enter().append("g").classed(c.containerClassName,!0).style("cursor","ew-resize"),o.exit().remove(),o.exit().size()&&function(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r=n.steps.length&&(n.active=0);t.call(p,n).call(w,n).call(g,n).call(b,n).call(A,e,n).call(h,e,n),i.setTranslate(t,n.lx+n.pad.l,n.ly+n.pad.t),t.call(k,n,n.active/(n.steps.length-1),!1),t.call(p,n)}(e,r.select(this),t)}})}}},function(e,t,n){"use strict";var r=n(0),a=n(27),o=n(128),i=n(35).name,l=o.steps;function s(e,t,n){function a(n,a){return r.coerce(e,t,o,n,a)}a("visible",function(e,t){var n,a,o=e.steps||[],i=t.steps=[];function s(e,t){return r.coerce(n,a,l,e,t)}for(var c=0;c0)&&(a("active"),a("x"),a("y"),r.noneOrAll(e,t,["x","y"]),a("xanchor"),a("yanchor"),a("len"),a("lenmode"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),r.coerceFont(a,"font",n.font),a("currentvalue.visible")&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),r.coerceFont(a,"currentvalue.font",t.font)),a("transition.duration"),a("transition.easing"),a("bgcolor"),a("activebgcolor"),a("bordercolor"),a("borderwidth"),a("ticklen"),a("tickwidth"),a("tickcolor"),a("minorticklen"))}e.exports=function(e,t){a(e,t,{name:i,handleItemDefaults:s})}},function(e,t,n){"use strict";var r=n(35);e.exports={moduleType:"component",name:r.name,layoutAttributes:n(128),supplyLayoutDefaults:n(189),draw:n(188)}},function(e,t,n){"use strict";e.exports=l;var r=n(1),a=n(3),o=n(7),i=n(0);function l(e,t,n){this.gd=e,this.container=t,this.id=n,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}l.barWidth=2,l.barLength=20,l.barRadius=2,l.barPad=1,l.barColor="#808BA4",l.prototype.enable=function(e,t,n){var i=this.gd._fullLayout,s=i.width,c=i.height;this.position=e;var u,d,f,p,h=this.position.l,v=this.position.w,g=this.position.t,m=this.position.h,y=this.position.direction,_="down"===y,b="left"===y,k="up"===y,x=v,T=m;_||b||"right"===y||k||(this.position.direction="down",_=!0),_||k?(d=(u=h)+x,_?(f=g,T=(p=Math.min(f+T,c))-f):T=(p=g+T)-(f=Math.max(p-T,0))):(p=(f=g)+T,b?x=(d=h+x)-(u=Math.max(d-x,0)):(u=h,x=(d=Math.min(u+x,s))-u)),this._box={l:u,t:f,w:x,h:T};var A=v>x,w=l.barLength+2*l.barPad,M=l.barWidth+2*l.barPad,C=h,L=g+m;L+M>c&&(L=c-M);var B=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);B.exit().on(".drag",null).remove(),B.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),A?(this.hbar=B.attr({rx:l.barRadius,ry:l.barRadius,x:C,y:L,width:w,height:M}),this._hbarXMin=C+w/2,this._hbarTranslateMax=x-w):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var S=m>T,W=l.barWidth+2*l.barPad,z=l.barLength+2*l.barPad,O=h+v,P=g;O+W>s&&(O=s-W);var D=this.container.selectAll("rect.scrollbar-vertical").data(S?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),S?(this.vbar=D.attr({rx:l.barRadius,ry:l.barRadius,x:O,y:P,width:W,height:z}),this._vbarYMin=P+z/2,this._vbarTranslateMax=T-z):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,N=u-.5,E=S?d+W+.5:d+.5,I=f-.5,j=A?p+M+.5:p+.5,F=i._topdefs.selectAll("#"+R).data(A||S?[0]:[]);if(F.exit().remove(),F.enter().append("clipPath").attr("id",R).append("rect"),A||S?(this._clipRect=F.select("rect").attr({x:Math.floor(N),y:Math.floor(I),width:Math.ceil(E)-Math.floor(N),height:Math.ceil(j)-Math.floor(I)}),this.container.call(o.setClipUrl,R),this.bg.attr({x:h,y:g,width:v,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(o.setClipUrl,null),delete this._clipRect),A||S){var $=r.behavior.drag().on("dragstart",function(){r.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call($);var V=r.behavior.drag().on("dragstart",function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(V),S&&this.vbar.on(".drag",null).call(V)}this.setTranslate(t,n)},l.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(o.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},l.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,a=n+this._hbarTranslateMax;e=(i.constrain(r.event.x,n,a)-n)/(a-n)*(this.position.w-this._box.w)}if(this.vbar){var o=t+this._vbarYMin,l=o+this._vbarTranslateMax;t=(i.constrain(r.event.y,o,l)-o)/(l-o)*(this.position.h-this._box.h)}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=i.constrain(e||0,0,n),t=i.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(o.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var a=e/n;this.hbar.call(o.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var l=t/r;this.vbar.call(o.setTranslate,e,t+l*this._vbarTranslateMax)}}},function(e,t,n){"use strict";var r=n(1),a=n(9),o=n(3),i=n(7),l=n(13),s=n(37),c=n(19).LINE_SPACING,u=n(80),d=n(191);function f(e){return e._index}function p(e,t){return+e.attr(u.menuIndexAttrName)===t._index}function h(e,t,n,r,a,o,i,l){t._input.active=t.active=i,"buttons"===t.type?g(e,r,null,null,t):"dropdown"===t.type&&(a.attr(u.menuIndexAttrName,"-1"),v(e,r,a,o,t),l||g(e,r,a,o,t))}function v(e,t,n,r,a){var o=t.selectAll("g."+u.headerClassName).data([0]);o.enter().append("g").classed(u.headerClassName,!0).style("pointer-events","all");var l=a.active,s=a.buttons[l]||u.blankHeaderOpts,c={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},d={width:a.headerWidth,height:a.headerHeight};o.call(m,a,s,e).call(A,a,c,d);var f=t.selectAll("text."+u.headerArrowClassName).data([0]);f.enter().append("text").classed(u.headerArrowClassName,!0).classed("user-select-none",!0).attr("text-anchor","end").call(i.font,a.font).text(u.arrowSymbol[a.direction]),f.attr({x:a.headerWidth-u.arrowOffsetX+a.pad.l,y:a.headerHeight/2+u.textOffsetY+a.pad.t}),o.on("click",function(){n.call(w),n.attr(u.menuIndexAttrName,p(n,a)?-1:String(a._index)),g(e,t,n,r,a)}),o.on("mouseover",function(){o.call(k)}),o.on("mouseout",function(){o.call(x,a)}),i.setTranslate(t,a.lx,a.ly)}function g(e,t,n,o,i){n||(n=t).attr("pointer-events","all");var l=function(e){return-1==+e.attr(u.menuIndexAttrName)}(n)&&"buttons"!==i.type?[]:i.buttons,s="dropdown"===i.type?u.dropdownButtonClassName:u.buttonClassName,c=n.selectAll("g."+s).data(l),d=c.enter().append("g").classed(s,!0),f=c.exit();"dropdown"===i.type?(d.attr("opacity","0").transition().attr("opacity","1"),f.transition().attr("opacity","0").remove()):f.remove();var p=0,v=0,g=-1!==["up","down"].indexOf(i.direction);"dropdown"===i.type&&(g?v=i.headerHeight+u.gapButtonHeader:p=i.headerWidth+u.gapButtonHeader),"dropdown"===i.type&&"up"===i.direction&&(v=-u.gapButtonHeader+u.gapButton-i.openHeight),"dropdown"===i.type&&"left"===i.direction&&(p=-u.gapButtonHeader+u.gapButton-i.openWidth);var y={x:i.lx+p+i.pad.l,y:i.ly+v+i.pad.t,yPad:u.gapButton,xPad:u.gapButton,index:0},_={l:y.x+i.borderwidth,t:y.y+i.borderwidth};c.each(function(l,s){var u=r.select(this);u.call(m,i,l,e).call(A,i,y),u.on("click",function(){r.event.defaultPrevented||(h(e,i,0,t,n,o,s),l.execute&&a.executeAPICommand(e,l.method,l.args),e.emit("plotly_buttonclicked",{menu:i,button:l,active:i.active}))}),u.on("mouseover",function(){u.call(k)}),u.on("mouseout",function(){u.call(x,i),c.call(b,i)})}),c.call(b,i),g?(_.w=Math.max(i.openWidth,i.headerWidth),_.h=y.y-_.t):(_.w=y.x-_.l,_.h=Math.max(i.openHeight,i.headerHeight)),_.direction=i.direction,o&&(c.size()?function(e,t,n,r,a,o){var i,l,s,c=a.direction,d="up"===c||"down"===c,f=a.active;if(d)for(l=0,s=0;s0?[0]:[]);if(o.enter().append("g").classed(u.containerClassName,!0).style("cursor","pointer"),o.exit().remove(),o.exit().size()&&function(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r0)&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),r.noneOrAll(e,t,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),r.coerceFont(a,"font",n.font),a("bgcolor",n.paper_bgcolor),a("bordercolor"),a("borderwidth"))}e.exports=function(e,t){a(e,t,{name:i,handleItemDefaults:s})}},function(e,t,n){"use strict";var r=n(80);e.exports={moduleType:"component",name:r.name,layoutAttributes:n(130),supplyLayoutDefaults:n(193),draw:n(192)}},function(e,t,n){"use strict";var r=n(2),a=n(105);e.exports=function(e,t,n,o){t=t||{};var i="log"===n&&"linear"===t.type,l="linear"===n&&"log"===t.type;if(i||l)for(var s,c,u=e._fullLayout.images,d=t._id.charAt(0),f=0;fp&&(p=d)));return p>=f?[f,p]:void 0}}e.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var i=0;iF&&r>$&&!e.shiftKey?s.getCursor(a/n,1-o/r):"move";c(t,i),j=i.split("-")[0]}function K(r,a){if("path"===n.type){var o=function(e){return E(R(e)+r)};P&&"date"===P.type&&(o=d.encodeDate(o));var s=function(e){return I(N(e)+a)};D&&"date"===D.type&&(s=d.encodeDate(s)),n.path=h(z,o,s),i[O]=n.path}else i[g]=n.x0=E(l+r),i[m]=n.y0=I(u+a),i[y]=n.x1=E(f+r),i[_]=n.y1=I(v+a);t.attr("d",p(e,n))}function q(r,a){if("path"===n.type){var o=function(e){return E(R(e)+r)};P&&"date"===P.type&&(o=d.encodeDate(o));var l=function(e){return I(N(e)+a)};D&&"date"===D.type&&(l=d.encodeDate(l)),n.path=h(z,o,l),i[O]=n.path}else{var s=~j.indexOf("n")?b+a:b,c=~j.indexOf("s")?k+a:k,u=~j.indexOf("w")?x+r:x,f=~j.indexOf("e")?T+r:T;c-s>$&&(i[A]=n[L]=I(s),i[w]=n[B]=I(c)),f-u>F&&(i[M]=n[S]=E(u),i[C]=n[W]=E(f))}t.attr("d",p(e,n))}s.init(V),t.node().onmousemove=G}(e,v,a,t)}}function p(e,t){var n,r,i,l,s=t.type,c=o.getFromId(e,t.xref),f=o.getFromId(e,t.yref),p=e._fullLayout._size;if(c?(n=d.shapePositionToRange(c),r=function(e){return c._offset+c.r2p(n(e,!0))}):r=function(e){return p.l+p.w*e},f?(i=d.shapePositionToRange(f),l=function(e){return f._offset+f.r2p(i(e,!0))}):l=function(e){return p.t+p.h*(1-e)},"path"===s)return c&&"date"===c.type&&(r=d.decodeDate(r)),f&&"date"===f.type&&(l=d.decodeDate(l)),function(e,t,n){return e.replace(u.segmentRE,function(e){var r=0,o=e.charAt(0),i=u.paramIsX[o],l=u.paramIsY[o],s=u.numParams[o],c=e.substr(1).replace(u.paramRE,function(e){return i[r]?e=t(e):l[r]&&(e=n(e)),++r>s&&(e="X"),e});return r>s&&(c=c.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),o+c})}(t.path,r,l);var h=r(t.x0),v=r(t.x1),g=l(t.y0),m=l(t.y1);if("line"===s)return"M"+h+","+g+"L"+v+","+m;if("rect"===s)return"M"+h+","+g+"H"+v+"V"+m+"H"+h+"Z";var y=(h+v)/2,_=(g+m)/2,b=Math.abs(y-h),k=Math.abs(_-g),x="A"+b+","+k,T=y+b+","+_;return"M"+T+x+" 0 1,1 "+(y+","+(_-k))+x+" 0 0,1 "+T+"Z"}function h(e,t,n){return e.replace(u.segmentRE,function(e){var r=0,a=e.charAt(0),o=u.paramIsX[a],i=u.paramIsY[a],l=u.numParams[a];return a+e.substr(1).replace(u.paramRE,function(e){return r>=l?e:(o[r]?e=t(e):i[r]&&(e=n(e)),r++,e)})})}e.exports={draw:function(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeSubplotLayers.selectAll("path").remove();for(var n=0;n1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s.pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*n[0],t.yaxis.r2l(s.y)*n[1],t.zaxis.r2l(s.z)*n[2]]),r(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},function(e,t,n){"use strict";var r=n(0),a=n(6);function o(e,t){var n=t.fullSceneLayout.domain,o=t.fullLayout._size,i={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},r.extendFlat(e._xa,i),a.setConvert(e._xa),e._xa._offset=o.l+n.x[0]*o.w,e._xa.l2p=function(){return.5*(1+e.pdata[0]/e.pdata[3])*o.w*(n.x[1]-n.x[0])},e._ya={},r.extendFlat(e._ya,i),a.setConvert(e._ya),e._ya._offset=o.t+(1-n.y[1])*o.h,e._ya.l2p=function(){return.5*(1-e.pdata[1]/e.pdata[3])*o.h*(n.y[1]-n.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,n=0;n0||n.explicitOff.length>0},onClick:function(e,t){var n,o=a(e,t),i=o.on,l=o.off.concat(o.explicitOff),s={};if(!i.length&&!l.length)return;for(n=0;n=0,b=n.indexOf("end")>=0,k=d.backoff*g+c;if("line"===u.nodeName){f={x:+e.attr("x1"),y:+e.attr("y1")},p={x:+e.attr("x2"),y:+e.attr("y2")};var x=f.x-p.x,T=f.y-p.y;if(v=(h=Math.atan2(T,x))+Math.PI,k){if(k*k>x*x+T*T)return void z();var A=k*Math.cos(h),w=k*Math.sin(h);_&&(f.x-=A,f.y-=w,e.attr({x1:f.x,y1:f.y})),b&&(p.x+=A,p.y+=w,e.attr({x2:p.x,y2:p.y}))}}else if("path"===u.nodeName){var M=u.getTotalLength(),C="";if(M5&&(a=0),r.select(u.parentNode).append("path").attr({class:e.attr("class"),d:d.path,transform:"translate("+n.x+","+n.y+")rotate("+180*a/Math.PI+")scale("+g+")"}).style({fill:m,opacity:y,"stroke-width":0}))}_&&O(f,h),b&&O(p,v)}},function(e,t,n){"use strict";var r=n(83),a=n(213);e.exports={moduleType:"component",name:"annotations",layoutAttributes:n(36),supplyLayoutDefaults:n(212),calcAutorange:n(210),draw:r.draw,drawOne:r.drawOne,drawRaw:r.drawRaw,hasClickToShow:a.hasClickToShow,onClick:a.onClick,convertCoords:n(209)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n){var a=n.marker.line.color;Array.isArray(a)&&(a=a[t.i]||r.defaultLine);var o=n.marker.line.width||0;Array.isArray(o)&&(o=o[t.i]||0),e.style({"stroke-width":o}).call(r.fill,t.color).call(r.stroke,a)}},function(e,t,n){"use strict";var r=n(4),a=n(84);e.exports=function(e,t){var n,o,i={},l=[],s=!1,c={},u=0;function d(e,n){if(""!==e&&a.isGrouped(t))-1===l.indexOf(e)?(l.push(e),s=!0,i[e]=[[n]]):i[e].push([n]);else{var r="~~i"+u;l.push(r),i[r]=[[n]],u++}}for(n=0;nb&&(r=Math.max(r-1,1)),1===r?n._clickTimeout=setTimeout(function(){T(e,t,r)},b):2===r&&(n._clickTimeout&&clearTimeout(n._clickTimeout),t._legendMouseDownTime=0,T(e,t,r))}})}function T(e,t,n){if(!t._dragged&&!t._editing){var r,i,s=t._fullLayout.hiddenlabels?t._fullLayout.hiddenlabels.slice():[],c=e.data()[0][0],u=t._fullData,d=c.trace,f=d.legendgroup,p=[];if(1===n&&_&&t.data&&t._context.showTips?(o.notifier("Double click on legend to isolate individual trace","long"),_=!1):_=!1,l.traceIs(d,"pie")){var h=c.label,v=s.indexOf(h);1===n?-1===v?s.push(h):s.splice(v,1):2===n&&(s=[],t.calcdata[0].forEach(function(e){h!==e.label&&s.push(e.label)}),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===s.length&&-1===v&&(s=[])),a.relayout(t,"hiddenlabels",s)}else{var g,m=[],y=[];for(g=0;ga.width-(a.margin.r+a.margin.l)&&(_=0,v+=g,o.height=o.height+g,g=0),c.setTranslate(this,i+_,5+i+t.height/2+v),o.width+=r+n,o.height=Math.max(o.height,t.height),_+=r+n,g=Math.max(t.height,g)}),o.width+=2*i,o.height+=10+2*i,o.width=Math.ceil(o.width),o.height=Math.ceil(o.height),n.each(function(t){var n=t[0];r.select(this).select(".legendtoggle").call(c.setRect,0,-n.height/2,e._context.editable?0:o.width,n.height)})}}function w(e){var t=e._fullLayout.legend,n="left";y.isRightAnchor(t)?n="right":y.isCenterAnchor(t)&&(n="center");var r="top";y.isBottomAnchor(t)?r="bottom":y.isMiddleAnchor(t)&&(r="middle"),i.autoMargin(e,"legend",{x:t.x,y:t.y,l:t.width*({right:1,center:.5}[n]||0),r:t.width*({left:1,center:.5}[n]||0),b:t.height*({top:1,middle:.5}[r]||0),t:t.height*({bottom:1,middle:.5}[r]||0)})}e.exports=function(e){var t=e._fullLayout,n="legend"+t._uid;if(t._infolayer&&e.calcdata){e._legendMouseDownTime||(e._legendMouseDownTime=0);var d=t.legend,p=t.showlegend&&v(e.calcdata,d),h=t.hiddenlabels||[];if(!t.showlegend||!p.length)return t._infolayer.selectAll(".legend").remove(),t._topdefs.select("#"+n).remove(),void i.autoMargin(e,"legend");var m=t._infolayer.selectAll("g.legend").data([0]);m.enter().append("g").attr({class:"legend","pointer-events":"all"});var _=t._topdefs.selectAll("#"+n).data([0]);_.enter().append("clipPath").attr("id",n).append("rect");var M=m.selectAll("rect.bg").data([0]);M.enter().append("rect").attr({class:"bg","shape-rendering":"crispEdges"}),M.call(u.stroke,d.bordercolor),M.call(u.fill,d.bgcolor),M.style("stroke-width",d.borderwidth+"px");var C=m.selectAll("g.scrollbox").data([0]);C.enter().append("g").attr("class","scrollbox");var L=m.selectAll("rect.scrollbar").data([0]);L.enter().append("rect").attr({class:"scrollbar",rx:20,ry:2,width:0,height:0}).call(u.fill,"#808BA4");var B=C.selectAll("g.groups").data(p);B.enter().append("g").attr("class","groups"),B.exit().remove();var S=B.selectAll("g.traces").data(o.identity);S.enter().append("g").attr("class","traces"),S.exit().remove(),S.call(g,e).style("opacity",function(e){var t=e[0].trace;return l.traceIs(t,"pie")?-1!==h.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1}).each(function(){r.select(this).call(k,e).call(x,e)});var W=0!==m.enter().size();W&&(A(e,B,S),w(e));var z=t.width,O=t.height;A(e,B,S),d.height>O?function(e){var t=e._fullLayout.legend,n="left";y.isRightAnchor(t)?n="right":y.isCenterAnchor(t)&&(n="center");i.autoMargin(e,"legend",{x:t.x,y:.5,l:t.width*({right:1,center:.5}[n]||0),r:t.width*({left:1,center:.5}[n]||0),b:0,t:0})}(e):w(e);var P=t._size,D=P.l+P.w*d.x,R=P.t+P.h*(1-d.y);y.isRightAnchor(d)?D-=d.width:y.isCenterAnchor(d)&&(D-=d.width/2),y.isBottomAnchor(d)?R-=d.height:y.isMiddleAnchor(d)&&(R-=d.height/2);var N=d.width,E=P.w;N>E?(D=P.l,N=E):(D+N>z&&(D=z-N),D<0&&(D=0),N=Math.min(z-D,d.width));var I=d.height,j=P.h;I>j?(R=P.t,I=j):(R+I>O&&(R=O-I),R<0&&(R=0),I=Math.min(O-R,d.height)),c.setTranslate(m,D,R);var F,$,V,H,G,K,q=I-f.scrollBarHeight-2*f.scrollBarMargin,U=d.height-I;if(d.height<=I||e._context.staticPlot)M.attr({width:N-d.borderwidth,height:I-d.borderwidth,x:d.borderwidth/2,y:d.borderwidth/2}),c.setTranslate(C,0,0),_.select("rect").attr({width:N-2*d.borderwidth,height:I-2*d.borderwidth,x:d.borderwidth,y:d.borderwidth}),C.call(c.setClipUrl,n);else{F=f.scrollBarMargin,$=C.attr("data-scroll")||0,M.attr({width:N-2*d.borderwidth+f.scrollBarWidth+f.scrollBarMargin,height:I-d.borderwidth,x:d.borderwidth/2,y:d.borderwidth/2}),_.select("rect").attr({width:N-2*d.borderwidth+f.scrollBarWidth+f.scrollBarMargin,height:I-2*d.borderwidth,x:d.borderwidth,y:d.borderwidth-$}),C.call(c.setClipUrl,n),W&&X(F,$),m.on("wheel",null),m.on("wheel",function(){$=o.constrain(C.attr("data-scroll")-r.event.deltaY/q*U,-U,0),X(F=f.scrollBarMargin-$/U*q,$),0!==$&&$!==-U&&r.event.preventDefault()}),L.on(".drag",null),C.on(".drag",null);var Y=r.behavior.drag().on("drag",function(){F=o.constrain(r.event.y-f.scrollBarHeight/2,f.scrollBarMargin,f.scrollBarMargin+q),$=-(F-f.scrollBarMargin)/q*U,X(F,$)});L.call(Y),C.call(Y)}if(e._context.editable)m.classed("cursor-move",!0),s.init({element:m.node(),gd:e,prepFn:function(){var e=c.getTranslate(m);G=e.x,K=e.y},moveFn:function(e,t){var n=G+e,r=K+t;c.setTranslate(m,n,r),V=s.align(n,0,P.l,P.l+P.w,d.xanchor),H=s.align(r,0,P.t+P.h,P.t,d.yanchor)},doneFn:function(n,r,o){if(n&&void 0!==V&&void 0!==H)a.relayout(e,{"legend.x":V,"legend.y":H});else{var i=t._infolayer.selectAll("g.traces").filter(function(){var e=this.getBoundingClientRect();return o.clientX>=e.left&&o.clientX<=e.right&&o.clientY>=e.top&&o.clientY<=e.bottom});i.size()>0&&(1===r?m._clickTimeout=setTimeout(function(){T(i,e,r)},b):2===r&&(m._clickTimeout&&clearTimeout(m._clickTimeout),T(i,e,r)))}}})}function X(e,t){C.attr("data-scroll",t).call(c.setTranslate,0,t),L.call(c.setRect,N,e,f.scrollBarWidth,f.scrollBarHeight),_.select("rect").attr({y:d.borderwidth-t})}}},function(e,t,n){"use strict";var r=n(4),a=n(0),o=n(137),i=n(41),l=n(84);e.exports=function(e,t,n){for(var s,c,u,d,f=e.legend||{},p=t.legend={},h=0,v="normal",g=0;g1)){if(y("bgcolor",t.paper_bgcolor),y("bordercolor"),y("borderwidth"),a.coerceFont(y,"font",t.font),y("orientation"),"h"===p.orientation){var _=e.xaxis;_&&_.rangeslider&&_.rangeslider.visible?(s=0,u="left",c=1.1,d="bottom"):(s=0,u="left",c=-.1,d="top")}y("traceorder",v),l.isGrouped(t.legend)&&y("tracegroupgap"),y("x",s),y("xanchor",u),y("y",c),y("yanchor",d),a.noneOrAll(f,p,["x","y"])}}},function(e,t,n){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:n(137),supplyLayoutDefaults:n(220),draw:n(219),style:n(136)}},function(e,t,n){"use strict";var r=n(1),a=n(8),o=n(4),i=n(7),l=n(6),s=/((x|y)([2-9]|[1-9][0-9]+)?)axis$/;e.exports=function(e,t,n,c){var u=e._fullLayout,d=[];var f,p,h,v,g=function(e){var t,n,r,a,o={};for(t in e)if(n=t.split(".")[0].match(s)){var i=n[1],l=i+"axis";if(r=u[l],a={},Array.isArray(e[t])?a.to=e[t].slice(0):Array.isArray(e[t].range)&&(a.to=e[t].range.slice(0)),!a.to)continue;a.axisName=l,a.length=r._length,d.push(i),o[i]=a}return o}(t),m=Object.keys(g),y=function(e,t,n){var r,a,o,i=e._plots,l=[];for(r in i){var s=i[r];if(-1===l.indexOf(s)){var c=s.xaxis._id,u=s.yaxis._id,d=s.xaxis.range,f=s.yaxis.range;s.xaxis._r=s.xaxis.range.slice(),s.yaxis._r=s.yaxis.range.slice(),a=n[c]?n[c].to:d,o=n[u]?n[u].to:f,d[0]===a[0]&&d[1]===a[1]&&f[0]===o[0]&&f[1]===o[1]||-1===t.indexOf(c)&&-1===t.indexOf(u)||l.push(s)}}return l}(u,m,g);if(!y.length)return!1;function _(e){var t=e.xaxis,n=e.yaxis;u._defs.selectAll("#"+e.clipId).call(i.setTranslate,0,0).call(i.setScale,1,1),e.plot.call(i.setTranslate,t._offset,n._offset).call(i.setScale,1,1).select(".scatterlayer").selectAll(".points").selectAll(".point").call(i.setPointGroupScale,1,1),e.plot.select(".scatterlayer").selectAll(".points").selectAll(".textpoint").call(i.setTextPointsScale,1,1)}function b(t,n){var r,a,s,c=g[t.xaxis._id],d=g[t.yaxis._id],f=[];if(c){a=(r=e._fullLayout[c.axisName])._r,s=c.to,f[0]=(a[0]*(1-n)+n*s[0]-a[0])/(a[1]-a[0])*t.xaxis._length;var p=a[1]-a[0],h=s[1]-s[0];r.range[0]=a[0]*(1-n)+n*s[0],r.range[1]=a[1]*(1-n)+n*s[1],f[2]=t.xaxis._length*(1-n+n*h/p)}else f[0]=0,f[2]=t.xaxis._length;if(d){a=(r=e._fullLayout[d.axisName])._r,s=d.to,f[1]=(a[1]*(1-n)+n*s[1]-a[1])/(a[0]-a[1])*t.yaxis._length;var v=a[1]-a[0],m=s[1]-s[0];r.range[0]=a[0]*(1-n)+n*s[0],r.range[1]=a[1]*(1-n)+n*s[1],f[3]=t.yaxis._length*(1-n+n*m/v)}else f[1]=0,f[3]=t.yaxis._length;!function(t,n){var r,a=[];for(a=[t._id,n._id],r=0;rn.duration?(function(){for(var t={},n=0;nE!=(S=M[A][1])>=E&&(C=(L=M[A-1][0])+(M[A][0]-L)*(E-B)/(S-B),P=Math.min(P,C),D=Math.max(D,C));P=Math.max(P,0),D=Math.min(D,f._length);var I=l.defaultLine;return l.opacity(d.fillcolor)?I=d.fillcolor:l.opacity((d.line||{}).color)&&(I=d.line.color),r.extendFlat(e,{distance:s+10,x0:P,x1:D,y0:E,y1:E,color:I}),delete e.index,d.text&&!Array.isArray(d.text)?e.text=String(d.text):e.text=d.name,[e]}}}},function(e,t,n){"use strict";var r=n(1),a=n(7),o=n(30);e.exports=function(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",function(e){return e[0].trace.opacity}),t.selectAll("g.points").each(function(t){var n=r.select(this),o=n.selectAll("path.point"),i=t.trace||t[0].trace;o.call(a.pointStyle,i,e),n.selectAll("text").call(a.textPointStyle,i,e)}),t.selectAll("g.trace path.js-line").call(a.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a.fillGroupStyle),t.call(o.style)}},function(e,t,n){"use strict";var r=n(1),a=n(21),o=n(8),i=n(9),l=n(4),s=n(6),c=n(20),u=n(0),d=n(10).extendFlat,f=n(28),p=n(7),h=n(3),v=n(97),g=n(13),m=n(19).LINE_SPACING,y=n(150),_=n(148),b=n(23),k=n(102);e.exports=function(e,t){var n={};function x(){var k=e._fullLayout,A=k._size;if("function"==typeof n.fillcolor||"function"==typeof n.line.color){var w,M=r.extent(("function"==typeof n.fillcolor?n.fillcolor:n.line.color).domain()),C=[],L=[],B="function"==typeof n.line.color?n.line.color:function(){return n.line.color},S="function"==typeof n.fillcolor?n.fillcolor:function(){return n.fillcolor},W=n.levels.end+n.levels.size/100,z=n.levels.size,O=1.001*M[0]-.001*M[1],P=1.001*M[1]-.001*M[0];for(w=n.levels.start;(w-W)*z<0;w+=z)w>O&&wM[0]&&w1){var ne=Math.pow(10,Math.floor(Math.log(te)/Math.LN10));Q*=ne*u.roundUp(te/ne,[2,5,10]),(Math.abs(n.levels.start)/n.levels.size+1e-6)%1<2e-6&&(J.tick0=0)}J.dtick=Q}J.domain=[q+H,q+F-H],J.setScale();var re=k._infolayer.selectAll("g."+t).data([0]);re.enter().append("g").classed(t,!0).each(function(){var e=r.select(this);e.append("rect").classed("cbbg",!0),e.append("g").classed("cbfills",!0),e.append("g").classed("cblines",!0),e.append("g").classed("cbaxis",!0).classed("crisp",!0),e.append("g").classed("cbtitleunshift",!0).append("g").classed("cbtitle",!0),e.append("rect").classed("cboutline",!0),e.select(".cbtitle").datum(0)}),re.attr("transform","translate("+Math.round(A.l)+","+Math.round(A.t)+")");var ae=re.select(".cbtitleunshift").attr("transform","translate(-"+Math.round(A.l)+",-"+Math.round(A.t)+")");J._axislayer=re.select(".cbaxis");var oe=0;if(-1!==["top","bottom"].indexOf(n.titleside)){var ie,le=A.l+(n.x+$)*A.w,se=J.titlefont.size;ie="top"===n.titleside?(1-(q+F-H))*A.h+A.t+3+.75*se:(1-(q+H))*A.h+A.t-3-.25*se,he(J._id+"title",{attributes:{x:le,y:ie,"text-anchor":"start"}})}var ce,ue,de,fe=u.syncOrAsync([i.previousPromises,function(){if(-1!==["top","bottom"].indexOf(n.titleside)){var t=re.select(".cbtitle"),o=t.select("text"),i=[-n.outlinewidth/2,n.outlinewidth/2],l=t.select(".h"+J._id+"title-math-group").node(),c=15.6;if(o.node()&&(c=parseInt(o.style("font-size"),10)*m),l?(oe=p.bBox(l).height)>c&&(i[1]-=(oe-c)/2):o.node()&&!o.classed("js-placeholder")&&(oe=p.bBox(o.node()).height),oe){if(oe+=5,"top"===n.titleside)J.domain[1]-=oe/A.h,i[1]*=-1;else{J.domain[0]+=oe/A.h;var d=g.lineCount(o);i[1]+=(1-d)*c}t.attr("transform","translate("+i+")"),J.setScale()}}re.selectAll(".cbfills,.cblines,.cbaxis").attr("transform","translate(0,"+Math.round(A.h*(1-J.domain[1]))+")");var f=re.select(".cbfills").selectAll("rect.cbfill").data(L);f.enter().append("rect").classed("cbfill",!0).style("stroke","none"),f.exit().remove(),f.each(function(e,t){var n=[0===t?M[0]:(L[t]+L[t-1])/2,t===L.length-1?M[1]:(L[t]+L[t+1])/2].map(J.c2p).map(Math.round);t!==L.length-1&&(n[1]+=n[1]>n[0]?1:-1);var o=S(e).replace("e-",""),i=a(o).toHexString();r.select(this).attr({x:G,width:Math.max(E,2),y:r.min(n),height:Math.max(r.max(n)-r.min(n),2),fill:i})});var h=re.select(".cblines").selectAll("path.cbline").data(n.line.color&&n.line.width?C:[]);return h.enter().append("path").classed("cbline",!0),h.exit().remove(),h.each(function(e){r.select(this).attr("d","M"+G+","+(Math.round(J.c2p(e))+n.line.width/2%1)+"h"+E).call(p.lineGroupStyle,n.line.width,B(e),n.line.dash)}),J._axislayer.selectAll("g."+J._id+"tick,path").remove(),J._pos=G+E+(n.outlinewidth||0)/2-("outside"===n.ticks?1:0),J.side="right",u.syncOrAsync([function(){return s.doTicks(e,J,!0)},function(){if(-1===["top","bottom"].indexOf(n.titleside)){var t=J.titlefont.size,a=J._offset+J._length/2,o=A.l+(J.position||0)*A.w+("right"===J.side?10+t*(J.showticklabels?1:.5):-10-t*(J.showticklabels?.5:0));he("h"+J._id+"title",{avoid:{selection:r.select(e).selectAll("g."+J._id+"tick"),side:n.titleside,offsetLeft:A.l,offsetTop:A.t,maxShift:k.width},attributes:{x:o,y:a,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}])},i.previousPromises,function(){var r=E+n.outlinewidth/2+p.bBox(J._axislayer.node()).width;if((D=ae.select("text")).node()&&!D.classed("js-placeholder")){var a,o=ae.select(".h"+J._id+"title-math-group").node();a=o&&-1!==["top","bottom"].indexOf(n.titleside)?p.bBox(o).width:p.bBox(ae.node()).right-G-A.l,r=Math.max(r,a)}var l=2*n.xpad+r+n.borderwidth+n.outlinewidth/2,s=U-Y;re.select(".cbbg").attr({x:G-n.xpad-(n.borderwidth+n.outlinewidth)/2,y:Y-V,width:Math.max(l,2),height:Math.max(s+2*V,2)}).call(h.fill,n.bgcolor).call(h.stroke,n.bordercolor).style({"stroke-width":n.borderwidth}),re.selectAll(".cboutline").attr({x:G,y:Y+n.ypad+("top"===n.titleside?oe:0),width:Math.max(E,2),height:Math.max(s-2*n.ypad-oe,2)}).call(h.stroke,n.outlinecolor).style({fill:"None","stroke-width":n.outlinewidth});var c=({center:.5,right:1}[n.xanchor]||0)*l;re.attr("transform","translate("+(A.l-c)+","+A.t+")"),i.autoMargin(e,t,{x:n.x,y:n.y,l:l*({right:1,center:.5}[n.xanchor]||0),r:l*({left:1,center:.5}[n.xanchor]||0),t:s*({bottom:1,middle:.5}[n.yanchor]||0),b:s*({top:1,middle:.5}[n.yanchor]||0)})}],e);if(fe&&fe.then&&(e._promises||[]).push(fe),e._context.editable)c.init({element:re.node(),gd:e,prepFn:function(){ce=re.attr("transform"),f(re)},moveFn:function(e,t){re.attr("transform",ce+" translate("+e+","+t+")"),ue=c.align(K+e/A.w,I,0,1,n.xanchor),de=c.align(q-t/A.h,F,0,1,n.yanchor);var r=c.getCursor(ue,de,n.xanchor,n.yanchor);f(re,r)},doneFn:function(t){f(re),t&&void 0!==ue&&void 0!==de&&o.restyle(e,{"colorbar.x":ue,"colorbar.y":de},T().index)}});return fe}function pe(e,t){return u.coerce(X,J,b,e,t)}function he(t,n){var r,a=T();r=l.traceIs(a,"markerColorscale")?"marker.colorbar.title":"colorbar.title";var o={propContainer:J,propName:r,traceIndex:a.index,dfltName:"colorscale",containerGroup:re.select(".cbtitle")},i="h"===t.charAt(0)?t.substr(1):"h"+t;re.selectAll("."+i+",."+i+"-math-group").remove(),v.draw(e,t,d(o,n||{}))}k._infolayer.selectAll("g."+t).remove()}function T(){var n,r,a=t.substr(2);for(n=0;nP(s))break;o=s,(v=f[0]*d[0]+f[1]*d[1])>p?(p=v,i=s,u=!1):v=e.length||!s)break;W[z++]=s,a=s}}else W[z++]=i}B.push(W.slice(0,z))}return B}},function(e,t,n){"use strict";var r=n(1),a=n(0),o=n(7),i=n(30),l=n(12),s=n(231),c=n(230),u=n(141).tester;function d(e,t,n,c,d,f,p){var h,v;!function(e,t,n,o,i){var s=n.xaxis,c=n.yaxis,u=r.extent(a.simpleMap(s.range,s.r2c)),d=r.extent(a.simpleMap(c.range,c.r2c)),f=o[0].trace;if(!l.hasMarkers(f))return;var p=f.marker.maxdisplayed;if(0===p)return;var h=o.filter(function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=d[0]&&e.y<=d[1]}),v=Math.ceil(h.length/p),g=0;i.forEach(function(e,n){var r=e[0].trace;l.hasMarkers(r)&&r.marker.maxdisplayed>0&&n0;function m(e){return g?e.transition():e}var y=n.xaxis,_=n.yaxis,b=c[0].trace,k=b.line,x=r.select(f);if(x.call(i.plot,n,p),!0===b.visible){var T,A;m(x).style("opacity",b.opacity);var w=b.fill.charAt(b.fill.length-1);"x"!==w&&"y"!==w&&(w=""),c[0].node3=x;var M="",C=[],L=b._prevtrace;L&&(M=L._prevRevpath||"",A=L._nextFill,C=L._polygons);var B,S,W,z,O,P,D,R,N,E="",I="",j=[],F=[],$=a.noop;if(T=b._ownFill,l.hasLines(b)||"none"!==b.fill){for(A&&A.datum(c),-1!==["hv","vh","hvh","vhv"].indexOf(k.shape)?(W=o.steps(k.shape),z=o.steps(k.shape.split("").reverse().join(""))):W=z="spline"===k.shape?function(e){var t=e[e.length-1];return e[0][0]===t[0]&&e[0][1]===t[1]?o.smoothclosed(e.slice(1),k.smoothing):o.smoothopen(e,k.smoothing)}:function(e){return"M"+e.join("L")},O=function(e){return z(e.reverse())},j=s(c,{xaxis:y,yaxis:_,connectGaps:b.connectgaps,baseTolerance:Math.max(k.width||1,3)/4,linear:"linear"===k.shape,simplify:k.simplify}),N=b._polygons=new Array(j.length),v=0;v1}),$=function(e){return function(t){if(B=W(t),S=O(t),E?w?(E+="L"+B.substr(1),I=S+"L"+I.substr(1)):(E+="Z"+B,I=S+"Z"+I):(E=B,I=S),l.hasLines(b)&&t.length>1){var n=r.select(this);if(n.datum(c),e)m(n.style("opacity",0).attr("d",B).call(o.lineGroupStyle)).style("opacity",1);else{var a=m(n);a.attr("d",B),o.singleLineStyle(c,a)}}}}}var V=x.selectAll(".js-line").data(F);m(V.exit()).style("opacity",0).remove(),V.each($(!1)),V.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(o.lineGroupStyle).each($(!0)),j.length&&(T?P&&R&&(w?("y"===w?P[1]=R[1]=_.c2p(0,!0):"x"===w&&(P[0]=R[0]=y.c2p(0,!0)),m(T).attr("d","M"+R+"L"+P+"L"+E.substr(1)).call(o.singleFillStyle)):m(T).attr("d",E+"Z").call(o.singleFillStyle)):"tonext"===b.fill.substr(0,6)&&E&&M&&("tonext"===b.fill?m(A).attr("d",E+"Z"+M+"Z").call(o.singleFillStyle):m(A).attr("d",E+"L"+M.substr(1)+"Z").call(o.singleFillStyle),b._polygons=b._polygons.concat(C)),b._prevRevpath=I,b._prevPolygons=N);var H=x.selectAll(".points");h=H.data([c]),H.each(Y),h.enter().append("g").classed("points",!0).each(Y),h.exit().remove()}function G(e){return e.filter(function(e){return e.vis})}function K(e){return e.id}function q(e){if(e.ids)return K}function U(){return!1}function Y(t){var n,i=t[0].trace,s=r.select(this),c=l.hasMarkers(i),u=l.hasText(i),d=q(i),f=U,p=U;c&&(f=i.marker.maxdisplayed||i._needsCull?G:a.identity),u&&(p=i.marker.maxdisplayed||i._needsCull?G:a.identity);var h=(n=s.selectAll("path.point").data(f,d)).enter().append("path").classed("point",!0);g&&h.call(o.pointStyle,i,e).call(o.translatePoints,y,_,i).style("opacity",0).transition().style("opacity",1);var v=c&&o.tryColorscale(i.marker,""),b=c&&o.tryColorscale(i.marker,"line");n.order(),n.each(function(t){var n=r.select(this),a=m(n);o.translatePoint(t,a,y,_)?(o.singlePointStyle(t,a,i,v,b,e),i.customdata&&n.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):a.remove()}),g?n.exit().transition().style("opacity",0).remove():n.exit().remove(),(n=s.selectAll("g").data(p,d)).enter().append("g").classed("textpoint",!0).append("text"),n.order(),n.each(function(e){var t=r.select(this),n=m(t.select("text"));o.translatePoint(e,n,y,_)||t.remove()}),n.selectAll("text").call(o.textPointStyle,i,e).each(function(e){var t=e.xp||y.c2p(e.x),n=e.yp||_.c2p(e.y);r.select(this).selectAll("tspan.line").each(function(){m(r.select(this)).attr({x:t,y:n})})}),n.exit().remove()}}e.exports=function(e,t,n,a,o){var i,l,s,u,f=t.plot.select("g.scatterlayer"),p=!a,h=!!a&&a.duration>0;for((s=f.selectAll("g.trace").data(n,function(e){return e[0].trace.uid})).enter().append("g").attr("class",function(e){return"trace scatter trace"+e[0].trace.uid}).style("stroke-miterlimit",2),c(e,t,n),function(e,t){var n;t.selectAll("g.trace").each(function(e){var t=r.select(this);if((n=e[0].trace)._nexttrace){if(n._nextFill=t.select(".js-fill.js-tonext"),!n._nextFill.size()){var a=":first-child";t.select(".js-fill.js-tozero").size()&&(a+=" + *"),n._nextFill=t.insert("path",a).attr("class","js-fill js-tonext")}}else t.selectAll(".js-fill.js-tonext").remove(),n._nextFill=null;n.fill&&("tozero"===n.fill.substr(0,6)||"toself"===n.fill||"to"===n.fill.substr(0,2)&&!n._prevtrace)?(n._ownFill=t.select(".js-fill.js-tozero"),n._ownFill.size()||(n._ownFill=t.insert("path",":first-child").attr("class","js-fill js-tozero"))):(t.selectAll(".js-fill.js-tozero").remove(),n._ownFill=null)})}(0,f),i=0,l={};il[t[0].trace.uid]?1:-1}),h)?(o&&(u=o()),r.transition().duration(a.duration).ease(a.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()}).each(function(){f.selectAll("g.trace").each(function(r,o){d(e,o,t,r,n,this,a)})})):f.selectAll("g.trace").each(function(r,o){d(e,o,t,r,n,this,a)});p&&s.exit().remove(),f.selectAll("path:not([d])").remove()}},function(e,t,n){"use strict";var r=n(39),a=n(154),o=n(12);e.exports=function(e){o.hasLines(e)&&r(e,"line")&&a(e,e.line.color,"line","c"),o.hasMarkers(e)&&(r(e,"marker")&&a(e,e.marker.color,"marker","c"),r(e,"marker.line")&&a(e,e.marker.line.color,"marker.line","c"))}},function(e,t,n){"use strict";var r=n(2),a=n(6),o=n(15).BADNUM,i=n(12),l=n(233),s=n(139);e.exports=function(e,t){var n,c,u=a.getFromId(e,t.xaxis||"x"),d=a.getFromId(e,t.yaxis||"y"),f=u.makeCalcdata(t,"x"),p=d.makeCalcdata(t,"y"),h=Math.min(f.length,p.length);u._minDtick=0,d._minDtick=0,f.length>h&&f.splice(h,f.length-h),p.length>h&&p.splice(h,p.length-h);var v={padded:!0},g={padded:!0};if(i.hasMarkers(t)){if(n=t.marker.size,Array.isArray(n)){var m={type:"linear"};a.setConvert(m),(n=m.makeCalcdata(t.marker,"size")).length>h&&n.splice(h,n.length-h)}var y,_=1.6*(t.marker.sizeref||1);y="area"===t.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/_),3)}:function(e){return Math.max((e||0)/_,3)},v.ppad=g.ppad=Array.isArray(n)?n.map(y):y(n)}l(t),!("tozerox"===t.fill||"tonextx"===t.fill&&e.firstscatter)||f[0]===f[h-1]&&p[0]===p[h-1]?t.error_y.visible||-1===["tonexty","tozeroy"].indexOf(t.fill)&&(i.hasMarkers(t)||i.hasText(t))||(v.padded=!1,v.ppad=0):v.tozero=!0,!("tozeroy"===t.fill||"tonexty"===t.fill&&e.firstscatter)||f[0]===f[h-1]&&p[0]===p[h-1]?-1!==["tonextx","tozerox"].indexOf(t.fill)&&(g.padded=!1):g.tozero=!0,a.expand(u,f,v),a.expand(d,p,g);var b=new Array(h);for(c=0;c=0;a--){var o=e[a];if("scatter"===o.type&&o.xaxis===n.xaxis&&o.yaxis===n.yaxis){o.opacity=void 0;break}}}}}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n,a){var o=!1;if(t.marker){var i=t.marker.color,l=(t.marker.line||{}).color;i&&!Array.isArray(i)?o=i:l&&!Array.isArray(l)&&(o=l)}a("fillcolor",r.addOpacity((t.line||{}).color||o||n,.5))}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n,a){a("textposition"),r.coerceFont(a,"textfont",n.font)}},function(e,t,n){"use strict";e.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}},function(e,t,n){"use strict";var r=n(39),a=n(100);e.exports=function(e,t,n,o,i,l){var s=(e.marker||{}).color;(i("line.color",n),r(e,"line"))?a(e,t,o,i,{prefix:"line.",cLetter:"c"}):i("line.color",!Array.isArray(s)&&s||n);i("line.width"),(l||{}).noDash||i("line.dash")}},function(e,t,n){"use strict";var r=n(3),a=n(39),o=n(100),i=n(12);e.exports=function(e,t,n,l,s,c){var u=i.isBubble(e),d=(e.line||{}).color;(c=c||{},d&&(n=d),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),s("marker.color",n),a(e,"marker")&&o(e,t,l,s,{prefix:"marker.",cLetter:"c"}),c.noLine||(s("marker.line.color",d&&!Array.isArray(d)&&t.marker.color!==d?d:u?r.background:r.defaultLine),a(e,"marker.line")&&o(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0)),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient)&&("none"!==s("marker.gradient.type")&&s("marker.gradient.color"))}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n,a){var o,i=a("x"),l=a("y");if(r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],n),i)l?((o=Math.min(i.length,l.length))1&&f.push(d("object","layout"))),a.supplyDefaults(p);for(var h=p._fullData,v=n.length,g=0;gi*m)||x)for(n=0;nD&&PL&&(L=P);d/=(L-S)/(2*O),S=l.l2r(S),L=l.l2r(L),l.range=l._input.range=A=e[1]||a[1]<=e[0])&&i[0]t[0])return!0}return!1}(s,l,h)?(f.push(t),h.push([s,l])):c=[0];var u=n.plotgroup.selectAll(".bg").data(c);u.enter().append("rect").classed("bg",!0),u.exit().remove(),u.each(function(){n.bg=u;var e=n.plotgroup.node();e.insertBefore(this,e.childNodes[0])})});var p=i._bgLayer.selectAll(".bg").data(f);p.enter().append("rect").classed("bg",!0),p.exit().remove(),p.each(function(e){i._plots[e].bg=r.select(this)});var v=[];return u.each(function(t){var n=i._plots[t],r=a.Axes.getFromId(e,t,"x"),s=a.Axes.getFromId(e,t,"y");r.setScale(),s.setScale(),n.bg&&i._has("cartesian")&&n.bg.call(c.setRect,r._offset-o.p,s._offset-o.p,r._length+2*o.p,s._length+2*o.p).call(l.fill,i.plot_bgcolor).style("stroke-width",0),n.clipId="clip"+i._uid+t+"plot";var u=i._defs.selectAll("g.clips").selectAll("#"+n.clipId).data([0]);u.enter().append("clipPath").attr({class:"plotclip",id:n.clipId}).append("rect"),u.selectAll("rect").attr({width:r._length,height:s._length}),n.plot.call(c.setTranslate,r._offset,s._offset),n.plot.call(c.setClipUrl,n.clipId);var d=c.crispRound(e,r.linewidth,1),f=c.crispRound(e,s.linewidth,1),h=o.p+f,p="M"+-h+",",g="h"+(r._length+2*h),m="free"===r.anchor&&-1===v.indexOf(r._id),y=o.h*(1-(r.position||0))+d/2%1,b=r.anchor===s._id&&(r.mirror||"top"!==r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[s._id+"bottom"],_=s._length+o.p+d/2,x=r.anchor===s._id&&(r.mirror||"top"===r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[s._id+"top"],w=-o.p-d/2,k=o.p,T=b?0:d,A=x?0:d,M=","+(-k-A)+"v"+(s._length+2*k+A+T),C="free"===s.anchor&&-1===v.indexOf(s._id),S=o.w*(s.position||0)+f/2%1,L=s.anchor===r._id&&(s.mirror||"right"!==s.side)||"all"===s.mirror||"allticks"===s.mirror||s.mirrors&&s.mirrors[r._id+"left"],O=-o.p-f/2,D=s.anchor===r._id&&(s.mirror||"right"===s.side)||"all"===s.mirror||"allticks"===s.mirror||s.mirrors&&s.mirrors[r._id+"right"],z=r._length+o.p+f/2;r._linepositions[t]=[b?_:void 0,x?w:void 0,m?y:void 0],r.anchor===s._id?r._linepositions[t][3]="top"===r.side?w:_:m&&(r._linepositions[t][3]=y),s._linepositions[t]=[L?O:void 0,D?z:void 0,C?S:void 0],s.anchor===r._id?s._linepositions[t][3]="right"===s.side?z:O:C&&(s._linepositions[t][3]=S);var P="translate("+r._offset+","+s._offset+")",E=P,N=P;m&&(E="translate("+r._offset+","+o.t+")",w+=s._offset-o.t,_+=s._offset-o.t),C&&(N="translate("+o.l+","+s._offset+")",O+=r._offset-o.l,z+=r._offset-o.l),i._has("cartesian")&&(n.xlines.attr("transform",E).attr("d",(b?p+_+g:"")+(x?p+w+g:"")+(m?p+y+g:"")||"M0,0").style("stroke-width",d+"px").call(l.stroke,r.showline?r.linecolor:"rgba(0,0,0,0)"),n.ylines.attr("transform",N).attr("d",(L?"M"+O+M:"")+(D?"M"+z+M:"")+(C?"M"+S+M:"")||"M0,0").attr("stroke-width",f+"px").call(l.stroke,s.showline?s.linecolor:"rgba(0,0,0,0)")),n.xaxislayer.attr("transform",E),n.yaxislayer.attr("transform",N),n.gridlayer.attr("transform",P),n.zerolinelayer.attr("transform",P),n.draglayer.attr("transform",P),m&&v.push(r._id),C&&v.push(s._id)}),a.Axes.makeClipPaths(e),t.drawMainTitle(e),d.manage(e),e._promises.length&&Promise.all(e._promises)},t.drawMainTitle=function(e){var t=e._fullLayout;u.draw(e,"gtitle",{propContainer:t,propName:"title",dfltName:"Plot",attributes:{x:t.width/2,y:t._size.t/2,"text-anchor":"middle"}})},t.doTraceStyle=function(e){for(var t=0;t0&&o.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var t,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1);var r=l.list({_fullLayout:e});for(t=0;t3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),"rotate"===e.dragmode&&(e.dragmode="orbit"),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var m=s.getSubplotIds(e,"gl3d");for(t=0;t0)return e.substr(0,t)}t.hasParent=function(e,t){for(var n=p(t);n;){if(n in e)return!0;n=p(n)}return!1}},function(e,t,n){"use strict";var r=n(107),a=n(32),i=n(109),o=n(33),s=n(162).sorterAsc,l=n(4);t.containerArrayMatch=n(167);var c=t.isAddVal=function(e){return"add"===e||a(e)},u=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,n,a){var d=t.astr,f=l.getComponentMethod(d,"supplyLayoutDefaults"),h=l.getComponentMethod(d,"draw"),p=l.getComponentMethod(d,"drawOne"),v=a.replot||a.recalc||f===i||h===i,g=e.layout,m=e._fullLayout;if(n[""]){Object.keys(n).length>1&&o.warn("Full array edits are incompatible with other edits",d);var y=n[""][""];if(u(y))t.set(null);else{if(!Array.isArray(y))return o.warn("Unrecognized full array edit value",d,y),!0;t.set(y)}return!v&&(f(g,m),h(e),!0)}var b,_,x,w,k,T,A,M=Object.keys(n).map(Number).sort(s),C=t.get(),S=C||[],L=r(m,d).get(),O=[],D=-1,z=S.length;for(b=0;bS.length-(A?0:1))o.warn("index out of range",d,x);else if(void 0!==T)k.length>1&&o.warn("Insertion & removal are incompatible with edits to the same index.",d,x),u(T)?O.push(x):A?("add"===T&&(T={}),S.splice(x,0,T),L&&L.splice(x,0,{})):o.warn("Unrecognized full object edit value",d,x,T),-1===D&&(D=x);else for(_=0;_=0;b--)S.splice(O[b],1),L&&L.splice(O[b],1);if(S.length?C||t.set(S):t.set(null),v)return!1;if(f(g,m),p!==i){var P;if(-1===D)P=M;else{for(z=Math.max(S.length,z),P=[],b=0;b=D);b++)P.push(x);for(b=D;b=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function C(e){e.selectAll(".select-outline").remove()}function S(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function L(e){return-1!==["lasso","select"].indexOf(e)}function O(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,x)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}e.exports=function(e,t,n,D,z,P,E,N){var I,j,R,B,F,$,W,V,H,q,U,G,Y,K=e._fullLayout,X=e._fullLayout._zoomlayer,Z=E+N==="nsew";function J(){j=[t.xaxis],R=[t.yaxis];var n=j[0],r=R[0];$=n._length,W=r._length;var a=K._axisConstraintGroups,i=[n._id],o=[r._id];I=[t].concat(E&&N?t.overlays:[]);for(var l=1;l.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+n+", "+r+")").attr("d",a+"Z")}(X,re,B,F,ae="M0,0H"+$+"V"+W+"H0V0"),le=function(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}(X,B,F),C(X)}(0,n,r)):"pan"===i?(ce.moveFn=be,ce.doneFn=he,C(X)):L(i)&&(ce.xaxes=j,ce.yaxes=R,m(t,n,r,ce,i))}};f.init(ce);var ue={};function de(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min($,t+ee)),a=Math.max(0,Math.min(W,n+te)),i=Math.abs(r-ee),o=Math.abs(a-te);function s(){oe="",ne.r=ne.l,ne.t=ne.b,le.attr("d","M0,0Z")}ne.l=Math.min(ee,r),ne.r=Math.max(ee,r),ne.t=Math.min(te,a),ne.b=Math.max(te,a),U?i>x||o>x?(oe="xy",i/$>o/W?(o=i*W/$,te>a?ne.t=te-o:ne.b=te+o):(i=o*$/W,ee>r?ne.l=ee-i:ne.r=ee+i),le.attr("d",O(ne))):s():!H||o.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}(se,le,ne,ae,ie,re),ie=!0}function fe(t,n){if(Math.min(ne.h,ne.w)<2*_)return 2===n&&xe(),S(e);"xy"!==oe&&"x"!==oe||T(j,ne.l/$,ne.r/$,ue,G),"xy"!==oe&&"y"!==oe||T(R,(W-ne.b)/W,(W-ne.t)/W,ue,Y),S(e),we(oe),w&&e.data&&e._context.showTips&&(s.notifier("Double-click to
zoom back out","long"),w=!1)}function he(t,n){var a=1===(E+N).length;if(t)we();else if(2!==n||a){if(1===n&&a){var o=E?R[0]:j[0],s="s"===E||"w"===N?0:1,c=o._name+".range["+s+"]",u=function(e,t){var n,a=e.range[t],i=Math.abs(a-e.range[1-t]);return"date"===e.type?a:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,a))):(n=Math.floor(Math.log(Math.abs(a))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,r.format("."+String(n)+"g")(a))}(o,s),d="left",f="middle";if(o.fixedrange)return;E?(f="n"===E?"top":"bottom","right"===o.side&&(d="right")):"e"===N&&(d="right"),e._context.showAxisRangeEntryBoxes&&r.select(Q).call(l.makeEditable,{gd:e,immediate:!0,background:K.paper_bgcolor,text:String(u),fill:o.tickfont?o.tickfont.color:"#444",horizontalAlign:d,verticalAlign:f}).on("edit",function(t){var n=o.d2r(t);void 0!==n&&i.relayout(e,c,n)})}}else xe()}var pe=[0,0,$,W],ve=null,ge=b.REDRAWDELAY,me=t.mainplot?K._plots[t.mainplot]:t;function ye(t){if(e._context.scrollZoom||K._enablescrollzoom){if(e._transitioningWithDuration)return s.pauseEvent(t);var n=e.querySelector(".plotly");if(J(),!(n.scrollHeight-n.clientHeight>10||n.scrollWidth-n.clientWidth>10)){clearTimeout(ve);var r=-t.deltaY;if(isFinite(r)||(r=t.wheelDelta/10),isFinite(r)){var a,i=Math.exp(-Math.min(Math.max(r,-20),20)/100),o=me.draglayer.select(".nsewdrag").node().getBoundingClientRect(),l=(t.clientX-o.left)/o.width,c=(o.bottom-t.clientY)/o.height;if(N||U){for(N||(l=.5),a=0;a4/3-s?o:s}},function(e,t,n){"use strict";e.exports=function(){var e,t=[],n=-1,r=!1;function a(e,t){return e?(r=!0,e[t](),r=!1,this):this}return{add:function(e){return r?this:(t.splice(n+1,t.length-n),t.push(e),n=t.length-1,this)},setCallback:function(t){e=t},undo:function(){var r=t[n];return r?(a(r,"undo"),n-=1,e&&e(r.undo),this):this},redo:function(){var r=t[n+1];return r?(a(r,"redo"),n+=1,e&&e(r.redo),this):this},clear:function(){t=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n*:not(.chart-root)").remove(),t=t?l(t,n):n,a||(a=o.Axis()),i=o.adapter.plotly().convert(t),a.config(i).render(u),e.data=t.data,e.layout=t.layout,c.fillLayout(e),t}return f.isPolar=!0,f.svg=function(){return a.svg()},f.getConfig=function(){return t},f.getLiveConfig=function(){return o.adapter.plotly().convert(a.getLiveConfig(),!0)},f.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},f.setUndoPoint=function(){var e,r,a=this,i=o.util.cloneJson(t);e=i,r=n,d.add({undo:function(){r&&a(r)},redo:function(){a(e)}}),n=o.util.cloneJson(i)},f.undo=function(){d.undo()},f.redo=function(){d.redo()},f},c.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),a=e.framework&&e.framework.svg&&e.framework.svg(),o={width:800,height:600,paper_bgcolor:i.background,_container:t,_paperdiv:n,_paper:a};e._fullLayout=l(o,e.layout)}},function(e,t,n){"use strict";(e.exports=n(144)).manager=n(268)},function(e,t,n){"use strict";var r=n(1),a=n(2),i=n(8),o=n(0),s=n(88),l=n(145),c=n(4),u=n(9),d=n(269),f=n(143),h=n(7),p=n(30),v=n(31),g=n(13),m=n(255),y=n(254),b=n(252),_=n(14),x=n(251),w=x.enforce,k=x.clean,T=n(18);function A(e,t){e._fullLayout._paperdiv.style("background","white"),i.defaultConfig.setBackground(e,t)}function M(e,t){var n,r,a=t+1,i=[];for(n=0;n=e.data.length||a<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(a,r+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+n+" must be unique.")}}function S(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),C(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&C(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function L(e,t,n,r,i,s){!function(e,t,n,r){var a=o.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===n)throw new Error("indices must be an integer or array of integers");for(var i in C(e,n,"indices"),t){if(!Array.isArray(t[i])||t[i].length!==n.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(a&&(!(i in r)||!Array.isArray(r[i])||r[i].length!==t[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,n,r);for(var l,c,u,d=function(e,t,n,r){var i,s,l,c,u,d=o.isPlainObject(r),f=[];for(var h in Array.isArray(n)||(n=[n]),n=M(n,e.data.length-1),t)for(var p=0;p=0&&uW.range[0]?[1,2]:[2,1]);else{var q=W.range[0],U=W.range[1];V?(q<=0&&U<=0&&k(j+".autorange",!0),q<=0?q=U/1e6:U<=0&&(U=q/1e6),k(j+".range[0]",Math.log(q)/Math.LN10),k(j+".range[1]",Math.log(U)/Math.LN10)):(k(j+".range[0]",Math.pow(10,q)),k(j+".range[1]",Math.pow(10,U)))}else k(j+".autorange",!0);c.getComponentMethod("annotations","convertCoords")(e,B,D,k),c.getComponentMethod("images","convertCoords")(e,B,D,k)}else k(j+".autorange",!0);o.nestedProperty(l,j+"._inputRange").set(null)}else if(N.match(_.AX_NAME_PATTERN)){var G=o.nestedProperty(l,L).get(),Y=(D||{}).type;Y&&"-"!==Y||(Y="linear"),c.getComponentMethod("annotations","convertCoords")(e,G,Y,k),c.getComponentMethod("images","convertCoords")(e,G,Y,k)}var K=m.containerArrayMatch(L);if(K){n=K.array,r=K.index;var X=K.property,Z=(o.nestedProperty(s,n)||[])[r]||{};if(""===r)-1===L.indexOf("updatemenus")&&(b.docalc=!0);else if(""===X){var J=D;m.isAddVal(D)?w[L]=null:m.isRemoveVal(D)?(w[L]=Z,J=Z):o.warn("unrecognized full object value",t),(A(J,"x")||A(J,"y")&&-1===L.indexOf("updatemenus"))&&(b.docalc=!0)}else!A(Z,"x")&&!A(Z,"y")||o.containsAny(L,["color","opacity","align","dash","updatemenus"])||(b.docalc=!0);h[n]||(h[n]={});var Q=h[n][r];Q||(Q=h[n][r]={}),Q[X]=D,delete t[L]}else if("reverse"===N)R.range?R.range.reverse():(k(j+".autorange",!0),R.range=[1,0]),B.autorange?b.docalc=!0:b.doplot=!0;else{var ee=String(O.parts[1]||"");0===E.indexOf("scene")?"camera"===O.parts[1]?b.docamera=!0:b.doplot=!0:0===E.indexOf("geo")?b.doplot=!0:0===E.indexOf("ternary")?b.doplot=!0:"paper_bgcolor"===L?b.doplot=!0:"margin"===E||"autorange"===ee||"rangemode"===ee||"type"===ee||"domain"===ee||"fixedrange"===ee||"scaleanchor"===ee||"scaleratio"===ee||-1!==L.indexOf("calendar")||L.match(/^(bar|box|font)/)?b.docalc=!0:!l._has("gl2d")||-1===L.indexOf("axis")&&"plot_bgcolor"!==L?!l._has("gl2d")||"dragmode"!==L||"lasso"!==D&&"select"!==D||"lasso"===F||"select"===F?"hiddenlabels"===L?b.docalc=!0:-1!==E.indexOf("legend")?b.dolegend=!0:-1!==L.indexOf("title")?b.doticks=!0:-1!==E.indexOf("bgcolor")?b.dolayoutstyle=!0:z>1&&o.containsAny(ee,["tick","exponent","grid","zeroline"])?b.doticks=!0:-1!==L.indexOf(".linewidth")&&-1!==L.indexOf("axis")?b.doticks=b.dolayoutstyle=!0:z>1&&-1!==ee.indexOf("line")?b.dolayoutstyle=!0:z>1&&"mirror"===ee?b.doticks=b.dolayoutstyle=!0:"margin.pad"===L?b.doticks=b.dolayoutstyle=!0:-1!==["hovermode","dragmode"].indexOf(L)||-1!==L.indexOf("spike")?b.domodebar=!0:-1===["height","width","autosize"].indexOf(L)&&(b.doplot=!0):b.docalc=!0:b.doplot=!0,O.set(D)}}}for(n in h){m.applyContainerArrayChanges(e,o.nestedProperty(s,n),h[n],b)||(b.doplot=!0)}var te=l._axisConstraintGroups;for(M in C)for(r=0;r=a.length?a[0]:a[e]:a}function l(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function c(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise(function(i,d){function f(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,u.transition(e,t.frame.data,t.frame.layout,y.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then(function(){t.onComplete&&t.onComplete()}),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}function h(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&f()};t()}var p,v,g=0;function m(e){return Array.isArray(a)?g>=a.length?e.transitionOpts=a[g]:e.transitionOpts=a[0]:e.transitionOpts=a,g++,e}var b=[],_=void 0===t||null===t,x=Array.isArray(t);if(!_&&!x&&o.isPlainObject(t))b.push({type:"object",data:m(o.extendFlat({},t))});else if(_||-1!==["string","number"].indexOf(typeof t))for(p=0;p0&&TT)&&A.push(v);b=A}}b.length>0?function(t){if(0!==t.length){for(var a=0;a=0;r--)if(o.isPlainObject(t[r])){var v=(f[t[r].name]||{}).name,g=t[r].name;v&&g&&"number"==typeof g&&f[v]&&(c++,o.warn('addFrames: overwriting frame "'+f[v].name+'" with a frame whose name of type "number" also equates to "'+v+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),c>5&&o.warn("addFrames: This API call has yielded too many warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),p.push({frame:u.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:h+r})}p.sort(function(e,t){return e.index>t.index?-1:e.index=0;r--){if("number"==typeof(a=p[r].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;f[a.name="frame "+e._transitionData._counter++];);if(f[a.name]){for(i=0;i=0;n--)r=t[n],i.push({type:"delete",index:r}),s.unshift({type:"insert",index:r,value:a[r]});var c=u.modifyFrames,d=u.modifyFrames,f=[e,s],h=[e,i];return l&&l.add(e,c,f,d,h),u.modifyFrames(e,i)},i.purge=function(e){var t=(e=y.getGraphDiv(e))._fullLayout||{},n=e._fullData||[];return u.cleanPlot([],{},n,t),u.purge(e),s.purge(e),t._container&&t._container.remove(),delete e._context,delete e._replotPending,delete e._mouseDownTime,delete e._legendMouseDownTime,delete e._hmpixcount,delete e._hmlumcount,e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=document.createElement("a"),r="download"in n,a=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(i,o){"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent)&&o(new Error("IE < 10 unsupported")),a&&(document.location.href="data:application/octet-stream"+e.slice(e.search(/[,;]/)),i(t)),t||(t="download"),r&&(n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),i(t)),"undefined"!=typeof navigator&&navigator.msSaveBlob&&(navigator.msSaveBlob(new Blob([e]),t),i(t)),o(new Error("download error"))})}},function(e,t,n){"use strict";var r=n(8),a=n(9),i=n(6),o=n(0),s=n(94),l=n(95),c=e.exports={};function u(e,t){var n,a,o=t.currentTarget,s=o.getAttribute("data-attr"),l=o.getAttribute("data-val")||!0,c=e._fullLayout,u={},d=i.list(e,null,!0),f="on";if("zoom"===s){var h,p="in"===l?.5:2,v=(1+p)/2,g=(1-p)/2;for(a=0;a1)return g(["resetViews","toggleHover"]),s(v,n);u&&(g(["zoom3d","pan3d","orbitRotation","tableRotation"]),g(["resetCameraDefault3d","resetCameraLastSave3d"]),g(["hoverClosest3d"]));d&&(g(["zoomInGeo","zoomOutGeo","resetGeo"]),g(["hoverClosestGeo"]));var m=function(e){for(var t=r.list({_fullLayout:e},null,!0),n=!0,a=0;a0?".":"")+i;a.isPlainObject(o)?l(o,t,s,r+1):t(s,i,o)}})}t.manageCommandObserver=function(e,n,r,o){var s={},l=!0;n&&n._commandObserver&&(s=n._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=t.hasSimpleAPICommandBindings(e,r,s.lookupTable);if(n&&n._commandObserver){if(c)return s;if(n._commandObserver.remove)return n._commandObserver.remove(),n._commandObserver=null,s}if(c){i(e,c,s.cache),s.check=function(){if(l){var t=i(e,c,s.cache);return t.changed&&o&&void 0!==s.lookupTable[t.value]&&(s.disable(),Promise.resolve(o({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[t.value]})).then(s.enable,s.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d0;e.each(function(e){var t,c=e[0].trace,u=c.error_x||{},d=c.error_y||{};c.ids&&(t=function(e){return e.id});var f=i.hasMarkers(c)&&c.marker.maxdisplayed>0;if(d.visible||u.visible){var h=r.select(this).selectAll("g.errorbar").data(e,t);h.exit().remove(),h.style("opacity",1);var p=h.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(n.duration).style("opacity",1),h.each(function(e){var t=r.select(this),i=function(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),a(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0)));void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),a(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0)));return r}(e,o,s);if(!f||e.vis){var c;if(d.visible&&a(i.x)&&a(i.yh)&&a(i.ys)){var h=d.width;c="M"+(i.x-h)+","+i.yh+"h"+2*h+"m-"+h+",0V"+i.ys,i.noYS||(c+="m-"+h+",0h"+2*h);var p=t.select("path.yerror");!p.size()?p=t.append("path").classed("yerror",!0):l&&(p=p.transition().duration(n.duration).ease(n.easing)),p.attr("d",c)}if(u.visible&&a(i.y)&&a(i.xh)&&a(i.xs)){var v=(u.copy_ystyle?d:u).width;c="M"+i.xh+","+(i.y-v)+"v"+2*v+"m0,-"+v+"H"+i.xs,i.noXS||(c+="m0,-"+v+"v"+2*v);var g=t.select("path.xerror");!g.size()?g=t.append("path").classed("xerror",!0):l&&(g=g.transition().duration(n.duration).ease(n.easing)),g.attr("d",c)}}})}})}},function(e,t,n){"use strict";function r(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var t=e.type,n=e.symmetric;if("data"===t){var a=e.array,i=e.arrayminus;return n||void 0===i?function(e,t){var n=+a[t];return[n,n]}:function(e,t){return[+i[t],+a[t]]}}var o=r(t,e.value),s=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[s(e),o(e)]}}},function(e,t,n){"use strict";var r=n(0),a=n(18).id2name;e.exports=function(e,t,n,i,o){var s=o._axisConstraintGroups,l=t._id,c=l.charAt(0);if(!t.fixedrange&&(n("constrain"),r.coerce(e,t,{constraintoward:{valType:"enumerated",values:"x"===c?["left","center","right"]:["bottom","middle","top"],dflt:"x"===c?"center":"middle"}},"constraintoward"),e.scaleanchor)){var u=function(e,t,n,r){var i,o,s,l,c=r[a(t)].type,u=[];for(o=0;o0;i&&(r="array");var o=n("categoryorder",r);"array"===o&&n("categoryarray"),i||"array"!==o||(t.categoryorder="trace")}}},function(e,t,n){"use strict";var r=n(4),a=n(151),i=n(18).name2id;function o(e){return{v:"x",h:"y"}[e.orientation||"v"]}function s(e,t){var n=o(e),a=r.traceIs(e,"box"),i=r.traceIs(e._fullInput||{},"candlestick");return a&&!i&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}e.exports=function(e,t,n,l,c){c&&(t._name=c,t._id=i(c)),"-"===n("type")&&(!function(e,t){if("-"!==e.type)return;var n=e._id,i=n.charAt(0);-1!==n.indexOf("scene")&&(n=i);var l=function(e,t,n){for(var r=0;r0?Math.max(t,a):0}}},function(e,t,n){"use strict";e.exports={entityToUnicode:{mu:"ฮผ","#956":"ฮผ",amp:"&","#28":"&",lt:"<","#60":"<",gt:">","#62":">",nbsp:"ย ","#160":"ย ",times:"ร—","#215":"ร—",plusmn:"ยฑ","#177":"ยฑ",deg:"ยฐ","#176":"ยฐ"}}},function(e,t,n){"use strict";var r=n(1),a=n(21),i=n(2),o=n(3);function s(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}e.exports=function(e,t){t=t||{};for(var n=e.domain,l=e.range,c=l.length,u=new Array(c),d=0;d/g),o=0;oe.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},function(e,t,n){"use strict";var r,a,i=n(1),o=n(2),s=n(33).error,l=n(166),c=n(15),u=c.BADNUM,d=c.ONEDAY,f=c.ONEHOUR,h=c.ONEMIN,p=c.ONESEC,v=c.EPOCHJD,g=n(4),m=i.time.format.utc,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,b=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,_=(new Date).getFullYear()-70;function x(e){return e&&g.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function w(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,t){return x(e)?t?g.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:g.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"},t.dfltRange=function(e){return x(e)?g.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},t.dateTime2ms=function(e,n){if(t.isJSDate(e))return(e=Number(e)-e.getTimezoneOffset()*h)>=r&&e<=a?e:u;if("string"!=typeof e&&"number"!=typeof e)return u;e=String(e);var i=x(n),o=e.charAt(0);!i||"G"!==o&&"g"!==o||(e=e.substr(1),n="");var s=i&&"chinese"===n.substr(0,7),l=e.match(s?b:y);if(!l)return u;var c=l[1],m=l[3]||"1",w=Number(l[5]||1),k=Number(l[7]||0),T=Number(l[9]||0),A=Number(l[11]||0);if(i){if(2===c.length)return u;var M;c=Number(c);try{var C=g.getComponentMethod("calendars","getCal")(n);if(s){var S="i"===m.charAt(m.length-1);m=parseInt(m,10),M=C.newDate(c,C.toMonthIndex(c,m,S),w)}else M=C.newDate(c,Number(m),w)}catch(e){return u}return M?(M.toJD()-v)*d+k*f+T*h+A*p:u}c=2===c.length?(Number(c)+2e3-_)%100+_:Number(c),m-=1;var L=new Date(Date.UTC(2e3,m,w,k,T));return L.setUTCFullYear(c),L.getUTCMonth()!==m?u:L.getUTCDate()!==w?u:L.getTime()+A*p},r=t.MIN_MS=t.dateTime2ms("-9999"),a=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,n){return t.dateTime2ms(e,n)!==u};var k=90*d,T=3*f,A=5*h;function M(e,t,n,r,a){if((t||n||r||a)&&(e+=" "+w(t,2)+":"+w(n,2),(r||a)&&(e+=":"+w(r,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;e+="."+w(a,i)}return e}t.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=r&&e<=a))return u;t||(t=0);var i,o,s,c,y,b,_=Math.floor(10*l(e+.05,1)),w=Math.round(e-_/10);if(x(n)){var C=Math.floor(w/d)+v,S=Math.floor(l(e,d));try{i=g.getComponentMethod("calendars","getCal")(n).fromJD(C).formatDate("yyyy-mm-dd")}catch(e){i=m("G%Y-%m-%d")(new Date(w))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t=r+d&&e<=a-d))return u;var t=Math.floor(10*l(e+.05,1)),n=new Date(Math.round(e-t/10));return M(i.time.format("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},t.cleanDate=function(e,n,r){if(t.isJSDate(e)||"number"==typeof e){if(x(r))return s("JS Dates and milliseconds are incompatible with world calendars",e),n;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==n)return n}else if(!t.isDateTime(e,r))return s("unrecognized date",e),n;return e};var C=/%\d?f/g;var S=[59,59.9,59.99,59.999,59.9999];function L(e,t){var n=l(e+.05,d),r=w(Math.floor(n/f),2)+":"+w(l(Math.floor(n/h),60),2);if("M"!==t){o(t)||(t=0);var a=(100+Math.min(l(e/p,60),S[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+a}return r}var O=m("%Y"),D=m("%b %Y"),z=m("%b %-d"),P=m("%b %-d, %Y");function E(e){return e.formatDate("yyyy")}t.formatDate=function(e,t,n,r){var a,i;if(r=x(r)&&r,t)return function(e,t,n){e=e.replace(C,function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"});var r=new Date(Math.floor(t+.05));if(x(n))try{e=g.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return m(e)(r)}(t,e,r);if(r)try{var o=Math.floor((e+.05)/d)+v,s=g.getComponentMethod("calendars","getCal")(r).fromJD(o);"y"===n?i=E(s):"m"===n?i=function(e){return e.formatDate("M yyyy")}(s):"d"===n?(a=E(s),i=function(e){return e.formatDate("M d")}(s)):(a=function(e){return e.formatDate("M d, yyyy")}(s),i=L(e,n))}catch(e){return"Invalid"}else{var l=new Date(Math.floor(e+.05));"y"===n?i=O(l):"m"===n?i=D(l):"d"===n?(a=O(l),i=z(l)):(a=P(l),i=L(e,n))}return i+(a?"\n"+a:"")};var N=3*d;t.incrementMonth=function(e,t,n){n=x(n)&&n;var r=l(e,d);if(e=Math.round(e-r),n)try{var a=Math.round(e/d)+v,i=g.getComponentMethod("calendars","getCal")(n),o=i.fromJD(a);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-v)*d+r}catch(t){s("invalid ms "+e+" in calendar "+n)}var c=new Date(e+N);return c.setUTCMonth(c.getUTCMonth()+t)+r-N},t.findExactDates=function(e,t){for(var n,r,a=0,i=0,s=0,l=0,c=x(t)&&g.getComponentMethod("calendars","getCal")(t),u=0;ua.max?t.set(n):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max"],coerceFunction:function(e,t,n,a){e%1||!r(e)||void 0!==a.min&&ea.max?t.set(n):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,n,r){if("string"!=typeof e){var a="number"==typeof e;!0!==r.strict&&a?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n){a(e).isValid()?t.set(e):t.set(n)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",s.join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(o(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?(Math.abs(e)>180&&(e-=360*Math.round(e/360)),t.set(+e)):t.set(n)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:[],coerceFunction:function(e,t,n){var r=n.length;"string"==typeof e&&e.substr(0,r)===n&&c.test(e.substr(r))?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt,r=n.length;return e===n||"string"==typeof e&&!(e.substr(0,r)!==n||!c.test(e.substr(r)))}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,n,r){if("string"==typeof e)if(-1===(r.extras||[]).indexOf(e)){for(var a=e.split("+"),i=0;i0)}function s(e){return e.name||e.replace(/-/gi,"")}function l(){return new Promise(function(e,t){var n=setInterval(function(){"undefined"!=typeof window&&window.ga&&(e(),clearInterval(n))},10)})}function c(e,t){return a().length>1?s(t)+"."+e:e}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?k({},_.fields,{name:n}):_.fields;window.ga("create",t.id||t,"auto",r)}),_.beforeFirstHit();var t=_.ecommerce;if(t.enabled){var n=t.enhanced?"ec":"ecommerce";t.options?u("require",n,t.options):u("require",n)}_.linkers.length>0&&(u("require","linker"),u("linker:autoLink",_.linkers)),_.debug.sendHitTask||d("sendHitTask",null)}function h(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&a().forEach(function(t){window["ga-disable-"+t]=e})},C=function(){if("undefined"!=typeof document&&"undefined"!=typeof window){var e=(_.wait,_.id),t=_.disabled,n=_.debug,a=_.disableScriptLoader,i=n.enabled?"analytics_debug":"analytics",s="https://www.google-analytics.com/"+i+".js";if(!e)throw new Error('[vue-analytics] Missing the "id" parameter. Add at least one tracking domain ID');!o()||window.ga&&a||function(e){return new Promise(function(t,n){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");a.async=!0,a.src=e,a.charset="utf8",r.appendChild(a),a.onload=t,a.onerror=n})}(s).catch(function(){console.error("[vue-analytics] An error occured trying to load "+s+". Please check your connection or if you have any Google Analytics blocker installed in your browser.")}),Promise.resolve("function"==typeof e?e():e).then(function(e){r({id:e})}).then(function(){return"function"==typeof t?t():t}).then(function(e){r({disabled:e}),e&&M(),f(),A(),function(){var e=_.router,t=_.autoTracking;t.page&&e&&(t.pageviewOnLoad&&v(e.currentRoute),_.router.afterEach(function(n,r){var a=t.skipSamePath,i=t.shouldRouterUpdate;a&&n.path===r.path||("function"!=typeof i||i(n,r))&&_.$vue.nextTick().then(function(){v(e.currentRoute)})}))}()})}},S=this,L=function(e){u("send","exception",{exDescription:e,exFatal:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},O=function(e){if(_.autoTracking.exception){window.addEventListener("error",function(e){L(e.message)});var t=e.config.errorHandler;e.config.errorHandler=function(e,n,r){L(e.message),_.autoTracking.exceptionLogs&&(console.error("[vue-analytics] Error in "+r+": "+e.message),console.error(e)),"function"==typeof t&&t.call(S,e,n,r)}}},D=L,z=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};r(R({},t,{$vue:e})),"undefined"==typeof window||window.ga||(window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=Number(new Date)),e.directive("ga",N),e.prototype.$ga=e.$ga=E,O(e),C()},n.d(t,"onAnalyticsReady",function(){return l}),n.d(t,"analyticsMiddleware",function(){return j});var R=Object.assign||function(e){for(var t=1;to*m)||k)for(n=0;nW&&OB&&(B=O);d/=(B-L)/(2*S),L=s.l2r(L),B=s.l2r(B),s.range=s._input.range=w=e[1]||a[1]<=e[0])&&o[0]t[0])return!0}return!1}(l,s,p)?(f.push(t),p.push([l,s])):c=[0];var u=n.plotgroup.selectAll(".bg").data(c);u.enter().append("rect").classed("bg",!0),u.exit().remove(),u.each(function(){n.bg=u;var e=n.plotgroup.node();e.insertBefore(this,e.childNodes[0])})});var h=o._bgLayer.selectAll(".bg").data(f);h.enter().append("rect").classed("bg",!0),h.exit().remove(),h.each(function(e){o._plots[e].bg=r.select(this)});var v=[];return u.each(function(t){var n=o._plots[t],r=a.Axes.getFromId(e,t,"x"),l=a.Axes.getFromId(e,t,"y");r.setScale(),l.setScale(),n.bg&&o._has("cartesian")&&n.bg.call(c.setRect,r._offset-i.p,l._offset-i.p,r._length+2*i.p,l._length+2*i.p).call(s.fill,o.plot_bgcolor).style("stroke-width",0),n.clipId="clip"+o._uid+t+"plot";var u=o._defs.selectAll("g.clips").selectAll("#"+n.clipId).data([0]);u.enter().append("clipPath").attr({class:"plotclip",id:n.clipId}).append("rect"),u.selectAll("rect").attr({width:r._length,height:l._length}),n.plot.call(c.setTranslate,r._offset,l._offset),n.plot.call(c.setClipUrl,n.clipId);var d=c.crispRound(e,r.linewidth,1),f=c.crispRound(e,l.linewidth,1),p=i.p+f,h="M"+-p+",",g="h"+(r._length+2*p),m="free"===r.anchor&&-1===v.indexOf(r._id),y=i.h*(1-(r.position||0))+d/2%1,_=r.anchor===l._id&&(r.mirror||"top"!==r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[l._id+"bottom"],b=l._length+i.p+d/2,k=r.anchor===l._id&&(r.mirror||"top"===r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[l._id+"top"],x=-i.p-d/2,T=i.p,A=_?0:d,w=k?0:d,M=","+(-T-w)+"v"+(l._length+2*T+w+A),C="free"===l.anchor&&-1===v.indexOf(l._id),L=i.w*(l.position||0)+f/2%1,B=l.anchor===r._id&&(l.mirror||"right"!==l.side)||"all"===l.mirror||"allticks"===l.mirror||l.mirrors&&l.mirrors[r._id+"left"],S=-i.p-f/2,W=l.anchor===r._id&&(l.mirror||"right"===l.side)||"all"===l.mirror||"allticks"===l.mirror||l.mirrors&&l.mirrors[r._id+"right"],z=r._length+i.p+f/2;r._linepositions[t]=[_?b:void 0,k?x:void 0,m?y:void 0],r.anchor===l._id?r._linepositions[t][3]="top"===r.side?x:b:m&&(r._linepositions[t][3]=y),l._linepositions[t]=[B?S:void 0,W?z:void 0,C?L:void 0],l.anchor===r._id?l._linepositions[t][3]="right"===l.side?z:S:C&&(l._linepositions[t][3]=L);var O="translate("+r._offset+","+l._offset+")",P=O,D=O;m&&(P="translate("+r._offset+","+i.t+")",x+=l._offset-i.t,b+=l._offset-i.t),C&&(D="translate("+i.l+","+l._offset+")",S+=r._offset-i.l,z+=r._offset-i.l),o._has("cartesian")&&(n.xlines.attr("transform",P).attr("d",(_?h+b+g:"")+(k?h+x+g:"")+(m?h+y+g:"")||"M0,0").style("stroke-width",d+"px").call(s.stroke,r.showline?r.linecolor:"rgba(0,0,0,0)"),n.ylines.attr("transform",D).attr("d",(B?"M"+S+M:"")+(W?"M"+z+M:"")+(C?"M"+L+M:"")||"M0,0").attr("stroke-width",f+"px").call(s.stroke,l.showline?l.linecolor:"rgba(0,0,0,0)")),n.xaxislayer.attr("transform",P),n.yaxislayer.attr("transform",D),n.gridlayer.attr("transform",O),n.zerolinelayer.attr("transform",O),n.draglayer.attr("transform",O),m&&v.push(r._id),C&&v.push(l._id)}),a.Axes.makeClipPaths(e),t.drawMainTitle(e),d.manage(e),e._promises.length&&Promise.all(e._promises)},t.drawMainTitle=function(e){var t=e._fullLayout;u.draw(e,"gtitle",{propContainer:t,propName:"title",dfltName:"Plot",attributes:{x:t.width/2,y:t._size.t/2,"text-anchor":"middle"}})},t.doTraceStyle=function(e){for(var t=0;t0&&i.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var t,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1);var r=s.list({_fullLayout:e});for(t=0;t3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),"rotate"===e.dragmode&&(e.dragmode="orbit"),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var m=l.getSubplotIds(e,"gl3d");for(t=0;t0)return e.substr(0,t)}t.hasParent=function(e,t){for(var n=h(t);n;){if(n in e)return!0;n=h(n)}return!1}},function(e,t,n){"use strict";var r=n(107),a=n(32),o=n(109),i=n(33),l=n(162).sorterAsc,s=n(4);t.containerArrayMatch=n(167);var c=t.isAddVal=function(e){return"add"===e||a(e)},u=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,n,a){var d=t.astr,f=s.getComponentMethod(d,"supplyLayoutDefaults"),p=s.getComponentMethod(d,"draw"),h=s.getComponentMethod(d,"drawOne"),v=a.replot||a.recalc||f===o||p===o,g=e.layout,m=e._fullLayout;if(n[""]){Object.keys(n).length>1&&i.warn("Full array edits are incompatible with other edits",d);var y=n[""][""];if(u(y))t.set(null);else{if(!Array.isArray(y))return i.warn("Unrecognized full array edit value",d,y),!0;t.set(y)}return!v&&(f(g,m),p(e),!0)}var _,b,k,x,T,A,w,M=Object.keys(n).map(Number).sort(l),C=t.get(),L=C||[],B=r(m,d).get(),S=[],W=-1,z=L.length;for(_=0;_L.length-(w?0:1))i.warn("index out of range",d,k);else if(void 0!==A)T.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",d,k),u(A)?S.push(k):w?("add"===A&&(A={}),L.splice(k,0,A),B&&B.splice(k,0,{})):i.warn("Unrecognized full object edit value",d,k,A),-1===W&&(W=k);else for(b=0;b=0;_--)L.splice(S[_],1),B&&B.splice(S[_],1);if(L.length?C||t.set(L):t.set(null),v)return!1;if(f(g,m),h!==o){var O;if(-1===W)O=M;else{for(z=Math.max(L.length,z),O=[],_=0;_=W);_++)O.push(k);for(_=W;_=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function C(e){e.selectAll(".select-outline").remove()}function L(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function B(e){return-1!==["lasso","select"].indexOf(e)}function S(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,k)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}e.exports=function(e,t,n,W,z,O,P,D){var R,N,E,I,j,F,$,V,H,G,K,q,U,Y=e._fullLayout,X=e._fullLayout._zoomlayer,J=P+D==="nsew";function Z(){N=[t.xaxis],E=[t.yaxis];var n=N[0],r=E[0];F=n._length,$=r._length;var a=Y._axisConstraintGroups,o=[n._id],i=[r._id];R=[t].concat(P&&D?t.overlays:[]);for(var s=1;s.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+n+", "+r+")").attr("d",a+"Z")}(X,re,I,j,ae="M0,0H"+F+"V"+$+"H0V0"),se=function(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}(X,I,j),C(X)}(0,n,r)):"pan"===o?(ce.moveFn=_e,ce.doneFn=pe,C(X)):B(o)&&(ce.xaxes=N,ce.yaxes=E,m(t,n,r,ce,o))}};f.init(ce);var ue={};function de(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min(F,t+ee)),a=Math.max(0,Math.min($,n+te)),o=Math.abs(r-ee),i=Math.abs(a-te);function l(){ie="",ne.r=ne.l,ne.t=ne.b,se.attr("d","M0,0Z")}ne.l=Math.min(ee,r),ne.r=Math.max(ee,r),ne.t=Math.min(te,a),ne.b=Math.max(te,a),K?o>k||i>k?(ie="xy",o/F>i/$?(i=o*$/F,te>a?ne.t=te-i:ne.b=te+i):(o=i*F/$,ee>r?ne.l=ee-o:ne.r=ee+o),se.attr("d",S(ne))):l():!H||i.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}(le,se,ne,ae,oe,re),oe=!0}function fe(t,n){if(Math.min(ne.h,ne.w)<2*b)return 2===n&&ke(),L(e);"xy"!==ie&&"x"!==ie||A(N,ne.l/F,ne.r/F,ue,q),"xy"!==ie&&"y"!==ie||A(E,($-ne.b)/$,($-ne.t)/$,ue,U),L(e),xe(ie),x&&e.data&&e._context.showTips&&(l.notifier("Double-click to
zoom back out","long"),x=!1)}function pe(t,n){var a=1===(P+D).length;if(t)xe();else if(2!==n||a){if(1===n&&a){var i=P?E[0]:N[0],l="s"===P||"w"===D?0:1,c=i._name+".range["+l+"]",u=function(e,t){var n,a=e.range[t],o=Math.abs(a-e.range[1-t]);return"date"===e.type?a:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(o)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,a))):(n=Math.floor(Math.log(Math.abs(a))/Math.LN10)-Math.floor(Math.log(o)/Math.LN10)+4,r.format("."+String(n)+"g")(a))}(i,l),d="left",f="middle";if(i.fixedrange)return;P?(f="n"===P?"top":"bottom","right"===i.side&&(d="right")):"e"===D&&(d="right"),e._context.showAxisRangeEntryBoxes&&r.select(Q).call(s.makeEditable,{gd:e,immediate:!0,background:Y.paper_bgcolor,text:String(u),fill:i.tickfont?i.tickfont.color:"#444",horizontalAlign:d,verticalAlign:f}).on("edit",function(t){var n=i.d2r(t);void 0!==n&&o.relayout(e,c,n)})}}else ke()}var he=[0,0,F,$],ve=null,ge=_.REDRAWDELAY,me=t.mainplot?Y._plots[t.mainplot]:t;function ye(t){if(e._context.scrollZoom||Y._enablescrollzoom){if(e._transitioningWithDuration)return l.pauseEvent(t);var n=e.querySelector(".plotly");if(Z(),!(n.scrollHeight-n.clientHeight>10||n.scrollWidth-n.clientWidth>10)){clearTimeout(ve);var r=-t.deltaY;if(isFinite(r)||(r=t.wheelDelta/10),isFinite(r)){var a,o=Math.exp(-Math.min(Math.max(r,-20),20)/100),i=me.draglayer.select(".nsewdrag").node().getBoundingClientRect(),s=(t.clientX-i.left)/i.width,c=(i.bottom-t.clientY)/i.height;if(D||K){for(D||(s=.5),a=0;a4/3-l?i:l}},function(e,t,n){"use strict";e.exports=function(){var e,t=[],n=-1,r=!1;function a(e,t){return e?(r=!0,e[t](),r=!1,this):this}return{add:function(e){return r?this:(t.splice(n+1,t.length-n),t.push(e),n=t.length-1,this)},setCallback:function(t){e=t},undo:function(){var r=t[n];return r?(a(r,"undo"),n-=1,e&&e(r.undo),this):this},redo:function(){var r=t[n+1];return r?(a(r,"redo"),n+=1,e&&e(r.redo),this):this},clear:function(){t=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n*:not(.chart-root)").remove(),t=t?s(t,n):n,a||(a=i.Axis()),o=i.adapter.plotly().convert(t),a.config(o).render(u),e.data=t.data,e.layout=t.layout,c.fillLayout(e),t}return f.isPolar=!0,f.svg=function(){return a.svg()},f.getConfig=function(){return t},f.getLiveConfig=function(){return i.adapter.plotly().convert(a.getLiveConfig(),!0)},f.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},f.setUndoPoint=function(){var e,r,a=this,o=i.util.cloneJson(t);e=o,r=n,d.add({undo:function(){r&&a(r)},redo:function(){a(e)}}),n=i.util.cloneJson(o)},f.undo=function(){d.undo()},f.redo=function(){d.redo()},f},c.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),a=e.framework&&e.framework.svg&&e.framework.svg(),i={width:800,height:600,paper_bgcolor:o.background,_container:t,_paperdiv:n,_paper:a};e._fullLayout=s(i,e.layout)}},function(e,t,n){"use strict";(e.exports=n(144)).manager=n(268)},function(e,t,n){"use strict";var r=n(1),a=n(2),o=n(8),i=n(0),l=n(88),s=n(145),c=n(4),u=n(9),d=n(269),f=n(143),p=n(7),h=n(30),v=n(31),g=n(13),m=n(255),y=n(254),_=n(252),b=n(14),k=n(251),x=k.enforce,T=k.clean,A=n(18);function w(e,t){e._fullLayout._paperdiv.style("background","white"),o.defaultConfig.setBackground(e,t)}function M(e,t){var n,r,a=t+1,o=[];for(n=0;n=e.data.length||a<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(a,r+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+n+" must be unique.")}}function L(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),C(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&C(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function B(e,t,n,r,o,l){!function(e,t,n,r){var a=i.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!i.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===n)throw new Error("indices must be an integer or array of integers");for(var o in C(e,n,"indices"),t){if(!Array.isArray(t[o])||t[o].length!==n.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(a&&(!(o in r)||!Array.isArray(r[o])||r[o].length!==t[o].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,n,r);for(var s,c,u,d=function(e,t,n,r){var o,l,s,c,u,d=i.isPlainObject(r),f=[];for(var p in Array.isArray(n)||(n=[n]),n=M(n,e.data.length-1),t)for(var h=0;h=0&&u$.range[0]?[1,2]:[2,1]);else{var G=$.range[0],K=$.range[1];V?(G<=0&&K<=0&&T(N+".autorange",!0),G<=0?G=K/1e6:K<=0&&(K=G/1e6),T(N+".range[0]",Math.log(G)/Math.LN10),T(N+".range[1]",Math.log(K)/Math.LN10)):(T(N+".range[0]",Math.pow(10,G)),T(N+".range[1]",Math.pow(10,K)))}else T(N+".autorange",!0);c.getComponentMethod("annotations","convertCoords")(e,I,W,T),c.getComponentMethod("images","convertCoords")(e,I,W,T)}else T(N+".autorange",!0);i.nestedProperty(s,N+"._inputRange").set(null)}else if(D.match(b.AX_NAME_PATTERN)){var q=i.nestedProperty(s,B).get(),U=(W||{}).type;U&&"-"!==U||(U="linear"),c.getComponentMethod("annotations","convertCoords")(e,q,U,T),c.getComponentMethod("images","convertCoords")(e,q,U,T)}var Y=m.containerArrayMatch(B);if(Y){n=Y.array,r=Y.index;var X=Y.property,J=(i.nestedProperty(l,n)||[])[r]||{};if(""===r)-1===B.indexOf("updatemenus")&&(_.docalc=!0);else if(""===X){var Z=W;m.isAddVal(W)?x[B]=null:m.isRemoveVal(W)?(x[B]=J,Z=J):i.warn("unrecognized full object value",t),(w(Z,"x")||w(Z,"y")&&-1===B.indexOf("updatemenus"))&&(_.docalc=!0)}else!w(J,"x")&&!w(J,"y")||i.containsAny(B,["color","opacity","align","dash","updatemenus"])||(_.docalc=!0);p[n]||(p[n]={});var Q=p[n][r];Q||(Q=p[n][r]={}),Q[X]=W,delete t[B]}else if("reverse"===D)E.range?E.range.reverse():(T(N+".autorange",!0),E.range=[1,0]),I.autorange?_.docalc=!0:_.doplot=!0;else{var ee=String(S.parts[1]||"");0===P.indexOf("scene")?"camera"===S.parts[1]?_.docamera=!0:_.doplot=!0:0===P.indexOf("geo")?_.doplot=!0:0===P.indexOf("ternary")?_.doplot=!0:"paper_bgcolor"===B?_.doplot=!0:"margin"===P||"autorange"===ee||"rangemode"===ee||"type"===ee||"domain"===ee||"fixedrange"===ee||"scaleanchor"===ee||"scaleratio"===ee||-1!==B.indexOf("calendar")||B.match(/^(bar|box|font)/)?_.docalc=!0:!s._has("gl2d")||-1===B.indexOf("axis")&&"plot_bgcolor"!==B?!s._has("gl2d")||"dragmode"!==B||"lasso"!==W&&"select"!==W||"lasso"===j||"select"===j?"hiddenlabels"===B?_.docalc=!0:-1!==P.indexOf("legend")?_.dolegend=!0:-1!==B.indexOf("title")?_.doticks=!0:-1!==P.indexOf("bgcolor")?_.dolayoutstyle=!0:z>1&&i.containsAny(ee,["tick","exponent","grid","zeroline"])?_.doticks=!0:-1!==B.indexOf(".linewidth")&&-1!==B.indexOf("axis")?_.doticks=_.dolayoutstyle=!0:z>1&&-1!==ee.indexOf("line")?_.dolayoutstyle=!0:z>1&&"mirror"===ee?_.doticks=_.dolayoutstyle=!0:"margin.pad"===B?_.doticks=_.dolayoutstyle=!0:-1!==["hovermode","dragmode"].indexOf(B)||-1!==B.indexOf("spike")?_.domodebar=!0:-1===["height","width","autosize"].indexOf(B)&&(_.doplot=!0):_.docalc=!0:_.doplot=!0,S.set(W)}}}for(n in p){m.applyContainerArrayChanges(e,i.nestedProperty(l,n),p[n],_)||(_.doplot=!0)}var te=s._axisConstraintGroups;for(M in C)for(r=0;r=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(o)?e>=o.length?o[0]:o[e]:o}function c(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise(function(o,d){function f(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,u.transition(e,t.frame.data,t.frame.layout,y.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then(function(){t.onComplete&&t.onComplete()}),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}function p(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&f()};t()}var h,v,g=0;function m(e){return Array.isArray(a)?g>=a.length?e.transitionOpts=a[g]:e.transitionOpts=a[0]:e.transitionOpts=a,g++,e}var _=[],b=void 0===t||null===t,k=Array.isArray(t);if(!b&&!k&&i.isPlainObject(t))_.push({type:"object",data:m(i.extendFlat({},t))});else if(b||-1!==["string","number"].indexOf(typeof t))for(h=0;h0&&A<_.length-1){var w=[];for(h=0;h<_.length;h++)v=_[h],("byname"!==_[h].type||h>A)&&w.push(v);_=w}}_.length>0?function(t){if(0!==t.length){for(var a=0;a=0;r--)if(i.isPlainObject(t[r])){var v=(f[t[r].name]||{}).name,g=t[r].name;v&&g&&"number"==typeof g&&f[v]&&(c++,i.warn('addFrames: overwriting frame "'+f[v].name+'" with a frame whose name of type "number" also equates to "'+v+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),c>5&&i.warn("addFrames: This API call has yielded too many warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),h.push({frame:u.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:p+r})}h.sort(function(e,t){return e.index>t.index?-1:e.index=0;r--){if("number"==typeof(a=h[r].frame).name&&i.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;f[a.name="frame "+e._transitionData._counter++];);if(f[a.name]){for(o=0;o=0;n--)r=t[n],o.push({type:"delete",index:r}),l.unshift({type:"insert",index:r,value:a[r]});var c=u.modifyFrames,d=u.modifyFrames,f=[e,l],p=[e,o];return s&&s.add(e,c,f,d,p),u.modifyFrames(e,o)},o.purge=function(e){var t=(e=y.getGraphDiv(e))._fullLayout||{},n=e._fullData||[];return u.cleanPlot([],{},n,t),u.purge(e),l.purge(e),t._container&&t._container.remove(),delete e._context,delete e._replotPending,delete e._mouseDownTime,delete e._legendMouseDownTime,delete e._hmpixcount,delete e._hmlumcount,e}},function(e,t,n){"use strict";e.exports=function(e,t){var n=document.createElement("a"),r="download"in n,a=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(o,i){"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent)&&i(new Error("IE < 10 unsupported")),a&&(document.location.href="data:application/octet-stream"+e.slice(e.search(/[,;]/)),o(t)),t||(t="download"),r&&(n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),o(t)),"undefined"!=typeof navigator&&navigator.msSaveBlob&&(navigator.msSaveBlob(new Blob([e]),t),o(t)),i(new Error("download error"))})}},function(e,t,n){"use strict";var r=n(8),a=n(9),o=n(6),i=n(0),l=n(94),s=n(95),c=e.exports={};function u(e,t){var n,a,i=t.currentTarget,l=i.getAttribute("data-attr"),s=i.getAttribute("data-val")||!0,c=e._fullLayout,u={},d=o.list(e,null,!0),f="on";if("zoom"===l){var p,h="in"===s?.5:2,v=(1+h)/2,g=(1-h)/2;for(a=0;a1)return g(["resetViews","toggleHover"]),l(v,n);u&&(g(["zoom3d","pan3d","orbitRotation","tableRotation"]),g(["resetCameraDefault3d","resetCameraLastSave3d"]),g(["hoverClosest3d"]));d&&(g(["zoomInGeo","zoomOutGeo","resetGeo"]),g(["hoverClosestGeo"]));var m=function(e){for(var t=r.list({_fullLayout:e},null,!0),n=!0,a=0;a0?".":"")+o;a.isPlainObject(i)?s(i,t,l,r+1):t(l,o,i)}})}t.manageCommandObserver=function(e,n,r,i){var l={},s=!0;n&&n._commandObserver&&(l=n._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var c=t.hasSimpleAPICommandBindings(e,r,l.lookupTable);if(n&&n._commandObserver){if(c)return l;if(n._commandObserver.remove)return n._commandObserver.remove(),n._commandObserver=null,l}if(c){o(e,c,l.cache),l.check=function(){if(s){var t=o(e,c,l.cache);return t.changed&&i&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(i({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d0;e.each(function(e){var t,c=e[0].trace,u=c.error_x||{},d=c.error_y||{};c.ids&&(t=function(e){return e.id});var f=o.hasMarkers(c)&&c.marker.maxdisplayed>0;if(d.visible||u.visible){var p=r.select(this).selectAll("g.errorbar").data(e,t);p.exit().remove(),p.style("opacity",1);var h=p.enter().append("g").classed("errorbar",!0);s&&h.style("opacity",0).transition().duration(n.duration).style("opacity",1),p.each(function(e){var t=r.select(this),o=function(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),a(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0)));void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),a(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0)));return r}(e,i,l);if(!f||e.vis){var c;if(d.visible&&a(o.x)&&a(o.yh)&&a(o.ys)){var p=d.width;c="M"+(o.x-p)+","+o.yh+"h"+2*p+"m-"+p+",0V"+o.ys,o.noYS||(c+="m-"+p+",0h"+2*p);var h=t.select("path.yerror");!h.size()?h=t.append("path").classed("yerror",!0):s&&(h=h.transition().duration(n.duration).ease(n.easing)),h.attr("d",c)}if(u.visible&&a(o.y)&&a(o.xh)&&a(o.xs)){var v=(u.copy_ystyle?d:u).width;c="M"+o.xh+","+(o.y-v)+"v"+2*v+"m0,-"+v+"H"+o.xs,o.noXS||(c+="m0,-"+v+"v"+2*v);var g=t.select("path.xerror");!g.size()?g=t.append("path").classed("xerror",!0):s&&(g=g.transition().duration(n.duration).ease(n.easing)),g.attr("d",c)}}})}})}},function(e,t,n){"use strict";function r(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}e.exports=function(e){var t=e.type,n=e.symmetric;if("data"===t){var a=e.array,o=e.arrayminus;return n||void 0===o?function(e,t){var n=+a[t];return[n,n]}:function(e,t){return[+o[t],+a[t]]}}var i=r(t,e.value),l=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=i(e);return[t,t]}:function(e){return[l(e),i(e)]}}},function(e,t,n){"use strict";var r=n(0),a=n(18).id2name;e.exports=function(e,t,n,o,i){var l=i._axisConstraintGroups,s=t._id,c=s.charAt(0);if(!t.fixedrange&&(n("constrain"),r.coerce(e,t,{constraintoward:{valType:"enumerated",values:"x"===c?["left","center","right"]:["bottom","middle","top"],dflt:"x"===c?"center":"middle"}},"constraintoward"),e.scaleanchor)){var u=function(e,t,n,r){var o,i,l,s,c=r[a(t)].type,u=[];for(i=0;i0;o&&(r="array");var i=n("categoryorder",r);"array"===i&&n("categoryarray"),o||"array"!==i||(t.categoryorder="trace")}}},function(e,t,n){"use strict";var r=n(4),a=n(151),o=n(18).name2id;function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function l(e,t){var n=i(e),a=r.traceIs(e,"box"),o=r.traceIs(e._fullInput||{},"candlestick");return a&&!o&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}e.exports=function(e,t,n,s,c){c&&(t._name=c,t._id=o(c)),"-"===n("type")&&(!function(e,t){if("-"!==e.type)return;var n=e._id,o=n.charAt(0);-1!==n.indexOf("scene")&&(n=o);var s=function(e,t,n){for(var r=0;r0?Math.max(t,a):0}}},function(e,t,n){"use strict";e.exports={entityToUnicode:{mu:"ฮผ","#956":"ฮผ",amp:"&","#28":"&",lt:"<","#60":"<",gt:">","#62":">",nbsp:"ย ","#160":"ย ",times:"ร—","#215":"ร—",plusmn:"ยฑ","#177":"ยฑ",deg:"ยฐ","#176":"ยฐ"}}},function(e,t,n){"use strict";var r=n(1),a=n(21),o=n(2),i=n(3);function l(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}e.exports=function(e,t){t=t||{};for(var n=e.domain,s=e.range,c=s.length,u=new Array(c),d=0;d/g),i=0;ie.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},function(e,t,n){"use strict";var r,a,o=n(1),i=n(2),l=n(33).error,s=n(166),c=n(15),u=c.BADNUM,d=c.ONEDAY,f=c.ONEHOUR,p=c.ONEMIN,h=c.ONESEC,v=c.EPOCHJD,g=n(4),m=o.time.format.utc,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,_=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function k(e){return e&&g.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function x(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,t){return k(e)?t?g.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:g.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"},t.dfltRange=function(e){return k(e)?g.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},t.dateTime2ms=function(e,n){if(t.isJSDate(e))return(e=Number(e)-e.getTimezoneOffset()*p)>=r&&e<=a?e:u;if("string"!=typeof e&&"number"!=typeof e)return u;e=String(e);var o=k(n),i=e.charAt(0);!o||"G"!==i&&"g"!==i||(e=e.substr(1),n="");var l=o&&"chinese"===n.substr(0,7),s=e.match(l?_:y);if(!s)return u;var c=s[1],m=s[3]||"1",x=Number(s[5]||1),T=Number(s[7]||0),A=Number(s[9]||0),w=Number(s[11]||0);if(o){if(2===c.length)return u;var M;c=Number(c);try{var C=g.getComponentMethod("calendars","getCal")(n);if(l){var L="i"===m.charAt(m.length-1);m=parseInt(m,10),M=C.newDate(c,C.toMonthIndex(c,m,L),x)}else M=C.newDate(c,Number(m),x)}catch(e){return u}return M?(M.toJD()-v)*d+T*f+A*p+w*h:u}c=2===c.length?(Number(c)+2e3-b)%100+b:Number(c),m-=1;var B=new Date(Date.UTC(2e3,m,x,T,A));return B.setUTCFullYear(c),B.getUTCMonth()!==m?u:B.getUTCDate()!==x?u:B.getTime()+w*h},r=t.MIN_MS=t.dateTime2ms("-9999"),a=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,n){return t.dateTime2ms(e,n)!==u};var T=90*d,A=3*f,w=5*p;function M(e,t,n,r,a){if((t||n||r||a)&&(e+=" "+x(t,2)+":"+x(n,2),(r||a)&&(e+=":"+x(r,2),a))){for(var o=4;a%10==0;)o-=1,a/=10;e+="."+x(a,o)}return e}t.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=r&&e<=a))return u;t||(t=0);var o,i,l,c,y,_,b=Math.floor(10*s(e+.05,1)),x=Math.round(e-b/10);if(k(n)){var C=Math.floor(x/d)+v,L=Math.floor(s(e,d));try{o=g.getComponentMethod("calendars","getCal")(n).fromJD(C).formatDate("yyyy-mm-dd")}catch(e){o=m("G%Y-%m-%d")(new Date(x))}if("-"===o.charAt(0))for(;o.length<11;)o="-0"+o.substr(1);else for(;o.length<10;)o="0"+o;i=t=r+d&&e<=a-d))return u;var t=Math.floor(10*s(e+.05,1)),n=new Date(Math.round(e-t/10));return M(o.time.format("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},t.cleanDate=function(e,n,r){if(t.isJSDate(e)||"number"==typeof e){if(k(r))return l("JS Dates and milliseconds are incompatible with world calendars",e),n;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==n)return n}else if(!t.isDateTime(e,r))return l("unrecognized date",e),n;return e};var C=/%\d?f/g;var L=[59,59.9,59.99,59.999,59.9999];function B(e,t){var n=s(e+.05,d),r=x(Math.floor(n/f),2)+":"+x(s(Math.floor(n/p),60),2);if("M"!==t){i(t)||(t=0);var a=(100+Math.min(s(e/h,60),L[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+a}return r}var S=m("%Y"),W=m("%b %Y"),z=m("%b %-d"),O=m("%b %-d, %Y");function P(e){return e.formatDate("yyyy")}t.formatDate=function(e,t,n,r){var a,o;if(r=k(r)&&r,t)return function(e,t,n){e=e.replace(C,function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"});var r=new Date(Math.floor(t+.05));if(k(n))try{e=g.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return m(e)(r)}(t,e,r);if(r)try{var i=Math.floor((e+.05)/d)+v,l=g.getComponentMethod("calendars","getCal")(r).fromJD(i);"y"===n?o=P(l):"m"===n?o=function(e){return e.formatDate("M yyyy")}(l):"d"===n?(a=P(l),o=function(e){return e.formatDate("M d")}(l)):(a=function(e){return e.formatDate("M d, yyyy")}(l),o=B(e,n))}catch(e){return"Invalid"}else{var s=new Date(Math.floor(e+.05));"y"===n?o=S(s):"m"===n?o=W(s):"d"===n?(a=S(s),o=z(s)):(a=O(s),o=B(e,n))}return o+(a?"\n"+a:"")};var D=3*d;t.incrementMonth=function(e,t,n){n=k(n)&&n;var r=s(e,d);if(e=Math.round(e-r),n)try{var a=Math.round(e/d)+v,o=g.getComponentMethod("calendars","getCal")(n),i=o.fromJD(a);return t%12?o.add(i,t,"m"):o.add(i,t/12,"y"),(i.toJD()-v)*d+r}catch(t){l("invalid ms "+e+" in calendar "+n)}var c=new Date(e+D);return c.setUTCMonth(c.getUTCMonth()+t)+r-D},t.findExactDates=function(e,t){for(var n,r,a=0,o=0,l=0,s=0,c=k(t)&&g.getComponentMethod("calendars","getCal")(t),u=0;ua.max?t.set(n):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max"],coerceFunction:function(e,t,n,a){e%1||!r(e)||void 0!==a.min&&ea.max?t.set(n):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,n,r){if("string"!=typeof e){var a="number"==typeof e;!0!==r.strict&&a?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n){a(e).isValid()?t.set(e):t.set(n)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",l.join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(i(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?(Math.abs(e)>180&&(e-=360*Math.round(e/360)),t.set(+e)):t.set(n)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:[],coerceFunction:function(e,t,n){var r=n.length;"string"==typeof e&&e.substr(0,r)===n&&c.test(e.substr(r))?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt,r=n.length;return e===n||"string"==typeof e&&!(e.substr(0,r)!==n||!c.test(e.substr(r)))}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,n,r){if("string"==typeof e)if(-1===(r.extras||[]).indexOf(e)){for(var a=e.split("+"),o=0;o0)}function l(e){return e.name||e.replace(/-/gi,"")}function s(){return new Promise(function(e,t){var n=setInterval(function(){"undefined"!=typeof window&&window.ga&&(e(),clearInterval(n))},10)})}function c(e,t){return a().length>1?l(t)+"."+e:e}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?T({},b.fields,{name:n}):b.fields;window.ga("create",t.id||t,"auto",r)}),b.beforeFirstHit();var t=b.ecommerce;if(t.enabled){var n=t.enhanced?"ec":"ecommerce";t.options?u("require",n,t.options):u("require",n)}b.linkers.length>0&&(u("require","linker"),u("linker:autoLink",b.linkers)),b.debug.sendHitTask||d("sendHitTask",null)}function p(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&a().forEach(function(t){window["ga-disable-"+t]=e})},C=function(){if("undefined"!=typeof document&&"undefined"!=typeof window){var e=(b.wait,b.id),t=b.disabled,n=b.debug,a=b.disableScriptLoader,o=n.enabled?"analytics_debug":"analytics",l="https://www.google-analytics.com/"+o+".js";if(!e)throw new Error('[vue-analytics] Missing the "id" parameter. Add at least one tracking domain ID');!i()||window.ga&&a||function(e){return new Promise(function(t,n){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");a.async=!0,a.src=e,a.charset="utf8",r.appendChild(a),a.onload=t,a.onerror=n})}(l).catch(function(){console.error("[vue-analytics] An error occured trying to load "+l+". Please check your connection or if you have any Google Analytics blocker installed in your browser.")}),Promise.resolve("function"==typeof e?e():e).then(function(e){r({id:e})}).then(function(){return"function"==typeof t?t():t}).then(function(e){r({disabled:e}),e&&M(),f(),w(),function(){var e=b.router,t=b.autoTracking;t.page&&e&&(t.pageviewOnLoad&&v(e.currentRoute),b.router.afterEach(function(n,r){var a=t.skipSamePath,o=t.shouldRouterUpdate;a&&n.path===r.path||("function"!=typeof o||o(n,r))&&b.$vue.nextTick().then(function(){v(e.currentRoute)})}))}()})}},L=this,B=function(e){u("send","exception",{exDescription:e,exFatal:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},S=function(e){if(b.autoTracking.exception){window.addEventListener("error",function(e){B(e.message)});var t=e.config.errorHandler;e.config.errorHandler=function(e,n,r){B(e.message),b.autoTracking.exceptionLogs&&(console.error("[vue-analytics] Error in "+r+": "+e.message),console.error(e)),"function"==typeof t&&t.call(L,e,n,r)}}},W=B,z=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};r(E({},t,{$vue:e})),"undefined"==typeof window||window.ga||(window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=Number(new Date)),e.directive("ga",D),e.prototype.$ga=e.$ga=P,S(e),C()},n.d(t,"onAnalyticsReady",function(){return s}),n.d(t,"analyticsMiddleware",function(){return N});var E=Object.assign||function(e){for(var t=1;t=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a-1)return e.splice(n,1)}}function p(e,t){return Yt.call(e,t)}function v(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function g(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function m(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function y(e,t){for(var n in t)e[n]=t[n];return e}function b(e){for(var t={},n=0;n0&&(ee((l=e(l,(n||"")+"_"+s))[0])&&ee(u)&&(d[c]=C(u.text+l[0].text),l.shift()),d.push.apply(d,l)):o(l)?ee(u)?d[c]=C(u.text+l):""!==l&&d.push(C(l)):ee(l)&&ee(u)?d[c]=C(u.text+l.text):(i(t._isVList)&&a(l.tag)&&r(l.key)&&a(n)&&(l.key="__vlist"+n+"_"+s+"__"),d.push(l)));return d}(e):void 0}function ee(e){return a(e)&&a(e.text)&&function(e){return!1===e}(e.isComment)}function te(e,t){return(e.__esModule||An&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function ne(e){return e.isComment&&e.asyncFactory}function re(e){if(Array.isArray(e))for(var t=0;t=0||n.indexOf(e[a])<0)&&r.push(e[a]);return r}return e}function $e(e){this._init(e)}function We(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,a=e._Ctor||(e._Ctor={});if(a[r])return a[r];var i=e.name||n.options.name,o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=R(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)pe(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)ge(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,rn.forEach(function(e){o[e]=n[e]}),i&&(o.options.components[i]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=y({},o.options),a[r]=o,o}}function Ve(e){return e&&(e.Ctor.options.name||e.tag)}function He(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===Ut.call(e)}(e)&&e.test(t)}function qe(e,t){var n=e.cache,r=e.keys,a=e._vnode;for(var i in n){var o=n[i];if(o){var s=Ve(o.componentOptions);s&&!t(s)&&Ue(n,i,r,a)}}}function Ue(e,t,n,r){var a=e[t];!a||r&&a.tag===r.tag||a.componentInstance.$destroy(),e[t]=null,h(n,t)}function Ge(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Ye(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=Ye(t,n.data));return function(e,t){return a(e)||a(t)?Ke(e,Xe(t)):""}(t.staticClass,t.class)}function Ye(e,t){return{staticClass:Ke(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Ke(e,t){return e?t?e+" "+t:e:t||""}function Xe(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function mt(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function yt(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&y(t,Jr(e.name||"v")),y(t,e),t}return"string"==typeof e?Jr(e):void 0}}function bt(e){oa(function(){oa(e)})}function _t(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),gt(e,t))}function xt(e,t){e._transitionClasses&&h(e._transitionClasses,t),mt(e,t)}function wt(e,t,n){var r=kt(e,t),a=r.type,i=r.timeout,o=r.propCount;if(!a)return n();var s=a===ea?ra:ia,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout(function(){l0&&(n=ea,u=o,d=i.length):t===ta?c>0&&(n=ta,u=c,d=l.length):(u=Math.max(o,c),d=(n=u>0?o>c?ea:ta:null)?n===ea?i.length:l.length:0),{type:n,timeout:u,propCount:d,hasTransform:n===ea&&sa.test(r[na+"Property"])}}function Tt(e,t){for(;e.length1}function Ot(e,t){!0!==t.data.show&&Mt(t)}function Dt(e,t,n){zt(e,t),(hn||vn)&&setTimeout(function(){zt(e,t)},0)}function zt(e,t,n){var r=t.value,a=e.multiple;if(!a||Array.isArray(r)){for(var i,o,s=0,l=e.options.length;s-1,o.selected!==i&&(o.selected=i);else if(x(Et(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));a||(e.selectedIndex=-1)}}function Pt(e,t){return t.every(function(t){return!x(t,e)})}function Et(e){return"_value"in e?e._value:e.value}function Nt(e){e.target.composing=!0}function It(e){e.target.composing&&(e.target.composing=!1,jt(e.target,"input"))}function jt(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Rt(e){return!e.componentInstance||e.data&&e.data.transition?e:Rt(e.componentInstance._vnode)}function Bt(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Bt(re(t.children)):e}function Ft(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var a=n._parentListeners;for(var i in a)t[Xt(i)]=a[i];return t}function $t(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Wt(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Vt(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ht(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,a=t.top-n.top;if(r||a){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+a+"px)",i.transitionDuration="0s"}}var qt=Object.freeze({}),Ut=Object.prototype.toString,Gt=(f("slot,component",!0),f("key,ref,slot,slot-scope,is")),Yt=Object.prototype.hasOwnProperty,Kt=/-(\w)/g,Xt=v(function(e){return e.replace(Kt,function(e,t){return t?t.toUpperCase():""})}),Zt=v(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Jt=/\B([A-Z])/g,Qt=v(function(e){return e.replace(Jt,"-$1").toLowerCase()}),en=function(e,t,n){return!1},tn=function(e){return e},nn="data-server-rendered",rn=["component","directive","filter"],an=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],on={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:en,isReservedAttr:en,isUnknownElement:en,getTagNamespace:_,parsePlatformTagName:tn,mustUseProp:en,_lifecycleHooks:an},sn=/[^\w.$]/,ln="__proto__"in{},cn="undefined"!=typeof window,un="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,dn=un&&WXEnvironment.platform.toLowerCase(),fn=cn&&window.navigator.userAgent.toLowerCase(),hn=fn&&/msie|trident/.test(fn),pn=fn&&fn.indexOf("msie 9.0")>0,vn=fn&&fn.indexOf("edge/")>0,gn=fn&&fn.indexOf("android")>0||"android"===dn,mn=fn&&/iphone|ipad|ipod|ios/.test(fn)||"ios"===dn,yn=(fn&&/chrome\/\d+/.test(fn),{}.watch),bn=!1;if(cn)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){bn=!0}}),window.addEventListener("test-passive",null,_n)}catch(e){}var xn,wn,kn=function(){return void 0===xn&&(xn=!cn&&void 0!==e&&"server"===e.process.env.VUE_ENV),xn},Tn=cn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,An="undefined"!=typeof Symbol&&M(Symbol)&&"undefined"!=typeof Reflect&&M(Reflect.ownKeys);wn="undefined"!=typeof Set&&M(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Mn=_,Cn=0,Sn=function(){this.id=Cn++,this.subs=[]};Sn.prototype.addSub=function(e){this.subs.push(e)},Sn.prototype.removeSub=function(e){h(this.subs,e)},Sn.prototype.depend=function(){Sn.target&&Sn.target.addDep(this)},Sn.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;trr&&Jn[n].id>e.id;)n--;Jn.splice(n+1,0,e)}else Jn.push(e);tr||(tr=!0,G(he))}}(this)},ir.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){V(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ir.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ir.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},ir.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var or={enumerable:!0,configurable:!0,get:_,set:_},sr={lazy:!0};Oe(De.prototype);var lr={init:function(e,t,n,r){if(!e.componentInstance||e.componentInstance._isDestroyed)(e.componentInstance=Ee(e,Zn,n,r)).$mount(t?e.elm:void 0,t);else if(e.data.keepAlive){var a=e;lr.prepatch(a,a)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,a){var i=!!(a||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==qt);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=a,e.$attrs=r.data&&r.data.attrs||qt,e.$listeners=n||qt,t&&e.$options.props){In.shouldConvert=!1;for(var o=e._props,s=e.$options._propKeys||[],l=0;l1?m(n):n;for(var r=m(arguments,1),a=0,i=n.length;aparseInt(this.max)&&Ue(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},vr={KeepAlive:pr};(function(e){var t={get:function(){return on}};Object.defineProperty(e,"config",t),e.util={warn:Mn,extend:y,mergeOptions:R,defineReactive:D},e.set=z,e.delete=P,e.nextTick=G,e.options=Object.create(null),rn.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,y(e.options.components,vr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=m(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=R(this.options,e),this}}(e),We(e),function(e){rn.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)})($e),Object.defineProperty($e.prototype,"$isServer",{get:kn}),Object.defineProperty($e.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),$e.version="2.5.13";var gr,mr,yr=f("style,class"),br=f("input,textarea,option,select,progress"),_r=f("contenteditable,draggable,spellcheck"),xr=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),wr="http://www.w3.org/1999/xlink",kr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Tr=function(e){return kr(e)?e.slice(6,e.length):""},Ar=function(e){return null==e||!1===e},Mr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Cr=f("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Sr=f("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Lr=function(e){return Cr(e)||Sr(e)},Or=Object.create(null),Dr=f("text,number,password,search,email,tel,url"),zr=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Mr[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setAttribute:function(e,t,n){e.setAttribute(t,n)}}),Pr={create:function(e,t){Ze(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ze(e,!0),Ze(t))},destroy:function(e){Ze(e,!0)}},Er=new On("",{},[]),Nr=["create","activate","update","remove","destroy"],Ir={create:et,update:et,destroy:function(e){et(e,Er)}},jr=Object.create(null),Rr=[Pr,Ir],Br={create:at,update:at},Fr={create:ot,update:ot},$r="__r",Wr="__c",Vr={create:ut,update:ut},Hr={create:dt,update:dt},qr=v(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}),Ur=/^--/,Gr=/\s*!important$/,Yr=function(e,t,n){if(Ur.test(t))e.style.setProperty(t,n);else if(Gr.test(n))e.style.setProperty(t,n.replace(Gr,""),"important");else{var r=Xr(t);if(Array.isArray(n))for(var a=0,i=n.length;ap?(d=r(i[b+1])?null:i[b+1].elm,v(e,d,i,h,b,o)):h>b&&m(0,t,f,p)}function _(e,t,n,r){for(var i=n;i-1?Or[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Or[e]=/HTMLUnknownElement/.test(t.toString())},y($e.options.directives,pa),y($e.options.components,ba),$e.prototype.__patch__=cn?da:_,$e.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=zn),fe(e,"beforeMount"),new ir(e,function(){e._update(e._render(),n)},_,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,fe(e,"mounted")),e}(this,e=e&&cn?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},$e.nextTick(function(){on.devtools&&Tn&&Tn.emit("init",$e)},0),t.a=$e}).call(t,n(44),n(167).setImmediate)},function(e,t,n){"use strict";var r=n(180),a=n.n(r);t.a=a.a},function(e,t,n){"use strict";var r=n(189),a=n.n(r);t.a=a.a},function(e,t,n){var r=n(60),a=n(32);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r=n(176),a=n.n(r),i=n(177),o=n.n(i);n.d(t,"a",function(){return a.a}),n.d(t,"b",function(){return o.a})},function(e,t,n){"use strict";var r=n(178),a=n.n(r),i=n(65);n.n(i),t.a=a.a},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=!0},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(9).f,a=n(12),i=n(4)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(37)("keys"),a=n(27);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(8),a=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return a[e]||(a[e]={})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(31);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(8),a=n(7),i=n(33),o=n(42),s=n(9).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){t.f=n(4)},function(e,t,n){"use strict";var r=n(154)(!0);n(57)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(168),a=n.n(r);t.a=a.a},function(e,t,n){"use strict";var r=n(169),a=n.n(r),i=n(170),o=n.n(i);n.d(t,"a",function(){return a.a}),n.d(t,"b",function(){return o.a})},function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(22),o=n(183),s=n.n(o);n.d(t,"a",function(){return s.a}),t.b={open:function(e){var t=void 0,n=void 0;"string"==typeof e&&(t=e);var r={programmatic:!0,content:t};e.parent&&(n=e.parent,delete e.parent);var o=a()(r,e);return new(i.a.extend(s.a))({parent:n,el:document.createElement("div"),propsData:o})}}},function(e,t,n){"use strict";var r=n(185),a=n.n(r);t.a=a.a},function(e,t,n){"use strict";var r=n(6),a=n.n(r),i=n(2);t.a={components:a()({},i.a.name,i.a),props:{active:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},type:String,hasIcon:Boolean,size:String,iconSize:String},data:function(){return{isActive:this.active}},watch:{active:function(e){this.isActive=e}},computed:{icon:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},methods:{close:function(){this.isActive=!1,this.$emit("close"),this.$emit("update:active",!1)}}}},function(e,t,n){"use strict";var r=n(1),a=n(5);t.a={props:{type:{type:String,default:"is-dark"},message:String,duration:Number,queue:{type:Boolean,default:void 0},position:{type:String,default:"is-top",validator:function(e){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(e)>-1}},container:String},data:function(){return{isActive:!1,parentTop:null,parentBottom:null,newContainer:this.container||r.b.defaultContainerElement}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{shouldQueue:function(){return!!(void 0!==this.queue?this.queue:r.b.defaultNoticeQueue)&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},close:function(){var e=this;clearTimeout(this.timer),this.isActive=!1,setTimeout(function(){e.$destroy(),n.i(a.a)(e.$el)},150)},showNotice:function(){var e=this;this.shouldQueue()?setTimeout(function(){return e.showNotice()},250):(this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout(function(){return e.close()},this.newDuration)))},setupContainer:function(){if(this.parentTop=document.querySelector(".notices.is-top"),this.parentBottom=document.querySelector(".notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var e=document.querySelector(this.newContainer)||document.body;e.appendChild(this.parentTop),e.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}}},function(e,t,n){e.exports={default:n(130),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(127),i=r(a),o=n(3),s=r(o),l="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===l(i.default)?function(e){return void 0===e?"undefined":l(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":l(e)}},function(e,t,n){var r=n(135);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(19),a=n(8).document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,n){e.exports=!n(11)&&!n(18)(function(){return 7!=Object.defineProperty(n(54)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(30);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r=n(33),a=n(17),i=n(61),o=n(15),s=n(12),l=n(20),c=n(145),u=n(35),d=n(153),f=n(4)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,v,g,m,y){c(n,t,v);var b,_,x,w=function(e){if(!h&&e in M)return M[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",T="values"==g,A=!1,M=e.prototype,C=M[f]||M["@@iterator"]||g&&M[g],S=!h&&C||w(g),L=g?T?w("entries"):S:void 0,O="Array"==t&&M.entries||C;if(O&&(x=d(O.call(new e)))!==Object.prototype&&x.next&&(u(x,k,!0),r||s(x,f)||o(x,f,p)),T&&C&&"values"!==C.name&&(A=!0,S=function(){return C.call(this)}),r&&!y||!h&&!A&&M[f]||o(M,f,S),l[t]=S,l[k]=p,g)if(b={values:T?S:w("values"),keys:m?S:w("keys"),entries:L},y)for(_ in b)_ in M||i(M,_,b[_]);else a(a.P+a.F*(h||A),t,b);return b}},function(e,t,n){var r=n(14),a=n(150),i=n(32),o=n(36)("IE_PROTO"),s=function(){},l=function(){var e,t=n(54)("iframe"),r=i.length;for(t.style.display="none",n(141).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("