Socket
Socket
Sign inDemoInstall

react-chartjs-2

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-chartjs-2 - npm Package Compare versions

Comparing version 2.5.8 to 2.6.0

es/index.js

3

dist/react-chartjs-2.min.js

@@ -1,2 +0,1 @@

!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.reactChartjs2=t()}}(function(){return function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!u&&c)return c(a,!0);if(i)return i(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var s=n[a]={exports:{}};e[a][0].call(s.exports,function(t){var n=e[a][1][t];return o(n?n:t)},s,s.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},e.exports=o},{}],2:[function(t,e,n){"use strict";function r(t,e,n,r,i,a,u,c){if(o(e),!t){var f;if(void 0===e)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,i,a,u,c],l=0;f=new Error(e.replace(/%s/g,function(){return s[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}var o=function(t){};e.exports=r},{}],3:[function(t,e,n){"use strict";var r=t("./emptyFunction"),o=r;e.exports=o},{"./emptyFunction":1}],4:[function(t,e,n){(function(t){function r(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function o(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function i(t){return function(e){return null==e?void 0:e[t]}}function a(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function u(t){return function(e){return t(e)}}function c(t,e){return null==t?void 0:t[e]}function f(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function s(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function l(t,e){return function(n){return t(e(n))}}function p(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function h(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function d(){this.__data__=pn?pn(null):{}}function y(t){return this.has(t)&&delete this.__data__[t]}function v(t){var e=this.__data__;if(pn){var n=e[t];return n===Nt?void 0:n}return Qe.call(e,t)?e[t]:void 0}function _(t){var e=this.__data__;return pn?void 0!==e[t]:Qe.call(e,t)}function b(t,e){var n=this.__data__;return n[t]=pn&&void 0===e?Nt:e,this}function g(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function j(){this.__data__=[]}function m(t){var e=this.__data__,n=M(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():rn.call(e,n,1),!0}function w(t){var e=this.__data__,n=M(e,t);return n<0?void 0:e[n][1]}function O(t){return M(this.__data__,t)>-1}function P(t,e){var n=this.__data__,r=M(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}function A(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function E(){this.__data__={hash:new h,map:new(cn||g),string:new h}}function k(t){return ut(this,t)["delete"](t)}function x(t){return ut(this,t).get(t)}function T(t){return ut(this,t).has(t)}function S(t,e){return ut(this,t).set(t,e),this}function C(t){var e=-1,n=t?t.length:0;for(this.__data__=new A;++e<n;)this.add(t[e])}function R(t){return this.__data__.set(t,Nt),this}function z(t){return this.__data__.has(t)}function D(t){this.__data__=new g(t)}function I(){this.__data__=new g}function F(t){return this.__data__["delete"](t)}function $(t){return this.__data__.get(t)}function U(t){return this.__data__.has(t)}function B(t,e){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!cn||r.length<Lt-1)return r.push([t,e]),this;n=this.__data__=new A(r)}return n.set(t,e),this}function L(t,e){var n=Pn(t)||Ot(t)?a(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!Qe.call(t,i)||o&&("length"==i||lt(i,r))||n.push(i);return n}function M(t,e){for(var n=t.length;n--;)if(wt(t[n][0],e))return n;return-1}function N(t,e){e=pt(e,t)?[e]:nt(e);for(var n=0,r=e.length;null!=t&&n<r;)t=t[bt(e[n++])];return n&&n==r?t:void 0}function q(t){return Xe.call(t)}function W(t,e){return null!=t&&e in Object(t)}function K(t,e,n,r,o){return t===e||(null==t||null==e||!xt(t)&&!Tt(e)?t!==t&&e!==e:V(t,e,K,n,r,o))}function V(t,e,n,r,o,i){var a=Pn(t),u=Pn(e),c=Yt,s=Yt;a||(c=mn(t),c=c==Jt?oe:c),u||(s=mn(e),s=s==Jt?oe:s);var l=c==oe&&!f(t),p=s==oe&&!f(e),h=c==s;if(h&&!l)return i||(i=new D),a||An(t)?ot(t,e,n,r,o,i):it(t,e,c,n,r,o,i);if(!(o&Wt)){var d=l&&Qe.call(t,"__wrapped__"),y=p&&Qe.call(e,"__wrapped__");if(d||y){var v=d?t.value():t,_=y?e.value():e;return i||(i=new D),n(v,_,r,o,i)}}return!!h&&(i||(i=new D),at(t,e,n,r,o,i))}function H(t,e,n,r){var o=n.length,i=o,a=!r;if(null==t)return!i;for(t=Object(t);o--;){var u=n[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){u=n[o];var c=u[0],f=t[c],s=u[1];if(a&&u[2]){if(void 0===f&&!(c in t))return!1}else{var l=new D;if(r)var p=r(f,s,c,t,e,l);if(!(void 0===p?K(s,f,r,qt|Wt,l):p))return!1}}return!0}function G(t){if(!xt(t)||dt(t))return!1;var e=Et(t)||f(t)?Ze:Ce;return e.test(gt(t))}function J(t){return Tt(t)&&kt(t.length)&&!!De[Xe.call(t)]}function Y(t){return"function"==typeof t?t:null==t?Ut:"object"==typeof t?Pn(t)?Z(t[0],t[1]):X(t):Bt(t)}function Q(t){if(!yt(t))return on(t);var e=[];for(var n in Object(t))Qe.call(t,n)&&"constructor"!=n&&e.push(n);return e}function X(t){var e=ct(t);return 1==e.length&&e[0][2]?_t(e[0][0],e[0][1]):function(n){return n===t||H(n,t,e)}}function Z(t,e){return pt(t)&&vt(e)?_t(bt(t),e):function(n){var r=It(n,t);return void 0===r&&r===e?Ft(n,t):K(e,r,void 0,qt|Wt)}}function tt(t){return function(e){return N(e,t)}}function et(t){if("string"==typeof t)return t;if(St(t))return jn?jn.call(t):"";var e=t+"";return"0"==e&&1/t==-Kt?"-0":e}function nt(t){return Pn(t)?t:wn(t)}function rt(t){return function(e,n,r){var o=Object(e);if(!Pt(e)){var i=Y(n,3);e=$t(e),n=function(t){return i(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[i?e[a]:a]:void 0}}function ot(t,e,n,o,i,a){var u=i&Wt,c=t.length,f=e.length;if(c!=f&&!(u&&f>c))return!1;var s=a.get(t);if(s&&a.get(e))return s==e;var l=-1,p=!0,h=i&qt?new C:void 0;for(a.set(t,e),a.set(e,t);++l<c;){var d=t[l],y=e[l];if(o)var v=u?o(y,d,l,e,t,a):o(d,y,l,t,e,a);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!r(e,function(t,e){if(!h.has(e)&&(d===t||n(d,t,o,i,a)))return h.add(e)})){p=!1;break}}else if(d!==y&&!n(d,y,o,i,a)){p=!1;break}}return a["delete"](t),a["delete"](e),p}function it(t,e,n,r,o,i,a){switch(n){case pe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case le:return!(t.byteLength!=e.byteLength||!r(new en(t),new en(e)));case Qt:case Xt:case re:return wt(+t,+e);case Zt:return t.name==e.name&&t.message==e.message;case ae:case ce:return t==e+"";case ne:var u=s;case ue:var c=i&Wt;if(u||(u=p),t.size!=e.size&&!c)return!1;var f=a.get(t);if(f)return f==e;i|=qt,a.set(t,e);var l=ot(u(t),u(e),r,o,i,a);return a["delete"](t),l;case fe:if(gn)return gn.call(t)==gn.call(e)}return!1}function at(t,e,n,r,o,i){var a=o&Wt,u=$t(t),c=u.length,f=$t(e),s=f.length;if(c!=s&&!a)return!1;for(var l=c;l--;){var p=u[l];if(!(a?p in e:Qe.call(e,p)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<c;){p=u[l];var v=t[p],_=e[p];if(r)var b=a?r(_,v,p,e,t,i):r(v,_,p,t,e,i);if(!(void 0===b?v===_||n(v,_,r,o,i):b)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var g=t.constructor,j=e.constructor;g!=j&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j)&&(d=!1)}return i["delete"](t),i["delete"](e),d}function ut(t,e){var n=t.__data__;return ht(e)?n["string"==typeof e?"string":"hash"]:n.map}function ct(t){for(var e=$t(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,vt(o)]}return e}function ft(t,e){var n=c(t,e);return G(n)?n:void 0}function st(t,e,n){e=pt(e,t)?[e]:nt(e);for(var r,o=-1,i=e.length;++o<i;){var a=bt(e[o]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;var i=t?t.length:0;return!!i&&kt(i)&&lt(a,i)&&(Pn(t)||Ot(t))}function lt(t,e){return e=null==e?Vt:e,!!e&&("number"==typeof t||ze.test(t))&&t>-1&&t%1==0&&t<e}function pt(t,e){if(Pn(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!St(t))||(Oe.test(t)||!we.test(t)||null!=e&&t in Object(e))}function ht(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function dt(t){return!!Je&&Je in t}function yt(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||He;return t===n}function vt(t){return t===t&&!xt(t)}function _t(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function bt(t){if("string"==typeof t||St(t))return t;var e=t+"";return"0"==e&&1/t==-Kt?"-0":e}function gt(t){if(null!=t){try{return Ye.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function jt(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:Rt(n);return i<0&&(i=an(r+i,0)),o(t,Y(e,3),i)}function mt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Mt);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(mt.Cache||A),n}function wt(t,e){return t===e||t!==t&&e!==e}function Ot(t){return At(t)&&Qe.call(t,"callee")&&(!nn.call(t,"callee")||Xe.call(t)==Jt)}function Pt(t){return null!=t&&kt(t.length)&&!Et(t)}function At(t){return Tt(t)&&Pt(t)}function Et(t){var e=xt(t)?Xe.call(t):"";return e==te||e==ee}function kt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Vt}function xt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Tt(t){return!!t&&"object"==typeof t}function St(t){return"symbol"==typeof t||Tt(t)&&Xe.call(t)==fe}function Ct(t){if(!t)return 0===t?t:0;if(t=zt(t),t===Kt||t===-Kt){var e=t<0?-1:1;return e*Ht}return t===t?t:0}function Rt(t){var e=Ct(t),n=e%1;return e===e?n?e-n:e:0}function zt(t){if("number"==typeof t)return t;if(St(t))return Gt;if(xt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=xt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ke,"");var n=Se.test(t);return n||Re.test(t)?Ie(t.slice(2),n?2:8):Te.test(t)?Gt:+t}function Dt(t){return null==t?"":et(t)}function It(t,e,n){var r=null==t?void 0:N(t,e);return void 0===r?n:r}function Ft(t,e){return null!=t&&st(t,e,W)}function $t(t){return Pt(t)?L(t):Q(t)}function Ut(t){return t}function Bt(t){return pt(t)?i(bt(t)):tt(t)}var Lt=200,Mt="Expected a function",Nt="__lodash_hash_undefined__",qt=1,Wt=2,Kt=1/0,Vt=9007199254740991,Ht=1.7976931348623157e308,Gt=NaN,Jt="[object Arguments]",Yt="[object Array]",Qt="[object Boolean]",Xt="[object Date]",Zt="[object Error]",te="[object Function]",ee="[object GeneratorFunction]",ne="[object Map]",re="[object Number]",oe="[object Object]",ie="[object Promise]",ae="[object RegExp]",ue="[object Set]",ce="[object String]",fe="[object Symbol]",se="[object WeakMap]",le="[object ArrayBuffer]",pe="[object DataView]",he="[object Float32Array]",de="[object Float64Array]",ye="[object Int8Array]",ve="[object Int16Array]",_e="[object Int32Array]",be="[object Uint8Array]",ge="[object Uint8ClampedArray]",je="[object Uint16Array]",me="[object Uint32Array]",we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Pe=/^\./,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ee=/[\\^$.*+?()[\]{}|]/g,ke=/^\s+|\s+$/g,xe=/\\(\\)?/g,Te=/^[-+]0x[0-9a-f]+$/i,Se=/^0b[01]+$/i,Ce=/^\[object .+?Constructor\]$/,Re=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,De={};De[he]=De[de]=De[ye]=De[ve]=De[_e]=De[be]=De[ge]=De[je]=De[me]=!0,De[Jt]=De[Yt]=De[le]=De[Qt]=De[pe]=De[Xt]=De[Zt]=De[te]=De[ne]=De[re]=De[oe]=De[ae]=De[ue]=De[ce]=De[se]=!1;var Ie=parseInt,Fe="object"==typeof t&&t&&t.Object===Object&&t,$e="object"==typeof self&&self&&self.Object===Object&&self,Ue=Fe||$e||Function("return this")(),Be="object"==typeof n&&n&&!n.nodeType&&n,Le=Be&&"object"==typeof e&&e&&!e.nodeType&&e,Me=Le&&Le.exports===Be,Ne=Me&&Fe.process,qe=function(){try{return Ne&&Ne.binding("util")}catch(t){}}(),We=qe&&qe.isTypedArray,Ke=Array.prototype,Ve=Function.prototype,He=Object.prototype,Ge=Ue["__core-js_shared__"],Je=function(){var t=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ye=Ve.toString,Qe=He.hasOwnProperty,Xe=He.toString,Ze=RegExp("^"+Ye.call(Qe).replace(Ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tn=Ue.Symbol,en=Ue.Uint8Array,nn=He.propertyIsEnumerable,rn=Ke.splice,on=l(Object.keys,Object),an=Math.max,un=ft(Ue,"DataView"),cn=ft(Ue,"Map"),fn=ft(Ue,"Promise"),sn=ft(Ue,"Set"),ln=ft(Ue,"WeakMap"),pn=ft(Object,"create"),hn=gt(un),dn=gt(cn),yn=gt(fn),vn=gt(sn),_n=gt(ln),bn=tn?tn.prototype:void 0,gn=bn?bn.valueOf:void 0,jn=bn?bn.toString:void 0;h.prototype.clear=d,h.prototype["delete"]=y,h.prototype.get=v,h.prototype.has=_,h.prototype.set=b,g.prototype.clear=j,g.prototype["delete"]=m,g.prototype.get=w,g.prototype.has=O,g.prototype.set=P,A.prototype.clear=E,A.prototype["delete"]=k,A.prototype.get=x,A.prototype.has=T,A.prototype.set=S,C.prototype.add=C.prototype.push=R,C.prototype.has=z,D.prototype.clear=I,D.prototype["delete"]=F,D.prototype.get=$,D.prototype.has=U,D.prototype.set=B;var mn=q;(un&&mn(new un(new ArrayBuffer(1)))!=pe||cn&&mn(new cn)!=ne||fn&&mn(fn.resolve())!=ie||sn&&mn(new sn)!=ue||ln&&mn(new ln)!=se)&&(mn=function(t){var e=Xe.call(t),n=e==oe?t.constructor:void 0,r=n?gt(n):void 0;if(r)switch(r){case hn:return pe;case dn:return ne;case yn:return ie;case vn:return ue;case _n:return se}return e});var wn=mt(function(t){t=Dt(t);var e=[];return Pe.test(t)&&e.push(""),t.replace(Ae,function(t,n,r,o){e.push(r?o.replace(xe,"$1"):n||t)}),e}),On=rt(jt);mt.Cache=A;var Pn=Array.isArray,An=We?u(We):J;e.exports=On}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(t,e,n){(function(t){function r(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function o(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function i(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function a(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function u(t){return function(e){return t(e)}}function c(t,e){return t.has(e)}function f(t,e){return null==t?void 0:t[e]}function s(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function l(t,e){return function(n){return t(e(n))}}function p(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function d(){this.__data__=$e?$e(null):{},this.size=0}function y(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function v(t){var e=this.__data__;if($e){var n=e[t];return n===jt?void 0:n}return ge.call(e,t)?e[t]:void 0}function _(t){var e=this.__data__;return $e?void 0!==e[t]:ge.call(e,t)}function b(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=$e&&void 0===e?jt:e,this}function g(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function j(){this.__data__=[],this.size=0}function m(t){var e=this.__data__,n=M(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ke.call(e,n,1),--this.size,!0}function w(t){var e=this.__data__,n=M(e,t);return n<0?void 0:e[n][1]}function O(t){return M(this.__data__,t)>-1}function P(t,e){var n=this.__data__,r=M(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function A(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function E(){this.size=0,this.__data__={hash:new h,map:new(ze||g),string:new h}}function k(t){var e=tt(this,t)["delete"](t);return this.size-=e?1:0,e}function x(t){return tt(this,t).get(t)}function T(t){return tt(this,t).has(t)}function S(t,e){var n=tt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function C(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new A;++e<n;)this.add(t[e])}function R(t){return this.__data__.set(t,jt),this}function z(t){return this.__data__.has(t)}function D(t){var e=this.__data__=new g(t);this.size=e.size}function I(){this.__data__=new g,this.size=0}function F(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function $(t){return this.__data__.get(t)}function U(t){return this.__data__.has(t)}function B(t,e){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!ze||r.length<gt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new A(r)}return n.set(t,e),this.size=n.size,this}function L(t,e){var n=Ge(t),r=!n&&He(t),o=!n&&!r&&Je(t),i=!n&&!r&&!o&&Ye(t),u=n||r||o||i,c=u?a(t.length,String):[],f=c.length;for(var s in t)!e&&!ge.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||rt(s,f))||c.push(s);return c}function M(t,e){for(var n=t.length;n--;)if(ft(t[n][0],e))return n;return-1}function N(t,e,n){var r=e(t);return Ge(t)?r:o(r,n(t))}function q(t){return null==t?void 0===t?Nt:Dt:xe&&xe in Object(t)?nt(t):ut(t)}function W(t){return yt(t)&&q(t)==Pt}function K(t,e,n,r,o){return t===e||(null==t||null==e||!yt(t)&&!yt(e)?t!==t&&e!==e:V(t,e,n,r,K,o))}function V(t,e,n,r,o,i){var a=Ge(t),u=Ge(e),c=a?At:Ve(t),f=u?At:Ve(e);c=c==Pt?It:c,f=f==Pt?It:f;var s=c==It,l=f==It,p=c==f;if(p&&Je(t)){if(!Je(e))return!1;a=!0,s=!1}if(p&&!s)return i||(i=new D),a||Ye(t)?Y(t,e,n,r,o,i):Q(t,e,c,n,r,o,i);if(!(n&mt)){var h=s&&ge.call(t,"__wrapped__"),d=l&&ge.call(e,"__wrapped__");if(h||d){var y=h?t.value():t,v=d?e.value():e;return i||(i=new D),o(y,v,n,r,i)}}return!!p&&(i||(i=new D),X(t,e,n,r,o,i))}function H(t){if(!dt(t)||it(t))return!1;var e=pt(t)?we:ne;return e.test(ct(t))}function G(t){return yt(t)&&ht(t.length)&&!!oe[q(t)]}function J(t){if(!at(t))return Ce(t);var e=[];for(var n in Object(t))ge.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Y(t,e,n,r,o,a){var u=n&mt,f=t.length,s=e.length;if(f!=s&&!(u&&s>f))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var p=-1,h=!0,d=n&wt?new C:void 0;for(a.set(t,e),a.set(e,t);++p<f;){var y=t[p],v=e[p];if(r)var _=u?r(v,y,p,e,t,a):r(y,v,p,t,e,a);if(void 0!==_){if(_)continue;h=!1;break}if(d){if(!i(e,function(t,e){if(!c(d,e)&&(y===t||o(y,t,n,r,a)))return d.push(e)})){h=!1;break}}else if(y!==v&&!o(y,v,n,r,a)){h=!1;break}}return a["delete"](t),a["delete"](e),h}function Q(t,e,n,r,o,i,a){switch(n){case Kt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Wt:return!(t.byteLength!=e.byteLength||!i(new Ae(t),new Ae(e)));case kt:case xt:case zt:return ft(+t,+e);case Tt:return t.name==e.name&&t.message==e.message;case Ut:case Lt:return t==e+"";case Rt:var u=s;case Bt:var c=r&mt;if(u||(u=p),t.size!=e.size&&!c)return!1;var f=a.get(t);if(f)return f==e;r|=wt,a.set(t,e);var l=Y(u(t),u(e),r,o,i,a);return a["delete"](t),l;case Mt:if(We)return We.call(t)==We.call(e)}return!1}function X(t,e,n,r,o,i){var a=n&mt,u=Z(t),c=u.length,f=Z(e),s=f.length;if(c!=s&&!a)return!1;for(var l=c;l--;){var p=u[l];if(!(a?p in e:ge.call(e,p)))return!1}var h=i.get(t);if(h&&i.get(e))return h==e;var d=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<c;){p=u[l];var v=t[p],_=e[p];if(r)var b=a?r(_,v,p,e,t,i):r(v,_,p,t,e,i);if(!(void 0===b?v===_||o(v,_,n,r,i):b)){d=!1;break}y||(y="constructor"==p)}if(d&&!y){var g=t.constructor,j=e.constructor;g!=j&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j)&&(d=!1)}return i["delete"](t),i["delete"](e),d}function Z(t){return N(t,vt,Ke)}function tt(t,e){var n=t.__data__;return ot(e)?n["string"==typeof e?"string":"hash"]:n.map}function et(t,e){var n=f(t,e);return H(n)?n:void 0}function nt(t){var e=ge.call(t,xe),n=t[xe];try{t[xe]=void 0;var r=!0}catch(o){}var i=me.call(t);return r&&(e?t[xe]=n:delete t[xe]),i}function rt(t,e){return e=null==e?Ot:e,!!e&&("number"==typeof t||re.test(t))&&t>-1&&t%1==0&&t<e}function ot(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function it(t){return!!je&&je in t}function at(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||ve;return t===n}function ut(t){return me.call(t)}function ct(t){if(null!=t){try{return be.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function ft(t,e){return t===e||t!==t&&e!==e}function st(t){return null!=t&&ht(t.length)&&!pt(t)}function lt(t,e){return K(t,e)}function pt(t){if(!dt(t))return!1;var e=q(t);return e==St||e==Ct||e==Et||e==$t}function ht(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ot}function dt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function yt(t){return null!=t&&"object"==typeof t}function vt(t){return st(t)?L(t):J(t)}function _t(){return[]}function bt(){return!1}var gt=200,jt="__lodash_hash_undefined__",mt=1,wt=2,Ot=9007199254740991,Pt="[object Arguments]",At="[object Array]",Et="[object AsyncFunction]",kt="[object Boolean]",xt="[object Date]",Tt="[object Error]",St="[object Function]",Ct="[object GeneratorFunction]",Rt="[object Map]",zt="[object Number]",Dt="[object Null]",It="[object Object]",Ft="[object Promise]",$t="[object Proxy]",Ut="[object RegExp]",Bt="[object Set]",Lt="[object String]",Mt="[object Symbol]",Nt="[object Undefined]",qt="[object WeakMap]",Wt="[object ArrayBuffer]",Kt="[object DataView]",Vt="[object Float32Array]",Ht="[object Float64Array]",Gt="[object Int8Array]",Jt="[object Int16Array]",Yt="[object Int32Array]",Qt="[object Uint8Array]",Xt="[object Uint8ClampedArray]",Zt="[object Uint16Array]",te="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,oe={};oe[Vt]=oe[Ht]=oe[Gt]=oe[Jt]=oe[Yt]=oe[Qt]=oe[Xt]=oe[Zt]=oe[te]=!0,oe[Pt]=oe[At]=oe[Wt]=oe[kt]=oe[Kt]=oe[xt]=oe[Tt]=oe[St]=oe[Rt]=oe[zt]=oe[It]=oe[Ut]=oe[Bt]=oe[Lt]=oe[qt]=!1;var ie="object"==typeof t&&t&&t.Object===Object&&t,ae="object"==typeof self&&self&&self.Object===Object&&self,ue=ie||ae||Function("return this")(),ce="object"==typeof n&&n&&!n.nodeType&&n,fe=ce&&"object"==typeof e&&e&&!e.nodeType&&e,se=fe&&fe.exports===ce,le=se&&ie.process,pe=function(){try{return le&&le.binding&&le.binding("util")}catch(t){}}(),he=pe&&pe.isTypedArray,de=Array.prototype,ye=Function.prototype,ve=Object.prototype,_e=ue["__core-js_shared__"],be=ye.toString,ge=ve.hasOwnProperty,je=function(){var t=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),me=ve.toString,we=RegExp("^"+be.call(ge).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=se?ue.Buffer:void 0,Pe=ue.Symbol,Ae=ue.Uint8Array,Ee=ve.propertyIsEnumerable,ke=de.splice,xe=Pe?Pe.toStringTag:void 0,Te=Object.getOwnPropertySymbols,Se=Oe?Oe.isBuffer:void 0,Ce=l(Object.keys,Object),Re=et(ue,"DataView"),ze=et(ue,"Map"),De=et(ue,"Promise"),Ie=et(ue,"Set"),Fe=et(ue,"WeakMap"),$e=et(Object,"create"),Ue=ct(Re),Be=ct(ze),Le=ct(De),Me=ct(Ie),Ne=ct(Fe),qe=Pe?Pe.prototype:void 0,We=qe?qe.valueOf:void 0;h.prototype.clear=d,h.prototype["delete"]=y,h.prototype.get=v,h.prototype.has=_,h.prototype.set=b,g.prototype.clear=j,g.prototype["delete"]=m,g.prototype.get=w,g.prototype.has=O,g.prototype.set=P,A.prototype.clear=E,A.prototype["delete"]=k,A.prototype.get=x,A.prototype.has=T,A.prototype.set=S,C.prototype.add=C.prototype.push=R,C.prototype.has=z,D.prototype.clear=I,D.prototype["delete"]=F,D.prototype.get=$,D.prototype.has=U,D.prototype.set=B;var Ke=Te?function(t){return null==t?[]:(t=Object(t),r(Te(t),function(e){return Ee.call(t,e)}))}:_t,Ve=q;(Re&&Ve(new Re(new ArrayBuffer(1)))!=Kt||ze&&Ve(new ze)!=Rt||De&&Ve(De.resolve())!=Ft||Ie&&Ve(new Ie)!=Bt||Fe&&Ve(new Fe)!=qt)&&(Ve=function(t){var e=q(t),n=e==It?t.constructor:void 0,r=n?ct(n):"";if(r)switch(r){case Ue:return Kt;case Be:return Rt;case Le:return Ft;case Me:return Bt;case Ne:return qt}return e});var He=W(function(){return arguments}())?W:function(t){return yt(t)&&ge.call(t,"callee")&&!Ee.call(t,"callee")},Ge=Array.isArray,Je=Se||bt,Ye=he?u(he):G;e.exports=lt}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(t,e,n){"use strict";function r(t,e,n,r,o){}e.exports=r},{"./lib/ReactPropTypesSecret":10,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],7:[function(t,e,n){"use strict";var r=t("fbjs/lib/emptyFunction"),o=t("fbjs/lib/invariant"),i=t("./lib/ReactPropTypesSecret");e.exports=function(){function t(t,e,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return n.checkPropTypes=r,n.PropTypes=n,n}},{"./lib/ReactPropTypesSecret":10,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2}],8:[function(t,e,n){"use strict";var r=t("fbjs/lib/emptyFunction"),o=t("fbjs/lib/invariant"),i=t("fbjs/lib/warning"),a=t("./lib/ReactPropTypesSecret"),u=t("./checkPropTypes");e.exports=function(t,e){function n(t){var e=t&&(k&&t[k]||t[x]);if("function"==typeof e)return e}function c(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function f(t){this.message=t,this.stack=""}function s(t){function n(n,r,i,u,c,s,l){if(u=u||T,s=s||i,l!==a)if(e)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[i]?n?new f(null===r[i]?"The "+c+" `"+s+"` is marked as required "+("in `"+u+"`, but its value is `null`."):"The "+c+" `"+s+"` is marked as required in "+("`"+u+"`, but its value is `undefined`.")):null:t(r,i,u,c,s)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function l(t){function e(e,n,r,o,i,a){var u=e[n],c=O(u);if(c!==t){var s=P(u);return new f("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return s(e)}function p(){return s(r.thatReturnsNull)}function h(t){function e(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u)){var c=O(u);return new f("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var s=0;s<u.length;s++){var l=t(u,s,r,o,i+"["+s+"]",a);if(l instanceof Error)return l}return null}return s(e)}function d(){function e(e,n,r,o,i){var a=e[n];if(!t(a)){var u=O(a);return new f("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return s(e)}function y(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||T,u=E(e[n]);return new f("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return s(e)}function v(t){function e(e,n,r,o,i){for(var a=e[n],u=0;u<t.length;u++)if(c(a,t[u]))return null;var s=JSON.stringify(t);return new f("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+s+"."))}return Array.isArray(t)?s(e):r.thatReturnsNull}function _(t){function e(e,n,r,o,i){if("function"!=typeof t)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],c=O(u);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an object."));for(var s in u)if(u.hasOwnProperty(s)){var l=t(u,s,r,o,i+"."+s,a);if(l instanceof Error)return l}return null}return s(e)}function b(t){function e(e,n,r,o,i){for(var u=0;u<t.length;u++){var c=t[u];if(null==c(e,n,r,o,i,a))return null}return new f("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(t))return r.thatReturnsNull;for(var n=0;n<t.length;n++){var o=t[n];if("function"!=typeof o)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",A(o),n),r.thatReturnsNull}return s(e)}function g(){function t(t,e,n,r,o){return m(t[e])?null:new f("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return s(t)}function j(t){function e(e,n,r,o,i){var u=e[n],c=O(u);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var s in t){var l=t[s];if(l){var p=l(u,s,r,o,i+"."+s,a);if(p)return p}}return null}return s(e)}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||t(e))return!0;var r=n(e);if(!r)return!1;var o,i=r.call(e);if(r!==e.entries){for(;!(o=i.next()).done;)if(!m(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!m(a[1]))return!1}return!0;default:return!1}}function w(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function O(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":w(e,t)?"symbol":e}function P(t){if("undefined"==typeof t||null===t)return""+t;var e=O(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function A(t){var e=P(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function E(t){return t.constructor&&t.constructor.name?t.constructor.name:T}var k="function"==typeof Symbol&&Symbol.iterator,x="@@iterator",T="<<anonymous>>",S={array:l("array"),bool:l("boolean"),func:l("function"),number:l("number"),object:l("object"),string:l("string"),symbol:l("symbol"),any:p(),arrayOf:h,element:d(),instanceOf:y,node:g(),objectOf:_,oneOf:v,oneOfType:b,shape:j};return f.prototype=Error.prototype,S.checkPropTypes=u,S.PropTypes=S,S}},{"./checkPropTypes":6,"./lib/ReactPropTypesSecret":10,"fbjs/lib/emptyFunction":1,"fbjs/lib/invariant":2,"fbjs/lib/warning":3}],9:[function(t,e,n){e.exports=t("./factoryWithThrowingShims")()},{"./factoryWithThrowingShims":7,"./factoryWithTypeCheckers":8}],10:[function(t,e,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},{}],11:[function(t,e,n){(function(e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)}Object.defineProperty(n,"__esModule",{value:!0}),n.Chart=n.defaults=n.Scatter=n.Bubble=n.Polar=n.Radar=n.HorizontalBar=n.Bar=n.Line=n.Pie=n.Doughnut=void 0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r);
}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s="undefined"!=typeof window?window.React:"undefined"!=typeof e?e.React:null,l=r(s),p=t("prop-types"),h=r(p),d="undefined"!=typeof window?window.Chart:"undefined"!=typeof e?e.Chart:null,y=r(d),v=t("lodash.isequal"),_=r(v),b=t("lodash.find"),g=r(b),j=function(t){function e(){var t,n,r,o;i(this,e);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),r.handleOnClick=function(t){var e=r.chart_instance,n=r.props,o=n.getDatasetAtEvent,i=n.getElementAtEvent,a=n.getElementsAtEvent,u=n.onElementsClick;o&&o(e.getDatasetAtEvent(t),t),i&&i(e.getElementAtEvent(t),t),a&&a(e.getElementsAtEvent(t),t),u&&u(e.getElementsAtEvent(t),t)},r.ref=function(t){r.element=t},o=n,a(r,o)}return u(e,t),f(e,[{key:"componentWillMount",value:function(){this.chart_instance=void 0}},{key:"componentDidMount",value:function(){this.renderChart()}},{key:"componentDidUpdate",value:function(){return this.props.redraw?(this.chart_instance.destroy(),void this.renderChart()):void this.updateChart()}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=(e.redraw,e.type),r=e.options,o=e.plugins,i=e.legend,a=e.height,u=e.width;if(t.redraw===!0)return!0;if(a!==t.height||u!==t.width)return!0;if(n!==t.type)return!0;if(!(0,_["default"])(i,t.legend))return!0;if(!(0,_["default"])(r,t.options))return!0;var c=this.transformDataProp(t);return!(0,_["default"])(this.shadowDataProp,c)||!(0,_["default"])(o,t.plugins)}},{key:"componentWillUnmount",value:function(){this.chart_instance.destroy()}},{key:"transformDataProp",value:function(t){var e=t.data;if("function"==typeof e){var n=this.element;return e(n)}return e}},{key:"memoizeDataProps",value:function(){if(this.props.data){var t=this.transformDataProp(this.props);return this.shadowDataProp=c({},t,{datasets:t.datasets&&t.datasets.map(function(t){return c({},t)})}),t}}},{key:"updateChart",value:function(){var t=this,e=this.props.options,n=this.memoizeDataProps(this.props);if(this.chart_instance){e&&(this.chart_instance.options=y["default"].helpers.configMerge(this.chart_instance.options,e));for(var r=this.chart_instance.config.data&&this.chart_instance.config.data.datasets||[],i=n.datasets||[],a=r.map(this.props.datasetKeyProvider),u=i.map(this.props.datasetKeyProvider),f=i.filter(function(e){return a.indexOf(t.props.datasetKeyProvider(e))===-1}),s=function(e){var n=t.props.datasetKeyProvider(r[e]);if(u.indexOf(n)===-1)r.splice(e,1);else{var a=(0,g["default"])(i,function(e){return t.props.datasetKeyProvider(e)===n});if(a){r[e].data.splice(a.data.length),a.data.forEach(function(t,n){r[e].data[n]=a.data[n]});var f=(a.data,o(a,["data"]));r[e]=c({data:r[e].data},r[e],f)}}},l=r.length-1;l>=0;l-=1)s(l);f.forEach(function(t){return r.push(t)});var p=(n.datasets,o(n,["datasets"]));this.chart_instance.config.data=c({},this.chart_instance.config.data,p),this.chart_instance.update()}}},{key:"renderChart",value:function(){var t=this.props,n=t.options,r=t.legend,o=t.type,i=(t.redraw,t.plugins),a=this.element,u=this.memoizeDataProps();"undefined"==typeof r||(0,_["default"])(e.defaultProps.legend,r)||(n.legend=r),this.chart_instance=new y["default"](a,{type:o,data:u,options:n,plugins:i})}},{key:"render",value:function(){var t=this.props,e=t.height,n=t.width;t.onElementsClick;return l["default"].createElement("canvas",{ref:this.ref,height:e,width:n,onClick:this.handleOnClick})}}]),e}(l["default"].Component);j.getLabelAsKey=function(t){return t.label},j.propTypes={data:h["default"].oneOfType([h["default"].object,h["default"].func]).isRequired,getDatasetAtEvent:h["default"].func,getElementAtEvent:h["default"].func,getElementsAtEvent:h["default"].func,height:h["default"].number,legend:h["default"].object,onElementsClick:h["default"].func,options:h["default"].object,plugins:h["default"].arrayOf(h["default"].object),redraw:h["default"].bool,type:function(t,e,n){if(!y["default"].controllers[t[e]])return new Error("Invalid chart type `"+t[e]+"` supplied to `"+n+"`.")},width:h["default"].number,datasetKeyProvider:h["default"].func},j.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:j.getLabelAsKey},n["default"]=j;n.Doughnut=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(j,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"doughnut"}))}}]),e}(l["default"].Component),n.Pie=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(j,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"pie"}))}}]),e}(l["default"].Component),n.Line=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(j,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"line"}))}}]),e}(l["default"].Component),n.Bar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(j,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"bar"}))}}]),e}(l["default"].Component),n.HorizontalBar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(j,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"horizontalBar"}))}}]),e}(l["default"].Component),n.Radar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(j,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"radar"}))}}]),e}(l["default"].Component),n.Polar=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(j,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"polarArea"}))}}]),e}(l["default"].Component),n.Bubble=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(j,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"bubble"}))}}]),e}(l["default"].Component),n.Scatter=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),f(e,[{key:"render",value:function(){var t=this;return l["default"].createElement(j,c({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"scatter"}))}}]),e}(l["default"].Component),n.defaults=y["default"].defaults;n.Chart=y["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"lodash.find":4,"lodash.isequal":5,"prop-types":9}]},{},[11])(11)});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("chart.js")):"function"==typeof define&&define.amd?define(["exports","react","chart.js"],e):e(t.ReactChartjs2={},t.React,t.Chart)}(this,function(t,e,r){"use strict";function n(t,e){return e={exports:{}},t(e,e.exports),e.exports}function o(t){return function(){return t}}e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;var i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=function(){};a.thatReturns=o,a.thatReturnsFalse=o(!1),a.thatReturnsTrue=o(!0),a.thatReturnsNull=o(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(t){return t};var u=a,c=function(t){};"production"!==process.env.NODE_ENV&&(c=function(t){if(void 0===t)throw Error("invariant requires an error message argument")});var s=function(t,e,r,n,o,i,a,u){if(c(e),!t){var s;if(void 0===e)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,n,o,i,a,u],p=0;(s=Error(e.replace(/%s/g,function(){return f[p++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}},f=u;if("production"!==process.env.NODE_ENV){var p=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;e>n;n++)r[n-1]=arguments[n];var o=0,i="Warning: "+t.replace(/%s/g,function(){return r[o++]});void 0!==console&&console.error(i);try{throw Error(i)}catch(t){}};f=function(t,e){if(void 0===e)throw Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;r>o;o++)n[o-2]=arguments[o];p.apply(void 0,[e].concat(n))}}}var l=f,h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";if("production"!==process.env.NODE_ENV)var d=s,y=l,v=h,_={};var b=function(t,e,r,n,o){if("production"!==process.env.NODE_ENV)for(var i in t)if(t.hasOwnProperty(i)){var a;try{d("function"==typeof t[i],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",n||"React class",r,i),a=t[i](e,i,n,r,null,v)}catch(t){a=t}if(y(!a||a instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,i,typeof a),a instanceof Error&&!(a.message in _)){_[a.message]=!0;var u=o?o():"";y(!1,"Failed %s type: %s%s",r,a.message,null!=u?u:"")}}},g=function(t,e){function r(t){var e=t&&(_&&t[_]||t[g]);if("function"==typeof e)return e}function n(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e}function o(t){this.message=t,this.stack=""}function i(t){function r(r,a,u,c,f,p,d){if(c=c||m,p=p||u,d!==h)if(e)s(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==process.env.NODE_ENV&&void 0!==console){var y=c+":"+u;!n[y]&&3>i&&(l(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",p,c),n[y]=!0,i++)}return null==a[u]?r?new o(null===a[u]?"The "+f+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`.":"The "+f+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:t(a,u,c,f,p)}if("production"!==process.env.NODE_ENV)var n={},i=0;var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function a(t){return i(function(e,r,n,i,a,u){var c=e[r];return p(c)!==t?new o("Invalid "+i+" `"+a+"` of type `"+d(c)+"` supplied to `"+n+"`, expected `"+t+"`."):null})}function c(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(c);if(null===e||t(e))return!0;var n=r(e);if(!n)return!1;var o,i=n.call(e);if(n!==e.entries){for(;!(o=i.next()).done;)if(!c(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!c(a[1]))return!1}return!0;default:return!1}}function f(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function p(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":f(e,t)?"symbol":e}function d(t){if(void 0===t||null===t)return""+t;var e=p(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function y(t){var e=d(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function v(t){return t.constructor&&t.constructor.name?t.constructor.name:m}var _="function"==typeof Symbol&&Symbol.iterator,g="@@iterator",m="<<anonymous>>",j={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:i(u.thatReturnsNull),arrayOf:function(t){return i(function(e,r,n,i,a){if("function"!=typeof t)return new o("Property `"+a+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var u=e[r];if(!Array.isArray(u))return new o("Invalid "+i+" `"+a+"` of type `"+p(u)+"` supplied to `"+n+"`, expected an array.");for(var c=0;u.length>c;c++){var s=t(u,c,n,i,a+"["+c+"]",h);if(s instanceof Error)return s}return null})},element:function(){return i(function(e,r,n,i,a){var u=e[r];return t(u)?null:new o("Invalid "+i+" `"+a+"` of type `"+p(u)+"` supplied to `"+n+"`, expected a single ReactElement.")})}(),instanceOf:function(t){return i(function(e,r,n,i,a){if(!(e[r]instanceof t)){var u=t.name||m;return new o("Invalid "+i+" `"+a+"` of type `"+v(e[r])+"` supplied to `"+n+"`, expected instance of `"+u+"`.")}return null})},node:function(){return i(function(t,e,r,n,i){return c(t[e])?null:new o("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})}(),objectOf:function(t){return i(function(e,r,n,i,a){if("function"!=typeof t)return new o("Property `"+a+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var u=e[r],c=p(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+n+"`, expected an object.");for(var s in u)if(u.hasOwnProperty(s)){var f=t(u,s,n,i,a+"."+s,h);if(f instanceof Error)return f}return null})},oneOf:function(t){return Array.isArray(t)?i(function(e,r,i,a,u){for(var c=e[r],s=0;t.length>s;s++)if(n(c,t[s]))return null;return new o("Invalid "+a+" `"+u+"` of value `"+c+"` supplied to `"+i+"`, expected one of "+JSON.stringify(t)+".")}):("production"!==process.env.NODE_ENV&&l(!1,"Invalid argument supplied to oneOf, expected an instance of array."),u.thatReturnsNull)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&l(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),u.thatReturnsNull;for(var e=0;t.length>e;e++){var r=t[e];if("function"!=typeof r)return l(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",y(r),e),u.thatReturnsNull}return i(function(e,r,n,i,a){for(var u=0;t.length>u;u++)if(null==(0,t[u])(e,r,n,i,a,h))return null;return new o("Invalid "+i+" `"+a+"` supplied to `"+n+"`.")})},shape:function(t){return i(function(e,r,n,i,a){var u=e[r],c=p(u);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");for(var s in t){var f=t[s];if(f){var l=f(u,s,n,i,a+"."+s,h);if(l)return l}}return null})}};return o.prototype=Error.prototype,j.checkPropTypes=b,j.PropTypes=j,j},m=function(){function t(t,e,r,n,o,i){i!==h&&s(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return r.checkPropTypes=u,r.PropTypes=r,r},j=n(function(t){if("production"!==process.env.NODE_ENV){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=g(function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},!0)}else t.exports=m()}),w=n(function(t,e){function r(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}function n(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function o(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function a(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function u(t,e){return t.has(e)}function c(t,e){return null==t?void 0:t[e]}function s(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function f(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function p(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function h(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function d(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new h;++e<r;)this.add(t[e])}function y(t){var e=this.__data__=new l(t);this.size=e.size}function v(t,e){var r=se(t),n=!r&&ce(t),o=!r&&!n&&fe(t),i=!r&&!n&&!o&&pe(t),u=r||n||o||i,c=u?a(t.length,String):[],s=c.length;for(var f in t)!e&&!Dt.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||C(f,s))||c.push(f);return c}function _(t,e){for(var r=t.length;r--;)if(M(t[r][0],e))return r;return-1}function b(t,e,r){var o=e(t);return se(t)?o:n(o,r(t))}function g(t){return null==t?void 0===t?ht:at:Bt&&Bt in Object(t)?R(t):I(t)}function m(t){return B(t)&&g(t)==J}function j(t,e,r,n,o){return t===e||(null==t||null==e||!B(t)&&!B(e)?t!==t&&e!==e:w(t,e,r,n,j,o))}function w(t,e,r,n,o,i){var a=se(t),u=se(e),c=a?Q:ue(t),s=u?Q:ue(e),f=(c=c==J?ut:c)==ut,p=(s=s==J?ut:s)==ut,l=c==s;if(l&&fe(t)){if(!fe(e))return!1;a=!0,f=!1}if(l&&!f)return i||(i=new y),a||pe(t)?A(t,e,r,n,o,i):P(t,e,c,r,n,o,i);if(!(r&Y)){var h=f&&Dt.call(t,"__wrapped__"),d=p&&Dt.call(e,"__wrapped__");if(h||d){var v=h?t.value():t,_=d?e.value():e;return i||(i=new y),o(v,_,r,n,i)}}return!!l&&(i||(i=new y),x(t,e,r,n,o,i))}function O(t){return!(!V(t)||D(t))&&(U(t)?$t:_t).test($(t))}function E(t){if(!N(t))return Kt(t);var e=[];for(var r in Object(t))Dt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function A(t,e,r,n,i,a){var c=r&Y,s=t.length,f=e.length;if(!(s==f||c&&f>s))return!1;var p=a.get(t);if(p&&a.get(e))return p==e;var l=-1,h=!0,y=r&G?new d:void 0;for(a.set(t,e),a.set(e,t);++l<s;){var v=t[l],_=e[l];if(n)var b=c?n(_,v,l,e,t,a):n(v,_,l,t,e,a);if(void 0!==b){if(b)continue;h=!1;break}if(y){if(!o(e,function(t,e){if(!u(y,e)&&(v===t||i(v,t,r,n,a)))return y.push(e)})){h=!1;break}}else if(v!==_&&!i(v,_,r,n,a)){h=!1;break}}return a.delete(t),a.delete(e),h}function P(t,e,r,n,o,i,a){switch(r){case yt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case dt:return!(t.byteLength!=e.byteLength||!i(new Ut(t),new Ut(e)));case Z:case tt:case it:return M(+t,+e);case et:return t.name==e.name&&t.message==e.message;case st:case pt:return t==e+"";case ot:var u=s;case ft:var c=n&Y;if(u||(u=f),t.size!=e.size&&!c)return!1;var p=a.get(t);if(p)return p==e;n|=G,a.set(t,e);var l=A(u(t),u(e),n,o,i,a);return a.delete(t),l;case lt:if(ie)return ie.call(t)==ie.call(e)}return!1}function x(t,e,r,n,o,i){var a=r&Y,u=T(t),c=u.length;if(c!=T(e).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in e:Dt.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var l=!0;i.set(t,e),i.set(e,t);for(var h=a;++s<c;){var d=t[f=u[s]],y=e[f];if(n)var v=a?n(y,d,f,e,t,i):n(d,y,f,t,e,i);if(!(void 0===v?d===y||o(d,y,r,n,i):v)){l=!1;break}h||(h="constructor"==f)}if(l&&!h){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(l=!1)}return i.delete(t),i.delete(e),l}function T(t){return b(t,W,ae)}function k(t,e){var r=t.__data__;return z(e)?r["string"==typeof e?"string":"hash"]:r.map}function S(t,e){var r=c(t,e);return O(r)?r:void 0}function R(t){var e=Dt.call(t,Bt),r=t[Bt];try{t[Bt]=void 0;var n=!0}catch(t){}var o=It.call(t);return n&&(e?t[Bt]=r:delete t[Bt]),o}function C(t,e){return!!(e=null==e?H:e)&&("number"==typeof t||bt.test(t))&&t>-1&&t%1==0&&e>t}function z(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function D(t){return!!Nt&&Nt in t}function N(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Rt)}function I(t){return It.call(t)}function $(t){if(null!=t){try{return zt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function M(t,e){return t===e||t!==t&&e!==e}function F(t){return null!=t&&L(t.length)&&!U(t)}function U(t){if(!V(t))return!1;var e=g(t);return e==rt||e==nt||e==X||e==ct}function L(t){return"number"==typeof t&&t>-1&&t%1==0&&H>=t}function V(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function B(t){return null!=t&&"object"==typeof t}function W(t){return F(t)?v(t):E(t)}var q=200,K="__lodash_hash_undefined__",Y=1,G=2,H=9007199254740991,J="[object Arguments]",Q="[object Array]",X="[object AsyncFunction]",Z="[object Boolean]",tt="[object Date]",et="[object Error]",rt="[object Function]",nt="[object GeneratorFunction]",ot="[object Map]",it="[object Number]",at="[object Null]",ut="[object Object]",ct="[object Proxy]",st="[object RegExp]",ft="[object Set]",pt="[object String]",lt="[object Symbol]",ht="[object Undefined]",dt="[object ArrayBuffer]",yt="[object DataView]",vt=/[\\^$.*+?()[\]{}|]/g,_t=/^\[object .+?Constructor\]$/,bt=/^(?:0|[1-9]\d*)$/,gt={};gt["[object Float32Array]"]=gt["[object Float64Array]"]=gt["[object Int8Array]"]=gt["[object Int16Array]"]=gt["[object Int32Array]"]=gt["[object Uint8Array]"]=gt["[object Uint8ClampedArray]"]=gt["[object Uint16Array]"]=gt["[object Uint32Array]"]=!0,gt[J]=gt[Q]=gt[dt]=gt[Z]=gt[yt]=gt[tt]=gt[et]=gt[rt]=gt[ot]=gt[it]=gt[ut]=gt[st]=gt[ft]=gt[pt]=gt["[object WeakMap]"]=!1;var mt="object"==typeof i&&i&&i.Object===Object&&i,jt="object"==typeof self&&self&&self.Object===Object&&self,wt=mt||jt||Function("return this")(),Ot=e&&!e.nodeType&&e,Et=Ot&&!0&&t&&!t.nodeType&&t,At=Et&&Et.exports===Ot,Pt=At&&mt.process,xt=function(){try{return Pt&&Pt.binding&&Pt.binding("util")}catch(t){}}(),Tt=xt&&xt.isTypedArray,kt=Array.prototype,St=Function.prototype,Rt=Object.prototype,Ct=wt["__core-js_shared__"],zt=St.toString,Dt=Rt.hasOwnProperty,Nt=function(){var t=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),It=Rt.toString,$t=RegExp("^"+zt.call(Dt).replace(vt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mt=At?wt.Buffer:void 0,Ft=wt.Symbol,Ut=wt.Uint8Array,Lt=Rt.propertyIsEnumerable,Vt=kt.splice,Bt=Ft?Ft.toStringTag:void 0,Wt=Object.getOwnPropertySymbols,qt=Mt?Mt.isBuffer:void 0,Kt=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),Yt=S(wt,"DataView"),Gt=S(wt,"Map"),Ht=S(wt,"Promise"),Jt=S(wt,"Set"),Qt=S(wt,"WeakMap"),Xt=S(Object,"create"),Zt=$(Yt),te=$(Gt),ee=$(Ht),re=$(Jt),ne=$(Qt),oe=Ft?Ft.prototype:void 0,ie=oe?oe.valueOf:void 0;p.prototype.clear=function(){this.__data__=Xt?Xt(null):{},this.size=0},p.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},p.prototype.get=function(t){var e=this.__data__;if(Xt){var r=e[t];return r===K?void 0:r}return Dt.call(e,t)?e[t]:void 0},p.prototype.has=function(t){var e=this.__data__;return Xt?void 0!==e[t]:Dt.call(e,t)},p.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Xt&&void 0===e?K:e,this},l.prototype.clear=function(){this.__data__=[],this.size=0},l.prototype.delete=function(t){var e=this.__data__,r=_(e,t);return r>=0&&(r==e.length-1?e.pop():Vt.call(e,r,1),--this.size,!0)},l.prototype.get=function(t){var e=this.__data__,r=_(e,t);return 0>r?void 0:e[r][1]},l.prototype.has=function(t){return _(this.__data__,t)>-1},l.prototype.set=function(t,e){var r=this.__data__,n=_(r,t);return 0>n?(++this.size,r.push([t,e])):r[n][1]=e,this},h.prototype.clear=function(){this.size=0,this.__data__={hash:new p,map:new(Gt||l),string:new p}},h.prototype.delete=function(t){var e=k(this,t).delete(t);return this.size-=e?1:0,e},h.prototype.get=function(t){return k(this,t).get(t)},h.prototype.has=function(t){return k(this,t).has(t)},h.prototype.set=function(t,e){var r=k(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},d.prototype.add=d.prototype.push=function(t){return this.__data__.set(t,K),this},d.prototype.has=function(t){return this.__data__.has(t)},y.prototype.clear=function(){this.__data__=new l,this.size=0},y.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},y.prototype.get=function(t){return this.__data__.get(t)},y.prototype.has=function(t){return this.__data__.has(t)},y.prototype.set=function(t,e){var r=this.__data__;if(r instanceof l){var n=r.__data__;if(!Gt||q-1>n.length)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new h(n)}return r.set(t,e),this.size=r.size,this};var ae=Wt?function(t){return null==t?[]:(t=Object(t),r(Wt(t),function(e){return Lt.call(t,e)}))}:function(){return[]},ue=g;(Yt&&ue(new Yt(new ArrayBuffer(1)))!=yt||Gt&&ue(new Gt)!=ot||Ht&&"[object Promise]"!=ue(Ht.resolve())||Jt&&ue(new Jt)!=ft||Qt&&"[object WeakMap]"!=ue(new Qt))&&(ue=function(t){var e=g(t),r=e==ut?t.constructor:void 0,n=r?$(r):"";if(n)switch(n){case Zt:return yt;case te:return ot;case ee:return"[object Promise]";case re:return ft;case ne:return"[object WeakMap]"}return e});var ce=m(function(){return arguments}())?m:function(t){return B(t)&&Dt.call(t,"callee")&&!Lt.call(t,"callee")},se=Array.isArray,fe=qt||function(){return!1},pe=Tt?function(t){return function(e){return t(e)}}(Tt):function(t){return B(t)&&L(t.length)&&!!gt[g(t)]};t.exports=function(t,e){return j(t,e)}}),O=n(function(t,e){function r(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function n(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function o(t){return function(e){return null==e?void 0:e[t]}}function a(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function u(t,e){return null==t?void 0:t[e]}function c(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function s(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function f(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function p(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function l(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function h(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function d(t){var e=-1,r=t?t.length:0;for(this.__data__=new h;++e<r;)this.add(t[e])}function y(t){this.__data__=new l(t)}function v(t,e){var r=$e(t)||H(t)?a(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!pe.call(t,i)||o&&("length"==i||M(i,n))||r.push(i);return r}function _(t,e){for(var r=t.length;r--;)if(G(t[r][0],e))return r;return-1}function b(t,e){for(var r=0,n=(e=F(e,t)?[e]:S(e)).length;null!=t&&n>r;)t=t[q(e[r++])];return r&&r==n?t:void 0}function g(t,e){return null!=t&&e in Object(t)}function m(t,e,r,n,o){return t===e||(null==t||null==e||!tt(t)&&!et(e)?t!==t&&e!==e:j(t,e,m,r,n,o))}function j(t,e,r,n,o,i){var a=$e(t),u=$e(e),s=wt,f=wt;a||(s=(s=De(t))==jt?St:s),u||(f=(f=De(e))==jt?St:f);var p=s==St&&!c(t),l=f==St&&!c(e),h=s==f;if(h&&!p)return i||(i=new y),a||Me(t)?R(t,e,r,n,o,i):C(t,e,s,r,n,o,i);if(!(o&vt)){var d=p&&pe.call(t,"__wrapped__"),v=l&&pe.call(e,"__wrapped__");if(d||v){var _=d?t.value():t,b=v?e.value():e;return i||(i=new y),r(_,b,n,o,i)}}return!!h&&(i||(i=new y),z(t,e,r,n,o,i))}function w(t,e,r,n){var o=r.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var u=r[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){var c=(u=r[o])[0],s=t[c],f=u[1];if(a&&u[2]){if(void 0===s&&!(c in t))return!1}else{var p=new y;if(n)var l=n(s,f,c,t,e,p);if(!(void 0===l?m(f,s,n,yt|vt,p):l))return!1}}return!0}function O(t){return!(!tt(t)||L(t))&&(X(t)||c(t)?he:Kt).test(K(t))}function E(t){return"function"==typeof t?t:null==t?ft:"object"==typeof t?$e(t)?x(t[0],t[1]):P(t):pt(t)}function A(t){if(!V(t))return be(t);var e=[];for(var r in Object(t))pe.call(t,r)&&"constructor"!=r&&e.push(r);return e}function P(t){var e=N(t);return 1==e.length&&e[0][2]?W(e[0][0],e[0][1]):function(r){return r===t||w(r,t,e)}}function x(t,e){return F(t)&&B(e)?W(q(t),e):function(r){var n=ut(r,t);return void 0===n&&n===e?ct(r,t):m(e,n,void 0,yt|vt)}}function T(t){return function(e){return b(e,t)}}function k(t){if("string"==typeof t)return t;if(rt(t))return ze?ze.call(t):"";var e=t+"";return"0"==e&&1/t==-_t?"-0":e}function S(t){return $e(t)?t:Ne(t)}function R(t,e,n,o,i,a){var u=i&vt,c=t.length,s=e.length;if(!(c==s||u&&s>c))return!1;var f=a.get(t);if(f&&a.get(e))return f==e;var p=-1,l=!0,h=i&yt?new d:void 0;for(a.set(t,e),a.set(e,t);++p<c;){var y=t[p],v=e[p];if(o)var _=u?o(v,y,p,e,t,a):o(y,v,p,t,e,a);if(void 0!==_){if(_)continue;l=!1;break}if(h){if(!r(e,function(t,e){if(!h.has(e)&&(y===t||n(y,t,o,i,a)))return h.add(e)})){l=!1;break}}else if(y!==v&&!n(y,v,o,i,a)){l=!1;break}}return a.delete(t),a.delete(e),l}function C(t,e,r,n,o,i,a){switch(r){case It:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Nt:return!(t.byteLength!=e.byteLength||!n(new ye(t),new ye(e)));case Ot:case Et:case kt:return G(+t,+e);case At:return t.name==e.name&&t.message==e.message;case Rt:case zt:return t==e+"";case Tt:var u=s;case Ct:var c=i&vt;if(u||(u=f),t.size!=e.size&&!c)return!1;var p=a.get(t);if(p)return p==e;i|=yt,a.set(t,e);var l=R(u(t),u(e),n,o,i,a);return a.delete(t),l;case Dt:if(Ce)return Ce.call(t)==Ce.call(e)}return!1}function z(t,e,r,n,o,i){var a=o&vt,u=st(t),c=u.length;if(c!=st(e).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in e:pe.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var l=!0;i.set(t,e),i.set(e,t);for(var h=a;++s<c;){var d=t[f=u[s]],y=e[f];if(n)var v=a?n(y,d,f,e,t,i):n(d,y,f,t,e,i);if(!(void 0===v?d===y||r(d,y,n,o,i):v)){l=!1;break}h||(h="constructor"==f)}if(l&&!h){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(l=!1)}return i.delete(t),i.delete(e),l}function D(t,e){var r=t.__data__;return U(e)?r["string"==typeof e?"string":"hash"]:r.map}function N(t){for(var e=st(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,B(o)]}return e}function I(t,e){var r=u(t,e);return O(r)?r:void 0}function $(t,e,r){for(var n,o=-1,i=(e=F(e,t)?[e]:S(e)).length;++o<i;){var a=q(e[o]);if(!(n=null!=t&&r(t,a)))break;t=t[a]}return n||!!(i=t?t.length:0)&&Z(i)&&M(a,i)&&($e(t)||H(t))}function M(t,e){return!!(e=null==e?bt:e)&&("number"==typeof t||Gt.test(t))&&t>-1&&t%1==0&&e>t}function F(t,e){if($e(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!rt(t))||(Mt.test(t)||!$t.test(t)||null!=e&&t in Object(e))}function U(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function L(t){return!!se&&se in t}function V(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ue)}function B(t){return t===t&&!tt(t)}function W(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}function q(t){if("string"==typeof t||rt(t))return t;var e=t+"";return"0"==e&&1/t==-_t?"-0":e}function K(t){if(null!=t){try{return fe.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Y(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(ht);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(Y.Cache||h),r}function G(t,e){return t===e||t!==t&&e!==e}function H(t){return Q(t)&&pe.call(t,"callee")&&(!ve.call(t,"callee")||le.call(t)==jt)}function J(t){return null!=t&&Z(t.length)&&!X(t)}function Q(t){return et(t)&&J(t)}function X(t){var e=tt(t)?le.call(t):"";return e==Pt||e==xt}function Z(t){return"number"==typeof t&&t>-1&&t%1==0&&bt>=t}function tt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function et(t){return!!t&&"object"==typeof t}function rt(t){return"symbol"==typeof t||et(t)&&le.call(t)==Dt}function nt(t){return t?(t=it(t))===_t||t===-_t?(0>t?-1:1)*gt:t===t?t:0:0===t?t:0}function ot(t){var e=nt(t),r=e%1;return e===e?r?e-r:e:0}function it(t){if("number"==typeof t)return t;if(rt(t))return mt;if(tt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=tt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Vt,"");var r=qt.test(t);return r||Yt.test(t)?Jt(t.slice(2),r?2:8):Wt.test(t)?mt:+t}function at(t){return null==t?"":k(t)}function ut(t,e,r){var n=null==t?void 0:b(t,e);return void 0===n?r:n}function ct(t,e){return null!=t&&$(t,e,g)}function st(t){return J(t)?v(t):A(t)}function ft(t){return t}function pt(t){return F(t)?o(q(t)):T(t)}var lt=200,ht="Expected a function",dt="__lodash_hash_undefined__",yt=1,vt=2,_t=1/0,bt=9007199254740991,gt=1.7976931348623157e308,mt=NaN,jt="[object Arguments]",wt="[object Array]",Ot="[object Boolean]",Et="[object Date]",At="[object Error]",Pt="[object Function]",xt="[object GeneratorFunction]",Tt="[object Map]",kt="[object Number]",St="[object Object]",Rt="[object RegExp]",Ct="[object Set]",zt="[object String]",Dt="[object Symbol]",Nt="[object ArrayBuffer]",It="[object DataView]",$t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mt=/^\w*$/,Ft=/^\./,Ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lt=/[\\^$.*+?()[\]{}|]/g,Vt=/^\s+|\s+$/g,Bt=/\\(\\)?/g,Wt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Kt=/^\[object .+?Constructor\]$/,Yt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,Ht={};Ht["[object Float32Array]"]=Ht["[object Float64Array]"]=Ht["[object Int8Array]"]=Ht["[object Int16Array]"]=Ht["[object Int32Array]"]=Ht["[object Uint8Array]"]=Ht["[object Uint8ClampedArray]"]=Ht["[object Uint16Array]"]=Ht["[object Uint32Array]"]=!0,Ht[jt]=Ht[wt]=Ht[Nt]=Ht[Ot]=Ht[It]=Ht[Et]=Ht[At]=Ht[Pt]=Ht[Tt]=Ht[kt]=Ht[St]=Ht[Rt]=Ht[Ct]=Ht[zt]=Ht["[object WeakMap]"]=!1;var Jt=parseInt,Qt="object"==typeof i&&i&&i.Object===Object&&i,Xt="object"==typeof self&&self&&self.Object===Object&&self,Zt=Qt||Xt||Function("return this")(),te=e&&!e.nodeType&&e,ee=te&&!0&&t&&!t.nodeType&&t,re=ee&&ee.exports===te&&Qt.process,ne=function(){try{return re&&re.binding("util")}catch(t){}}(),oe=ne&&ne.isTypedArray,ie=Array.prototype,ae=Function.prototype,ue=Object.prototype,ce=Zt["__core-js_shared__"],se=function(){var t=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),fe=ae.toString,pe=ue.hasOwnProperty,le=ue.toString,he=RegExp("^"+fe.call(pe).replace(Lt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=Zt.Symbol,ye=Zt.Uint8Array,ve=ue.propertyIsEnumerable,_e=ie.splice,be=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),ge=Math.max,me=I(Zt,"DataView"),je=I(Zt,"Map"),we=I(Zt,"Promise"),Oe=I(Zt,"Set"),Ee=I(Zt,"WeakMap"),Ae=I(Object,"create"),Pe=K(me),xe=K(je),Te=K(we),ke=K(Oe),Se=K(Ee),Re=de?de.prototype:void 0,Ce=Re?Re.valueOf:void 0,ze=Re?Re.toString:void 0;p.prototype.clear=function(){this.__data__=Ae?Ae(null):{}},p.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},p.prototype.get=function(t){var e=this.__data__;if(Ae){var r=e[t];return r===dt?void 0:r}return pe.call(e,t)?e[t]:void 0},p.prototype.has=function(t){var e=this.__data__;return Ae?void 0!==e[t]:pe.call(e,t)},p.prototype.set=function(t,e){return this.__data__[t]=Ae&&void 0===e?dt:e,this},l.prototype.clear=function(){this.__data__=[]},l.prototype.delete=function(t){var e=this.__data__,r=_(e,t);return r>=0&&(r==e.length-1?e.pop():_e.call(e,r,1),!0)},l.prototype.get=function(t){var e=this.__data__,r=_(e,t);return 0>r?void 0:e[r][1]},l.prototype.has=function(t){return _(this.__data__,t)>-1},l.prototype.set=function(t,e){var r=this.__data__,n=_(r,t);return 0>n?r.push([t,e]):r[n][1]=e,this},h.prototype.clear=function(){this.__data__={hash:new p,map:new(je||l),string:new p}},h.prototype.delete=function(t){return D(this,t).delete(t)},h.prototype.get=function(t){return D(this,t).get(t)},h.prototype.has=function(t){return D(this,t).has(t)},h.prototype.set=function(t,e){return D(this,t).set(t,e),this},d.prototype.add=d.prototype.push=function(t){return this.__data__.set(t,dt),this},d.prototype.has=function(t){return this.__data__.has(t)},y.prototype.clear=function(){this.__data__=new l},y.prototype.delete=function(t){return this.__data__.delete(t)},y.prototype.get=function(t){return this.__data__.get(t)},y.prototype.has=function(t){return this.__data__.has(t)},y.prototype.set=function(t,e){var r=this.__data__;if(r instanceof l){var n=r.__data__;if(!je||lt-1>n.length)return n.push([t,e]),this;r=this.__data__=new h(n)}return r.set(t,e),this};var De=function(t){return le.call(t)};(me&&De(new me(new ArrayBuffer(1)))!=It||je&&De(new je)!=Tt||we&&"[object Promise]"!=De(we.resolve())||Oe&&De(new Oe)!=Ct||Ee&&"[object WeakMap]"!=De(new Ee))&&(De=function(t){var e=le.call(t),r=e==St?t.constructor:void 0,n=r?K(r):void 0;if(n)switch(n){case Pe:return It;case xe:return Tt;case Te:return"[object Promise]";case ke:return Ct;case Se:return"[object WeakMap]"}return e});var Ne=Y(function(t){t=at(t);var e=[];return Ft.test(t)&&e.push(""),t.replace(Ut,function(t,r,n,o){e.push(n?o.replace(Bt,"$1"):r||t)}),e}),Ie=function(t){return function(e,r,n){var o=Object(e);if(!J(e)){var i=E(r,3);e=st(e),r=function(t){return i(o[t],t,o)}}var a=t(e,r,n);return a>-1?o[i?e[a]:a]:void 0}}(function(t,e,r){var o=t?t.length:0;if(!o)return-1;var i=null==r?0:ot(r);return 0>i&&(i=ge(o+i,0)),n(t,E(e,3),i)});Y.Cache=h;var $e=Array.isArray,Me=oe?function(t){return function(e){return t(e)}}(oe):function(t){return et(t)&&Z(t.length)&&!!Ht[le.call(t)]};t.exports=Ie}),E=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},A=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},P=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);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)},x=function(t,e){var r={};for(var n in t)0>e.indexOf(n)&&Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r},T=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},k=function(t){function n(){var e,r,o;E(this,n);for(var i=arguments.length,a=Array(i),u=0;i>u;u++)a[u]=arguments[u];return e=r=T(this,t.call.apply(t,[this].concat(a))),r.handleOnClick=function(t){var e=r.chart_instance,n=r.props,o=n.getDatasetAtEvent,i=n.getElementAtEvent,a=n.getElementsAtEvent,u=n.onElementsClick;o&&o(e.getDatasetAtEvent(t),t),i&&i(e.getElementAtEvent(t),t),a&&a(e.getElementsAtEvent(t),t),u&&u(e.getElementsAtEvent(t),t)},r.ref=function(t){r.element=t},o=e,T(r,o)}return P(n,t),n.prototype.componentWillMount=function(){this.chart_instance=void 0},n.prototype.componentDidMount=function(){this.renderChart()},n.prototype.componentDidUpdate=function(){if(this.props.redraw)return this.chart_instance.destroy(),void this.renderChart();this.updateChart()},n.prototype.shouldComponentUpdate=function(t){var e=this.props,r=e.type,n=e.options,o=e.plugins,i=e.legend,a=e.height,u=e.width;if(!0===t.redraw)return!0;if(a!==t.height||u!==t.width)return!0;if(r!==t.type)return!0;if(!w(i,t.legend))return!0;if(!w(n,t.options))return!0;var c=this.transformDataProp(t);return!w(this.shadowDataProp,c)||!w(o,t.plugins)},n.prototype.componentWillUnmount=function(){this.chart_instance.destroy()},n.prototype.transformDataProp=function(t){var e=t.data;return"function"==typeof e?e(this.element):e},n.prototype.memoizeDataProps=function(){if(this.props.data){var t=this.transformDataProp(this.props);return this.shadowDataProp=A({},t,{datasets:t.datasets&&t.datasets.map(function(t){return A({},t)})}),t}},n.prototype.updateChart=function(){var t=this,e=this.props.options,n=this.memoizeDataProps(this.props);if(this.chart_instance){e&&(this.chart_instance.options=r.helpers.configMerge(this.chart_instance.options,e));for(var o=this.chart_instance.config.data&&this.chart_instance.config.data.datasets||[],i=n.datasets||[],a=o.map(this.props.datasetKeyProvider),u=i.map(this.props.datasetKeyProvider),c=i.filter(function(e){return-1===a.indexOf(t.props.datasetKeyProvider(e))}),s=o.length-1;s>=0;s-=1)!function(e){var r=t.props.datasetKeyProvider(o[e]);if(-1===u.indexOf(r))o.splice(e,1);else{var n=O(i,function(e){return t.props.datasetKeyProvider(e)===r});if(n){o[e].data.splice(n.data.length),n.data.forEach(function(t,r){o[e].data[r]=n.data[r]});var a=x(n,["data"]);o[e]=A({data:o[e].data},o[e],a)}}}(s);c.forEach(function(t){return o.push(t)});var f=x(n,["datasets"]);this.chart_instance.config.data=A({},this.chart_instance.config.data,f),this.chart_instance.update()}},n.prototype.renderChart=function(){var t=this.props,e=t.options,o=t.legend,i=t.type,a=t.plugins,u=this.element,c=this.memoizeDataProps();void 0===o||w(n.defaultProps.legend,o)||(e.legend=o),this.chart_instance=new r(u,{type:i,data:c,options:e,plugins:a})},n.prototype.render=function(){var t=this.props,r=t.height,n=t.width;return e.createElement("canvas",{ref:this.ref,height:r,width:n,onClick:this.handleOnClick})},n}(e.Component);k.getLabelAsKey=function(t){return t.label},k.propTypes={data:j.oneOfType([j.object,j.func]).isRequired,getDatasetAtEvent:j.func,getElementAtEvent:j.func,getElementsAtEvent:j.func,height:j.number,legend:j.object,onElementsClick:j.func,options:j.object,plugins:j.arrayOf(j.object),redraw:j.bool,type:function(t,e,n){if(!r.controllers[t[e]])return Error("Invalid chart type `"+t[e]+"` supplied to `"+n+"`.")},width:j.number,datasetKeyProvider:j.func},k.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:k.getLabelAsKey};var S=function(t){function r(){return E(this,r),T(this,t.apply(this,arguments))}return P(r,t),r.prototype.render=function(){var t=this;return e.createElement(k,A({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"doughnut"}))},r}(e.Component),R=function(t){function r(){return E(this,r),T(this,t.apply(this,arguments))}return P(r,t),r.prototype.render=function(){var t=this;return e.createElement(k,A({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"pie"}))},r}(e.Component),C=function(t){function r(){return E(this,r),T(this,t.apply(this,arguments))}return P(r,t),r.prototype.render=function(){var t=this;return e.createElement(k,A({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"line"}))},r}(e.Component),z=function(t){function r(){return E(this,r),T(this,t.apply(this,arguments))}return P(r,t),r.prototype.render=function(){var t=this;return e.createElement(k,A({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"bar"}))},r}(e.Component),D=function(t){function r(){return E(this,r),T(this,t.apply(this,arguments))}return P(r,t),r.prototype.render=function(){var t=this;return e.createElement(k,A({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"horizontalBar"}))},r}(e.Component),N=function(t){function r(){return E(this,r),T(this,t.apply(this,arguments))}return P(r,t),r.prototype.render=function(){var t=this;return e.createElement(k,A({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"radar"}))},r}(e.Component),I=function(t){function r(){return E(this,r),T(this,t.apply(this,arguments))}return P(r,t),r.prototype.render=function(){var t=this;return e.createElement(k,A({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"polarArea"}))},r}(e.Component),$=function(t){function r(){return E(this,r),T(this,t.apply(this,arguments))}return P(r,t),r.prototype.render=function(){var t=this;return e.createElement(k,A({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"bubble"}))},r}(e.Component),M=function(t){function r(){return E(this,r),T(this,t.apply(this,arguments))}return P(r,t),r.prototype.render=function(){var t=this;return e.createElement(k,A({},this.props,{ref:function(e){return t.chart_instance=e&&e.chart_instance},type:"scatter"}))},r}(e.Component),F=r.defaults;t.default=k,t.Doughnut=S,t.Pie=R,t.Line=C,t.Bar=z,t.HorizontalBar=D,t.Radar=N,t.Polar=I,t.Bubble=$,t.Scatter=M,t.defaults=F,t.Chart=r,Object.defineProperty(t,"__esModule",{value:!0})});
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.Chart = exports.defaults = exports.Scatter = exports.Bubble = exports.Polar = exports.Radar = exports.HorizontalBar = exports.Bar = exports.Line = exports.Pie = exports.Doughnut = undefined;

@@ -10,4 +8,2 @@

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = require('react');

@@ -47,4 +43,2 @@

function ChartComponent() {
var _ref;
var _temp, _this, _ret;

@@ -58,3 +52,3 @@

return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ChartComponent.__proto__ || Object.getPrototypeOf(ChartComponent)).call.apply(_ref, [this].concat(args))), _this), _this.handleOnClick = function (event) {
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleOnClick = function (event) {
var instance = _this.chart_instance;

@@ -78,217 +72,205 @@

_createClass(ChartComponent, [{
key: 'componentWillMount',
value: function componentWillMount() {
this.chart_instance = undefined;
}
}, {
key: 'componentDidMount',
value: function componentDidMount() {
ChartComponent.prototype.componentWillMount = function componentWillMount() {
this.chart_instance = undefined;
};
ChartComponent.prototype.componentDidMount = function componentDidMount() {
this.renderChart();
};
ChartComponent.prototype.componentDidUpdate = function componentDidUpdate() {
if (this.props.redraw) {
this.chart_instance.destroy();
this.renderChart();
return;
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.props.redraw) {
this.chart_instance.destroy();
this.renderChart();
return;
}
this.updateChart();
this.updateChart();
};
ChartComponent.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {
var _props = this.props,
redraw = _props.redraw,
type = _props.type,
options = _props.options,
plugins = _props.plugins,
legend = _props.legend,
height = _props.height,
width = _props.width;
if (nextProps.redraw === true) {
return true;
}
}, {
key: 'shouldComponentUpdate',
value: function shouldComponentUpdate(nextProps) {
var _props = this.props,
redraw = _props.redraw,
type = _props.type,
options = _props.options,
plugins = _props.plugins,
legend = _props.legend,
height = _props.height,
width = _props.width;
if (height !== nextProps.height || width !== nextProps.width) {
return true;
}
if (nextProps.redraw === true) {
return true;
}
if (type !== nextProps.type) {
return true;
}
if (height !== nextProps.height || width !== nextProps.width) {
return true;
}
if (!(0, _lodash2.default)(legend, nextProps.legend)) {
return true;
}
if (type !== nextProps.type) {
return true;
}
if (!(0, _lodash2.default)(options, nextProps.options)) {
return true;
}
if (!(0, _lodash2.default)(legend, nextProps.legend)) {
return true;
}
var nextData = this.transformDataProp(nextProps);
if (!(0, _lodash2.default)(options, nextProps.options)) {
return true;
}
if (!(0, _lodash2.default)(this.shadowDataProp, nextData)) {
return true;
}
var nextData = this.transformDataProp(nextProps);
return !(0, _lodash2.default)(plugins, nextProps.plugins);
};
if (!(0, _lodash2.default)(this.shadowDataProp, nextData)) {
return true;
}
ChartComponent.prototype.componentWillUnmount = function componentWillUnmount() {
this.chart_instance.destroy();
};
return !(0, _lodash2.default)(plugins, nextProps.plugins);
ChartComponent.prototype.transformDataProp = function transformDataProp(props) {
var data = props.data;
if (typeof data == 'function') {
var node = this.element;
return data(node);
} else {
return data;
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.chart_instance.destroy();
}
}, {
key: 'transformDataProp',
value: function transformDataProp(props) {
var data = props.data;
};
if (typeof data == 'function') {
var node = this.element;
return data(node);
} else {
return data;
}
// Chart.js directly mutates the data.dataset objects by adding _meta proprerty
// this makes impossible to compare the current and next data changes
// therefore we memoize the data prop while sending a fake to Chart.js for mutation.
// see https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L615-L617
ChartComponent.prototype.memoizeDataProps = function memoizeDataProps() {
if (!this.props.data) {
return;
}
// Chart.js directly mutates the data.dataset objects by adding _meta proprerty
// this makes impossible to compare the current and next data changes
// therefore we memoize the data prop while sending a fake to Chart.js for mutation.
// see https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L615-L617
var data = this.transformDataProp(this.props);
}, {
key: 'memoizeDataProps',
value: function memoizeDataProps() {
if (!this.props.data) {
return;
}
this.shadowDataProp = _extends({}, data, {
datasets: data.datasets && data.datasets.map(function (set) {
return _extends({}, set);
})
});
var data = this.transformDataProp(this.props);
return data;
};
this.shadowDataProp = _extends({}, data, {
datasets: data.datasets && data.datasets.map(function (set) {
return _extends({}, set);
})
});
ChartComponent.prototype.updateChart = function updateChart() {
var _this2 = this;
return data;
}
}, {
key: 'updateChart',
value: function updateChart() {
var _this2 = this;
var options = this.props.options;
var options = this.props.options;
var data = this.memoizeDataProps(this.props);
var data = this.memoizeDataProps(this.props);
if (!this.chart_instance) return;
if (!this.chart_instance) return;
if (options) {
this.chart_instance.options = _chart2.default.helpers.configMerge(this.chart_instance.options, options);
}
if (options) {
this.chart_instance.options = _chart2.default.helpers.configMerge(this.chart_instance.options, options);
}
// Pipe datasets to chart instance datasets enabling
// seamless transitions
var currentDatasets = this.chart_instance.config.data && this.chart_instance.config.data.datasets || [];
var nextDatasets = data.datasets || [];
// Pipe datasets to chart instance datasets enabling
// seamless transitions
var currentDatasets = this.chart_instance.config.data && this.chart_instance.config.data.datasets || [];
var nextDatasets = data.datasets || [];
// use the key provider to work out which series have been added/removed/changed
var currentDatasetKeys = currentDatasets.map(this.props.datasetKeyProvider);
var nextDatasetKeys = nextDatasets.map(this.props.datasetKeyProvider);
var newDatasets = nextDatasets.filter(function (d) {
return currentDatasetKeys.indexOf(_this2.props.datasetKeyProvider(d)) === -1;
});
// use the key provider to work out which series have been added/removed/changed
var currentDatasetKeys = currentDatasets.map(this.props.datasetKeyProvider);
var nextDatasetKeys = nextDatasets.map(this.props.datasetKeyProvider);
var newDatasets = nextDatasets.filter(function (d) {
return currentDatasetKeys.indexOf(_this2.props.datasetKeyProvider(d)) === -1;
});
// process the updates (via a reverse for loop so we can safely splice deleted datasets out of the array
// process the updates (via a reverse for loop so we can safely splice deleted datasets out of the array
var _loop = function _loop(idx) {
var currentDatasetKey = _this2.props.datasetKeyProvider(currentDatasets[idx]);
if (nextDatasetKeys.indexOf(currentDatasetKey) === -1) {
// deleted series
currentDatasets.splice(idx, 1);
} else {
var retainedDataset = (0, _lodash4.default)(nextDatasets, function (d) {
return _this2.props.datasetKeyProvider(d) === currentDatasetKey;
var _loop = function _loop(idx) {
var currentDatasetKey = _this2.props.datasetKeyProvider(currentDatasets[idx]);
if (nextDatasetKeys.indexOf(currentDatasetKey) === -1) {
// deleted series
currentDatasets.splice(idx, 1);
} else {
var retainedDataset = (0, _lodash4.default)(nextDatasets, function (d) {
return _this2.props.datasetKeyProvider(d) === currentDatasetKey;
});
if (retainedDataset) {
// update it in place if it is a retained dataset
currentDatasets[idx].data.splice(retainedDataset.data.length);
retainedDataset.data.forEach(function (point, pid) {
currentDatasets[idx].data[pid] = retainedDataset.data[pid];
});
if (retainedDataset) {
// update it in place if it is a retained dataset
currentDatasets[idx].data.splice(retainedDataset.data.length);
retainedDataset.data.forEach(function (point, pid) {
currentDatasets[idx].data[pid] = retainedDataset.data[pid];
});
var _data = retainedDataset.data,
otherProps = _objectWithoutProperties(retainedDataset, ['data']);
var _data = retainedDataset.data,
otherProps = _objectWithoutProperties(retainedDataset, ['data']);
currentDatasets[idx] = _extends({
data: currentDatasets[idx].data
}, currentDatasets[idx], otherProps);
}
currentDatasets[idx] = _extends({
data: currentDatasets[idx].data
}, currentDatasets[idx], otherProps);
}
};
for (var idx = currentDatasets.length - 1; idx >= 0; idx -= 1) {
_loop(idx);
}
// finally add any new series
newDatasets.forEach(function (d) {
return currentDatasets.push(d);
});
};
var datasets = data.datasets,
rest = _objectWithoutProperties(data, ['datasets']);
for (var idx = currentDatasets.length - 1; idx >= 0; idx -= 1) {
_loop(idx);
}
// finally add any new series
newDatasets.forEach(function (d) {
return currentDatasets.push(d);
});
this.chart_instance.config.data = _extends({}, this.chart_instance.config.data, rest);
var datasets = data.datasets,
rest = _objectWithoutProperties(data, ['datasets']);
this.chart_instance.update();
}
}, {
key: 'renderChart',
value: function renderChart() {
var _props2 = this.props,
options = _props2.options,
legend = _props2.legend,
type = _props2.type,
redraw = _props2.redraw,
plugins = _props2.plugins;
this.chart_instance.config.data = _extends({}, this.chart_instance.config.data, rest);
var node = this.element;
var data = this.memoizeDataProps();
this.chart_instance.update();
};
if (typeof legend !== 'undefined' && !(0, _lodash2.default)(ChartComponent.defaultProps.legend, legend)) {
options.legend = legend;
}
ChartComponent.prototype.renderChart = function renderChart() {
var _props2 = this.props,
options = _props2.options,
legend = _props2.legend,
type = _props2.type,
redraw = _props2.redraw,
plugins = _props2.plugins;
this.chart_instance = new _chart2.default(node, {
type: type,
data: data,
options: options,
plugins: plugins
});
var node = this.element;
var data = this.memoizeDataProps();
if (typeof legend !== 'undefined' && !(0, _lodash2.default)(ChartComponent.defaultProps.legend, legend)) {
options.legend = legend;
}
}, {
key: 'render',
value: function render() {
var _props3 = this.props,
height = _props3.height,
width = _props3.width,
onElementsClick = _props3.onElementsClick;
this.chart_instance = new _chart2.default(node, {
type: type,
data: data,
options: options,
plugins: plugins
});
};
return _react2.default.createElement('canvas', {
ref: this.ref,
height: height,
width: width,
onClick: this.handleOnClick
});
}
}]);
ChartComponent.prototype.render = function render() {
var _props3 = this.props,
height = _props3.height,
width = _props3.width,
onElementsClick = _props3.onElementsClick;
return _react2.default.createElement('canvas', {
ref: this.ref,
height: height,
width: width,
onClick: this.handleOnClick
});
};
return ChartComponent;

@@ -340,18 +322,15 @@ }(_react2.default.Component);

return _possibleConstructorReturn(this, (Doughnut.__proto__ || Object.getPrototypeOf(Doughnut)).apply(this, arguments));
return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments));
}
_createClass(Doughnut, [{
key: 'render',
value: function render() {
var _this4 = this;
Doughnut.prototype.render = function render() {
var _this4 = this;
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref2) {
return _this4.chart_instance = _ref2 && _ref2.chart_instance;
},
type: 'doughnut'
}));
}
}]);
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref) {
return _this4.chart_instance = _ref && _ref.chart_instance;
},
type: 'doughnut'
}));
};

@@ -367,18 +346,15 @@ return Doughnut;

return _possibleConstructorReturn(this, (Pie.__proto__ || Object.getPrototypeOf(Pie)).apply(this, arguments));
return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments));
}
_createClass(Pie, [{
key: 'render',
value: function render() {
var _this6 = this;
Pie.prototype.render = function render() {
var _this6 = this;
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref3) {
return _this6.chart_instance = _ref3 && _ref3.chart_instance;
},
type: 'pie'
}));
}
}]);
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref2) {
return _this6.chart_instance = _ref2 && _ref2.chart_instance;
},
type: 'pie'
}));
};

@@ -394,18 +370,15 @@ return Pie;

return _possibleConstructorReturn(this, (Line.__proto__ || Object.getPrototypeOf(Line)).apply(this, arguments));
return _possibleConstructorReturn(this, _React$Component4.apply(this, arguments));
}
_createClass(Line, [{
key: 'render',
value: function render() {
var _this8 = this;
Line.prototype.render = function render() {
var _this8 = this;
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref4) {
return _this8.chart_instance = _ref4 && _ref4.chart_instance;
},
type: 'line'
}));
}
}]);
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref3) {
return _this8.chart_instance = _ref3 && _ref3.chart_instance;
},
type: 'line'
}));
};

@@ -421,18 +394,15 @@ return Line;

return _possibleConstructorReturn(this, (Bar.__proto__ || Object.getPrototypeOf(Bar)).apply(this, arguments));
return _possibleConstructorReturn(this, _React$Component5.apply(this, arguments));
}
_createClass(Bar, [{
key: 'render',
value: function render() {
var _this10 = this;
Bar.prototype.render = function render() {
var _this10 = this;
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref5) {
return _this10.chart_instance = _ref5 && _ref5.chart_instance;
},
type: 'bar'
}));
}
}]);
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref4) {
return _this10.chart_instance = _ref4 && _ref4.chart_instance;
},
type: 'bar'
}));
};

@@ -448,18 +418,15 @@ return Bar;

return _possibleConstructorReturn(this, (HorizontalBar.__proto__ || Object.getPrototypeOf(HorizontalBar)).apply(this, arguments));
return _possibleConstructorReturn(this, _React$Component6.apply(this, arguments));
}
_createClass(HorizontalBar, [{
key: 'render',
value: function render() {
var _this12 = this;
HorizontalBar.prototype.render = function render() {
var _this12 = this;
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref6) {
return _this12.chart_instance = _ref6 && _ref6.chart_instance;
},
type: 'horizontalBar'
}));
}
}]);
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref5) {
return _this12.chart_instance = _ref5 && _ref5.chart_instance;
},
type: 'horizontalBar'
}));
};

@@ -475,18 +442,15 @@ return HorizontalBar;

return _possibleConstructorReturn(this, (Radar.__proto__ || Object.getPrototypeOf(Radar)).apply(this, arguments));
return _possibleConstructorReturn(this, _React$Component7.apply(this, arguments));
}
_createClass(Radar, [{
key: 'render',
value: function render() {
var _this14 = this;
Radar.prototype.render = function render() {
var _this14 = this;
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref7) {
return _this14.chart_instance = _ref7 && _ref7.chart_instance;
},
type: 'radar'
}));
}
}]);
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref6) {
return _this14.chart_instance = _ref6 && _ref6.chart_instance;
},
type: 'radar'
}));
};

@@ -502,18 +466,15 @@ return Radar;

return _possibleConstructorReturn(this, (Polar.__proto__ || Object.getPrototypeOf(Polar)).apply(this, arguments));
return _possibleConstructorReturn(this, _React$Component8.apply(this, arguments));
}
_createClass(Polar, [{
key: 'render',
value: function render() {
var _this16 = this;
Polar.prototype.render = function render() {
var _this16 = this;
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref8) {
return _this16.chart_instance = _ref8 && _ref8.chart_instance;
},
type: 'polarArea'
}));
}
}]);
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref7) {
return _this16.chart_instance = _ref7 && _ref7.chart_instance;
},
type: 'polarArea'
}));
};

@@ -529,18 +490,15 @@ return Polar;

return _possibleConstructorReturn(this, (Bubble.__proto__ || Object.getPrototypeOf(Bubble)).apply(this, arguments));
return _possibleConstructorReturn(this, _React$Component9.apply(this, arguments));
}
_createClass(Bubble, [{
key: 'render',
value: function render() {
var _this18 = this;
Bubble.prototype.render = function render() {
var _this18 = this;
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref9) {
return _this18.chart_instance = _ref9 && _ref9.chart_instance;
},
type: 'bubble'
}));
}
}]);
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref8) {
return _this18.chart_instance = _ref8 && _ref8.chart_instance;
},
type: 'bubble'
}));
};

@@ -556,18 +514,15 @@ return Bubble;

return _possibleConstructorReturn(this, (Scatter.__proto__ || Object.getPrototypeOf(Scatter)).apply(this, arguments));
return _possibleConstructorReturn(this, _React$Component10.apply(this, arguments));
}
_createClass(Scatter, [{
key: 'render',
value: function render() {
var _this20 = this;
Scatter.prototype.render = function render() {
var _this20 = this;
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref10) {
return _this20.chart_instance = _ref10 && _ref10.chart_instance;
},
type: 'scatter'
}));
}
}]);
return _react2.default.createElement(ChartComponent, _extends({}, this.props, {
ref: function ref(_ref9) {
return _this20.chart_instance = _ref9 && _ref9.chart_instance;
},
type: 'scatter'
}));
};

@@ -574,0 +529,0 @@ return Scatter;

{
"name": "react-chartjs-2",
"version": "2.5.8",
"version": "2.6.0",
"description": "react-chartjs-2",
"main": "lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"author": "Jeremy Ayerst",

@@ -22,4 +24,7 @@ "homepage": "https://github.com/jerairrest/react-chartjs-2",

"@kadira/storybook": "^2.35.3",
"babel-cli": "^6.26.0",
"babel-core": "^6.18.2",
"babel-eslint": "^4.1.3",
"babel-loader": "^7.1.1",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-es2015": "^6.13.2",

@@ -36,2 +41,3 @@ "babel-preset-react": "^6.11.1",

"cross-env": "^5.0.0",
"css-loader": "^0.28.5",
"debug": "^2.4.1",

@@ -41,3 +47,6 @@ "enzyme": "^2.6.0",

"eslint-plugin-react": "^3.5.1",
"extract-text-webpack-plugin": "^3.0.0",
"gh-pages": "^1.0.0",
"gulp": "^3.9.0",
"html-webpack-plugin": "^2.30.1",
"jsdom": "^9.8.3",

@@ -48,5 +57,12 @@ "mocha": "^3.1.2",

"react-addons-test-utils": "^15.3.2",
"react-component-gulp-tasks": "git+https://github.com/gor181/react-component-gulp-tasks.git",
"react-dom": "^0.14 || ^15.0.0-rc || ^15.0",
"sinon": "^1.17.6"
"rimraf": "^2.6.1",
"rollup": "^0.47.6",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-commonjs": "^8.1.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^2.0.1",
"sinon": "^1.17.6",
"webpack": "^3.5.5",
"webpack-dev-server": "^2.7.1"
},

@@ -64,10 +80,15 @@ "peerDependencies": {

"scripts": {
"build": "gulp clean && cross-env NODE_ENV=production gulp build",
"examples": "gulp dev:server",
"clean": "rimraf lib es dist",
"build:cjs": "babel src --out-dir lib",
"build:es": "cross-env BABEL_ENV=jsnext babel src --out-dir es",
"build:umd": "cross-env BABEL_ENV=rollup NODE_ENV=development rollup -c -o dist/react-chartjs-2.js",
"build:umd:min": "cross-env BABEL_ENV=rollup NODE_ENV=production rollup -c -o dist/react-chartjs-2.min.js",
"build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:umd:min",
"examples": "webpack-dev-server --config example/webpack.config.babel.js --progress",
"examples:clean": "rimraf example/dist",
"examples:build": "cross-env BABEL_ENV=development NODE_ENV=production webpack --config example/webpack.config.babel.js --progress",
"examples:deploy": "npm run examples:clean && npm run examples:build && gh-pages -d example/dist",
"start": "npm run examples",
"lint": "eslint ./; true",
"publish:site": "cross-env NODE_ENV=production gulp publish:examples",
"release": "cross-env NODE_ENV=production gulp release",
"start": "gulp dev",
"test": "mocha test/config/setup.js test/__tests__/**/*",
"watch": "gulp watch:lib",
"storybook": "start-storybook -p 6006",

@@ -74,0 +95,0 @@ "build-storybook": "build-storybook"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc