(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[15],{
/***/aYSr:
/***/function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],// module.parent = undefined by default
t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t};
/***/},
/***/lbg7:
/***/function(t,e,n){"use strict";
// EXPORTS
n.d(e,"a",(function(){/* binding */return R}));
// EXTERNAL MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/lodash/orderBy.js
var a=n("5Y5w"),o=n.n(a),r=n("Kkar"),i=n.n(r),l=n("w0mW"),c=n.n(l),u=n("WHWN"),y=n.n(u),f=n("whR3"),p=n.n(f),d=n("ERkP"),s=n.n(d),h=n("aWzz"),v=n.n(h),g=n("8pmS"),m=n("tEgK"),b=n("YdzT"),x=n("mEpq"),P=n("wZ4c"),O=n("ZjjC"),w=n("x3kA"),A=n("qLfl"),S=n("Dylh");
// CONCATENATED MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/victory-tooltip/es/flyout.js
function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},a=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),a.forEach((function(e){L(t,e,n[e])}))}return t}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}
/*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/var j=function(t){var e=t.orientation||"top";return"left"===e||"right"===e?function(t){var e=t.pointerWidth,n=t.cornerRadius,a=t.orientation,o=t.width,r=t.height,l=t.center,c="left"===a?1:-1,u=t.x+(t.dx||0),y=t.y+(t.dy||0),f=i()(l)&&l.x,p=i()(l)&&l.y,d=f-c*(o/2),s=f+c*(o/2),h=p+r/2,v=p-r/2,g=c*(u-d)>0?0:t.pointerLength,m="left"===a?"0 0 0":"0 0 1",b="".concat(n," ").concat(n," ").concat(m);return"M ".concat(d,", ").concat(p-e/2,"\n    L ").concat(g?u:d,", ").concat(g?y:p+e/2,"\n    L ").concat(d,", ").concat(p+e/2,"\n    L ").concat(d,", ").concat(h-n,"\n    A ").concat(b," ").concat(d+c*n,", ").concat(h,"\n    L ").concat(s-c*n,", ").concat(h,"\n    A ").concat(b," ").concat(s,", ").concat(h-n,"\n    L ").concat(s,", ").concat(v+n,"\n    A ").concat(b," ").concat(s-c*n,", ").concat(v,"\n    L ").concat(d+c*n,", ").concat(v,"\n    A ").concat(b," ").concat(d,", ").concat(v+n,"\n    z")}(t):function(t){var e=t.pointerWidth,n=t.cornerRadius,a=t.orientation,o=t.width,r=t.height,l=t.center,c="bottom"===a?1:-1,u=t.x+(t.dx||0),y=t.y+(t.dy||0),f=i()(l)&&l.x,p=i()(l)&&l.y,d=p+c*(r/2),s=p-c*(r/2),h=f+o/2,v=f-o/2,g=c*(y-d)<0?0:t.pointerLength,m="bottom"===a?"0 0 0":"0 0 1",b="".concat(n," ").concat(n," ").concat(m);return"M ".concat(f-e/2,", ").concat(d,"\n    L ").concat(g?u:f+e/2,", ").concat(g?y:d,"\n    L ").concat(f+e/2,", ").concat(d,"\n    L ").concat(h-n,", ").concat(d,"\n    A ").concat(b," ").concat(h,", ").concat(d-c*n,"\n    L ").concat(h,", ").concat(s+c*n,"\n    A ").concat(b," ").concat(h-n,", ").concat(s,"\n    L ").concat(v+n,", ").concat(s,"\n    A ").concat(b," ").concat(v,", ").concat(s+c*n,"\n    L ").concat(v,", ").concat(d-c*n,"\n    A ").concat(b," ").concat(v+n,", ").concat(d,"\n    z")}(t)},k=function(t){return t=function(t){
/**
   * Potential evaluated props are:
   * `id`
   * `style`
   */
var e=b.a.evaluateProp(t.id,t),n=b.a.evaluateStyle(t.style,t);return p()({},t,{id:e,style:n})}(t),s.a.cloneElement(t.pathComponent,T({},t.events,{style:t.style,d:j(t),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};k.propTypes=T({},A.a.primitiveProps,{center:v.a.shape({x:v.a.number,y:v.a.number}),cornerRadius:v.a.number,datum:v.a.object,dx:v.a.number,dy:v.a.number,height:v.a.number,orientation:v.a.oneOf(["top","bottom","left","right"]),pathComponent:v.a.element,pointerLength:v.a.number,pointerWidth:v.a.number,width:v.a.number,x:v.a.number,y:v.a.number}),k.defaultProps={pathComponent:s.a.createElement(S.a,null),role:"presentation",shapeRendering:"auto"};
/* harmony default export */var C=k;
// CONCATENATED MODULE: /Users/paulcowan/projects/cuttingedge/node_modules/victory-tooltip/es/victory-tooltip.js
function E(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function D(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function W(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var _={cornerRadius:5,pointerLength:10,pointerWidth:10},R=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=W(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))).id=void 0===t.id?c()("tooltip-"):t.id,n}var n,a,r;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n=e,(a=[{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal;if(t.polar)return this.getPolarOrientation(t,e);var a=n?"right":"top",o=n?"left":"bottom";return e&&e.y<0?o:a}},{key:"getPolarOrientation",value:function(t,e){var n=g.a.getDegrees(t,e),a=t.labelPlacement||"vertical";return" vertical"===a?this.getVerticalOrientations(n):"parallel"===a?n<90||n>270?"right":"left":n>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){
// eslint-disable-next-line no-magic-numbers
return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getStyles",value:function(t){var e=t.theme||m.a.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},a=Array.isArray(t.style)?t.style.map((function(t){return y()({},t,n)})):y()({},t.style,n),o=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},r=t.flyoutStyle?y()({},t.flyoutStyle,o):o,i=Array.isArray(a)?a.map((function(e){return b.a.evaluateStyle(e,t)})):b.a.evaluateStyle(a,t);return{style:i,flyoutStyle:b.a.evaluateStyle(r,p()({},t,{style:i}))}}},{key:"getEvaluatedProps",value:function(t){var e=t.cornerRadius,n=t.centerOffset,a=t.dx,o=t.dy,r=b.a.evaluateProp(t.active,t),l=b.a.evaluateProp(t.text,p()({},t,{active:r})),c=this.getStyles(p()({},t,{active:r,text:l})),u=c.style,y=c.flyoutStyle,f=b.a.evaluateProp(t.orientation,p()({},t,{active:r,text:l,style:u,flyoutStyle:y}))||this.getDefaultOrientation(t),d=b.a.evaluateProp(t.flyoutPadding,p()({},t,{active:r,text:l,style:u,flyoutStyle:y,orientation:f}))||this.getLabelPadding(u),s=b.a.getPadding({padding:d}),h=b.a.evaluateProp(t.pointerWidth,p()({},t,{active:r,text:l,style:u,flyoutStyle:y,orientation:f})),v=b.a.evaluateProp(t.pointerLength,p()({},t,{active:r,text:l,style:u,flyoutStyle:y,orientation:f})),g=x.a.approximateTextSize(l,u),m=this.getDimensions(p()({},t,{style:u,flyoutStyle:y,active:r,text:l,orientation:f,flyoutPadding:s,pointerWidth:h,pointerLength:v}),g),P=m.flyoutHeight,O=m.flyoutWidth,w=p()({},t,{active:r,text:l,style:u,flyoutStyle:y,orientation:f,flyoutHeight:P,flyoutWidth:O,flyoutPadding:s,pointerWidth:h,pointerLength:v}),A=i()(n)&&void 0!==n.x?b.a.evaluateProp(n.x,w):0,S=i()(n)&&void 0!==n.y?b.a.evaluateProp(n.y,w):0;return p()({},w,{centerOffset:{x:A,y:S},dx:void 0!==a?b.a.evaluateProp(a,w):0,dy:void 0!==o?b.a.evaluateProp(o,w):0,cornerRadius:b.a.evaluateProp(e,w)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,a=t.flyoutStyle,o={height:t.flyoutHeight,width:t.flyoutWidth};return{style:e,flyoutStyle:a,labelSize:x.a.approximateTextSize(n,e),flyoutDimensions:o,flyoutCenter:this.getFlyoutCenter(t,o),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,a=(t.style||{}).angle||t.angle||this.getDefaultAngle(t);return a?"rotate(".concat(a," ").concat(e," ").concat(n,")"):void 0}// eslint-disable-next-line complexity
},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,a=t.orientation,o=t.datum;if(!e||!n||"vertical"===n)return 0;var r,i=g.a.getDegrees(t,o);return 0===i||180===i?r="top"===a&&180===i?270:90:i>0&&i<180?r=90-i:i>180&&i<360&&(r=270-i),r+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(t,e,n){var a=t.x,o=t.y,r=n.width,i=n.height,l=[0,e.width],c=[0,e.height],u=[a-r/2,a+r/2],y=[o-i/2,o+i/2],f=[u[0]<l[0]?l[0]-u[0]:0,u[1]>l[1]?u[1]-l[1]:0],p=[y[0]<c[0]?c[0]-y[0]:0,y[1]>c[1]?y[1]-c[1]:0];return{x:Math.round(a+f[0]-f[1]),y:Math.round(o+p[0]-p[1])}}// eslint-disable-next-line complexity
},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,a=t.y,o=t.dx,r=t.dy,l=t.pointerLength,c=t.orientation,u=t.constrainToVisibleArea,y=t.centerOffset,f=e.height,p=e.width,d="left"===c?-1:1,s="bottom"===c?-1:1,h={x:"left"===c||"right"===c?n+d*(l+p/2+d*o):n+o,y:"top"===c||"bottom"===c?a-s*(l+f/2-s*r):a+r},v=i()(t.center)&&void 0!==t.center.x?t.center.x:h.x,g=i()(t.center)&&void 0!==t.center.y?t.center.y:h.y,m={x:v+y.x,y:g+y.y};return u?this.constrainTooltip(m,t,e):m}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e=Array.isArray(t)?t.map((function(t){return t.padding})):[t.padding];return Math.max.apply(Math,E(e).concat([0]))}},{key:"getDimensions",value:function(t,e){var n=t.orientation,a=t.pointerLength,o=t.pointerWidth,r=t.flyoutHeight,i=t.flyoutWidth,l=t.flyoutPadding,c=b.a.evaluateProp(t.cornerRadius,t);return{flyoutHeight:r?b.a.evaluateProp(r,t):function(){var t=e.height+l.top+l.bottom,a="top"===n||"bottom"===n?2*c:2*c+o;return Math.max(a,t)}(),flyoutWidth:i?b.a.evaluateProp(i,t):function(){var t=e.width+l.left+l.right,o="left"===n||"right"===n?2*c+a:2*c;return Math.max(o,t)}()}}},{key:"getLabelProps",value:function(t,e){var n=e.flyoutCenter,a=e.style,o=e.labelSize,r=e.dy,i=void 0===r?0:r,l=e.dx,c=void 0===l?0:l,u=t.text,f=t.datum,p=t.activePoints,d=t.labelComponent,s=t.index,h=t.flyoutPadding,v=(Array.isArray(a)&&a.length?a[0].textAnchor:a.textAnchor)||"middle";return y()({},d.props,{key:"".concat(this.id,"-label-").concat(s),text:u,datum:f,activePoints:p,textAnchor:v,dy:i,dx:c,style:a,x:function(){if(!v||"middle"===v)return n.x;var t="end"===v?-1:1;return n.x-t*(o.width/2)}()+(h.left-h.right)/2,y:n.y+(h.top-h.bottom)/2,verticalAnchor:"middle",angle:a.angle})}},{key:"getPointerOrientation",value:function(t,e,n){var a=e.y+n.height/2,r=e.y-n.height/2,i=e.x-n.width/2,l=e.x+n.width/2,c=[{side:"top",val:r>t.y?r-t.y:-1},{side:"bottom",val:a<t.y?t.y-a:-1},{side:"right",val:l<t.x?t.x-l:-1},{side:"left",val:i>t.x?i-t.x:-1}];return o()(c,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,a=e.flyoutStyle,o=e.flyoutCenter,r=t.x,i=t.y,l=t.dx,c=t.dy,u=t.datum,f=t.activePoints,p=t.index,d=t.pointerLength,s=t.pointerWidth,h=t.cornerRadius,v=t.events,g=t.flyoutComponent,m=b.a.evaluateProp(t.pointerOrientation,t);return y()({},g.props,{x:r,y:i,dx:l,dy:c,datum:u,activePoints:f,index:p,pointerLength:d,pointerWidth:s,cornerRadius:h,events:v,orientation:m||this.getPointerOrientation({x:r,y:i},o,n),key:"".concat(this.id,"-tooltip-").concat(p),width:n.width,height:n.height,style:a,center:o})}// Overridden in victory-core-native
},{key:"renderTooltip",value:function(t){var e=this.getEvaluatedProps(t),n=e.flyoutComponent,a=e.labelComponent,o=e.groupComponent,r=e.active,i=e.renderInPortal;if(!r)return i?s.a.createElement(P.a,null,null):null;var l=this.getCalculatedValues(e),c=[s.a.cloneElement(n,this.getFlyoutProps(e,l)),s.a.cloneElement(a,this.getLabelProps(e,l))],u=s.a.cloneElement(o,{role:"presentation",transform:l.transform},c);return i?s.a.createElement(P.a,null,u):u}},{key:"render",value:function(){var t=b.a.modifyProps(this.props,_,"tooltip");return this.renderTooltip(t)}}])&&D(n.prototype,a),r&&D(n,r),e}(s.a.Component);Object.defineProperty(R,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryTooltip"}),Object.defineProperty(R,"role",{configurable:!0,enumerable:!0,writable:!0,value:"tooltip"}),Object.defineProperty(R,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{activateData:v.a.bool,active:v.a.oneOfType([v.a.bool,v.a.func]),activePoints:v.a.array,angle:v.a.number,center:v.a.shape({x:O.a.nonNegative,y:O.a.nonNegative}),centerOffset:v.a.shape({x:v.a.oneOfType([v.a.number,v.a.func]),y:v.a.oneOfType([v.a.number,v.a.func])}),constrainToVisibleArea:v.a.bool,cornerRadius:v.a.oneOfType([O.a.nonNegative,v.a.func]),data:v.a.array,datum:v.a.object,dx:v.a.oneOfType([v.a.number,v.a.func]),dy:v.a.oneOfType([v.a.number,v.a.func]),events:v.a.object,flyoutComponent:v.a.element,flyoutHeight:v.a.oneOfType([O.a.nonNegative,v.a.func]),flyoutPadding:v.a.oneOfType([v.a.func,v.a.number,v.a.shape({top:v.a.number,bottom:v.a.number,left:v.a.number,right:v.a.number})]),flyoutStyle:v.a.object,flyoutWidth:v.a.oneOfType([O.a.nonNegative,v.a.func]),groupComponent:v.a.element,height:v.a.number,horizontal:v.a.bool,id:v.a.oneOfType([v.a.number,v.a.string]),index:v.a.oneOfType([v.a.number,v.a.string]),labelComponent:v.a.element,orientation:v.a.oneOfType([v.a.oneOf(["top","bottom","left","right"]),v.a.func]),pointerLength:v.a.oneOfType([O.a.nonNegative,v.a.func]),pointerOrientation:v.a.oneOfType([v.a.oneOf(["top","bottom","left","right"]),v.a.func]),pointerWidth:v.a.oneOfType([O.a.nonNegative,v.a.func]),polar:v.a.bool,renderInPortal:v.a.bool,scale:v.a.shape({x:O.a.scale,y:O.a.scale}),style:v.a.oneOfType([v.a.object,v.a.array]),text:v.a.oneOfType([v.a.string,v.a.number,v.a.func,v.a.array]),theme:v.a.object,width:v.a.number,x:v.a.number,y:v.a.number}}),Object.defineProperty(R,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{active:!1,renderInPortal:!0,labelComponent:s.a.createElement(w.a,null),flyoutComponent:s.a.createElement(C,null),groupComponent:s.a.createElement("g",null)}}),Object.defineProperty(R,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(t){var e=t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return e},onFocus:function(){return e},onTouchStart:function(){return e},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]}})}}]);
//# sourceMappingURL=7c2fe9ca71d2d4c839914525b72b580d6be96835-c78ea1d8.d72a228a.chunk.js.map