<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72e3b16c"],{8289:function(t,n,e){"use strict";e("f461")},bf13:function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t._self._c;return n("div",{staticClass:"glances-cpu-history-wrapper"},[n("div",{staticClass:"gl-history-chart",attrs:{id:t.chartId}})])},a=[],i=(e("caad"),e("14d9"),e("b64b"),e("d3b7"),e("ac1f"),e("2532"),e("5319"),e("159b"),e("1c8e")),s=e("c57e"),c=e("e599"),r=e("b96f"),u={mixins:[i["a"],s["a"],c["a"]],components:{},data:function(){return{}},computed:{limit:function(){return this.options.limit||100},endpoint:function(){return this.makeGlancesUrl("network/history/".concat(this.limit))}},methods:{processData:function(t){var n=this,e={upload:[],download:[]};Object.keys(t).forEach((function(o){var a=null;o.includes("_tx")?a="up":o.includes("_rx")&amp;&amp;(a="down"),t[o].forEach((function(t){var o=n.getRoundedTime(t[0]);"up"===a?e.upload[o]?e.upload[o]+=t[1]:e.upload[o]=t[1]:"down"===a&amp;&amp;(e.download[o]?e.download[o]+=t[1]:e.download[o]=t[1])}))}));var o=[],a=[],i=[],s=Object.keys(e.upload)[0];Object.keys(e.upload).forEach((function(t){o.push(Object(r["t"])(t)),a.push(e.upload[t])})),Object.keys(e.download).forEach((function(t){i.push(e.download[t])}));var c=[{name:"Upload",type:"bar",values:a},{name:"Download",type:"bar",values:i}],u=this.makeTitle(s);this.generateChart({labels:o,datasets:c},u)},getRoundedTime:function(t){var n=6e4;return new Date(Math.round(new Date(t).getTime()/n)*n)},makeTitle:function(t){return"Network Activity over past ".concat(Object(r["l"])(t).replace("ago",""))},generateChart:function(t,n){return new this.Chart("#".concat(this.chartId),{title:n,data:t,type:"axis-mixed",height:this.chartHeight,colors:["#f6f000","#04e4f4"],truncateLegends:!0,lineOptions:{regionFill:1,hideDots:1},axisOptions:{xIsSeries:!0,xAxisMode:"tick"},tooltipOptions:{formatTooltipY:function(t){return Object(r["d"])(t)}}})}},created:function(){this.overrideUpdateInterval=10}},d=u,h=(e("8289"),e("2877")),l=Object(h["a"])(d,o,a,!1,null,"0baa6091",null);n["default"]=l.exports},c57e:function(t,n,e){"use strict";e("99af"),e("313d"),e("0eb6"),e("b7ef"),e("8bd4");n["a"]={computed:{hostname:function(){return this.options.hostname||this.error("You must specify a 'hostname' for Glances"),this.options.hostname},apiVersion:function(){return this.options.apiVersion||4},credentials:function(){if(this.options.username&amp;&amp;this.options.password){var t="".concat(this.options.username,":").concat(this.options.password);return{Authorization:"Basic ".concat(window.btoa(t))}}return null}},methods:{fetchData:function(){this.makeRequest(this.endpoint,this.credentials).then(this.processData)},makeGlancesUrl:function(t){return"".concat(this.hostname,"/api/").concat(this.apiVersion,"/").concat(t)}}}},f461:function(t,n,e){}}]);
//# sourceMappingURL=chunk-72e3b16c.4d6241e1.js.map</pre></body></html>