!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=400)}([function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t,n){e.exports=n(180)()},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(187),i=n(5);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeoft?i(e):t}},function(e,t,n){varr=n(71);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 o=i.apply(null,r);o&&e.push(o)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}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(){e.exports=this.wp.element}()},function(e,t,n){var r=n(3);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"==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(19),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.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},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(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 o;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o=n(294).Buffer}catch(j){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),a=t;a<i;a++){var o=e.charCodeAt(a)-48;r<<=4,r|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function c(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}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.
!function(n,r){vari=Array.prototype,a=Object.prototype,o=i.slice,s=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(s.call(e,a)&&t.call(n,e[a],a,e)===l)return},extend:function(e){returnthis.forEach(o.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.");varo,s,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!(o=h[l])||c>o.length?(this.options.missing_key_callback&&this.options.missing_key_callback(l,e),s=[n,r],!0===this.options.debug&&console.log(s[d(m)(i)]),s[d()(i)]):(s=o[c])||(s=[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,o,s,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((s=n[a])[2])for(i=r[p],o=0;o<s[2].length;o++){if(!i.hasOwnProperty(s[2][o]))throwg('[sprintf] property "%s" does not exist',s[2][o]);i=i[s[2][o]]}elsei=s[1]?r[s[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,o=r.length;a<o;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){varo=a.apply(this,arguments);returne.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,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&
functionbd(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionvd(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}varyd,_d=(yd=[],{activateTrap:function(e){if(yd.length>0){vart=yd[yd.length-1];t!==e&&t.pause()}varn=yd.indexOf(e);-1===n||yd.splice(n,1),yd.push(e)},deactivateTrap:function(e){vart=yd.indexOf(e);-1!==t&&yd.splice(t,1),yd.length>0&&yd[yd.length-1].unpause()}}),kd=function(e){returnsetTimeout(e,0)},wd=function(e,t){varn=-1;returne.every((function(e,r){return!t(e)||(n=r,!1)})),n},Ed=function(e){for(vart=arguments.length,n=newArray(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeofe?e.apply(void0,n):e},jd=function(e,t){varn,r=document,i=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},o=function(e){returna.containers.some((function(t){returnt.contains(e)}))},s=function(e){vart=i[e];if(!t)returnnull;varn=t;if("string"==typeoft&&!(n=r.querySelector(t)))thrownewError("`".concat(e,"` refers to no known node"));if("function"==typeoft&&!(n=t()))thrownewError("`".concat(e,"` did not return a node"));returnn},c=function(){vare;if(null!==s("initialFocus"))e=s("initialFocus");elseif(o(r.activeElement))e=r.activeElement;else{vart=a.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)thrownewError("Your focus-trap needs to have at least one focusable element");returne},l=function(){if(a.tabbableGroups=a.containers.map((function(e){vart,n,r,i=(n=[],r=[],cd(e,(t=t||{}).includeContainer,fd).forEach((function(e,t){vari=ld(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(ud).map((function(e){returne.node})).concat(n));if(i.length>0)return{container:e,firstTabbableNode:i[0],lastTabbableNode:i[i.length-1]}})).filter((function(e){return!!e})),a.tabbableGroups.length<=0&&!s("fallbackFocus"))thrownewError("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=functione(t){t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){returne.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeofe.select}(t)&&t.select()):e(c()))},p=function(e){o(e.target)||(Ed(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!gd(e.target)}):Ed(i.allowOutsideClick,e)||e.preventDefault())},d=function(e){vart=o(e.target);t||e.targetinstanceofDocument?t&&(a.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),u(a.mostRecentlyFocusedNode||c()))},h=function(e){if(!1!==i.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))returne.preventDefault(),voidn.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){l();vart=null;if(a.tabbableGroups.length>0)if(wd(a.tabbableGroups,(function(t){returnt.container.contains(e.target)}))<0)t=e.shiftKey?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;elseif(e.shiftKey){varn=wd(a.tabbableGroups,(function(t){varn=t.firstTabbableNode;returne.target===n}));if(n>=0){varr=0===n?a.tabbableGroups.length-1:n-1;t=a.tabbableGroups[r].lastTabbableNode}}else{vari=wd(a.tabbableGroups,(function(t){varn=t.lastTabbableNode;returne.target===n}));if(i>=0){varo=i===a.tabbableGroups.length-1?0:i+1;t=a.tabbableGroups[o].firstTabbableNode}}elset=s("fallback
/*
*Exposesnumberformatcapability
*
*@copyrightCopyright(c)2013KevinvanZonneveld(http://kvz.io) and Contributors (http://phpjs.org/authors).
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,o)),(c[1]||"").length<a&&(c[1]=c[1]||"",c[1]+=newArray(a-c[1].length+1).join("0")),c.join(s)}varKm=Rm()("i18n-calypso"),Jm=[function(e){returne}],Wm={};functionGm(){Zm.throwErrors&&"undefined"!=typeofwindow&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}functionYm(e){returnArray.prototype.slice.call(e)}function$m(e){vart=e[0];("string"!=typeoft||e.length>3||e.length>2&&"object"==typeofe[1]&&"object"==typeofe[2])&&Gm("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",Ym(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeoft&&"string"==typeofe[1]&&Gm("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",Ym(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}functionXm(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)}functionQm(e,t){for(varn=Jm.length-1;n>=0;n--){varr=Jm[n](Object.assign({},t));if(e.state.locale[r.original])returnXm(e.state.jed,r)}returnnull}functionZm(){if(!(thisinstanceofZm))returnnewZm;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void0,locale:void0,localeSlug:void0,translations:Bm()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=newwf.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Zm.throwErrors=!1,Zm.prototype.moment=ef.a,Zm.prototype.on=function(){vare;(e=this.stateObserver).on.apply(e,arguments)},Zm.prototype.off=function(){vare;(e=this.stateObserver).off.apply(e,arguments)},Zm.prototype.emit=function(){vare;(e=this.stateObserver).emit.apply(e,arguments)},Zm.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||",";returnqm(e,n,r,i)},Zm.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Zm.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!==Wm[n+e])returnWm[n+e];varr=Hm()().update(e).digest("hex");returnWm[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)Jm.push(r(!1));else{vari=t.substr(5).indexOf("-");if(i<0){vara=Number(t.substr(5));Jm.push(r(a))}elsefor(varo=Number(t.substr(5,i)),s=Number(t.substr(6+i)),c=o;c<=s;c++)Jm.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=newLm.a({locale_data:{messages:this.state.locale}}),ef.a.locale(this.state.localeSlug),this.state.numberFormatSettings.decimal_point=Xm(this.state.jed,$m(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=Xm(this.state.jed,$m(["number_format_thousands_sep"])),
functionSg(){return"ontouchstart"inwindow||window.DocumentTouch&&documentinstanceofDocumentTouch}Yi()(Cg,"displayName","ModuleChartBarContainer"),Yi()(Cg,"propTypes",{isTouch:u.a.bool,data:u.a.array,yAxisMax:u.a.number,width:u.a.number,barClick:u.a.func});n(395);varOg=function(e){functiont(){vare,n;xi()(this,t);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returnn=Ai()(this,(e=Ni()(t)).call.apply(e,[this].concat(i))),Yi()(Qc()(n),"state",{maxBars:100,width:650}),Yi()(Qc()(n),"resize",(function(){vare,t=n.refs.chart.clientWidth-82;Sg()?(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})})),Yi()(Qc()(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})),Yi()(Qc()(n),"getData",(function(){vare=n.props.data;returne=e.slice(0-n.state.maxBars)})),Yi()(Qc()(n),"getValues",(function(){vare=n.getData();returne=e.map((function(e){returne.value}),Qc()(n))})),Yi()(Qc()(n),"isEmptyChart",(function(e){return0===(e=e.filter((function(e){returne>0}),Qc()(n))).length})),n}returnIi()(t,e),$c()(t,[{key:"componentDidMount",value:function(){this.resize=Object(yt.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=s.a.createElement("div",{className:"dops-chart__empty"},s.a.createElement("span",{className:"dops-chart__empty_notice"},Object(_t._x)("No activity this period","Notice in the empty statistics chart","jetpack")))),s.a.createElement("div",{ref:"chart",className:"dops-chart"},s.a.createElement("div",{className:"dops-chart__y-axis-markers"},s.a.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),s.a.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),s.a.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),s.a.createElement("div",{className:"dops-chart__y-axis"},s.a.createElement("div",{className:"dops-chart__y-axis-width-fix"},newNumber(1e5).toLocaleString()),s.a.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),s.a.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),s.a.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),s.a.createElement(Cg,{barClick:this.props.barClick,data:r,yAxisMax:n,chartWidth:this.state.width,isTouch:Sg()}),e)}}]),t}(s.a.Component);Yi()(Og,"displayName","ModuleChart"),Yi()(Og,"propTypes",{loading:u.a.bool,data:u.a.array,minTouchBarWidth:u.a.number,minBarWidth:u.a.number,barClick:u.a.func}),Yi()(Og,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:yt.noop});varxg=function(e){functiont(){vare,n;xi()(this,t);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returnn=Ai()(this,(e=Ni()(t)).call.apply(e,[this].concat(i))),Yi()(Qc()(n),"trackViewDetailedStats",(function(){returnll.tracks.recordJetpackClick("view_detailed_stats")})),Yi()(Qc()(n),"trackViewWpcomStats",(function(){returnll.tracks.recordJetpackClick("view_wpcom_stats")})),n}returnIi()(t,e),$c()(t,[{key:"statsBottom",value:function(){vare;return[{viewsToday:(e="object"==typeofthis.props.statsData.general?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"}).views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}},{key:"render",value:function(){vare=this.statsBottom()[0];returns.a.createElement("div",null,s.a.createElement("div",{className:"jp-at-a-glance__stats-summary"},s.a.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},s.a.createElement("p"