(function(t){function e(e){for(var r,n,i=e[0],c=e[1],l=e[2],d=0,g=[];dt.data.maxStorePoints&&t.data.stats.splice(0,t.data.stats.length-t.data.maxStorePoints)},pushDate:function(t,e){t.data.date.push(e),t.data.date.length>t.data.maxStorePoints&&t.data.date.splice(0,t.data.date.length-t.data.maxStorePoints)},pushBytesSent:function(t,e){t.data.bytesSent.push(e);while(t.data.bytesSent.length>t.data.maxStorePoints)t.data.bytesSent.splice(0,t.data.bytesSent.length-t.data.maxStorePoints)},pushBytesSentChange:function(t,e){t.data.bytesSentChange.push(e);while(t.data.bytesSentChange.length>t.data.maxStorePoints)t.data.bytesSentChange.splice(0,t.data.bytesSentChange.length-t.data.maxStorePoints)},pushReqServ:function(t,e){t.data.reqServ.push(e),t.data.reqServ.length>t.data.maxStorePoints&&t.data.reqServ.splice(0,t.data.reqServ.length-t.data.maxStorePoints)},pushReqServChange:function(t,e){t.data.reqServChange.push(e),t.data.reqServChange.length>t.data.maxStorePoints&&t.data.reqServChange.splice(0,t.data.reqServChange.length-t.data.maxStorePoints)},pushSizeDisk:function(t,e){t.data.sizeDisk.push(e),t.data.sizeDisk.length>t.data.maxStorePoints&&t.data.sizeDisk.splice(0,t.data.sizeDisk.length-t.data.maxStorePoints)},pushSizeDiskChange:function(t,e){t.data.sizeDiskChange.push(e),t.data.sizeDiskChange.length>t.data.maxStorePoints&&t.data.sizeDiskChange.splice(0,t.data.sizeDiskChange.length-t.data.maxStorePoints)},pushHits:function(t,e){t.data.hits.push(e),t.data.hits.length>t.data.maxStorePoints&&t.data.hits.splice(0,t.data.hits.length-t.data.maxStorePoints)},pushMisses:function(t,e){t.data.misses.push(e),t.data.misses.length>t.data.maxStorePoints&&t.data.misses.splice(0,t.data.misses.length-t.data.maxStorePoints)},pushCached:function(t,e){t.data.cached.push(e),t.data.cached.length>t.data.maxStorePoints&&t.data.cached.splice(0,t.data.cached.length-t.data.maxStorePoints)},resetStats:function(t){t.data.stats=[],t.data.date=[],t.data.sizeDisk=[],t.data.reqServ=[],t.data.bytesSent=[],t.data.hits=[],t.data.misses=[],t.data.cached=[],localStorage.stats=""},resetLayout:function(t){t.layout.grid=l,localStorage.layout=JSON.stringify(t.data.layout)},setSpecificLayout:function(t,e){null!=e.w&&(t.layout.grid[e.i].w=e.w),null!=e.h&&(t.layout.grid[e.i].h=e.h),null!=e.x&&(t.layout.grid[e.i].x=e.x),null!=e.y&&(t.layout.grid[e.i].y=e.y)},setLayout:function(t,e){t.layout.grid=e},setHasBg:function(t,e){t.hasBgImage=e},setBgUrl:function(t,e){t.bgImage=e},setRefresh:function(t,e){t.data.updateInterval=e},showAppBar:function(t,e){t.showAppBar=e},setMaxPoints:function(t,e){t.data.maxPoints=e},setMaxStorePoints:function(t,e){t.data.maxStorePoints=e}},g=new n["a"].Store({state:c,mutations:d,getters:u});if(localStorage.hasbg&&g.commit("setHasBg","true"===localStorage.hasbg),localStorage.showBar&&g.commit("showAppBar","true"===localStorage.showBar),localStorage.theme&&g.commit("setTheme",localStorage.theme),localStorage.bgURL&&g.commit("setBgUrl",localStorage.bgURL),localStorage.layout)try{g.commit("setLayout",JSON.parse(localStorage.layout))}catch(Ct){g.commit("resetLayout"),console.log(Ct),console.log("using default layout")}localStorage.refresh&&g.commit("setRefresh",parseInt(localStorage.refresh)),document.body.style.backgroundColor=g.getters.current.backgroundColor,localStorage.stats&&g.getters.data.stats.length<1&&g.commit("setStats",JSON.parse(localStorage.stats));var h={name:"App",data:function(){return{drawer:null,settings:"settings",showbar:!0,items:[{title:"Dashboard",icon:"mdi-view-dashboard",route:"/"},{title:"Settings",icon:"mdi-cog-outline",route:"/opts"}],evnt:Event}},mounted:function(){if(g.getters.data.stats.length>=1){for(var t=0;t0?g.getters.data.stats[t-1][Object.keys(g.getters.data.stats[t-1])[0]]:null,a=new Date(e);g.commit("pushHits",s.cache_hits),g.commit("pushMisses",s.cache_misses),g.commit("pushCached",s.browser_cached),g.commit("pushDate",a),g.commit("pushBytesSent",[a,s.bytes_sent]),g.commit("pushBytesSentChange",[a,r?s.bytes_sent-r.bytes_sent:0]),g.commit("pushReqServ",[a,s.requests_served]),g.commit("pushReqServChange",[a,r?s.requests_served-r.requests_served:0]),g.commit("pushSizeDisk",[a,s.bytes_on_disk]),g.commit("pushSizeDiskChange",[a,r?s.bytes_on_disk-r.bytes_on_disk:0])}var o=g.getters.data.stats;if(o.length>=1)for(var n=1;n{c} ({d}%)"},legend:{orient:"vertical",left:0,data:["Hits","Misses","Cached"],inactiveColor:g.getters.current.accent2,textStyle:{color:g.getters.current.textColor}},series:[{type:"pie",avoidLabelOverlap:!0,label:{show:!1},labelLine:{show:!1},data:[{value:0,name:"Hits",itemStyle:{color:g.getters.current.green}},{value:0,name:"Misses",itemStyle:{color:g.getters.current.red}},{value:0,name:"Cached",itemStyle:{color:g.getters.current.accent}}]}]}},{x:i[1].x,y:i[1].y,w:i[1].w,h:i[1].h,i:i[1].i,o:{title:{left:"center",text:"Bytes Sent",textStyle:{color:g.getters.current.textColor}},tooltip:e,toolbox:t,grid:s,legend:n,xAxis:r,yAxis:a,series:[{name:"Total",data:g.getters.data.bytesSent,type:"line",sampling:"average",showSymbol:!1,itemStyle:{color:g.getters.current.textColor}},{name:"Change",data:g.getters.data.bytesSentChange,type:"bar",itemStyle:{color:g.getters.current.yellow}}],dataZoom:o}},{x:i[2].x,y:i[2].y,w:i[2].w,h:i[2].h,i:i[2].i,o:{title:{left:"center",text:"Requests Served",textStyle:{color:g.getters.current.textColor}},tooltip:e,toolbox:t,grid:s,legend:n,xAxis:r,yAxis:{type:"value",axisLabel:{formatter:this.unitFormat},axisLine:{lineStyle:{color:g.getters.current.textColor}},splitLine:{lineStyle:{color:g.getters.current.accent1}}},series:[{name:"Total",data:g.getters.data.reqServ,type:"line",sampling:"average",showSymbol:!1,itemStyle:{color:g.getters.current.textColor}},{name:"Change",data:g.getters.data.reqServChange,type:"bar",itemStyle:{color:g.getters.current.yellow}}],dataZoom:o}},{x:i[3].x,y:i[3].y,w:i[3].w,h:i[3].h,i:i[3].i,o:{title:{left:"center",text:"Size On Disk",textStyle:{color:g.getters.current.textColor}},tooltip:e,toolbox:t,grid:s,legend:n,xAxis:r,yAxis:a,series:[{name:"Total",data:g.getters.data.sizeDisk,type:"line",sampling:"average",showSymbol:!1,itemStyle:{color:g.getters.current.textColor}},{name:"Change",data:g.getters.data.sizeDiskChange,type:"bar",itemStyle:{color:g.getters.current.yellow}}],dataZoom:o}}],evnt:Event}},methods:{byteFormat:function(t){var e=parseFloat(t);return e>=1e15?e/1e15+"pb":e>=1e12?e/1e12+"tb":e>=1e9?e/1e9+"gb":e>=1e6?e/1e6+"mb":e>=1e3?e/1e3+"kb":e+"b"},unitFormat:function(t){var e=parseFloat(t);return e>=1e15?e/1e15+"q":e>=1e12?e/1e12+"t":e>=1e9?e/1e9+"b":e>=1e6?e/1e6+"m":e>=1e3?e/1e3+"k":e},layoutRemove:function(t){for(var e=0;e2?t[t.length-2][Object.keys(t[t.length-2])[0]]:null,a=new Date(e.replace("T"," ").replace("Z"," "));this.layout[0].o.series[0].data[0].value=s.cache_hits,this.layout[0].o.series[0].data[1].value=s.cache_misses,this.layout[0].o.series[0].data[2].value=s.browser_cached,g.commit("pushHits",s.cache_hits),g.commit("pushMisses",s.cache_misses),g.commit("pushCached",s.browser_cached),g.commit("pushDate",a),g.commit("pushBytesSent",[a,s.bytes_sent]),g.commit("pushBytesSentChange",[a,r?s.bytes_sent-r.bytes_sent:0]),g.commit("pushReqServ",[a,s.requests_served]),g.commit("pushReqServChange",[a,r?s.requests_served-r.requests_served:0]),g.commit("pushSizeDisk",[a,s.bytes_on_disk]),g.commit("pushSizeDiskChange",[a,r?s.bytes_on_disk-r.bytes_on_disk:0])}},pull:function(){fetch("api/stats").then((function(t){return t.json()})).then((function(t){g.commit("pushStats",t),localStorage.stats=JSON.stringify(g.getters.data.stats)})).catch((function(t){console.log(t)}))},moved:function(t,e,s){g.commit("setSpecificLayout",{i:t,x:e,y:s}),localStorage.layout=JSON.stringify(g.getters.layout.grid)},resized:function(t,e,s){g.commit("setSpecificLayout",{i:t,w:s,h:e}),localStorage.layout=JSON.stringify(g.getters.layout.grid)}},computed:{stats:function(){return g.getters.data.stats}},watch:{stats:function(){this.updateValues()}}}),L=O,N=(s("2fe3"),s("62ad")),j=s("a523"),q=s("0fd9"),R=Object(m["a"])(L,H,z,!1,null,null,null),T=R.exports;f()(R,{VCol:N["a"],VContainer:j["a"],VIcon:C["a"],VRow:q["a"]});var F=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{style:{color:t.$store.getters.current.textColor},attrs:{fluid:""}},[s("v-container",{style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[s("h1",{staticClass:"pl-1"},[t._v("Console")])]),s("p",[t._v(" Stop looking for hidden pages ")]),s("v-img",{attrs:{src:"https://i.stack.imgur.com/jDfXy.jpg"}})],1)},J=[],E={name:"Console"},Z=E,U=Object(m["a"])(Z,F,J,!1,null,"99ebe61a",null),W=U.exports;f()(U,{VContainer:j["a"],VImg:x["a"]});var X=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{style:{color:t.$store.getters.current.textColor},attrs:{fluid:""}},[s("v-container",{style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[s("h1",{staticClass:"pl-1"},[t._v("Settings")])]),s("v-row",[s("v-col",{attrs:{cols:"12",md:"6"}},[s("v-container",{staticClass:"pa-5 pb-9",style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[s("h3",[t._v("Web Settings")]),s("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:t.$store.getters.current.accent2}}),s("h4",[t._v("Display")]),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Theme ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-select",{attrs:{label:t.$vuetify.breakpoint.mdAndDown?"Theme":"",items:t.items,"item-value":"val","item-text":"disp",value:t.$store.state.current,color:t.$store.getters.current.textColor,dark:t.$store.getters.current.isDark},on:{input:t.setTheme}})],1)],1),t.$vuetify.breakpoint.mdAndDown?t._e():s("v-row",[s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Show App Bar ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-container",{staticClass:"pt-1 pl-0"},[s("v-switch",{attrs:{dark:t.$store.getters.current.isDark},on:{change:function(e){return t.$store.commit("showAppBar",t.showbar)}},model:{value:t.showbar,callback:function(e){t.showbar=e},expression:"showbar"}})],1)],1)],1),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Background Image ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-container",{staticClass:"pt-1 pl-0"},[s("v-switch",{attrs:{label:t.$vuetify.breakpoint.mdAndDown?"Background Image":"",dark:t.$store.getters.current.isDark},on:{change:function(e){return t.$store.commit("setHasBg",t.hasBgImage)}},model:{value:t.hasBgImage,callback:function(e){t.hasBgImage=e},expression:"hasBgImage"}})],1)],1)],1),t.hasBgImage?s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Image URL ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{label:t.$vuetify.breakpoint.mdAndDown?"Image URL":"",dark:t.$store.getters.current.isDark},on:{change:function(e){return t.$store.commit("setBgUrl",t.bgimg)}},model:{value:t.bgimg,callback:function(e){t.bgimg=e},expression:"bgimg"}})],1)],1):t._e(),t.$vuetify.breakpoint.mdAndDown?t._e():s("v-row",[s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Dashboard ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8"}},[s("v-container",{staticClass:"mt-1 pl-0"},[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-btn",{style:{color:t.$store.getters.current.textColor},attrs:{color:t.$store.getters.current.accent1},on:{click:function(e){return t.$store.commit("resetLayout")}}},[t._v(" Reset ")])],1)],1)],1),s("h4",[t._v("Data")]),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Data Refresh Rate ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8"}},[s("v-text-field",{attrs:{label:t.$vuetify.breakpoint.mdAndDown?"Data Refresh Rate":"",dark:t.$store.getters.current.isDark,"error-messages":t.referr,suffix:"ms"},on:{input:t.checkNan,change:t.commit},model:{value:t.$store.getters.data.updateInterval,callback:function(e){t.$set(t.$store.getters.data,"updateInterval",e)},expression:"$store.getters.data.updateInterval"}})],1)],1),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Stats ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-container",{staticClass:"mt-1 pl-0"},[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-btn",{style:{color:t.$store.getters.current.textColor},attrs:{color:t.$store.getters.current.accent1},on:{click:function(e){return t.$store.commit("resetStats")}}},[t._v(" Reset ")]),t.$vuetify.breakpoint.mdAndDown?s("v-btn",{style:{color:t.$store.getters.current.textColor},attrs:{color:t.$store.getters.current.accent1},on:{click:function(e){return t.$store.commit("resetStats")}}},[t._v(" Reset Stats ")]):t._e()],1)],1)],1)],1)],1),s("v-col",{staticClass:"hidden-md-and-down",attrs:{cols:"12",md:"6"}},[s("v-container",{staticClass:"pa-5",style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[s("h3",[t._v("Client Settings")]),s("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:t.$store.getters.current.accent2}}),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Client Secret ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{"error-messages":t.configerrors[0],label:t.$vuetify.breakpoint.mdAndDown?"Client Secret":"",dark:t.$store.getters.current.isDark},model:{value:t.configvals[0],callback:function(e){t.$set(t.configvals,0,e)},expression:"configvals[0]"}})],1)],1),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Client Host IP ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{"error-messages":t.configerrors[1],label:t.$vuetify.breakpoint.mdAndDown?"Client Host IP":"",dark:t.$store.getters.current.isDark},model:{value:t.configvals[1],callback:function(e){t.$set(t.configvals,1,e)},expression:"configvals[1]"}})],1)],1),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Client Port ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{"error-messages":t.configerrors[2],label:t.$vuetify.breakpoint.mdAndDown?"Client Port":"",dark:t.$store.getters.current.isDark},model:{value:t.configvals[2],callback:function(e){t.$set(t.configvals,2,e)},expression:"configvals[2]"}})],1)],1),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Max Shutdown Wait Time ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"6"}},[s("v-text-field",{attrs:{"error-messages":t.configerrors[3],label:t.$vuetify.breakpoint.mdAndDown?"Max Shutdown Wait Time":"",dark:t.$store.getters.current.isDark},model:{value:t.msw,callback:function(e){t.msw=e},expression:"msw"}})],1),s("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[s("span",[t._v(t._s(t.mswtprev))])])],1),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Max Threads ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{"error-messages":t.configerrors[4],label:t.$vuetify.breakpoint.mdAndDown?"Max Threads":"",dark:t.$store.getters.current.isDark},model:{value:t.configvals[3],callback:function(e){t.$set(t.configvals,3,e)},expression:"configvals[3]"}})],1)],1),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Max Cache Size ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8",md:"6"}},[s("v-text-field",{attrs:{"error-messages":t.configerrors[5],label:t.$vuetify.breakpoint.mdAndDown?"Max Cache Size":"",dark:t.$store.getters.current.isDark},model:{value:t.mcs,callback:function(e){t.mcs=e},expression:"mcs"}})],1),s("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[s("span",[t._v(t._s(t.mcsprev))])])],1),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Max Hourly Bandwith ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8",md:"6"}},[s("v-text-field",{attrs:{"error-messages":t.configerrors[6],label:t.$vuetify.breakpoint.mdAndDown?"Max Hourly Bandwith":"",dark:t.$store.getters.current.isDark},model:{value:t.mhb,callback:function(e){t.mhb=e},expression:"mhb"}})],1),s("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[s("span",[t._v(t._s(t.mhbprev))])])],1),s("v-row",[t.$vuetify.breakpoint.mdAndDown?t._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:t.$store.getters.current.textColor}},[t._v("Max Burst Speed ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8",md:"6"}},[s("v-text-field",{attrs:{"error-messages":t.configerrors[7],label:t.$vuetify.breakpoint.mdAndDown?"Max Burst Speed":"",dark:t.$store.getters.current.isDark},model:{value:t.mbs,callback:function(e){t.mbs=e},expression:"mbs"}})],1),s("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[s("span",[t._v(t._s(t.mbsprev))])])],1),s("v-container",{style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[s("h3",[t._v("Config Result")]),s("v-container",{style:{backgroundColor:t.$store.getters.current.accent1+t.$store.getters.alpha},attrs:{fluid:""}},[s("span",{staticStyle:{"font-family":"monospace"}},[t._v(" {"),s("br"),t._v(' "client_secret": "'+t._s(t.configvals[0])+'",'),s("br"),t._v(' "client_hostname": "'+t._s(t.configvals[1])+'",'),s("br"),t._v(' "client_port": "'+t._s(t.configvals[2])+'",'),s("br"),t._v(' "threads": "'+t._s(t.configvals[3])+'",'),s("br"),t._v(' "graceful_shutdown_wait_seconds": "'+t._s(t.configvals[4])+'",'),s("br"),t._v(' "max_cache_size_in_mebibytes": "'+t._s(t.configvals[5])+'",'),s("br"),t._v(' "max_kilobits_per_second": "'+t._s(t.configvals[6])+'",'),s("br"),t._v(' "max_mebibytes_per_hour": "'+t._s(t.configvals[7])+'",'),s("br"),t._v(" } ")])])],1)],1)],1)],1)],1)},Y=[],G=(s("c975"),{name:"Options",methods:{setTheme:function(t){g.state.current=t,localStorage.theme=t,g.commit("setTheme",t),document.body.style.backgroundColor=g.getters.current.backgroundColor},commit:function(){""===this.referr&&(localStorage.refresh=g.getters.data.updateInterval)},checkNan:function(t){isNaN(t)?this.referr="That is not a number!":this.referr=""}},data:function(){return{items:[{disp:"Light",val:"light"},{disp:"Dark",val:"dark"},{disp:"Midnight",val:"midnight"}],mcsprev:"1.049 mb",mcs:1048576,mhbprev:"1.049 mb",mhb:1048576,mbsprev:"1 kps",mbs:1e3,mswtprev:"1 m",msw:60,configvals:["iiesenpaithisisoursecret","0.0.0.0",44300,16,60,1,1,1],configerrors:["","","","","","","",""],hasBgImage:g.getters.hasBgImage,bgimg:g.getters.bgImg,referr:"",showbar:g.getters.showAppBar}},computed:{hasbg:function(){return g.getters.hasBgImage},bgurl:function(){return g.getters.bgImg},showAppBar:function(){return g.getters.showAppBar},maxbs:function(){return this.mbs},maxhb:function(){return this.mhb},maxcs:function(){return this.mcs},maxsw:function(){return this.msw},configval:function(){return this.configvals}},watch:{hasbg:function(){localStorage.hasbg=g.getters.hasBgImage,this.hasBgImage=g.getters.hasBgImage},bgurl:function(){localStorage.bg=g.getters.bgImg,this.bgimg=g.getters.bgImg},showAppBar:function(){localStorage.showBar=g.getters.showAppBar},maxbs:function(){if(""!==this.mbs){var t=["bps","kbps","mbps","gbps","tbps","pbps","ebps","zbps","ybps"];if(isNaN(this.mbs)){for(var e in t)if(-1!==this.mbs.indexOf(t[e])){var s=parseFloat(this.mbs.replace(t[e],""));for(var r in t){var a=Math.pow(10,3*parseInt(r));s*Math.pow(10,3*parseInt(e))>=a&&(this.mbsprev=(s*Math.pow(10,3*parseInt(e))/a).toPrecision(4)+" "+t[r])}this.configvals[6]=s*Math.pow(10,3*parseInt(e))/1e3}}else{var o=parseInt(this.mbs);for(var n in t){var i=Math.pow(10,3*parseInt(n));o>=i&&(this.mbsprev=(o/i).toPrecision(4)+" "+t[n])}this.configvals[6]=Math.round(o/1e3)}this.configvals[6]<1?this.configerrors[7]="That size is too small!":this.configerrors[7]=""}else this.mbsprev="0 bits/s"},maxhb:function(){if(""===this.mcs)return this.configvals[7]=0,void(this.mcsprev="0 bytes");var t=["b","kb","mb","gb","tb","pb","eb","zb","yb"];if(isNaN(this.mhb)){for(var e in t)if(-1!==this.mhb.indexOf(t[e])){var s=parseFloat(this.mhb.replace(t[e],""));for(var r in t){var a=Math.pow(10,3*parseInt(r));s*Math.pow(10,3*parseInt(e))>=a&&(this.mhbprev=(s*Math.pow(10,3*parseInt(e))/a).toPrecision(4)+" "+t[r])}this.configvals[7]=Math.round(s*Math.pow(10,3*parseInt(e))/1048576)}}else{var o=parseInt(this.mhb);if(0===o)return void(this.mhbprev="0 bytes");for(var n in t){var i=Math.pow(10,3*parseInt(n));o>=i&&(this.mhbprev=(o/i).toPrecision(4)+" "+t[n])}this.configvals[7]=Math.round(o/1048576)}this.configvals[7]<1?this.configerrors[6]="That size is too small!":this.configerrors[6]=""},maxcs:function(){if(""===this.mcs)return this.configvals[5]=0,void(this.mcsprev="0 bytes");var t=["b","kb","mb","gb","tb","pb","eb","zb","yb"];if(isNaN(this.mcs)){for(var e in t)if(-1!==this.mcs.indexOf(t[e])){var s=parseFloat(this.mcs.replace(t[e],""));for(var r in t){var a=Math.pow(10,3*parseInt(r));s*Math.pow(10,3*parseInt(e))>=a&&(this.mcsprev=(s*Math.pow(10,3*parseInt(e))/a).toPrecision(4)+" "+t[r])}this.configvals[5]=Math.round(s*Math.pow(10,3*parseInt(e))/1048576)}}else{var o=parseInt(this.mcs);for(var n in t){var i=Math.pow(10,3*parseInt(n));o>=i&&(this.mcsprev=(o/i).toPrecision(4)+" "+t[n])}this.configvals[5]=Math.round(o/1048576)}this.configvals[5]<1?this.configerrors[5]="That size is too small!":this.configerrors[5]=""},maxsw:function(){if(""===this.msw)return this.configvals[4]=0,void(this.mswtprev="0 seconds");var t=["s","m","h","d"],e=[1,60,3600,86400];if(isNaN(this.msw)){for(var s in t)if(-1!==this.msw.indexOf(t[s])){var r=parseFloat(this.msw.replace(t[s],""));for(var a in e){var o=e[a];r*e[s]>=o&&(this.mswtprev=(r*e[s]/o).toPrecision(4)+" "+t[a])}this.configvals[4]=Math.round(r*e[s])}}else{var n=parseInt(this.msw);for(var i in e){var c=e[i];n>=c&&(this.mswtprev=(n/c).toPrecision(4)+" "+t[i])}this.configvals[4]=Math.round(n)}},configval:function(){-1!==this.configval[0].indexOf(" ")?this.configerrors[0]="Secret can't have spaces!":this.configerrors[0]="",-1!==this.configval[1].indexOf(" ")?this.configerrors[1]="IP can't have spaces!":this.configerrors[1]="",isNaN(this.configval[2])?this.configerrors[2]="Port can't have spaces!":this.configerrors[2]="",this.configval[3]<4?this.configerrors[4]="Max threads can't be less than 4!":isNaN(this.configval[3])?this.configerrors[4]="Max threads should be a number!":this.configerrors[4]=""}}}),K=G,Q=s("8336"),tt=s("b974"),et=s("e0c7"),st=s("b73d"),rt=s("8654"),at=Object(m["a"])(K,X,Y,!1,null,null,null),ot=at.exports;f()(at,{VBtn:Q["a"],VCol:N["a"],VContainer:j["a"],VRow:q["a"],VSelect:tt["a"],VSubheader:et["a"],VSwitch:st["a"],VTextField:rt["a"]});var nt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{style:{color:t.$store.getters.current.textColor},attrs:{fluid:""}},[s("v-container",{style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[s("h1",{staticClass:"pl-1"},[t._v("Info")])]),s("p",[t._v(" You shouldn't be here ")]),s("v-img",{attrs:{src:"https://i.kym-cdn.com/photos/images/newsfeed/001/273/780/f05.png"}})],1)},it=[],ct={name:"About"},lt=ct,ut=Object(m["a"])(lt,nt,it,!1,null,"3a772fca",null),dt=ut.exports;f()(ut,{VContainer:j["a"],VImg:x["a"]});var gt=s("8c4f"),ht=[{path:"/",component:T},{path:"/cons",component:W},{path:"/opts",component:ot},{path:"/info",component:dt}];r["default"].use(gt["a"]);var pt=new gt["a"]({routes:ht}),mt=s("7be8"),vt=s.n(mt);r["default"].use(vt.a);var ft={},bt=s("9ca8");s("ef97"),s("94b1"),s("c037"),s("007d"),s("627c"),s("d28f"),s("b11c"),s("0a6d");r["default"].component("v-chart",bt["a"]);var yt={},wt=s("9483");Object(wt["a"])("".concat("/","service-worker.js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){console.log("New content is downloading.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(t){console.error("Error during service worker registration:",t)}}),r["default"].config.productionTip=!1,window.Event=new r["default"],new r["default"]({render:function(t){return t(B)},router:pt,store:g,vuetify:P,grid:ft,echarts:yt}).$mount("#app")},a492:function(t,e,s){}}); //# sourceMappingURL=app.33739a3c.js.map