!function(e,t){for(varnint)e[n]=t[n]}(window,function(e){vart={};functionn(r){if(t[r])returnt[r].exports;vari=t[r]={i:r,l:!1,exports:{}};returne[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}returnn.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varr=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(variine)n.d(r,i,function(t){returne[t]}.bind(null,i));returnr},n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,"a",t),t},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=374)}([function(e,t){!function(){e.exports=this.React}()},function(e,t,n){e.exports=n(167)()},function(e,t){e.exports=function(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){e.exports=function(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}},function(e,t){functionn(t){returne.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}},function(e,t,n){varr=n(174),i=n(4);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeoft?i(e):t}},function(e,t,n){varr=n(62);e.exports=function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){functionn(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){returnt&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){functionn(){returne.exports=n=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},n.apply(this,arguments)}e.exports=n},function(e,t,n){varr;
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var s=i.apply(null,r);s&&e.push(s)}else if("object"===a)for(var o in r)n.call(r,o)&&r[o]&&e.push(o)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(17),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),a(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){var r=n(2);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var s;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{s=n(293).Buffer}catch(C){}function o(e,t,n){for(var r=0,i=Math.min(e.length,n),a=t;a<i;a++){var s=e.charCodeAt(a)-48;r<<=4,r|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return r}function c(e,t,n,r){for(var i=0,a=Math.min(e.length,n),s=t;s<a;s++){var o=e.charCodeAt(s)-48;i*=r,i+=o>=49?o-49+10:o>=17?o-17+10:o}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeofe.length),e.length<=0)returnthis.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.wor
!function(n,r){vari=Array.prototype,a=Object.prototype,s=i.slice,o=a.hasOwnProperty,c=i.forEach,l={},u={forEach:function(e,t,n){varr,i,a;if(null!==e)if(c&&e.forEach===c)e.forEach(t,n);elseif(e.length===+e.length){for(r=0,i=e.length;r<i;r++)if(rine&&t.call(n,e[r],r,e)===l)return}elsefor(aine)if(o.call(e,a)&&t.call(n,e[a],a,e)===l)return},extend:function(e){returnthis.forEach(s.call(arguments,1),(function(t){for(varnint)e[n]=t[n]})),e}},p=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=u.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])thrownewError("Text domain set to non-existent domain: `"+e.domain+"`")};functiond(e){returnp.PF.compile(e||"nplurals=2; plural=(n != 1);")}functionh(e,t){this._key=e,this._i18n=t}p.context_delimiter=String.fromCharCode(4),u.extend(h.prototype,{onDomain:function(e){returnthis._domain=e,this},withContext:function(e){returnthis._context=e,this},ifPlural:function(e,t){returnthis._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?p.sprintf:function(e){returne})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),u.extend(p.prototype,{translate:function(e){returnnewh(e,this)},textdomain:function(e){if(!e)returnthis._textdomain;this._textdomain=e},gettext:function(e){returnthis.dcnpgettext.call(this,void0,void0,e)},dgettext:function(e,t){returnthis.dcnpgettext.call(this,e,void0,t)},dcgettext:function(e,t){returnthis.dcnpgettext.call(this,e,void0,t)},ngettext:function(e,t,n){returnthis.dcnpgettext.call(this,void0,void0,e,t,n)},dngettext:function(e,t,n,r){returnthis.dcnpgettext.call(this,e,void0,t,n,r)},dcngettext:function(e,t,n,r){returnthis.dcnpgettext.call(this,e,void0,t,n,r)},pgettext:function(e,t){returnthis.dcnpgettext.call(this,void0,e,t)},dpgettext:function(e,t,n){returnthis.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){returnthis.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){returnthis.dcnpgettext.call(this,void0,e,t,n,r)},dnpgettext:function(e,t,n,r,i){returnthis.dcnpgettext.call(this,e,t,n,r,i)},dcnpgettext:function(e,t,n,r,i){vara;if(r=r||n,e=e||this._textdomain,!this.options)return(a=newp).dcnpgettext.call(a,void0,void0,n,r,i);if(!this.options.locale_data)thrownewError("No locale data provided.");if(!this.options.locale_data[e])thrownewError("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])thrownewError("No locale meta information provided.");if(!n)thrownewError("No translation key found.");vars,o,c,l=t?t+p.context_delimiter+n:n,u=this.options.locale_data,h=u[e],f=(u.messages||this.defaults.locale_data.messages)[""],m=h[""].plural_forms||h[""]["Plural-Forms"]||h[""]["plural-forms"]||f.plural_forms||f["Plural-Forms"]||f["plural-forms"];if(void0===i)c=0;else{if("number"!=typeofi&&(i=parseInt(i,10),isNaN(i)))thrownewError("The number that was passed in is not a number.");c=d(m)(i)}if(!h)thrownewError("No domain named `"+e+"` could be found.");return!(s=h[l])||c>s.length?(this.options.missing_key_callback&&this.options.missing_key_callback(l,e),o=[n,r],!0===this.options.debug&&console.log(o[d(m)(i)]),o[d()(i)]):(o=s[c])||(o=[n,r])[d()(i)]}});varf,m,g=function(){functione(e){returnObject.prototype.toString.call(e).slice(8,-1).toLowerCase()}functiont(e,t){for(varn=[];t>0;n[--t]=e);returnn.join("")}varn=function(){returnn.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};returnn.format=function(n,r){vari,a,s,o,c,l,u,p=1,d=n.length,h="",f=[];for(a=0;a<d;a++)if("string"===(h=e(n[a])))f.push(n[a]);elseif("array"===h){if((o=n[a])[2])for(i=r[p],s=0;s<o[2].length;s++){if(!i.hasOwnProperty(o[2][s]))throwg('[sprintf] property "%s" does not exist',o[2][s]);i=i[o[2][s]]}elsei=o[1]?r[o[1]]:r[p
varr;r=function(){returnfunction(e){vart={};functionn(r){if(t[r])returnt[r].exports;vari=t[r]={i:r,l:!1,exports:{}};returne[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}returnn.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varr=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(variine)n.d(r,i,function(t){returne[t]}.bind(null,i));returnr},n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,"a",t),t},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){vart;if("SELECT"===e.nodeName)e.focus(),t=e.value;elseif("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){varn=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();varr=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}returnt}},function(e,t){functionn(){}n.prototype={on:function(e,t,n){varr=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){varr=this;functioni(){r.off(e,i),t.apply(n,arguments)}returni._=t,this.on(e,i,n)},emit:function(e){for(vart=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);returnthis},off:function(e,t){varn=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(vara=0,s=r.length;a<s;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);returni.length?n[e]=i:deleten[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){varr=n(3),i=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)thrownewError("Missing required arguments");if(!r.string(t))thrownewTypeError("Second argument must be a String");if(!r.fn(n))thrownewTypeError("Third argument must be a Function");if(r.node(e))returnfunction(e,t,n){returne.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))returnfunction(e,t,n){returnArray.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))returnfunction(e,t,n){returni(document.body,e,t,n)}(e,t,n);thrownewTypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){returnvoid0!==e&&einstanceofHTMLElement&&1===e.nodeType},t.nodeList=function(e){varn=Object.prototype.toString.call(e);returnvoid0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"ine&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeofe||einstanceofString},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){varr=n(5);functioni(e,t,n,r,i){vars=a.apply(this,arguments);returne.addEventListener(n,s,i),{destroy:function(){e.removeEventListener(n,s,i)}}}functiona(e,t,n,i){returnfunction(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,a){return"function"==typeofe.addEventListener?i.apply(null,arguments):"function"==typeofn?i.bind(null,document).apply(null,arguments):("string"==typeofe&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){returni(e,t,n,r,a)})))}},function(e,t){if("undefined"!=typeofElement&&!Element.prototype.matches){varn=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeofe.matches&
function(e,t){varn=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,a):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(c[1]||"").length<a&&(c[1]=c[1]||"",c[1]+=newArray(a-c[1].length+1).join("0")),c.join(o)}varSs=ds()("i18n-calypso"),Ts=[function(e){returne}],As={};functionxs(){Ps.throwErrors&&"undefined"!=typeofwindow&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}functionMs(e){returnArray.prototype.slice.call(e)}functionjs(e){vart=e[0];("string"!=typeoft||e.length>3||e.length>2&&"object"==typeofe[1]&&"object"==typeofe[2])&&xs("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",Ms(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeoft&&"string"==typeofe[1]&&xs("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",Ms(e));for(varn={},r=0;r<e.length;r++)"object"==typeofe[r]&&(n=e[r]);if("string"==typeoft?n.original=t:"object"==typeofn.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeofe[1]&&(n.plural=e[1]),void0===n.original)thrownewError("Translate called without a `string` value as first argument.");returnn}functionNs(e,t){varn="gettext";t.context&&(n="p"+n),"string"==typeoft.original&&"string"==typeoft.plural&&(n="n"+n);varr=function(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}(n,t);returne[n].apply(e,r)}functionOs(e,t){for(varn=Ts.length-1;n>=0;n--){varr=Ts[n](Object.assign({},t));if(e.state.locale[r.original])returnNs(e.state.jed,r)}returnnull}functionPs(){if(!(thisinstanceofPs))returnnewPs;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void0,locale:void0,localeSlug:void0,translations:bs()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=newEs.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Ps.throwErrors=!1,Ps.prototype.moment=ws.a,Ps.prototype.on=function(){vare;(e=this.stateObserver).on.apply(e,arguments)},Ps.prototype.off=function(){vare;(e=this.stateObserver).off.apply(e,arguments)},Ps.prototype.emit=function(){vare;(e=this.stateObserver).emit.apply(e,arguments)},Ps.prototype.numberFormat=function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n="number"==typeoft?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";returnCs(e,n,r,i)},Ps.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Ps.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){vart=e[""]["key-hash"],n=function(e,t){varn=!1===t?"":String(t);if(void0!==As[n+e])returnAs[n+e];varr=ks()().update(e).digest("hex");returnAs[n+e]=t?r.substr(0,t):r},r=function(e){returnfunction(t){returnt.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),deletet.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)Ts.push(r(!1));else{vari=t.substr(5).indexOf("-");if(i<0){vara=Number(t.substr(5));Ts.push(r(a))}elsefor(vars=Number(t.substr(5,i)),o=Number(t.substr(6+i)),c=s;c<=o;c++)Ts.push(r(c))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}elsethis.state.locale=Object.assign({},e);elsethis.state.locale={"":{localeSlug:this.defaultLocaleSlug}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=newgs.a({locale_data:{messages:this.state.locale}}),ws.a.locale(this.state.localeSlug),this.state.numberFormatSettings.decimal_point=Ns(this.state.jed,js(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=Ns(this.state.jed,js(["number_format_thousands_sep"])),
functionFh(){return"ontouchstart"inwindow||window.DocumentTouch&&documentinstanceofDocumentTouch}Ka()(zh,"displayName","ModuleChartBarContainer"),Ka()(zh,"propTypes",{isTouch:u.a.bool,data:u.a.array,yAxisMax:u.a.number,width:u.a.number,barClick:u.a.func});n(358);varLh=function(e){functiont(){vare,n;Ei()(this,t);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returnn=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"state",{maxBars:100,width:650}),Ka()(Ls()(n),"resize",(function(){vare,t=n.refs.chart.clientWidth-82;Fh()?(t=t<=0?350:t,e=Math.floor(t/n.props.minTouchBarWidth)):e=Math.floor(t/n.props.minBarWidth),n.setState({maxBars:e,width:t})})),Ka()(Ls()(n),"getYAxisMax",(function(e){vart=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;returnr<10&&(r=10),r})),Ka()(Ls()(n),"getData",(function(){vare=n.props.data;returne=e.slice(0-n.state.maxBars)})),Ka()(Ls()(n),"getValues",(function(){vare=n.getData();returne=e.map((function(e){returne.value}),Ls()(n))})),Ka()(Ls()(n),"isEmptyChart",(function(e){return0===(e=e.filter((function(e){returne>0}),Ls()(n))).length})),n}returnMi()(t,e),zs()(t,[{key:"componentDidMount",value:function(){this.resize=Object(kt.throttle)(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.loading&&!e.loading&&this.resize()}},{key:"render",value:function(){vare,t=this.getValues(),n=this.getYAxisMax(t),r=this.getData();returnt.length&&this.isEmptyChart(t)&&(e=o.a.createElement("div",{className:"dops-chart__empty"},o.a.createElement("span",{className:"dops-chart__empty_notice"},Ws("No activity this period",{context:"Notice in the empty statistics chart"})))),o.a.createElement("div",{ref:"chart",className:"dops-chart"},o.a.createElement("div",{className:"dops-chart__y-axis-markers"},o.a.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),o.a.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),o.a.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),o.a.createElement("div",{className:"dops-chart__y-axis"},o.a.createElement("div",{className:"dops-chart__y-axis-width-fix"},newNumber(1e5).toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),o.a.createElement(zh,{barClick:this.props.barClick,data:r,yAxisMax:n,chartWidth:this.state.width,isTouch:Fh()}),e)}}]),t}(o.a.Component);Ka()(Lh,"displayName","ModuleChart"),Ka()(Lh,"propTypes",{loading:u.a.bool,data:u.a.array,minTouchBarWidth:u.a.number,minBarWidth:u.a.number,barClick:u.a.func}),Ka()(Lh,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:kt.noop});varBh=function(e){functiont(){returnEi()(this,t),Si()(this,Ai()(t).apply(this,arguments))}returnMi()(t,e),zs()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}},{key:"render",value:function(){returnnull}}]),t}(s.Component);Bh.defaultProps={fetchStatsData:function(){}};varVh=ce((function(e){return{fetchStatsData:function(t){return$u(e)},fetchingStatsData:ja(e)}}),(function(e){return{fetchStatsData:function(t){returne($u(t))}}}))(Bh),Hh=function(e){functiont(){vare,n;Ei()(this,t);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returnn=Si()(this,(e=Ai()(t)).call.apply(e,[this].concat(i))),Ka()(Ls()(n),"trackViewDetailedStats",(function(){returnal.tracks.recordJetpackClick("view_detailed_stats")})),Ka()(Ls()(n),"trackViewWpcomStats",(function(){returnal.tracks.recordJetpackClick("view_wpcom_stats")})),n}returnMi()(t,e),zs()(t,[{key:"statsBottom",value:function(){vare;return[{viewsToday:(e="object"==typeofthis.props.statsData