diff --git a/public/build/js/app-47eeed0b62.js b/public/build/js/app-1943400d38.js similarity index 98% rename from public/build/js/app-47eeed0b62.js rename to public/build/js/app-1943400d38.js index c5c6bc5..5813594 100644 --- a/public/build/js/app-47eeed0b62.js +++ b/public/build/js/app-1943400d38.js @@ -17,4 +17,4 @@ t.animations.splice(r,1)):++r;var i=Date.now(),a=(i-e)/t.frameDuration;t.dropFra }function o(t){var n=e.findNextWhere(x,function(e){return e.box===t}),r={left:0,right:0,top:C,bottom:j};n&&t.update(n.minSize.width,D,r)}function s(t){t.isHorizontal()?(t.left=t.options.fullWidth?d:T,t.right=t.options.fullWidth?n-c:T+Y,t.top=O,t.bottom=O+t.height,O=t.bottom):(t.left=P,t.right=P+t.width,t.top=C,t.bottom=C+D,P=t.right)}if(t){var u=t.options.layout,l=u?u.padding:null,d=0,c=0,f=0,h=0;isNaN(l)?(d=l.left||0,c=l.right||0,f=l.top||0,h=l.bottom||0):(d=l,c=l,f=l,h=l);var _=e.where(t.boxes,function(t){return"left"===t.options.position}),m=e.where(t.boxes,function(t){return"right"===t.options.position}),p=e.where(t.boxes,function(t){return"top"===t.options.position}),v=e.where(t.boxes,function(t){return"bottom"===t.options.position}),g=e.where(t.boxes,function(t){return"chartArea"===t.options.position});p.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),v.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var y=n-d-c,M=r-f-h,b=y/2,L=M/2,w=(n-b)/(_.length+m.length),k=(r-L)/(p.length+v.length),Y=y,D=M,x=[];e.each(_.concat(m,p,v),i);var T=d,S=c,C=f,j=h;e.each(_.concat(m),a),e.each(_,function(t){T+=t.width}),e.each(m,function(t){S+=t.width}),e.each(p.concat(v),a),e.each(p,function(t){C+=t.height}),e.each(v,function(t){j+=t.height}),e.each(_.concat(m),o),T=d,S=c,C=f,j=h,e.each(_,function(t){T+=t.width}),e.each(m,function(t){S+=t.width}),e.each(p,function(t){C+=t.height}),e.each(v,function(t){j+=t.height});var A=r-C-j,H=n-T-S;H===Y&&A===D||(e.each(_,function(t){t.height=A}),e.each(m,function(t){t.height=A}),e.each(p,function(t){t.options.fullWidth||(t.width=H)}),e.each(v,function(t){t.options.fullWidth||(t.width=H)}),D=A,Y=H);var P=d,O=f;e.each(_.concat(p),s),P+=Y,O+=D,e.each(m,s),e.each(v,s),t.chartArea={left:T,top:C,right:T+Y,bottom:C+D},e.each(g,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(Y,D)})}}}}},function(t,e){"use strict";t.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}var n=t.helpers,r=n.noop;t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var n=e.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return n.isArray(e.datasets)?e.datasets.map(function(e,r){return{text:e.label,fillStyle:n.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(r),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:r}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){n.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:r,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:function(){var t=this;t.legendItems=t.options.labels.generateLabels.call(t,t.chart),t.options.reverse&&t.legendItems.reverse()},afterBuildLabels:r,beforeFit:r,fit:function(){var r=this,i=r.options,a=i.labels,o=i.display,s=r.ctx,u=t.defaults.global,l=n.getValueOrDefault,d=l(a.fontSize,u.defaultFontSize),c=l(a.fontStyle,u.defaultFontStyle),f=l(a.fontFamily,u.defaultFontFamily),h=n.fontString(d,c,f),_=r.legendHitBoxes=[],m=r.minSize,p=r.isHorizontal();if(p?(m.width=r.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=r.maxHeight),o)if(s.font=h,p){var v=r.lineWidths=[0],g=r.legendItems.length?d+a.padding:0;s.textAlign="left",s.textBaseline="top",n.each(r.legendItems,function(t,n){var i=e(a,d),o=i+d/2+s.measureText(t.text).width;v[v.length-1]+o+a.padding>=r.width&&(g+=d+a.padding,v[v.length]=r.left),_[n]={left:0,top:0,width:o,height:d},v[v.length-1]+=o+a.padding}),m.height+=g}else{var y=a.padding,M=r.columnWidths=[],b=a.padding,L=0,w=0,k=d+y;n.each(r.legendItems,function(t,n){var r=e(a,d),i=r+d/2+s.measureText(t.text).width;w+k>m.height&&(b+=L+a.padding,M.push(L),L=0,w=0),L=Math.max(L,i),w+=k,_[n]={left:0,top:0,width:i,height:d}}),b+=L,M.push(L),m.width+=b}r.width=m.width,r.height=m.height},afterFit:r,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var r=this,i=r.options,a=i.labels,o=t.defaults.global,s=o.elements.line,u=r.width,l=r.lineWidths;if(i.display){var d,c=r.ctx,f=n.getValueOrDefault,h=f(a.fontColor,o.defaultFontColor),_=f(a.fontSize,o.defaultFontSize),m=f(a.fontStyle,o.defaultFontStyle),p=f(a.fontFamily,o.defaultFontFamily),v=n.fontString(_,m,p);c.textAlign="left",c.textBaseline="top",c.lineWidth=.5,c.strokeStyle=h,c.fillStyle=h,c.font=v;var g=e(a,_),y=r.legendHitBoxes,M=function(e,n,r){if(!(isNaN(g)||g<=0)){c.save(),c.fillStyle=f(r.fillStyle,o.defaultColor),c.lineCap=f(r.lineCap,s.borderCapStyle),c.lineDashOffset=f(r.lineDashOffset,s.borderDashOffset),c.lineJoin=f(r.lineJoin,s.borderJoinStyle),c.lineWidth=f(r.lineWidth,s.borderWidth),c.strokeStyle=f(r.strokeStyle,o.defaultColor);var a=0===f(r.lineWidth,s.borderWidth);if(c.setLineDash&&c.setLineDash(f(r.lineDash,s.borderDash)),i.labels&&i.labels.usePointStyle){var u=_*Math.SQRT2/2,l=u/Math.SQRT2,d=e+l,h=n+l;t.canvasHelpers.drawPoint(c,r.pointStyle,u,d,h)}else a||c.strokeRect(e,n,g,_),c.fillRect(e,n,g,_);c.restore()}},b=function(t,e,n,r){c.fillText(n.text,g+_/2+t,e),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(g+_/2+t,e+_/2),c.lineTo(g+_/2+t+r,e+_/2),c.stroke())},L=r.isHorizontal();d=L?{x:r.left+(u-l[0])/2,y:r.top+a.padding,line:0}:{x:r.left+a.padding,y:r.top+a.padding,line:0};var w=_+a.padding;n.each(r.legendItems,function(t,e){var n=c.measureText(t.text).width,i=g+_/2+n,o=d.x,s=d.y;L?o+i>=u&&(s=d.y+=w,d.line++,o=d.x=r.left+(u-l[d.line])/2):s+w>r.bottom&&(o=d.x=o+r.columnWidths[d.line]+a.padding,s=d.y=r.top,d.line++),M(o,s,t),y[e].left=o,y[e].top=s,b(o,s,t,n),L?d.x+=i+a.padding:d.y+=w})}},handleEvent:function(t){var e=this,r=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!r.onHover)return}else{if("click"!==i)return;if(!r.onClick)return}var o=n.getRelativePosition(t,e.chart.chart),s=o.x,u=o.y;if(s>=e.left&&s<=e.right&&u>=e.top&&u<=e.bottom)for(var l=e.legendHitBoxes,d=0;d=c.left&&s<=c.left+c.width&&u>=c.top&&u<=c.top+c.height){if("click"===i){r.onClick.call(e,t,e.legendItems[d]),a=!0;break}if("mousemove"===i){r.onHover.call(e,t,e.legendItems[d]),a=!0;break}}}return a}}),t.plugins.register({beforeInit:function(e){var n=e.options,r=n.legend;r&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:r,chart:e}),t.layoutService.addBox(e,e.legend))}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){e.indexOf(t)===-1&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var n,r,i=this._plugins,a=i.length;for(n=0;nv&&n.labelRotationn.yLabelWidth&&(n.paddingLeft=d+o/2),n.paddingRight=o/2,_*m>n.maxHeight){n.labelRotation--;break}n.labelRotation++,p=h*m}}n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var n=this,r=n.minSize={width:0,height:0},i=n.options,a=t.defaults.global,o=i.ticks,s=i.scaleLabel,u=i.gridLines,l=i.display,d=n.isHorizontal(),c=e.getValueOrDefault(o.fontSize,a.defaultFontSize),f=e.getValueOrDefault(o.fontStyle,a.defaultFontStyle),h=e.getValueOrDefault(o.fontFamily,a.defaultFontFamily),_=e.fontString(c,f,h),m=e.getValueOrDefault(s.fontSize,a.defaultFontSize),p=i.gridLines.tickMarkLength;if(d?r.width=n.isFullWidth()?n.maxWidth-n.margins.left-n.margins.right:n.maxWidth:r.width=l&&u.drawTicks?p:0,d?r.height=l&&u.drawTicks?p:0:r.height=n.maxHeight,s.display&&l&&(d?r.height+=1.5*m:r.width+=1.5*m),o.display&&l){n.longestTextCache||(n.longestTextCache={});var v=e.longestText(n.ctx,_,n.ticks,n.longestTextCache),g=e.numberOfLabelLines(n.ticks),y=.5*c;if(d){n.longestLabelWidth=v;var M=Math.sin(e.toRadians(n.labelRotation))*n.longestLabelWidth+c*g+y*g;r.height=Math.min(n.maxHeight,r.height+M),n.ctx.font=_;var b=n.ctx.measureText(n.ticks[0]).width,L=n.ctx.measureText(n.ticks[n.ticks.length-1]).width,w=Math.cos(e.toRadians(n.labelRotation)),k=Math.sin(e.toRadians(n.labelRotation));n.paddingLeft=0!==n.labelRotation?w*b+3:b/2+3,n.paddingRight=0!==n.labelRotation?k*(c/2)+3:L/2+3}else{var Y=n.maxWidth-r.width,D=o.mirror;D?v=0:v+=n.options.ticks.padding,v0&&n>0?e:0)},draw:function(n){var r=this,i=r.options;if(i.display){var a,o,s=r.ctx,u=t.defaults.global,l=i.ticks,d=i.gridLines,c=i.scaleLabel,f=0!==r.labelRotation,h=l.autoSkip,_=r.isHorizontal();l.maxTicksLimit&&(o=l.maxTicksLimit);var m=e.getValueOrDefault(l.fontColor,u.defaultFontColor),p=e.getValueOrDefault(l.fontSize,u.defaultFontSize),v=e.getValueOrDefault(l.fontStyle,u.defaultFontStyle),g=e.getValueOrDefault(l.fontFamily,u.defaultFontFamily),y=e.fontString(p,v,g),M=d.tickMarkLength,b=e.getValueOrDefault(d.borderDash,u.borderDash),L=e.getValueOrDefault(d.borderDashOffset,u.borderDashOffset),w=e.getValueOrDefault(c.fontColor,u.defaultFontColor),k=e.getValueOrDefault(c.fontSize,u.defaultFontSize),Y=e.getValueOrDefault(c.fontStyle,u.defaultFontStyle),D=e.getValueOrDefault(c.fontFamily,u.defaultFontFamily),x=e.fontString(k,Y,D),T=e.toRadians(r.labelRotation),S=Math.cos(T),C=r.longestLabelWidth*S;s.fillStyle=m;var j=[];if(_){if(a=!1,f&&(C/=2),(C+l.autoSkipPadding)*r.ticks.length>r.width-(r.paddingLeft+r.paddingRight)&&(a=1+Math.floor((C+l.autoSkipPadding)*r.ticks.length/(r.width-(r.paddingLeft+r.paddingRight)))),o&&r.ticks.length>o)for(;!a||r.ticks.length/(a||1)>o;)a||(a=1),a+=1;h||(a=!1)}var A="right"===i.position?r.left:r.right-M,H="right"===i.position?r.left+M:r.right,P="bottom"===i.position?r.top:r.bottom-M,O="bottom"===i.position?r.top+M:r.bottom;if(e.each(r.ticks,function(t,o){if(void 0!==t&&null!==t){var s=r.ticks.length===o+1,u=a>1&&o%a>0||o%a===0&&o+a>=r.ticks.length;if((!u||s)&&void 0!==t&&null!==t){var c,h;o===("undefined"!=typeof r.zeroLineIndex?r.zeroLineIndex:0)?(c=d.zeroLineWidth,h=d.zeroLineColor):(c=e.getValueAtIndexOrDefault(d.lineWidth,o),h=e.getValueAtIndexOrDefault(d.color,o));var m,p,v,g,y,w,k,Y,D,x,S="middle",C="middle";if(_){f||(C="top"===i.position?"bottom":"top"),S=f?"right":"center";var E=r.getPixelForTick(o)+e.aliasPixel(c);D=r.getPixelForTick(o,d.offsetGridLines)+l.labelOffset,x=f?r.top+12:"top"===i.position?r.bottom-M:r.top+M,m=v=y=k=E,p=P,g=O,w=n.top,Y=n.bottom}else{"left"===i.position?l.mirror?(D=r.right+l.padding,S="left"):(D=r.right-l.padding,S="right"):l.mirror?(D=r.left-l.padding,S="right"):(D=r.left+l.padding,S="left");var F=r.getPixelForTick(o);F+=e.aliasPixel(c),x=r.getPixelForTick(o,d.offsetGridLines),m=A,v=H,y=n.left,k=n.right,p=g=w=Y=F}j.push({tx1:m,ty1:p,tx2:v,ty2:g,x1:y,y1:w,x2:k,y2:Y,labelX:D,labelY:x,glWidth:c,glColor:h,glBorderDash:b,glBorderDashOffset:L,rotation:-1*T,label:t,textBaseline:C,textAlign:S})}}}),e.each(j,function(t){if(d.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),d.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),d.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),l.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=y,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var n=t.label;if(e.isArray(n))for(var r=0,i=-(n.length-1)*p*.75;r0)r=t.stepSize;else{var a=e.niceNum(n.max-n.min,!1);r=e.niceNum(a/(t.maxTicks-1),!0)}var o=Math.floor(n.min/r)*r,s=Math.ceil(n.max/r)*r;if(t.min&&t.max&&t.stepSize){var u=(t.max-t.min)%t.stepSize===0;u&&(o=t.min,s=t.max)}var l=(s-o)/r;l=e.almostEquals(l,Math.round(l),r/1e3)?Math.round(l):Math.ceil(l),i.push(void 0!==t.min?t.min:o);for(var d=1;d3?r[2]-r[1]:r[1]-r[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var a=e.log10(Math.abs(i)),o="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,n,r){var i=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===n||n===r.length-1?t.toExponential():""}}}}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};var n=e.noop;t.Title=t.Element.extend({initialize:function(n){var r=this;e.extend(r,n),r.options=e.configMerge(t.defaults.global.title,n.options),r.legendHitBoxes=[]},beforeUpdate:function(){var n=this.chart.options;n&&n.title&&(this.options=e.configMerge(t.defaults.global.title,n.title))},update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:n,beforeSetDimensions:n,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:n,beforeBuildLabels:n,buildLabels:n,afterBuildLabels:n,beforeFit:n,fit:function(){var n=this,r=e.getValueOrDefault,i=n.options,a=t.defaults.global,o=i.display,s=r(i.fontSize,a.defaultFontSize),u=n.minSize;n.isHorizontal()?(u.width=n.maxWidth,u.height=o?s+2*i.padding:0):(u.width=o?s+2*i.padding:0,u.height=n.maxHeight),n.width=u.width,n.height=u.height},afterFit:n,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var n=this,r=n.ctx,i=e.getValueOrDefault,a=n.options,o=t.defaults.global;if(a.display){var s,u,l,d=i(a.fontSize,o.defaultFontSize),c=i(a.fontStyle,o.defaultFontStyle),f=i(a.fontFamily,o.defaultFontFamily),h=e.fontString(d,c,f),_=0,m=n.top,p=n.left,v=n.bottom,g=n.right;r.fillStyle=i(a.fontColor,o.defaultFontColor),r.font=h,n.isHorizontal()?(s=p+(g-p)/2,u=m+(v-m)/2,l=g-p):(s="left"===a.position?p+d/2:g-d/2,u=m+(v-m)/2,l=v-m,_=Math.PI*("left"===a.position?-.5:.5)),r.save(),r.translate(s,u),r.rotate(_),r.textAlign="center",r.textBaseline="middle",r.fillText(a.text,0,0,l),r.restore()}}}),t.plugins.register({beforeInit:function(e){var n=e.options,r=n.title;r&&(e.titleBlock=new t.Title({ctx:e.chart.ctx,options:r,chart:e}),t.layoutService.addBox(e,e.titleBlock))}})}},function(t,e){"use strict";t.exports=function(t){function e(t,e){var n=u.color(t);return n.alpha(e*n.alpha()).rgbaString()}function n(t,e){return e&&(u.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function r(t){var e=t._xScale,n=t._yScale||t._scale,r=t._index,i=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(r,i):"",yLabel:n?n.getLabelForIndex(r,i):"",index:r,datasetIndex:i,x:t._model.x,y:t._model.y}}function i(e){var n=t.defaults.global,r=u.getValueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:r(e.bodyFontFamily,n.defaultFontFamily),_bodyFontStyle:r(e.bodyFontStyle,n.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:r(e.bodyFontSize,n.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:r(e.titleFontFamily,n.defaultFontFamily),_titleFontStyle:r(e.titleFontStyle,n.defaultFontStyle),titleFontSize:r(e.titleFontSize,n.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:r(e.footerFontFamily,n.defaultFontFamily),_footerFontStyle:r(e.footerFontStyle,n.defaultFontStyle),footerFontSize:r(e.footerFontSize,n.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors}}function a(t,e){var n=t._chart.ctx,r=2*e.yPadding,i=0,a=e.body,o=a.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,d=e.titleFontSize,c=e.bodyFontSize,f=e.footerFontSize;r+=s*d,r+=s?(s-1)*e.titleSpacing:0,r+=s?e.titleMarginBottom:0,r+=o*c,r+=o?(o-1)*e.bodySpacing:0,r+=l?e.footerMarginTop:0,r+=l*f,r+=l?(l-1)*e.footerSpacing:0;var h=0,_=function(t){i=Math.max(i,n.measureText(t).width+h)};return n.font=u.fontString(d,e._titleFontStyle,e._titleFontFamily),u.each(e.title,_),n.font=u.fontString(c,e._bodyFontStyle,e._bodyFontFamily),u.each(e.beforeBody.concat(e.afterBody),_),h=e.displayColors?c+2:0,u.each(a,function(t){u.each(t.before,_),u.each(t.lines,_),u.each(t.after,_)}),h=0,n.font=u.fontString(f,e._footerFontStyle,e._footerFontFamily),u.each(e.footer,_),i+=2*e.xPadding,{width:i,height:r}}function o(t,e){var n=t._model,r=t._chart,i=t._chartInstance.chartArea,a="center",o="center";n.yr.height-e.height&&(o="bottom");var s,u,l,d,c,f=(i.left+i.right)/2,h=(i.top+i.bottom)/2;"center"===o?(s=function(t){return t<=f},u=function(t){return t>f}):(s=function(t){return t<=e.width/2},u=function(t){return t>=r.width-e.width/2}),l=function(t){return t+e.width>r.width},d=function(t){return t-e.width<0},c=function(t){return t<=h?"top":"bottom"},s(n.x)?(a="left",l(n.x)&&(a="center",o=c(n.y))):u(n.x)&&(a="right",d(n.x)&&(a="center",o=c(n.y)));var _=t._options;return{xAlign:_.xAlign?_.xAlign:a,yAlign:_.yAlign?_.yAlign:o}}function s(t,e,n){var r=t.x,i=t.y,a=t.caretSize,o=t.caretPadding,s=t.cornerRadius,u=n.xAlign,l=n.yAlign,d=a+o,c=s+o;return"right"===u?r-=e.width:"center"===u&&(r-=e.width/2),"top"===l?i+=d:i-="bottom"===l?e.height+d:e.height/2,"center"===l?"left"===u?r+=d:"right"===u&&(r-=d):"left"===u?r-=c:"right"===u&&(r+=c),{x:r,y:i}}var u=t.helpers;t.defaults.global.tooltips={enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,callbacks:{beforeTitle:u.noop,title:function(t,e){var n="",r=e.labels,i=r?r.length:0;if(t.length>0){var a=t[0];a.xLabel?n=a.xLabel:i>0&&a.indexu;)a-=2*Math.PI;for(;a=s&&a<=u,d=o>=r.innerRadius&&o<=r.outerRadius;return l&&d}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,r=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,r),t.arc(e.x,e.y,e.innerRadius,r,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:n.defaultColor,borderWidth:3,borderColor:n.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var n=e._view;e._view.steppedLine===!0?(u.lineTo(n.x,t._view.y),u.lineTo(n.x,n.y)):0===e._view.tension?u.lineTo(n.x,n.y):u.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,n.controlPointPreviousX,n.controlPointPreviousY,n.x,n.y)}var r=this,i=r._view,a=i.spanGaps,o=i.scaleZero,s=r._loop;s||("top"===i.fill?o=i.scaleTop:"bottom"===i.fill&&(o=i.scaleBottom));var u=r._chart.ctx;u.save();var l=r._children.slice(),d=-1;s&&l.length&&l.push(l[0]);var c,f,h,_;if(l.length&&i.fill){for(u.beginPath(),c=0;c=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return r},inLabelRange:function(t,r){var i=this;if(!i._view)return!1;var a=!1,o=n(i);return a=e(i)?t>=o.left&&t<=o.right:r>=o.top&&r<=o.bottom},inXRange:function(t){var e=n(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=n(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,n,r=this._view;return e(this)?(t=r.x,n=(r.y+r.base)/2):(t=(r.x+r.base)/2,n=r.y),{x:t,y:n}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n={position:"bottom"},r=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1;var r;void 0!==t.options.ticks.min&&(r=e.indexOf(n,t.options.ticks.min),t.minIndex=r!==-1?r:t.minIndex),void 0!==t.options.ticks.max&&(r=e.indexOf(n,t.options.ticks.max),t.maxIndex=r!==-1?r:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,r=n.chart.data,i=n.isHorizontal();return r.xLabels&&i||r.yLabels&&!i?n.getRightValue(r.datasets[e].data[t]):n.ticks[t]},getPixelForValue:function(t,e,n,r){var i=this,a=Math.max(i.maxIndex+1-i.minIndex-(i.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var o=i.getLabels(),s=o.indexOf(t);e=s!==-1?s:e}if(i.isHorizontal()){var u=i.width-(i.paddingLeft+i.paddingRight),l=u/a,d=l*(e-i.minIndex)+i.paddingLeft;return(i.options.gridLines.offsetGridLines&&r||i.maxIndex===i.minIndex&&r)&&(d+=l/2),i.left+Math.round(d)}var c=i.height-(i.paddingTop+i.paddingBottom),f=c/a,h=f*(e-i.minIndex)+i.paddingTop;return i.options.gridLines.offsetGridLines&&r&&(h+=f/2),i.top+Math.round(h)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,n=this,r=Math.max(n.ticks.length-(n.options.gridLines.offsetGridLines?0:1),1),i=n.isHorizontal(),a=i?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),o=a/r;return t-=i?n.left:n.top,n.options.gridLines.offsetGridLines&&(t-=o/2),t-=i?n.paddingLeft:n.paddingTop,e=t<=0?0:Math.round(t/o)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",r,n)}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n={position:"left",ticks:{callback:t.Ticks.formatters.linear}},r=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,r=n.options,i=n.chart,a=i.data,o=a.datasets,s=n.isHorizontal();if(n.min=null,n.max=null,r.stacked){var u={};e.each(o,function(a,o){var s=i.getDatasetMeta(o);void 0===u[s.type]&&(u[s.type]={positiveValues:[],negativeValues:[]});var l=u[s.type].positiveValues,d=u[s.type].negativeValues;i.isDatasetVisible(o)&&t(s)&&e.each(a.data,function(t,e){var i=+n.getRightValue(t);isNaN(i)||s.data[e].hidden||(l[e]=l[e]||0,d[e]=d[e]||0,r.relativePoints?l[e]=100:i<0?d[e]+=i:l[e]+=i)})}),e.each(u,function(t){var r=t.positiveValues.concat(t.negativeValues),i=e.min(r),a=e.max(r);n.min=null===n.min?i:Math.min(n.min,i),n.max=null===n.max?a:Math.max(n.max,a)})}else e.each(o,function(r,a){var o=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(o)&&e.each(r.data,function(t,e){var r=+n.getRightValue(t);isNaN(r)||o.data[e].hidden||(null===n.min?n.min=r:rn.max&&(n.max=r))})});this.handleTickRangeOptions()},getTickLimit:function(){var n,r=this,i=r.options.ticks;if(r.isHorizontal())n=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.width/50));else{var a=e.getValueOrDefault(i.fontSize,t.defaults.global.defaultFontSize);n=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.height/(2*a)))}return n},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n,r=this,i=r.paddingLeft,a=r.paddingBottom,o=r.start,s=+r.getRightValue(t),u=r.end-o;return r.isHorizontal()?(n=r.width-(i+r.paddingRight),e=r.left+n/u*(s-o),Math.round(e+i)):(n=r.height-(r.paddingTop+a),e=r.bottom-a-n/u*(s-o),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),r=e.paddingLeft,i=e.paddingBottom,a=n?e.width-(r+e.paddingRight):e.height-(e.paddingTop+i),o=(n?t-e.left-r:e.bottom-i-t)/a;return e.start+(e.end-e.start)*o},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",r,n)}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,n=t.options,r=n.ticks;if(r.beginAtZero){var i=e.sign(t.min),a=e.sign(t.max);i<0&&a<0?t.max=0:i>0&&a>0&&(t.min=0)}void 0!==r.min?t.min=r.min:void 0!==r.suggestedMin&&(t.min=Math.min(t.min,r.suggestedMin)),void 0!==r.max?t.max=r.max:void 0!==r.suggestedMax&&(t.max=Math.max(t.max,r.suggestedMax)),t.min===t.max&&(t.max++,r.beginAtZero||t.min--)},getTickLimit:n,handleDirectionalChanges:n,buildTicks:function(){var n=this,r=n.options,i=r.ticks,a=n.getTickLimit();a=Math.max(2,a);var o={maxTicks:a,min:i.min,max:i.max,stepSize:e.getValueOrDefault(i.fixedStepSize,i.stepSize)},s=n.ticks=t.Ticks.generators.linear(o,n);n.handleDirectionalChanges(),n.max=e.max(s),n.min=e.min(s),i.reverse?(s.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n={position:"left",ticks:{callback:t.Ticks.formatters.logarithmic}},r=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,r=n.options,i=r.ticks,a=n.chart,o=a.data,s=o.datasets,u=e.getValueOrDefault,l=n.isHorizontal();if(n.min=null,n.max=null,n.minNotZero=null,r.stacked){var d={};e.each(s,function(i,o){var s=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(s)&&(void 0===d[s.type]&&(d[s.type]=[]),e.each(i.data,function(t,e){var i=d[s.type],a=+n.getRightValue(t);isNaN(a)||s.data[e].hidden||(i[e]=i[e]||0,r.relativePoints?i[e]=100:i[e]+=a)}))}),e.each(d,function(t){var r=e.min(t),i=e.max(t);n.min=null===n.min?r:Math.min(n.min,r),n.max=null===n.max?i:Math.max(n.max,i)})}else e.each(s,function(r,i){var o=a.getDatasetMeta(i);a.isDatasetVisible(i)&&t(o)&&e.each(r.data,function(t,e){var r=+n.getRightValue(t);isNaN(r)||o.data[e].hidden||(null===n.min?n.min=r:rn.max&&(n.max=r),0!==r&&(null===n.minNotZero||rt.max&&(t.max=r))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,r=e.getValueOrDefault(t.fontSize,n.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*r)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,r,i,a,o,s,u,l,d,c,f,h,_=this.options.pointLabels,m=e.getValueOrDefault(_.fontSize,n.defaultFontSize),p=e.getValueOrDefault(_.fontStyle,n.defaultFontStyle),v=e.getValueOrDefault(_.fontFamily,n.defaultFontFamily),g=e.fontString(m,p,v),y=e.min([this.height/2-m-5,this.width/2]),M=this.width,b=0;for(this.ctx.font=g,r=0;rM&&(M=t.x+a,o=r),t.x-aM&&(M=t.x+i,o=r):t.x-i0&&n>0?e:0)},draw:function(){var t=this,r=t.options,i=r.gridLines,a=r.ticks,o=r.angleLines,s=r.pointLabels,u=e.getValueOrDefault;if(r.display){var l=t.ctx,d=u(a.fontSize,n.defaultFontSize),c=u(a.fontStyle,n.defaultFontStyle),f=u(a.fontFamily,n.defaultFontFamily),h=e.fontString(d,c,f);if(e.each(t.ticks,function(o,s){if(s>0||r.reverse){var c=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),f=t.yCenter-c;if(i.display&&0!==s)if(l.strokeStyle=e.getValueAtIndexOrDefault(i.color,s-1),l.lineWidth=e.getValueAtIndexOrDefault(i.lineWidth,s-1),r.lineArc)l.beginPath(),l.arc(t.xCenter,t.yCenter,c,0,2*Math.PI),l.closePath(),l.stroke();else{l.beginPath();for(var _=0;_=0;y--){if(o.display){var M=t.getPointPosition(y,_);l.beginPath(),l.moveTo(t.xCenter,t.yCenter),l.lineTo(M.x,M.y),l.stroke(),l.closePath()}var b=t.getPointPosition(y,_+5),L=u(s.fontColor,n.defaultFontColor);l.font=g,l.fillStyle=L;var w=t.pointLabels,k=this.getIndexAngle(y)+Math.PI/2,Y=360*k/(2*Math.PI)%360;0===Y||180===Y?l.textAlign="center":Y<180?l.textAlign="left":l.textAlign="right",90===Y||270===Y?l.textBaseline="middle":Y>270||Y<90?l.textBaseline="bottom":l.textBaseline="top",l.fillText(w[y]?w[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",i,r)}},function(t,e,n){"use strict";var r=n(0);r="function"==typeof r?r:window.moment,t.exports=function(t){var e=t.helpers,n={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},i={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},a=t.Scale.extend({initialize:function(){if(!r)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var n=this;return null===t||null===e?null:(void 0===n.labelDiffs&&n.buildLabelDiffs(),"undefined"!=typeof n.labelDiffs[t]?n.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var n=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var r=t.parseTime(e);r.isValid()&&(t.options.time.round&&r.startOf(t.options.time.round),n.push(r))},t),t.firstTick=r.min.call(t,n),t.lastTick=r.max.call(t,n)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(i,a){var o=[],s=t.chart.isDatasetVisible(a);"object"==typeof i.data[0]&&null!==i.data[0]?e.each(i.data,function(e){var n=t.parseTime(t.getRightValue(e));n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),o.push(n),s&&(t.firstTick=null!==t.firstTick?r.min(t.firstTick,n):n,t.lastTick=null!==t.lastTick?r.max(t.lastTick,n):n))},t):o=n,t.labelMoments.push(o)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||r()).clone(),t.lastTick=(t.lastTick||r()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var n=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var r=t.parseTime(e);r.isValid()&&(t.options.time.round&&r.startOf(t.options.time.round),n.push(r.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(r){var i=[];"object"==typeof r.data[0]&&null!==r.data[0]?e.each(r.data,function(e){var n=t.parseTime(t.getRightValue(e));n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t):i=n,t.labelDiffs.push(i)},t)},buildTicks:function(){var r=this;r.ctx.save();var i=e.getValueOrDefault(r.options.ticks.fontSize,t.defaults.global.defaultFontSize),a=e.getValueOrDefault(r.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),o=e.getValueOrDefault(r.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(i,a,o);if(r.ctx.font=s,r.ticks=[],r.unitScale=1,r.scaleSizeInUnits=0,r.options.time.unit)r.tickUnit=r.options.time.unit||"day",r.displayFormat=r.options.time.displayFormats[r.tickUnit],r.scaleSizeInUnits=r.lastTick.diff(r.firstTick,r.tickUnit,!0),r.unitScale=e.getValueOrDefault(r.options.time.unitStepSize,1);else{var u=r.isHorizontal()?r.width-(r.paddingLeft+r.paddingRight):r.height-(r.paddingTop+r.paddingBottom),l=r.tickFormatFunction(r.firstTick,0,[]),d=r.ctx.measureText(l).width,c=Math.cos(e.toRadians(r.options.ticks.maxRotation)),f=Math.sin(e.toRadians(r.options.ticks.maxRotation));d=d*c+i*f;var h=u/d;r.tickUnit=r.options.time.minUnit,r.scaleSizeInUnits=r.lastTick.diff(r.firstTick,r.tickUnit,!0),r.displayFormat=r.options.time.displayFormats[r.tickUnit];for(var _=0,m=n.units[_];_=Math.ceil(r.scaleSizeInUnits/h)){r.unitScale=e.getValueOrDefault(r.options.time.unitStepSize,m.steps[p]);break}break}if(m.maxStep===!1||Math.ceil(r.scaleSizeInUnits/h)=0&&(r.lastTick=M),r.scaleSizeInUnits=r.lastTick.diff(r.firstTick,r.tickUnit,!0)}r.options.time.displayFormat&&(r.displayFormat=r.options.time.displayFormat),r.ticks.push(r.firstTick.clone());for(var L=1;L<=r.scaleSizeInUnits;++L){var w=y.clone().add(L,r.tickUnit);if(r.options.time.max&&w.diff(r.lastTick,r.tickUnit,!0)>=0)break;L%r.unitScale===0&&r.ticks.push(w)}var k=r.ticks[r.ticks.length-1].diff(r.lastTick,r.tickUnit);0===k&&0!==r.scaleSizeInUnits||(r.options.time.max?(r.ticks.push(r.lastTick.clone()),r.scaleSizeInUnits=r.lastTick.diff(r.ticks[0],r.tickUnit,!0)):(r.ticks.push(r.lastTick.clone()),r.scaleSizeInUnits=r.lastTick.diff(r.firstTick,r.tickUnit,!0))),r.ctx.restore(),r.labelDiffs=void 0},getLabelForIndex:function(t,e){var n=this,r=n.chart.data.labels&&tn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,r=t,i=void 0===e?.5:e,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,u=1-s;return this.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*r.blue()).alpha(n.alpha()*i+r.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new a,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(t=r[o],e={}.toString.call(t),"[object Array]"===e?i[o]=t.slice(0):"[object Number]"===e&&(i[o]=t));return n}},a.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},a.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},a.prototype.getValues=function(t){for(var e=this.values,n={},r=0;r.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*e+.3576*n+.1805*r,a=.2126*e+.7152*n+.0722*r,o=.0193*e+.1192*n+.9505*r;return[100*i,100*a,100*o]}function l(t){var e,n,r,i=u(t),a=i[0],o=i[1],s=i[2];return a/=95.047,o/=100,s/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,n=500*(a-o),r=200*(o-s),[e,n,r]}function d(t){return F(l(t))}function c(t){var e,n,r,i,a,o=t[0]/360,s=t[1]/100,u=t[2]/100;if(0==s)return a=255*u,[a,a,a];n=u<.5?u*(1+s):u+s-u*s,e=2*u-n,i=[0,0,0];for(var l=0;l<3;l++)r=o+1/3*-(l-1),r<0&&r++,r>1&&r--,a=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[l]=255*a;return i}function f(t){var e,n,r=t[0],i=t[1]/100,a=t[2]/100;return 0===a?[0,0,0]:(a*=2,i*=a<=1?a:2-a,n=(a+i)/2,e=2*i/(a+i),[r,100*e,100*n])}function h(t){return a(c(t))}function _(t){return o(c(t))}function m(t){return s(c(t))}function p(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,a=e-Math.floor(e),o=255*r*(1-n),s=255*r*(1-n*a),u=255*r*(1-n*(1-a)),r=255*r;switch(i){case 0:return[r,u,o];case 1:return[s,r,o];case 2:return[o,r,u];case 3:return[o,s,r];case 4:return[u,o,r];case 5:return[r,o,s]}}function v(t){var e,n,r=t[0],i=t[1]/100,a=t[2]/100;return n=(2-i)*a,e=i*a,e/=n<=1?n:2-n,e=e||0,n/=2,[r,100*e,100*n]}function y(t){return a(p(t))}function M(t){return o(p(t))}function L(t){return s(p(t))}function w(t){var e,n,i,a,o=t[0]/360,s=t[1]/100,u=t[2]/100,l=s+u;switch(l>1&&(s/=l,u/=l),e=Math.floor(6*o),n=1-u,i=6*o-e,0!=(1&e)&&(i=1-i),a=s+i*(n-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function k(t){return n(w(t))}function Y(t){return i(w(t))}function D(t){return o(w(t))}function x(t){return s(w(t))}function T(t){var e,n,r,i=t[0]/100,a=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,a*(1-s)+s),r=1-Math.min(1,o*(1-s)+s),[255*e,255*n,255*r]}function S(t){return n(T(t))}function C(t){return i(T(t))}function j(t){return a(T(t))}function A(t){return s(T(t))}function H(t){var e,n,r,i=t[0]/100,a=t[1]/100,o=t[2]/100;return e=3.2406*i+a*-1.5372+o*-.4986,n=i*-.9689+1.8758*a+.0415*o,r=.0557*i+a*-.204+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e=12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n=12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=12.92*r,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*e,255*n,255*r]}function P(t){var e,n,r,i=t[0],a=t[1],o=t[2];return i/=95.047,a/=100,o/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*a-16,n=500*(i-a),r=200*(a-o),[e,n,r]}function O(t){return F(P(t))}function E(t){var e,n,r,i,a=t[0],o=t[1],s=t[2];return a<=8?(n=100*a/903.3,i=7.787*(n/100)+16/116):(n=100*Math.pow((a+16)/116,3),i=Math.pow(n/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+i-16/116)/7.787:95.047*Math.pow(o/500+i,3),r=r/108.883<=.008859?r=108.883*(i-s/200-16/116)/7.787:108.883*Math.pow(i-s/200,3),[e,n,r]}function F(t){var e,n,r,i=t[0],a=t[1],o=t[2];return e=Math.atan2(o,a),n=360*e/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(a*a+o*o),[i,r,n]}function R(t){return H(E(t))}function I(t){var e,n,r,i=t[0],a=t[1],o=t[2];return r=o/360*2*Math.PI,e=a*Math.cos(r),n=a*Math.sin(r),[i,e,n]}function W(t){return E(I(t))}function z(t){return R(I(t))}function $(t){return q[t]}function N(t){return n($(t))}function V(t){return i($(t))}function B(t){return a($(t))}function U(t){return o($(t))}function J(t){return l($(t))}function G(t){return u($(t))}t.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:u,rgb2lab:l,rgb2lch:d,hsl2rgb:c,hsl2hsv:f,hsl2hwb:h,hsl2cmyk:_,hsl2keyword:m,hsv2rgb:p,hsv2hsl:v,hsv2hwb:y,hsv2cmyk:M,hsv2keyword:L,hwb2rgb:w,hwb2hsl:k,hwb2hsv:Y,hwb2cmyk:D,hwb2keyword:x,cmyk2rgb:T,cmyk2hsl:S,cmyk2hsv:C,cmyk2hwb:j,cmyk2keyword:A,keyword2rgb:$,keyword2hsl:N,keyword2hsv:V,keyword2hwb:B,keyword2cmyk:U,keyword2lab:J,keyword2xyz:G,xyz2rgb:H,xyz2lab:P,xyz2lch:O,lab2xyz:E,lab2rgb:R,lab2lch:F,lch2lab:I,lch2xyz:W,lch2rgb:z};var q={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},K={};for(var Z in q)K[JSON.stringify(q[Z])]=Z},function(t,e,n){var r=n(231),i=function(){return new l};for(var a in r){i[a+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),r[t](e)}}(a);var o=/(\w+)2(\w+)/.exec(a),s=o[1],u=o[2];i[s]=i[s]||{},i[s][u]=i[a]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=r[t](e);if("string"==typeof n||void 0===n)return n;for(var i=0;i=e||n<0||D&&r>=v}function d(){var t=w();return l(t)?c(t):void(y=setTimeout(d,o(t)))}function c(t){return y=void 0,x&&m?r(t):(m=p=void 0,g)}function f(){void 0!==y&&clearTimeout(y),k=0,m=M=p=y=void 0}function h(){return void 0===y?g:c(w())}function _(){var t=w(),n=l(t);if(m=arguments,p=this,M=t,n){if(void 0===y)return a(M);if(D)return y=setTimeout(d,e),r(M)}return void 0===y&&(y=setTimeout(d,e)),g}var m,p,v,g,y,M,k=0,Y=!1,D=!1,x=!0;if("function"!=typeof t)throw new TypeError(u);return e=s(e)||0,i(n)&&(Y=!!n.leading,D="maxWait"in n,v=D?b(s(n.maxWait)||0,e):v,x="trailing"in n?!!n.trailing:x),_.cancel=f,_.flush=h,_}function r(t,e,r){var a=!0,o=!0;if("function"!=typeof t)throw new TypeError(u);return i(r)&&(a="leading"in r?!!r.leading:a,o="trailing"in r?!!r.trailing:o),n(t,e,{leading:a,maxWait:e,trailing:o})}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||a(t)&&M.call(t)==d}function s(t){if("number"==typeof t)return t;if(o(t))return l;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(c,"");var n=h.test(t);return n||_.test(t)?m(t.slice(2),n?2:8):f.test(t)?l:+t}var u="Expected a function",l=NaN,d="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,_=/^0o[0-7]+$/i,m=parseInt,p="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,g=p||v||Function("return this")(),y=Object.prototype,M=y.toString,b=Math.max,L=Math.min,w=function(){return g.Date.now()};t.exports=r}).call(e,n(7))},function(t,e,n){function r(t){return n(i(t))}function i(t){var e=a[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var a={"./af":17,"./af.js":17,"./ar":23,"./ar-dz":18,"./ar-dz.js":18,"./ar-ly":19,"./ar-ly.js":19,"./ar-ma":20,"./ar-ma.js":20,"./ar-sa":21,"./ar-sa.js":21,"./ar-tn":22,"./ar-tn.js":22,"./ar.js":23,"./az":24,"./az.js":24,"./be":25,"./be.js":25,"./bg":26,"./bg.js":26,"./bn":27,"./bn.js":27,"./bo":28,"./bo.js":28,"./br":29,"./br.js":29,"./bs":30,"./bs.js":30,"./ca":31,"./ca.js":31,"./cs":32,"./cs.js":32,"./cv":33,"./cv.js":33,"./cy":34,"./cy.js":34,"./da":35,"./da.js":35,"./de":37,"./de-at":36,"./de-at.js":36,"./de.js":37,"./dv":38,"./dv.js":38,"./el":39,"./el.js":39,"./en-au":40,"./en-au.js":40,"./en-ca":41,"./en-ca.js":41,"./en-gb":42,"./en-gb.js":42,"./en-ie":43,"./en-ie.js":43,"./en-nz":44,"./en-nz.js":44,"./eo":45,"./eo.js":45,"./es":47,"./es-do":46,"./es-do.js":46,"./es.js":47,"./et":48,"./et.js":48,"./eu":49,"./eu.js":49,"./fa":50,"./fa.js":50,"./fi":51,"./fi.js":51,"./fo":52,"./fo.js":52,"./fr":55,"./fr-ca":53,"./fr-ca.js":53,"./fr-ch":54,"./fr-ch.js":54,"./fr.js":55,"./fy":56,"./fy.js":56,"./gd":57,"./gd.js":57,"./gl":58,"./gl.js":58,"./he":59,"./he.js":59,"./hi":60,"./hi.js":60,"./hr":61,"./hr.js":61,"./hu":62,"./hu.js":62,"./hy-am":63,"./hy-am.js":63,"./id":64,"./id.js":64,"./is":65,"./is.js":65,"./it":66,"./it.js":66,"./ja":67,"./ja.js":67,"./jv":68,"./jv.js":68,"./ka":69,"./ka.js":69,"./kk":70,"./kk.js":70,"./km":71,"./km.js":71,"./ko":72,"./ko.js":72,"./ky":73,"./ky.js":73,"./lb":74,"./lb.js":74,"./lo":75,"./lo.js":75,"./lt":76,"./lt.js":76,"./lv":77,"./lv.js":77,"./me":78,"./me.js":78,"./mi":79,"./mi.js":79,"./mk":80,"./mk.js":80,"./ml":81,"./ml.js":81,"./mr":82,"./mr.js":82,"./ms":84,"./ms-my":83,"./ms-my.js":83,"./ms.js":84,"./my":85,"./my.js":85,"./nb":86,"./nb.js":86,"./ne":87,"./ne.js":87,"./nl":89,"./nl-be":88,"./nl-be.js":88,"./nl.js":89,"./nn":90,"./nn.js":90,"./pa-in":91,"./pa-in.js":91,"./pl":92,"./pl.js":92,"./pt":94,"./pt-br":93,"./pt-br.js":93,"./pt.js":94,"./ro":95,"./ro.js":95,"./ru":96,"./ru.js":96,"./se":97,"./se.js":97,"./si":98,"./si.js":98,"./sk":99,"./sk.js":99,"./sl":100,"./sl.js":100,"./sq":101,"./sq.js":101,"./sr":103,"./sr-cyrl":102,"./sr-cyrl.js":102,"./sr.js":103,"./ss":104,"./ss.js":104,"./sv":105,"./sv.js":105,"./sw":106,"./sw.js":106,"./ta":107,"./ta.js":107,"./te":108,"./te.js":108,"./tet":109,"./tet.js":109,"./th":110,"./th.js":110,"./tl-ph":111,"./tl-ph.js":111,"./tlh":112,"./tlh.js":112,"./tr":113,"./tr.js":113,"./tzl":114,"./tzl.js":114,"./tzm":116,"./tzm-latn":115,"./tzm-latn.js":115,"./tzm.js":116,"./uk":117,"./uk.js":117,"./uz":118,"./uz.js":118,"./vi":119,"./vi.js":119,"./x-pseudo":120,"./x-pseudo.js":120,"./yo":121,"./yo.js":121,"./zh-cn":122,"./zh-cn.js":122,"./zh-hk":123,"./zh-hk.js":123,"./zh-tw":124,"./zh-tw.js":124};r.keys=function(){return Object.keys(a)},r.resolve=i,t.exports=r,r.id=235},function(t,e,n){var r,i;r=n(155);var a=n(277);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(156);var a=n(270);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(158);var a=n(274);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(159);var a=n(263);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(160);var a=n(273);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(161);var a=n(257);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(162);var a=n(262);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(163);var a=n(260);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(164);var a=n(264);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(165);var a=n(265);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(166);var a=n(266);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(167);var a=n(268);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(168);var a=n(275);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(169);var a=n(261);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(170);var a=n(256);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(171);var a=n(269);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(172);var a=n(276);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(173);var a=n(258);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(174);var a=n(259);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(176);var a=n(267);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"card poster"},[e("router-link",{attrs:{to:{path:t.link}}},[e("img",{attrs:{src:t.show.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.show.attributes.name))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movie-edit"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Edit Movie")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/movies/"+t.movie.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.movie.attributes.title)+"\n ")]),t._v(" "),t.isResolved?e("div",[e("h2",[t._v("Movie Title")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Title"},domProps:{value:t.movie.attributes.title},on:{input:t.patchTitle}}),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Original Title:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.original_title)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.folder_name)+"\n ")])])]),t._v(" "),t.movie.relationships.posters?e("div",[e("h2",[t._v("Posters")]),t._v(" "),e("ul",{staticClass:"carousel posters"},t._l(t.posters,function(n){return e("movie-poster",{key:n.id,attrs:{movie:t.movie,poster:n}})}))]):t._e(),t._v(" "),t.movie.relationships.backdrops?e("div",[e("h2",[t._v("Backdrops")]),t._v(" "),e("ul",{staticClass:"carousel backdrops"},t._l(t.backdrops,function(n){return e("movie-backdrop",{key:n.id,attrs:{movie:t.movie,backdrop:n}})}))]):t._e()]):t._e(),t._v(" "),t.isResolved?t._e():e("div",[t._m(0),t._v(" "),e("p",[t._v("\n Oops! We can't figure out which movie this is. Please make a selection \n from the search results below.\n ")]),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.folder_name)+"\n ")])])])]),t._v(" "),t.movie.relationships.results?e("div",[e("h2",[t._v("Search Results")]),t._v(" "),e("ul",{staticClass:"carousel posters"},t._l(t.results,function(n){return e("movie-result",{key:n.id,attrs:{movie:t.movie,result:n}})}))]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Please Resolve\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectResult()}}},[e("img",{attrs:{src:t.result.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.result.attributes.name))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"shows"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t._v(" "),e("div",{staticClass:"search"},[e("div",{staticClass:"fields"},[e("input",{staticClass:"form-control",attrs:{placeholder:"Keywords"},domProps:{value:t.keywords},on:{input:t.filterShowKeywords}}),t._v(" "),e("div",{staticClass:"dropdown order"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedOrder},on:{change:t.filterShowOrder}},t._l(t.orders,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.name)+"\n ")])}))]),t._v(" "),e("div",{staticClass:"dropdown genres"},[e("select",{staticClass:"form-control",domProps:{ -value:t.selectedGenre},on:{change:t.filterShowGenres}},[e("option",{attrs:{value:""}},[t._v("All Genres")]),t._v(" "),t._l(t.genres,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])})],!0)])]),t._v(" "),e("div",{staticClass:"clear"},[e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.filterReset(e)}}},[t._v("\n Clear\n ")])])]),t._v(" "),t._v(" "),e("div",{staticClass:"results"},[e("h1",[t._v("Shows")]),t._v(" "),e("div",{staticClass:"cards"},t._l(t.shows,function(t){return e("show-card",{key:t.id,attrs:{show:t}})}))]),t._v(" "),e("mugen-scroll",{attrs:{handler:t.loadMore,"should-handle":!t.loading}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectResult()}}},[e("img",{attrs:{src:t.result.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.result.attributes.title))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectBackdrop()}}},[e("img",{attrs:{src:t.backdrop.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectPoster()}}},[e("img",{attrs:{src:t.poster.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectBackdrop()}}},[e("img",{attrs:{src:t.backdrop.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movies"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t._v(" "),e("div",{staticClass:"search"},[e("div",{staticClass:"fields"},[e("input",{staticClass:"form-control",attrs:{placeholder:"Keywords"},domProps:{value:t.keywords},on:{input:t.filterMovieKeywords}}),t._v(" "),e("div",{staticClass:"dropdown order"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedOrder},on:{change:t.filterMovieOrder}},t._l(t.orders,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.name)+"\n ")])}))]),t._v(" "),e("div",{staticClass:"dropdown genres"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedGenre},on:{change:t.filterMovieGenres}},[e("option",{attrs:{value:""}},[t._v("All Genres")]),t._v(" "),t._l(t.genres,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])})],!0)])]),t._v(" "),e("div",{staticClass:"clear"},[e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.filterReset(e)}}},[t._v("\n Clear\n ")])])]),t._v(" "),t._v(" "),e("div",{staticClass:"results"},[e("h1",[t._v("Movies")]),t._v(" "),e("div",{staticClass:"cards"},t._l(t.movies,function(t){return e("movie-card",{key:t.id,attrs:{movie:t}})}))]),t._v(" "),e("mugen-scroll",{attrs:{handler:t.loadMore,"should-handle":!t.loading}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;t.$createElement,t._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"not-found"},[e("h1",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Page Not Found\n ")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"season"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.show.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.show.attributes.name)+" – "+t._s(t.season.attributes.name)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),t.season.attributes.overview?e("div",{staticClass:"overview"},[t._m(0),t._v(" "),t.season.attributes.poster_url?e("img",{attrs:{src:t.season.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.season.attributes.overview)+"\n ")])]):t._e(),t._v(" "),t._m(1),t._v(" "),t.season.relationships.episodes?e("ul",{staticClass:"summaries"},t._l(t.episodes,function(t){return e("episode",{attrs:{episode:t}})})):t._e(),t._v(" "),t.season.relationships.views?e("div",[t._m(2),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.season.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Episodes\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"toast","class":[t.position,t.toastContext,t.activeToast?"active":"",t.hideProgress?"":"has-progress"],on:{mouseover:t.pause,mouseout:t.animate}},[e("div",{staticClass:"action"},[e("a",{staticClass:"close",attrs:{"aria-label":"Close"},on:{click:function(e){e.preventDefault(),t.clear(e)}}},[t._m(0)])]),t._v(" "),e("div",{domProps:{innerHTML:t._s(t.message)}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideProgress,expression:"!hideProgress"}],staticClass:"progress-bar","class":{active:t.activeProgressBar},style:t.style})])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("span",{attrs:{"aria-hidden":"true"}},[e("i",{staticClass:"material-icons"},[t._v("")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"settings"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Settings")]),t._v(" "),t._m(0),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.refreshNewFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Refresh New\n ")]),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.refreshAllFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Refresh All\n ")]),t._v(" "),t._m(1),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.clearHistoryToday(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Clear Today\n ")]),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.clearHistory(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Clear All\n ")]),t._v(" "),t._m(2),t._v(" "),e("p",[t._v("\n Setting a folder path will refresh the database with \n movies and/or shows found in that location.\n ")]),t._v(" "),e("label",[t._v("Movies Folder")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Movies Folder (i.e. /movies)"},domProps:{value:t.settings.attributes.movies_folder},on:{input:t.setMoviesFolder}}),t._v(" "),e("label",[t._v("Shows Folder")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Shows Folder (i.e. /shows)"},domProps:{value:t.settings.attributes.shows_folder},on:{input:t.setShowsFolder}}),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.patchFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Update Folders\n ")])])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Refresh\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n History\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Folders\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"show-edit"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Edit Show")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),t.isResolved?e("div",[e("h2",[t._v("Show Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Name"},domProps:{value:t.show.attributes.name},on:{input:t.patchName}}),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Original Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.original_name)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.folder_name)+"\n ")])])]),t._v(" "),e("h2",[t._v("Posters")]),t._v(" "),t.show.relationships.posters?e("ul",{staticClass:"carousel posters"},t._l(t.posters,function(n){return e("show-poster",{key:n.id,attrs:{show:t.show,poster:n}})})):t._e(),t._v(" "),e("h2",[t._v("Backdrops")]),t._v(" "),t.show.relationships.backdrops?e("ul",{staticClass:"carousel backdrops"},t._l(t.backdrops,function(n){return e("show-backdrop",{key:n.id,attrs:{show:t.show,backdrop:n}})})):t._e()]):t._e(),t._v(" "),t.isResolved?t._e():e("div",[t._m(0),t._v(" "),e("p",[t._v("\n Oops! We can't figure out which show this is. Please make a selection \n from the search results below.\n ")]),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.folder_name)+"\n ")])])])]),t._v(" "),t.show.relationships.results?e("div",[e("h2",[t._v("Search Results")]),t._v(" "),e("ul",{staticClass:"carousel posters"},t._l(t.results,function(n){return e("show-result",{key:n.id,attrs:{show:t.show,result:n}})}))]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Please Resolve\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",[e("canvas",{ref:"canvas"})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;t.$createElement,t._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"spinner spinner-xl spinner-fixed",attrs:{id:"spinner-box"}},[e("div",{staticClass:"spinner-wrapper"},[e("div",{staticClass:"spinner-circle"}),t._v(" "),e("div",{staticClass:"spinner-text"},[t._v("Loading")])])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{"class":{"toggle-menu":t.showMenu,"toggle-search":t.showSearch},attrs:{id:"app"}},[e("div",{attrs:{id:"header"}},[e("a",{staticClass:"button button-mobile",on:{click:function(e){e.preventDefault(),t.toggleMenu(e)}}},[t.showMenu?e("i",{staticClass:"material-icons"},[t._v("")]):e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" ")]),t._v(" "),t.showSearchButton?e("a",{staticClass:"button button-mobile button-right",on:{click:function(e){e.preventDefault(),t.toggleSearch(e)}}},[t.showSearch?e("i",{staticClass:"material-icons"},[t._v("")]):e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" ")]):t._e(),t._v(" "),t.hasMoviePath?e("router-link",{staticClass:"button button-mobile button-right",attrs:{to:"/movies"}},[e("i",{staticClass:"material-icons"},[t._v("")])]):t._e(),t._v(" "),t.hasShowPath?e("router-link",{staticClass:"button button-mobile button-right",attrs:{to:"/shows"}},[e("i",{staticClass:"material-icons"},[t._v("")])]):t._e(),t._v(" "),e("router-link",{attrs:{id:"logo",to:"/"}},[t._v("\n Airflix\n ")])]),t._v(" "),t._v(" "),e("div",{attrs:{id:"navigation"}},[e("a",{staticClass:"button button-mobile",on:{click:function(e){e.preventDefault(),t.hideMenu(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")])]),t._v(" "),e("ul",[e("router-link",{attrs:{tag:"li",to:"/movies"}},[e("a",{on:{click:t.hideMenu}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Movies\n ")])]),t._v(" "),e("router-link",{attrs:{tag:"li",to:"/shows"}},[e("a",{on:{click:t.hideMenu}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Shows\n ")])]),t._v(" "),e("router-link",{attrs:{tag:"li",to:"/settings"}},[e("a",{on:{click:t.hideMenu}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Settings\n ")])])])]),t._v(" "),t._v(" "),e("a",{attrs:{id:"overlay"},on:{click:function(e){e.preventDefault(),t.toggleMenu(e)}}}),t._v(" "),t._v(" "),e("div",{attrs:{id:"content"}},[e("router-view",{staticClass:"view",attrs:{transition:"","transition-mode":"out-in"}})]),t._v(" "),t._v(" "),e("div",{attrs:{id:"footer"}},[t._v("\n Created by Brian Wells\n ")]),t._v(" "),t._v(" "),e("toast")])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"card poster"},[e("router-link",{attrs:{to:{path:t.link}}},[e("img",{attrs:{src:t.movie.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.movie.attributes.title))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movie"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.movie.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.movie.attributes.title)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button button-desktop",attrs:{to:"/movies"}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Movies\n ")]),t._v(" "),e("a",{staticClass:"button","class":{disabled:t.isDisabled},attrs:{href:"/downloads/movies/"+t.movie.id}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Watch\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/movies/"+t.movie.id+"/edit"}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Edit\n ")]),t._v(" "),e("div",{staticClass:"overview"},[t._m(0),t._v(" "),t.movie.attributes.poster_url?e("img",{attrs:{src:t.movie.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.movie.attributes.overview)+"\n ")])]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.movie.attributes.tmdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TMDB\n ")]),t._v(" "),t.movie.attributes.imdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.movie.attributes.imdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" IMDB\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Runtime:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.runtime)+" minutes\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Release Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.movie.attributes.release_date,"MMMM Do Y"))+"\n ")])]),t._v(" "),"$0"!=t.movie.attributes.budget?e("li",[e("div",{staticClass:"key"},[t._v("Budget:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.budget)+"\n ")])]):t._e(),t._v(" "),"$0"!=t.movie.attributes.revenue?e("li",[e("div",{staticClass:"key"},[t._v("Revenue:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.revenue)+"\n ")])]):t._e()]),t._v(" "),t._m(1),t._v(" "),t.movie.relationships.genres?e("ul",{staticClass:"tags"},t._l(t.genres,function(n){return e("li",[t._v("\n "+t._s(n.attributes.name)+"\n ")])})):t._e(),t._v(" "),t.movie.relationships.views?e("div",[t._m(2),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Genres\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"show"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.show.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button button-desktop",attrs:{to:"/shows"}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Shows\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id+"/edit"}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Edit\n ")]),t._v(" "),t.show.relationships.seasons?e("div",[t._m(0),t._v(" "),e("ul",{staticClass:"grid"},t._l(t.seasons,function(n){return e("li",[e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/seasons/"+n.id}}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])])}))]):t._e(),t._v(" "),e("div",{staticClass:"overview"},[t._m(1),t._v(" "),t.show.attributes.poster_url?e("img",{attrs:{src:t.show.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.show.attributes.overview)+"\n ")])]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.tmdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TMDB\n ")]),t._v(" "),t.show.attributes.imdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.imdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" IMDB\n ")]):t._e(),t._v(" "),t.show.attributes.tvdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.tvdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TVDB\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Total Seasons:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.number_of_seasons)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Total Episodes:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.number_of_episodes)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Average Runtime:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.average_runtime)+" minutes\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("First Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.show.attributes.first_air_date,"MMMM Do Y"))+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.show.attributes.last_air_date,"MMMM Do Y"))+"\n ")])])]),t._v(" "),t._m(2),t._v(" "),t.show.relationships.genres?e("ul",{staticClass:"tags"},t._l(t.genres,function(n){return e("li",[t._v("\n "+t._s(n.attributes.name)+"\n ")])})):t._e(),t._v(" "),t.show.relationships.views?e("div",[t._m(3),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Seasons\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Genres\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectPoster()}}},[e("img",{attrs:{src:t.poster.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[t.episode.attributes.still_url?e("img",{attrs:{src:t.episode.attributes.still_url}}):t._e(),t._v(" "),e("div",{staticClass:"summary"},[e("h3",[t._v("\n S"+t._s(t._f("zeroPad")(t.episode.attributes.season,2))+"E"+t._s(t._f("zeroPad")(t.episode.attributes.episode,2))+" \n – \n "+t._s(t.episode.attributes.name)+"\n ")]),t._v(" "),e("p",[e("a",{staticClass:"button","class":{disabled:t.isDisabled},attrs:{href:"/downloads/episodes/"+t.episode.id}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Watch\n ")])]),t._v(" "),t.episode.attributes.overview?e("p",[t._v("\n "+t._s(t.episode.attributes.overview)+"\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[t.episode.attributes.air_date?e("li",[e("div",{staticClass:"key"},[t._v("Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.episode.attributes.air_date,"MMMM Do Y"))+"\n ")])]):t._e(),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Total Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.episode.attributes.total_views)+"\n ")])])])])])},staticRenderFns:[]}},function(t,e){},function(t,e,n){"use strict";var r=n(8),i=n.n(r),a=n(132),o=n.n(a),s=n(131),u=(n.n(s),n(135)),l=n.n(u),d=n(134),c=n.n(d),f=n(127),h=n.n(f),_=n(130),m=n(128),p=n(129),v=n(136),g=(n.n(v),n(133)),y=n.n(g);i.a.config.devtools=!1,i.a.config.silent=!0,window._=o.a,window.axios=h.a,h.a.defaults.headers.common.Accept="application/vnd.api+json; version=1; charset=utf-8",i.a.use(l.a),i.a.use(c.a),i.a.filter("zeroPad",m.a);var M=new l.a({mode:"history",routes:p.a});n.i(v.sync)(_.a,M),window.vueRouter=M;new i.a(Object.assign({},{router:M,store:_.a},y.a)).$mount("#app")}]); \ No newline at end of file +value:t.selectedGenre},on:{change:t.filterShowGenres}},[e("option",{attrs:{value:""}},[t._v("All Genres")]),t._v(" "),t._l(t.genres,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])})],!0)])]),t._v(" "),e("div",{staticClass:"clear"},[e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.filterReset(e)}}},[t._v("\n Clear\n ")])])]),t._v(" "),t._v(" "),e("div",{staticClass:"results"},[e("h1",[t._v("Shows")]),t._v(" "),e("div",{staticClass:"cards"},t._l(t.shows,function(t){return e("show-card",{key:t.id,attrs:{show:t}})}))]),t._v(" "),e("mugen-scroll",{attrs:{handler:t.loadMore,"should-handle":!t.loading}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectResult()}}},[e("img",{attrs:{src:t.result.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.result.attributes.title))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectBackdrop()}}},[e("img",{attrs:{src:t.backdrop.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectPoster()}}},[e("img",{attrs:{src:t.poster.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectBackdrop()}}},[e("img",{attrs:{src:t.backdrop.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movies"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t._v(" "),e("div",{staticClass:"search"},[e("div",{staticClass:"fields"},[e("input",{staticClass:"form-control",attrs:{placeholder:"Keywords"},domProps:{value:t.keywords},on:{input:t.filterMovieKeywords}}),t._v(" "),e("div",{staticClass:"dropdown order"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedOrder},on:{change:t.filterMovieOrder}},t._l(t.orders,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.name)+"\n ")])}))]),t._v(" "),e("div",{staticClass:"dropdown genres"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedGenre},on:{change:t.filterMovieGenres}},[e("option",{attrs:{value:""}},[t._v("All Genres")]),t._v(" "),t._l(t.genres,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])})],!0)])]),t._v(" "),e("div",{staticClass:"clear"},[e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.filterReset(e)}}},[t._v("\n Clear\n ")])])]),t._v(" "),t._v(" "),e("div",{staticClass:"results"},[e("h1",[t._v("Movies")]),t._v(" "),e("div",{staticClass:"cards"},t._l(t.movies,function(t){return e("movie-card",{key:t.id,attrs:{movie:t}})}))]),t._v(" "),e("mugen-scroll",{attrs:{handler:t.loadMore,"should-handle":!t.loading}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;t.$createElement,t._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"not-found"},[e("h1",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Page Not Found\n ")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"season"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.show.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.show.attributes.name)+" – "+t._s(t.season.attributes.name)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),t.season.attributes.overview?e("div",{staticClass:"overview"},[t._m(0),t._v(" "),t.season.attributes.poster_url?e("img",{attrs:{src:t.season.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.season.attributes.overview)+"\n ")])]):t._e(),t._v(" "),t._m(1),t._v(" "),t.season.relationships.episodes?e("ul",{staticClass:"summaries"},t._l(t.episodes,function(t){return e("episode",{attrs:{episode:t}})})):t._e(),t._v(" "),t.season.relationships.views?e("div",[t._m(2),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.season.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Episodes\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"toast","class":[t.position,t.toastContext,t.activeToast?"active":"",t.hideProgress?"":"has-progress"],on:{mouseover:t.pause,mouseout:t.animate}},[e("div",{staticClass:"action"},[e("a",{staticClass:"close",attrs:{"aria-label":"Close"},on:{click:function(e){e.preventDefault(),t.clear(e)}}},[t._m(0)])]),t._v(" "),e("div",{domProps:{innerHTML:t._s(t.message)}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideProgress,expression:"!hideProgress"}],staticClass:"progress-bar","class":{active:t.activeProgressBar},style:t.style})])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("span",{attrs:{"aria-hidden":"true"}},[e("i",{staticClass:"material-icons"},[t._v("")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"settings"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Settings")]),t._v(" "),t._m(0),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.refreshNewFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Refresh New\n ")]),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.refreshAllFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Refresh All\n ")]),t._v(" "),t._m(1),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.clearHistoryToday(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Clear Today\n ")]),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.clearHistory(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Clear All\n ")]),t._v(" "),t._m(2),t._v(" "),e("p",[t._v("\n Setting a folder path will refresh the database with \n movies and/or shows found in that location.\n ")]),t._v(" "),e("label",[t._v("Movies Folder")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Movies Folder (i.e. /movies)"},domProps:{value:t.settings.attributes.movies_folder},on:{input:t.setMoviesFolder}}),t._v(" "),e("label",[t._v("Shows Folder")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Shows Folder (i.e. /shows)"},domProps:{value:t.settings.attributes.shows_folder},on:{input:t.setShowsFolder}}),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.patchFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Update Folders\n ")])])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Refresh\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n History\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Folders\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"show-edit"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Edit Show")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),t.isResolved?e("div",[e("h2",[t._v("Show Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Name"},domProps:{value:t.show.attributes.name},on:{input:t.patchName}}),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Original Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.original_name)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.folder_name)+"\n ")])])]),t._v(" "),e("h2",[t._v("Posters")]),t._v(" "),t.show.relationships.posters?e("ul",{staticClass:"carousel posters"},t._l(t.posters,function(n){return e("show-poster",{key:n.id,attrs:{show:t.show,poster:n}})})):t._e(),t._v(" "),e("h2",[t._v("Backdrops")]),t._v(" "),t.show.relationships.backdrops?e("ul",{staticClass:"carousel backdrops"},t._l(t.backdrops,function(n){return e("show-backdrop",{key:n.id,attrs:{show:t.show,backdrop:n}})})):t._e()]):t._e(),t._v(" "),t.isResolved?t._e():e("div",[t._m(0),t._v(" "),e("p",[t._v("\n Oops! We can't figure out which show this is. Please make a selection \n from the search results below.\n ")]),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.folder_name)+"\n ")])])])]),t._v(" "),t.show.relationships.results?e("div",[e("h2",[t._v("Search Results")]),t._v(" "),e("ul",{staticClass:"carousel posters"},t._l(t.results,function(n){return e("show-result",{key:n.id,attrs:{show:t.show,result:n}})}))]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Please Resolve\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",[e("canvas",{ref:"canvas"})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;t.$createElement,t._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"spinner spinner-xl spinner-fixed",attrs:{id:"spinner-box"}},[e("div",{staticClass:"spinner-wrapper"},[e("div",{staticClass:"spinner-circle"}),t._v(" "),e("div",{staticClass:"spinner-text"},[t._v("Loading")])])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{"class":{"toggle-menu":t.showMenu,"toggle-search":t.showSearch},attrs:{id:"app"}},[e("div",{attrs:{id:"header"}},[e("a",{staticClass:"button button-mobile",on:{click:function(e){e.preventDefault(),t.toggleMenu(e)}}},[t.showMenu?e("i",{staticClass:"material-icons"},[t._v("")]):e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" ")]),t._v(" "),t.showSearchButton?e("a",{staticClass:"button button-mobile button-right",on:{click:function(e){e.preventDefault(),t.toggleSearch(e)}}},[t.showSearch?e("i",{staticClass:"material-icons"},[t._v("")]):e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" ")]):t._e(),t._v(" "),t.hasMoviePath?e("router-link",{staticClass:"button button-mobile button-right",attrs:{to:"/movies"}},[e("i",{staticClass:"material-icons"},[t._v("")])]):t._e(),t._v(" "),t.hasShowPath?e("router-link",{staticClass:"button button-mobile button-right",attrs:{to:"/shows"}},[e("i",{staticClass:"material-icons"},[t._v("")])]):t._e(),t._v(" "),e("router-link",{attrs:{id:"logo",to:"/"}},[t._v("\n Airflix\n ")])]),t._v(" "),t._v(" "),e("div",{attrs:{id:"navigation"}},[e("a",{staticClass:"button button-mobile",on:{click:function(e){e.preventDefault(),t.hideMenu(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")])]),t._v(" "),e("ul",[e("router-link",{attrs:{tag:"li",to:"/movies"},nativeOn:{click:function(e){t.hideMenu(e)}}},[e("a",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Movies\n ")])]),t._v(" "),e("router-link",{attrs:{tag:"li",to:"/shows"},nativeOn:{click:function(e){t.hideMenu(e)}}},[e("a",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Shows\n ")])]),t._v(" "),e("router-link",{attrs:{tag:"li",to:"/settings"},nativeOn:{click:function(e){t.hideMenu(e)}}},[e("a",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Settings\n ")])])])]),t._v(" "),t._v(" "),e("a",{attrs:{id:"overlay"},on:{click:function(e){e.preventDefault(),t.toggleMenu(e)}}}),t._v(" "),t._v(" "),e("div",{attrs:{id:"content"}},[e("router-view",{staticClass:"view",attrs:{transition:"","transition-mode":"out-in"}})]),t._v(" "),t._v(" "),e("div",{attrs:{id:"footer"}},[t._v("\n Created by Brian Wells\n ")]),t._v(" "),t._v(" "),e("toast")])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"card poster"},[e("router-link",{attrs:{to:{path:t.link}}},[e("img",{attrs:{src:t.movie.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.movie.attributes.title))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movie"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.movie.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.movie.attributes.title)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button button-desktop",attrs:{to:"/movies"}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Movies\n ")]),t._v(" "),e("a",{staticClass:"button","class":{disabled:t.isDisabled},attrs:{href:"/downloads/movies/"+t.movie.id}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Watch\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/movies/"+t.movie.id+"/edit"}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Edit\n ")]),t._v(" "),e("div",{staticClass:"overview"},[t._m(0),t._v(" "),t.movie.attributes.poster_url?e("img",{attrs:{src:t.movie.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.movie.attributes.overview)+"\n ")])]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.movie.attributes.tmdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TMDB\n ")]),t._v(" "),t.movie.attributes.imdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.movie.attributes.imdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" IMDB\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Runtime:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.runtime)+" minutes\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Release Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.movie.attributes.release_date,"MMMM Do Y"))+"\n ")])]),t._v(" "),"$0"!=t.movie.attributes.budget?e("li",[e("div",{staticClass:"key"},[t._v("Budget:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.budget)+"\n ")])]):t._e(),t._v(" "),"$0"!=t.movie.attributes.revenue?e("li",[e("div",{staticClass:"key"},[t._v("Revenue:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.revenue)+"\n ")])]):t._e()]),t._v(" "),t._m(1),t._v(" "),t.movie.relationships.genres?e("ul",{staticClass:"tags"},t._l(t.genres,function(n){return e("li",[t._v("\n "+t._s(n.attributes.name)+"\n ")])})):t._e(),t._v(" "),t.movie.relationships.views?e("div",[t._m(2),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Genres\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"show"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.show.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button button-desktop",attrs:{to:"/shows"}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Shows\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id+"/edit"}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Edit\n ")]),t._v(" "),t.show.relationships.seasons?e("div",[t._m(0),t._v(" "),e("ul",{staticClass:"grid"},t._l(t.seasons,function(n){return e("li",[e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/seasons/"+n.id}}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])])}))]):t._e(),t._v(" "),e("div",{staticClass:"overview"},[t._m(1),t._v(" "),t.show.attributes.poster_url?e("img",{attrs:{src:t.show.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.show.attributes.overview)+"\n ")])]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.tmdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TMDB\n ")]),t._v(" "),t.show.attributes.imdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.imdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" IMDB\n ")]):t._e(),t._v(" "),t.show.attributes.tvdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.tvdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TVDB\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Total Seasons:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.number_of_seasons)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Total Episodes:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.number_of_episodes)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Average Runtime:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.average_runtime)+" minutes\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("First Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.show.attributes.first_air_date,"MMMM Do Y"))+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.show.attributes.last_air_date,"MMMM Do Y"))+"\n ")])])]),t._v(" "),t._m(2),t._v(" "),t.show.relationships.genres?e("ul",{staticClass:"tags"},t._l(t.genres,function(n){return e("li",[t._v("\n "+t._s(n.attributes.name)+"\n ")])})):t._e(),t._v(" "),t.show.relationships.views?e("div",[t._m(3),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Seasons\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Genres\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectPoster()}}},[e("img",{attrs:{src:t.poster.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[t.episode.attributes.still_url?e("img",{attrs:{src:t.episode.attributes.still_url}}):t._e(),t._v(" "),e("div",{staticClass:"summary"},[e("h3",[t._v("\n S"+t._s(t._f("zeroPad")(t.episode.attributes.season,2))+"E"+t._s(t._f("zeroPad")(t.episode.attributes.episode,2))+" \n – \n "+t._s(t.episode.attributes.name)+"\n ")]),t._v(" "),e("p",[e("a",{staticClass:"button","class":{disabled:t.isDisabled},attrs:{href:"/downloads/episodes/"+t.episode.id}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Watch\n ")])]),t._v(" "),t.episode.attributes.overview?e("p",[t._v("\n "+t._s(t.episode.attributes.overview)+"\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[t.episode.attributes.air_date?e("li",[e("div",{staticClass:"key"},[t._v("Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.episode.attributes.air_date,"MMMM Do Y"))+"\n ")])]):t._e(),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Total Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.episode.attributes.total_views)+"\n ")])])])])])},staticRenderFns:[]}},function(t,e){},function(t,e,n){"use strict";var r=n(8),i=n.n(r),a=n(132),o=n.n(a),s=n(131),u=(n.n(s),n(135)),l=n.n(u),d=n(134),c=n.n(d),f=n(127),h=n.n(f),_=n(130),m=n(128),p=n(129),v=n(136),g=(n.n(v),n(133)),y=n.n(g);i.a.config.devtools=!1,i.a.config.silent=!0,window._=o.a,window.axios=h.a,h.a.defaults.headers.common.Accept="application/vnd.api+json; version=1; charset=utf-8",i.a.use(l.a),i.a.use(c.a),i.a.filter("zeroPad",m.a);var M=new l.a({mode:"history",routes:p.a});n.i(v.sync)(_.a,M),window.vueRouter=M;new i.a(Object.assign({},{router:M,store:_.a},y.a)).$mount("#app")}]); \ No newline at end of file diff --git a/public/build/rev-manifest.json b/public/build/rev-manifest.json index 172e34b..f233fde 100644 --- a/public/build/rev-manifest.json +++ b/public/build/rev-manifest.json @@ -1,4 +1,4 @@ { "css/app.css": "css/app-c6da92f35b.css", - "js/app.js": "js/app-47eeed0b62.js" + "js/app.js": "js/app-1943400d38.js" } \ No newline at end of file diff --git a/public/js/app.js b/public/js/app.js index c5c6bc5..5813594 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -17,4 +17,4 @@ t.animations.splice(r,1)):++r;var i=Date.now(),a=(i-e)/t.frameDuration;t.dropFra }function o(t){var n=e.findNextWhere(x,function(e){return e.box===t}),r={left:0,right:0,top:C,bottom:j};n&&t.update(n.minSize.width,D,r)}function s(t){t.isHorizontal()?(t.left=t.options.fullWidth?d:T,t.right=t.options.fullWidth?n-c:T+Y,t.top=O,t.bottom=O+t.height,O=t.bottom):(t.left=P,t.right=P+t.width,t.top=C,t.bottom=C+D,P=t.right)}if(t){var u=t.options.layout,l=u?u.padding:null,d=0,c=0,f=0,h=0;isNaN(l)?(d=l.left||0,c=l.right||0,f=l.top||0,h=l.bottom||0):(d=l,c=l,f=l,h=l);var _=e.where(t.boxes,function(t){return"left"===t.options.position}),m=e.where(t.boxes,function(t){return"right"===t.options.position}),p=e.where(t.boxes,function(t){return"top"===t.options.position}),v=e.where(t.boxes,function(t){return"bottom"===t.options.position}),g=e.where(t.boxes,function(t){return"chartArea"===t.options.position});p.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),v.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var y=n-d-c,M=r-f-h,b=y/2,L=M/2,w=(n-b)/(_.length+m.length),k=(r-L)/(p.length+v.length),Y=y,D=M,x=[];e.each(_.concat(m,p,v),i);var T=d,S=c,C=f,j=h;e.each(_.concat(m),a),e.each(_,function(t){T+=t.width}),e.each(m,function(t){S+=t.width}),e.each(p.concat(v),a),e.each(p,function(t){C+=t.height}),e.each(v,function(t){j+=t.height}),e.each(_.concat(m),o),T=d,S=c,C=f,j=h,e.each(_,function(t){T+=t.width}),e.each(m,function(t){S+=t.width}),e.each(p,function(t){C+=t.height}),e.each(v,function(t){j+=t.height});var A=r-C-j,H=n-T-S;H===Y&&A===D||(e.each(_,function(t){t.height=A}),e.each(m,function(t){t.height=A}),e.each(p,function(t){t.options.fullWidth||(t.width=H)}),e.each(v,function(t){t.options.fullWidth||(t.width=H)}),D=A,Y=H);var P=d,O=f;e.each(_.concat(p),s),P+=Y,O+=D,e.each(m,s),e.each(v,s),t.chartArea={left:T,top:C,right:T+Y,bottom:C+D},e.each(g,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(Y,D)})}}}}},function(t,e){"use strict";t.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}var n=t.helpers,r=n.noop;t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var n=e.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return n.isArray(e.datasets)?e.datasets.map(function(e,r){return{text:e.label,fillStyle:n.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(r),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:r}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){n.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:r,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:function(){var t=this;t.legendItems=t.options.labels.generateLabels.call(t,t.chart),t.options.reverse&&t.legendItems.reverse()},afterBuildLabels:r,beforeFit:r,fit:function(){var r=this,i=r.options,a=i.labels,o=i.display,s=r.ctx,u=t.defaults.global,l=n.getValueOrDefault,d=l(a.fontSize,u.defaultFontSize),c=l(a.fontStyle,u.defaultFontStyle),f=l(a.fontFamily,u.defaultFontFamily),h=n.fontString(d,c,f),_=r.legendHitBoxes=[],m=r.minSize,p=r.isHorizontal();if(p?(m.width=r.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=r.maxHeight),o)if(s.font=h,p){var v=r.lineWidths=[0],g=r.legendItems.length?d+a.padding:0;s.textAlign="left",s.textBaseline="top",n.each(r.legendItems,function(t,n){var i=e(a,d),o=i+d/2+s.measureText(t.text).width;v[v.length-1]+o+a.padding>=r.width&&(g+=d+a.padding,v[v.length]=r.left),_[n]={left:0,top:0,width:o,height:d},v[v.length-1]+=o+a.padding}),m.height+=g}else{var y=a.padding,M=r.columnWidths=[],b=a.padding,L=0,w=0,k=d+y;n.each(r.legendItems,function(t,n){var r=e(a,d),i=r+d/2+s.measureText(t.text).width;w+k>m.height&&(b+=L+a.padding,M.push(L),L=0,w=0),L=Math.max(L,i),w+=k,_[n]={left:0,top:0,width:i,height:d}}),b+=L,M.push(L),m.width+=b}r.width=m.width,r.height=m.height},afterFit:r,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var r=this,i=r.options,a=i.labels,o=t.defaults.global,s=o.elements.line,u=r.width,l=r.lineWidths;if(i.display){var d,c=r.ctx,f=n.getValueOrDefault,h=f(a.fontColor,o.defaultFontColor),_=f(a.fontSize,o.defaultFontSize),m=f(a.fontStyle,o.defaultFontStyle),p=f(a.fontFamily,o.defaultFontFamily),v=n.fontString(_,m,p);c.textAlign="left",c.textBaseline="top",c.lineWidth=.5,c.strokeStyle=h,c.fillStyle=h,c.font=v;var g=e(a,_),y=r.legendHitBoxes,M=function(e,n,r){if(!(isNaN(g)||g<=0)){c.save(),c.fillStyle=f(r.fillStyle,o.defaultColor),c.lineCap=f(r.lineCap,s.borderCapStyle),c.lineDashOffset=f(r.lineDashOffset,s.borderDashOffset),c.lineJoin=f(r.lineJoin,s.borderJoinStyle),c.lineWidth=f(r.lineWidth,s.borderWidth),c.strokeStyle=f(r.strokeStyle,o.defaultColor);var a=0===f(r.lineWidth,s.borderWidth);if(c.setLineDash&&c.setLineDash(f(r.lineDash,s.borderDash)),i.labels&&i.labels.usePointStyle){var u=_*Math.SQRT2/2,l=u/Math.SQRT2,d=e+l,h=n+l;t.canvasHelpers.drawPoint(c,r.pointStyle,u,d,h)}else a||c.strokeRect(e,n,g,_),c.fillRect(e,n,g,_);c.restore()}},b=function(t,e,n,r){c.fillText(n.text,g+_/2+t,e),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(g+_/2+t,e+_/2),c.lineTo(g+_/2+t+r,e+_/2),c.stroke())},L=r.isHorizontal();d=L?{x:r.left+(u-l[0])/2,y:r.top+a.padding,line:0}:{x:r.left+a.padding,y:r.top+a.padding,line:0};var w=_+a.padding;n.each(r.legendItems,function(t,e){var n=c.measureText(t.text).width,i=g+_/2+n,o=d.x,s=d.y;L?o+i>=u&&(s=d.y+=w,d.line++,o=d.x=r.left+(u-l[d.line])/2):s+w>r.bottom&&(o=d.x=o+r.columnWidths[d.line]+a.padding,s=d.y=r.top,d.line++),M(o,s,t),y[e].left=o,y[e].top=s,b(o,s,t,n),L?d.x+=i+a.padding:d.y+=w})}},handleEvent:function(t){var e=this,r=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!r.onHover)return}else{if("click"!==i)return;if(!r.onClick)return}var o=n.getRelativePosition(t,e.chart.chart),s=o.x,u=o.y;if(s>=e.left&&s<=e.right&&u>=e.top&&u<=e.bottom)for(var l=e.legendHitBoxes,d=0;d=c.left&&s<=c.left+c.width&&u>=c.top&&u<=c.top+c.height){if("click"===i){r.onClick.call(e,t,e.legendItems[d]),a=!0;break}if("mousemove"===i){r.onHover.call(e,t,e.legendItems[d]),a=!0;break}}}return a}}),t.plugins.register({beforeInit:function(e){var n=e.options,r=n.legend;r&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:r,chart:e}),t.layoutService.addBox(e,e.legend))}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){e.indexOf(t)===-1&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var n,r,i=this._plugins,a=i.length;for(n=0;nv&&n.labelRotationn.yLabelWidth&&(n.paddingLeft=d+o/2),n.paddingRight=o/2,_*m>n.maxHeight){n.labelRotation--;break}n.labelRotation++,p=h*m}}n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var n=this,r=n.minSize={width:0,height:0},i=n.options,a=t.defaults.global,o=i.ticks,s=i.scaleLabel,u=i.gridLines,l=i.display,d=n.isHorizontal(),c=e.getValueOrDefault(o.fontSize,a.defaultFontSize),f=e.getValueOrDefault(o.fontStyle,a.defaultFontStyle),h=e.getValueOrDefault(o.fontFamily,a.defaultFontFamily),_=e.fontString(c,f,h),m=e.getValueOrDefault(s.fontSize,a.defaultFontSize),p=i.gridLines.tickMarkLength;if(d?r.width=n.isFullWidth()?n.maxWidth-n.margins.left-n.margins.right:n.maxWidth:r.width=l&&u.drawTicks?p:0,d?r.height=l&&u.drawTicks?p:0:r.height=n.maxHeight,s.display&&l&&(d?r.height+=1.5*m:r.width+=1.5*m),o.display&&l){n.longestTextCache||(n.longestTextCache={});var v=e.longestText(n.ctx,_,n.ticks,n.longestTextCache),g=e.numberOfLabelLines(n.ticks),y=.5*c;if(d){n.longestLabelWidth=v;var M=Math.sin(e.toRadians(n.labelRotation))*n.longestLabelWidth+c*g+y*g;r.height=Math.min(n.maxHeight,r.height+M),n.ctx.font=_;var b=n.ctx.measureText(n.ticks[0]).width,L=n.ctx.measureText(n.ticks[n.ticks.length-1]).width,w=Math.cos(e.toRadians(n.labelRotation)),k=Math.sin(e.toRadians(n.labelRotation));n.paddingLeft=0!==n.labelRotation?w*b+3:b/2+3,n.paddingRight=0!==n.labelRotation?k*(c/2)+3:L/2+3}else{var Y=n.maxWidth-r.width,D=o.mirror;D?v=0:v+=n.options.ticks.padding,v0&&n>0?e:0)},draw:function(n){var r=this,i=r.options;if(i.display){var a,o,s=r.ctx,u=t.defaults.global,l=i.ticks,d=i.gridLines,c=i.scaleLabel,f=0!==r.labelRotation,h=l.autoSkip,_=r.isHorizontal();l.maxTicksLimit&&(o=l.maxTicksLimit);var m=e.getValueOrDefault(l.fontColor,u.defaultFontColor),p=e.getValueOrDefault(l.fontSize,u.defaultFontSize),v=e.getValueOrDefault(l.fontStyle,u.defaultFontStyle),g=e.getValueOrDefault(l.fontFamily,u.defaultFontFamily),y=e.fontString(p,v,g),M=d.tickMarkLength,b=e.getValueOrDefault(d.borderDash,u.borderDash),L=e.getValueOrDefault(d.borderDashOffset,u.borderDashOffset),w=e.getValueOrDefault(c.fontColor,u.defaultFontColor),k=e.getValueOrDefault(c.fontSize,u.defaultFontSize),Y=e.getValueOrDefault(c.fontStyle,u.defaultFontStyle),D=e.getValueOrDefault(c.fontFamily,u.defaultFontFamily),x=e.fontString(k,Y,D),T=e.toRadians(r.labelRotation),S=Math.cos(T),C=r.longestLabelWidth*S;s.fillStyle=m;var j=[];if(_){if(a=!1,f&&(C/=2),(C+l.autoSkipPadding)*r.ticks.length>r.width-(r.paddingLeft+r.paddingRight)&&(a=1+Math.floor((C+l.autoSkipPadding)*r.ticks.length/(r.width-(r.paddingLeft+r.paddingRight)))),o&&r.ticks.length>o)for(;!a||r.ticks.length/(a||1)>o;)a||(a=1),a+=1;h||(a=!1)}var A="right"===i.position?r.left:r.right-M,H="right"===i.position?r.left+M:r.right,P="bottom"===i.position?r.top:r.bottom-M,O="bottom"===i.position?r.top+M:r.bottom;if(e.each(r.ticks,function(t,o){if(void 0!==t&&null!==t){var s=r.ticks.length===o+1,u=a>1&&o%a>0||o%a===0&&o+a>=r.ticks.length;if((!u||s)&&void 0!==t&&null!==t){var c,h;o===("undefined"!=typeof r.zeroLineIndex?r.zeroLineIndex:0)?(c=d.zeroLineWidth,h=d.zeroLineColor):(c=e.getValueAtIndexOrDefault(d.lineWidth,o),h=e.getValueAtIndexOrDefault(d.color,o));var m,p,v,g,y,w,k,Y,D,x,S="middle",C="middle";if(_){f||(C="top"===i.position?"bottom":"top"),S=f?"right":"center";var E=r.getPixelForTick(o)+e.aliasPixel(c);D=r.getPixelForTick(o,d.offsetGridLines)+l.labelOffset,x=f?r.top+12:"top"===i.position?r.bottom-M:r.top+M,m=v=y=k=E,p=P,g=O,w=n.top,Y=n.bottom}else{"left"===i.position?l.mirror?(D=r.right+l.padding,S="left"):(D=r.right-l.padding,S="right"):l.mirror?(D=r.left-l.padding,S="right"):(D=r.left+l.padding,S="left");var F=r.getPixelForTick(o);F+=e.aliasPixel(c),x=r.getPixelForTick(o,d.offsetGridLines),m=A,v=H,y=n.left,k=n.right,p=g=w=Y=F}j.push({tx1:m,ty1:p,tx2:v,ty2:g,x1:y,y1:w,x2:k,y2:Y,labelX:D,labelY:x,glWidth:c,glColor:h,glBorderDash:b,glBorderDashOffset:L,rotation:-1*T,label:t,textBaseline:C,textAlign:S})}}}),e.each(j,function(t){if(d.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),d.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),d.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),l.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=y,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var n=t.label;if(e.isArray(n))for(var r=0,i=-(n.length-1)*p*.75;r0)r=t.stepSize;else{var a=e.niceNum(n.max-n.min,!1);r=e.niceNum(a/(t.maxTicks-1),!0)}var o=Math.floor(n.min/r)*r,s=Math.ceil(n.max/r)*r;if(t.min&&t.max&&t.stepSize){var u=(t.max-t.min)%t.stepSize===0;u&&(o=t.min,s=t.max)}var l=(s-o)/r;l=e.almostEquals(l,Math.round(l),r/1e3)?Math.round(l):Math.ceil(l),i.push(void 0!==t.min?t.min:o);for(var d=1;d3?r[2]-r[1]:r[1]-r[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var a=e.log10(Math.abs(i)),o="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,n,r){var i=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===n||n===r.length-1?t.toExponential():""}}}}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};var n=e.noop;t.Title=t.Element.extend({initialize:function(n){var r=this;e.extend(r,n),r.options=e.configMerge(t.defaults.global.title,n.options),r.legendHitBoxes=[]},beforeUpdate:function(){var n=this.chart.options;n&&n.title&&(this.options=e.configMerge(t.defaults.global.title,n.title))},update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:n,beforeSetDimensions:n,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:n,beforeBuildLabels:n,buildLabels:n,afterBuildLabels:n,beforeFit:n,fit:function(){var n=this,r=e.getValueOrDefault,i=n.options,a=t.defaults.global,o=i.display,s=r(i.fontSize,a.defaultFontSize),u=n.minSize;n.isHorizontal()?(u.width=n.maxWidth,u.height=o?s+2*i.padding:0):(u.width=o?s+2*i.padding:0,u.height=n.maxHeight),n.width=u.width,n.height=u.height},afterFit:n,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var n=this,r=n.ctx,i=e.getValueOrDefault,a=n.options,o=t.defaults.global;if(a.display){var s,u,l,d=i(a.fontSize,o.defaultFontSize),c=i(a.fontStyle,o.defaultFontStyle),f=i(a.fontFamily,o.defaultFontFamily),h=e.fontString(d,c,f),_=0,m=n.top,p=n.left,v=n.bottom,g=n.right;r.fillStyle=i(a.fontColor,o.defaultFontColor),r.font=h,n.isHorizontal()?(s=p+(g-p)/2,u=m+(v-m)/2,l=g-p):(s="left"===a.position?p+d/2:g-d/2,u=m+(v-m)/2,l=v-m,_=Math.PI*("left"===a.position?-.5:.5)),r.save(),r.translate(s,u),r.rotate(_),r.textAlign="center",r.textBaseline="middle",r.fillText(a.text,0,0,l),r.restore()}}}),t.plugins.register({beforeInit:function(e){var n=e.options,r=n.title;r&&(e.titleBlock=new t.Title({ctx:e.chart.ctx,options:r,chart:e}),t.layoutService.addBox(e,e.titleBlock))}})}},function(t,e){"use strict";t.exports=function(t){function e(t,e){var n=u.color(t);return n.alpha(e*n.alpha()).rgbaString()}function n(t,e){return e&&(u.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function r(t){var e=t._xScale,n=t._yScale||t._scale,r=t._index,i=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(r,i):"",yLabel:n?n.getLabelForIndex(r,i):"",index:r,datasetIndex:i,x:t._model.x,y:t._model.y}}function i(e){var n=t.defaults.global,r=u.getValueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:r(e.bodyFontFamily,n.defaultFontFamily),_bodyFontStyle:r(e.bodyFontStyle,n.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:r(e.bodyFontSize,n.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:r(e.titleFontFamily,n.defaultFontFamily),_titleFontStyle:r(e.titleFontStyle,n.defaultFontStyle),titleFontSize:r(e.titleFontSize,n.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:r(e.footerFontFamily,n.defaultFontFamily),_footerFontStyle:r(e.footerFontStyle,n.defaultFontStyle),footerFontSize:r(e.footerFontSize,n.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors}}function a(t,e){var n=t._chart.ctx,r=2*e.yPadding,i=0,a=e.body,o=a.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,d=e.titleFontSize,c=e.bodyFontSize,f=e.footerFontSize;r+=s*d,r+=s?(s-1)*e.titleSpacing:0,r+=s?e.titleMarginBottom:0,r+=o*c,r+=o?(o-1)*e.bodySpacing:0,r+=l?e.footerMarginTop:0,r+=l*f,r+=l?(l-1)*e.footerSpacing:0;var h=0,_=function(t){i=Math.max(i,n.measureText(t).width+h)};return n.font=u.fontString(d,e._titleFontStyle,e._titleFontFamily),u.each(e.title,_),n.font=u.fontString(c,e._bodyFontStyle,e._bodyFontFamily),u.each(e.beforeBody.concat(e.afterBody),_),h=e.displayColors?c+2:0,u.each(a,function(t){u.each(t.before,_),u.each(t.lines,_),u.each(t.after,_)}),h=0,n.font=u.fontString(f,e._footerFontStyle,e._footerFontFamily),u.each(e.footer,_),i+=2*e.xPadding,{width:i,height:r}}function o(t,e){var n=t._model,r=t._chart,i=t._chartInstance.chartArea,a="center",o="center";n.yr.height-e.height&&(o="bottom");var s,u,l,d,c,f=(i.left+i.right)/2,h=(i.top+i.bottom)/2;"center"===o?(s=function(t){return t<=f},u=function(t){return t>f}):(s=function(t){return t<=e.width/2},u=function(t){return t>=r.width-e.width/2}),l=function(t){return t+e.width>r.width},d=function(t){return t-e.width<0},c=function(t){return t<=h?"top":"bottom"},s(n.x)?(a="left",l(n.x)&&(a="center",o=c(n.y))):u(n.x)&&(a="right",d(n.x)&&(a="center",o=c(n.y)));var _=t._options;return{xAlign:_.xAlign?_.xAlign:a,yAlign:_.yAlign?_.yAlign:o}}function s(t,e,n){var r=t.x,i=t.y,a=t.caretSize,o=t.caretPadding,s=t.cornerRadius,u=n.xAlign,l=n.yAlign,d=a+o,c=s+o;return"right"===u?r-=e.width:"center"===u&&(r-=e.width/2),"top"===l?i+=d:i-="bottom"===l?e.height+d:e.height/2,"center"===l?"left"===u?r+=d:"right"===u&&(r-=d):"left"===u?r-=c:"right"===u&&(r+=c),{x:r,y:i}}var u=t.helpers;t.defaults.global.tooltips={enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,callbacks:{beforeTitle:u.noop,title:function(t,e){var n="",r=e.labels,i=r?r.length:0;if(t.length>0){var a=t[0];a.xLabel?n=a.xLabel:i>0&&a.indexu;)a-=2*Math.PI;for(;a=s&&a<=u,d=o>=r.innerRadius&&o<=r.outerRadius;return l&&d}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,r=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,r),t.arc(e.x,e.y,e.innerRadius,r,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:n.defaultColor,borderWidth:3,borderColor:n.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var n=e._view;e._view.steppedLine===!0?(u.lineTo(n.x,t._view.y),u.lineTo(n.x,n.y)):0===e._view.tension?u.lineTo(n.x,n.y):u.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,n.controlPointPreviousX,n.controlPointPreviousY,n.x,n.y)}var r=this,i=r._view,a=i.spanGaps,o=i.scaleZero,s=r._loop;s||("top"===i.fill?o=i.scaleTop:"bottom"===i.fill&&(o=i.scaleBottom));var u=r._chart.ctx;u.save();var l=r._children.slice(),d=-1;s&&l.length&&l.push(l[0]);var c,f,h,_;if(l.length&&i.fill){for(u.beginPath(),c=0;c=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return r},inLabelRange:function(t,r){var i=this;if(!i._view)return!1;var a=!1,o=n(i);return a=e(i)?t>=o.left&&t<=o.right:r>=o.top&&r<=o.bottom},inXRange:function(t){var e=n(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=n(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,n,r=this._view;return e(this)?(t=r.x,n=(r.y+r.base)/2):(t=(r.x+r.base)/2,n=r.y),{x:t,y:n}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n={position:"bottom"},r=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1;var r;void 0!==t.options.ticks.min&&(r=e.indexOf(n,t.options.ticks.min),t.minIndex=r!==-1?r:t.minIndex),void 0!==t.options.ticks.max&&(r=e.indexOf(n,t.options.ticks.max),t.maxIndex=r!==-1?r:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,r=n.chart.data,i=n.isHorizontal();return r.xLabels&&i||r.yLabels&&!i?n.getRightValue(r.datasets[e].data[t]):n.ticks[t]},getPixelForValue:function(t,e,n,r){var i=this,a=Math.max(i.maxIndex+1-i.minIndex-(i.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var o=i.getLabels(),s=o.indexOf(t);e=s!==-1?s:e}if(i.isHorizontal()){var u=i.width-(i.paddingLeft+i.paddingRight),l=u/a,d=l*(e-i.minIndex)+i.paddingLeft;return(i.options.gridLines.offsetGridLines&&r||i.maxIndex===i.minIndex&&r)&&(d+=l/2),i.left+Math.round(d)}var c=i.height-(i.paddingTop+i.paddingBottom),f=c/a,h=f*(e-i.minIndex)+i.paddingTop;return i.options.gridLines.offsetGridLines&&r&&(h+=f/2),i.top+Math.round(h)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,n=this,r=Math.max(n.ticks.length-(n.options.gridLines.offsetGridLines?0:1),1),i=n.isHorizontal(),a=i?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),o=a/r;return t-=i?n.left:n.top,n.options.gridLines.offsetGridLines&&(t-=o/2),t-=i?n.paddingLeft:n.paddingTop,e=t<=0?0:Math.round(t/o)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",r,n)}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n={position:"left",ticks:{callback:t.Ticks.formatters.linear}},r=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,r=n.options,i=n.chart,a=i.data,o=a.datasets,s=n.isHorizontal();if(n.min=null,n.max=null,r.stacked){var u={};e.each(o,function(a,o){var s=i.getDatasetMeta(o);void 0===u[s.type]&&(u[s.type]={positiveValues:[],negativeValues:[]});var l=u[s.type].positiveValues,d=u[s.type].negativeValues;i.isDatasetVisible(o)&&t(s)&&e.each(a.data,function(t,e){var i=+n.getRightValue(t);isNaN(i)||s.data[e].hidden||(l[e]=l[e]||0,d[e]=d[e]||0,r.relativePoints?l[e]=100:i<0?d[e]+=i:l[e]+=i)})}),e.each(u,function(t){var r=t.positiveValues.concat(t.negativeValues),i=e.min(r),a=e.max(r);n.min=null===n.min?i:Math.min(n.min,i),n.max=null===n.max?a:Math.max(n.max,a)})}else e.each(o,function(r,a){var o=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(o)&&e.each(r.data,function(t,e){var r=+n.getRightValue(t);isNaN(r)||o.data[e].hidden||(null===n.min?n.min=r:rn.max&&(n.max=r))})});this.handleTickRangeOptions()},getTickLimit:function(){var n,r=this,i=r.options.ticks;if(r.isHorizontal())n=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.width/50));else{var a=e.getValueOrDefault(i.fontSize,t.defaults.global.defaultFontSize);n=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.height/(2*a)))}return n},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n,r=this,i=r.paddingLeft,a=r.paddingBottom,o=r.start,s=+r.getRightValue(t),u=r.end-o;return r.isHorizontal()?(n=r.width-(i+r.paddingRight),e=r.left+n/u*(s-o),Math.round(e+i)):(n=r.height-(r.paddingTop+a),e=r.bottom-a-n/u*(s-o),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),r=e.paddingLeft,i=e.paddingBottom,a=n?e.width-(r+e.paddingRight):e.height-(e.paddingTop+i),o=(n?t-e.left-r:e.bottom-i-t)/a;return e.start+(e.end-e.start)*o},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",r,n)}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,n=t.options,r=n.ticks;if(r.beginAtZero){var i=e.sign(t.min),a=e.sign(t.max);i<0&&a<0?t.max=0:i>0&&a>0&&(t.min=0)}void 0!==r.min?t.min=r.min:void 0!==r.suggestedMin&&(t.min=Math.min(t.min,r.suggestedMin)),void 0!==r.max?t.max=r.max:void 0!==r.suggestedMax&&(t.max=Math.max(t.max,r.suggestedMax)),t.min===t.max&&(t.max++,r.beginAtZero||t.min--)},getTickLimit:n,handleDirectionalChanges:n,buildTicks:function(){var n=this,r=n.options,i=r.ticks,a=n.getTickLimit();a=Math.max(2,a);var o={maxTicks:a,min:i.min,max:i.max,stepSize:e.getValueOrDefault(i.fixedStepSize,i.stepSize)},s=n.ticks=t.Ticks.generators.linear(o,n);n.handleDirectionalChanges(),n.max=e.max(s),n.min=e.min(s),i.reverse?(s.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers,n={position:"left",ticks:{callback:t.Ticks.formatters.logarithmic}},r=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,r=n.options,i=r.ticks,a=n.chart,o=a.data,s=o.datasets,u=e.getValueOrDefault,l=n.isHorizontal();if(n.min=null,n.max=null,n.minNotZero=null,r.stacked){var d={};e.each(s,function(i,o){var s=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(s)&&(void 0===d[s.type]&&(d[s.type]=[]),e.each(i.data,function(t,e){var i=d[s.type],a=+n.getRightValue(t);isNaN(a)||s.data[e].hidden||(i[e]=i[e]||0,r.relativePoints?i[e]=100:i[e]+=a)}))}),e.each(d,function(t){var r=e.min(t),i=e.max(t);n.min=null===n.min?r:Math.min(n.min,r),n.max=null===n.max?i:Math.max(n.max,i)})}else e.each(s,function(r,i){var o=a.getDatasetMeta(i);a.isDatasetVisible(i)&&t(o)&&e.each(r.data,function(t,e){var r=+n.getRightValue(t);isNaN(r)||o.data[e].hidden||(null===n.min?n.min=r:rn.max&&(n.max=r),0!==r&&(null===n.minNotZero||rt.max&&(t.max=r))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,r=e.getValueOrDefault(t.fontSize,n.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*r)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,r,i,a,o,s,u,l,d,c,f,h,_=this.options.pointLabels,m=e.getValueOrDefault(_.fontSize,n.defaultFontSize),p=e.getValueOrDefault(_.fontStyle,n.defaultFontStyle),v=e.getValueOrDefault(_.fontFamily,n.defaultFontFamily),g=e.fontString(m,p,v),y=e.min([this.height/2-m-5,this.width/2]),M=this.width,b=0;for(this.ctx.font=g,r=0;rM&&(M=t.x+a,o=r),t.x-aM&&(M=t.x+i,o=r):t.x-i0&&n>0?e:0)},draw:function(){var t=this,r=t.options,i=r.gridLines,a=r.ticks,o=r.angleLines,s=r.pointLabels,u=e.getValueOrDefault;if(r.display){var l=t.ctx,d=u(a.fontSize,n.defaultFontSize),c=u(a.fontStyle,n.defaultFontStyle),f=u(a.fontFamily,n.defaultFontFamily),h=e.fontString(d,c,f);if(e.each(t.ticks,function(o,s){if(s>0||r.reverse){var c=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),f=t.yCenter-c;if(i.display&&0!==s)if(l.strokeStyle=e.getValueAtIndexOrDefault(i.color,s-1),l.lineWidth=e.getValueAtIndexOrDefault(i.lineWidth,s-1),r.lineArc)l.beginPath(),l.arc(t.xCenter,t.yCenter,c,0,2*Math.PI),l.closePath(),l.stroke();else{l.beginPath();for(var _=0;_=0;y--){if(o.display){var M=t.getPointPosition(y,_);l.beginPath(),l.moveTo(t.xCenter,t.yCenter),l.lineTo(M.x,M.y),l.stroke(),l.closePath()}var b=t.getPointPosition(y,_+5),L=u(s.fontColor,n.defaultFontColor);l.font=g,l.fillStyle=L;var w=t.pointLabels,k=this.getIndexAngle(y)+Math.PI/2,Y=360*k/(2*Math.PI)%360;0===Y||180===Y?l.textAlign="center":Y<180?l.textAlign="left":l.textAlign="right",90===Y||270===Y?l.textBaseline="middle":Y>270||Y<90?l.textBaseline="bottom":l.textBaseline="top",l.fillText(w[y]?w[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",i,r)}},function(t,e,n){"use strict";var r=n(0);r="function"==typeof r?r:window.moment,t.exports=function(t){var e=t.helpers,n={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},i={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},a=t.Scale.extend({initialize:function(){if(!r)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var n=this;return null===t||null===e?null:(void 0===n.labelDiffs&&n.buildLabelDiffs(),"undefined"!=typeof n.labelDiffs[t]?n.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var n=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var r=t.parseTime(e);r.isValid()&&(t.options.time.round&&r.startOf(t.options.time.round),n.push(r))},t),t.firstTick=r.min.call(t,n),t.lastTick=r.max.call(t,n)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(i,a){var o=[],s=t.chart.isDatasetVisible(a);"object"==typeof i.data[0]&&null!==i.data[0]?e.each(i.data,function(e){var n=t.parseTime(t.getRightValue(e));n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),o.push(n),s&&(t.firstTick=null!==t.firstTick?r.min(t.firstTick,n):n,t.lastTick=null!==t.lastTick?r.max(t.lastTick,n):n))},t):o=n,t.labelMoments.push(o)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||r()).clone(),t.lastTick=(t.lastTick||r()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var n=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var r=t.parseTime(e);r.isValid()&&(t.options.time.round&&r.startOf(t.options.time.round),n.push(r.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(r){var i=[];"object"==typeof r.data[0]&&null!==r.data[0]?e.each(r.data,function(e){var n=t.parseTime(t.getRightValue(e));n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t):i=n,t.labelDiffs.push(i)},t)},buildTicks:function(){var r=this;r.ctx.save();var i=e.getValueOrDefault(r.options.ticks.fontSize,t.defaults.global.defaultFontSize),a=e.getValueOrDefault(r.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),o=e.getValueOrDefault(r.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(i,a,o);if(r.ctx.font=s,r.ticks=[],r.unitScale=1,r.scaleSizeInUnits=0,r.options.time.unit)r.tickUnit=r.options.time.unit||"day",r.displayFormat=r.options.time.displayFormats[r.tickUnit],r.scaleSizeInUnits=r.lastTick.diff(r.firstTick,r.tickUnit,!0),r.unitScale=e.getValueOrDefault(r.options.time.unitStepSize,1);else{var u=r.isHorizontal()?r.width-(r.paddingLeft+r.paddingRight):r.height-(r.paddingTop+r.paddingBottom),l=r.tickFormatFunction(r.firstTick,0,[]),d=r.ctx.measureText(l).width,c=Math.cos(e.toRadians(r.options.ticks.maxRotation)),f=Math.sin(e.toRadians(r.options.ticks.maxRotation));d=d*c+i*f;var h=u/d;r.tickUnit=r.options.time.minUnit,r.scaleSizeInUnits=r.lastTick.diff(r.firstTick,r.tickUnit,!0),r.displayFormat=r.options.time.displayFormats[r.tickUnit];for(var _=0,m=n.units[_];_=Math.ceil(r.scaleSizeInUnits/h)){r.unitScale=e.getValueOrDefault(r.options.time.unitStepSize,m.steps[p]);break}break}if(m.maxStep===!1||Math.ceil(r.scaleSizeInUnits/h)=0&&(r.lastTick=M),r.scaleSizeInUnits=r.lastTick.diff(r.firstTick,r.tickUnit,!0)}r.options.time.displayFormat&&(r.displayFormat=r.options.time.displayFormat),r.ticks.push(r.firstTick.clone());for(var L=1;L<=r.scaleSizeInUnits;++L){var w=y.clone().add(L,r.tickUnit);if(r.options.time.max&&w.diff(r.lastTick,r.tickUnit,!0)>=0)break;L%r.unitScale===0&&r.ticks.push(w)}var k=r.ticks[r.ticks.length-1].diff(r.lastTick,r.tickUnit);0===k&&0!==r.scaleSizeInUnits||(r.options.time.max?(r.ticks.push(r.lastTick.clone()),r.scaleSizeInUnits=r.lastTick.diff(r.ticks[0],r.tickUnit,!0)):(r.ticks.push(r.lastTick.clone()),r.scaleSizeInUnits=r.lastTick.diff(r.firstTick,r.tickUnit,!0))),r.ctx.restore(),r.labelDiffs=void 0},getLabelForIndex:function(t,e){var n=this,r=n.chart.data.labels&&tn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,r=t,i=void 0===e?.5:e,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,u=1-s;return this.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*r.blue()).alpha(n.alpha()*i+r.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new a,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(t=r[o],e={}.toString.call(t),"[object Array]"===e?i[o]=t.slice(0):"[object Number]"===e&&(i[o]=t));return n}},a.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},a.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},a.prototype.getValues=function(t){for(var e=this.values,n={},r=0;r.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=.4124*e+.3576*n+.1805*r,a=.2126*e+.7152*n+.0722*r,o=.0193*e+.1192*n+.9505*r;return[100*i,100*a,100*o]}function l(t){var e,n,r,i=u(t),a=i[0],o=i[1],s=i[2];return a/=95.047,o/=100,s/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,n=500*(a-o),r=200*(o-s),[e,n,r]}function d(t){return F(l(t))}function c(t){var e,n,r,i,a,o=t[0]/360,s=t[1]/100,u=t[2]/100;if(0==s)return a=255*u,[a,a,a];n=u<.5?u*(1+s):u+s-u*s,e=2*u-n,i=[0,0,0];for(var l=0;l<3;l++)r=o+1/3*-(l-1),r<0&&r++,r>1&&r--,a=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[l]=255*a;return i}function f(t){var e,n,r=t[0],i=t[1]/100,a=t[2]/100;return 0===a?[0,0,0]:(a*=2,i*=a<=1?a:2-a,n=(a+i)/2,e=2*i/(a+i),[r,100*e,100*n])}function h(t){return a(c(t))}function _(t){return o(c(t))}function m(t){return s(c(t))}function p(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,a=e-Math.floor(e),o=255*r*(1-n),s=255*r*(1-n*a),u=255*r*(1-n*(1-a)),r=255*r;switch(i){case 0:return[r,u,o];case 1:return[s,r,o];case 2:return[o,r,u];case 3:return[o,s,r];case 4:return[u,o,r];case 5:return[r,o,s]}}function v(t){var e,n,r=t[0],i=t[1]/100,a=t[2]/100;return n=(2-i)*a,e=i*a,e/=n<=1?n:2-n,e=e||0,n/=2,[r,100*e,100*n]}function y(t){return a(p(t))}function M(t){return o(p(t))}function L(t){return s(p(t))}function w(t){var e,n,i,a,o=t[0]/360,s=t[1]/100,u=t[2]/100,l=s+u;switch(l>1&&(s/=l,u/=l),e=Math.floor(6*o),n=1-u,i=6*o-e,0!=(1&e)&&(i=1-i),a=s+i*(n-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function k(t){return n(w(t))}function Y(t){return i(w(t))}function D(t){return o(w(t))}function x(t){return s(w(t))}function T(t){var e,n,r,i=t[0]/100,a=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,a*(1-s)+s),r=1-Math.min(1,o*(1-s)+s),[255*e,255*n,255*r]}function S(t){return n(T(t))}function C(t){return i(T(t))}function j(t){return a(T(t))}function A(t){return s(T(t))}function H(t){var e,n,r,i=t[0]/100,a=t[1]/100,o=t[2]/100;return e=3.2406*i+a*-1.5372+o*-.4986,n=i*-.9689+1.8758*a+.0415*o,r=.0557*i+a*-.204+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e=12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n=12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=12.92*r,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*e,255*n,255*r]}function P(t){var e,n,r,i=t[0],a=t[1],o=t[2];return i/=95.047,a/=100,o/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*a-16,n=500*(i-a),r=200*(a-o),[e,n,r]}function O(t){return F(P(t))}function E(t){var e,n,r,i,a=t[0],o=t[1],s=t[2];return a<=8?(n=100*a/903.3,i=7.787*(n/100)+16/116):(n=100*Math.pow((a+16)/116,3),i=Math.pow(n/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+i-16/116)/7.787:95.047*Math.pow(o/500+i,3),r=r/108.883<=.008859?r=108.883*(i-s/200-16/116)/7.787:108.883*Math.pow(i-s/200,3),[e,n,r]}function F(t){var e,n,r,i=t[0],a=t[1],o=t[2];return e=Math.atan2(o,a),n=360*e/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(a*a+o*o),[i,r,n]}function R(t){return H(E(t))}function I(t){var e,n,r,i=t[0],a=t[1],o=t[2];return r=o/360*2*Math.PI,e=a*Math.cos(r),n=a*Math.sin(r),[i,e,n]}function W(t){return E(I(t))}function z(t){return R(I(t))}function $(t){return q[t]}function N(t){return n($(t))}function V(t){return i($(t))}function B(t){return a($(t))}function U(t){return o($(t))}function J(t){return l($(t))}function G(t){return u($(t))}t.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:u,rgb2lab:l,rgb2lch:d,hsl2rgb:c,hsl2hsv:f,hsl2hwb:h,hsl2cmyk:_,hsl2keyword:m,hsv2rgb:p,hsv2hsl:v,hsv2hwb:y,hsv2cmyk:M,hsv2keyword:L,hwb2rgb:w,hwb2hsl:k,hwb2hsv:Y,hwb2cmyk:D,hwb2keyword:x,cmyk2rgb:T,cmyk2hsl:S,cmyk2hsv:C,cmyk2hwb:j,cmyk2keyword:A,keyword2rgb:$,keyword2hsl:N,keyword2hsv:V,keyword2hwb:B,keyword2cmyk:U,keyword2lab:J,keyword2xyz:G,xyz2rgb:H,xyz2lab:P,xyz2lch:O,lab2xyz:E,lab2rgb:R,lab2lch:F,lch2lab:I,lch2xyz:W,lch2rgb:z};var q={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},K={};for(var Z in q)K[JSON.stringify(q[Z])]=Z},function(t,e,n){var r=n(231),i=function(){return new l};for(var a in r){i[a+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),r[t](e)}}(a);var o=/(\w+)2(\w+)/.exec(a),s=o[1],u=o[2];i[s]=i[s]||{},i[s][u]=i[a]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=r[t](e);if("string"==typeof n||void 0===n)return n;for(var i=0;i=e||n<0||D&&r>=v}function d(){var t=w();return l(t)?c(t):void(y=setTimeout(d,o(t)))}function c(t){return y=void 0,x&&m?r(t):(m=p=void 0,g)}function f(){void 0!==y&&clearTimeout(y),k=0,m=M=p=y=void 0}function h(){return void 0===y?g:c(w())}function _(){var t=w(),n=l(t);if(m=arguments,p=this,M=t,n){if(void 0===y)return a(M);if(D)return y=setTimeout(d,e),r(M)}return void 0===y&&(y=setTimeout(d,e)),g}var m,p,v,g,y,M,k=0,Y=!1,D=!1,x=!0;if("function"!=typeof t)throw new TypeError(u);return e=s(e)||0,i(n)&&(Y=!!n.leading,D="maxWait"in n,v=D?b(s(n.maxWait)||0,e):v,x="trailing"in n?!!n.trailing:x),_.cancel=f,_.flush=h,_}function r(t,e,r){var a=!0,o=!0;if("function"!=typeof t)throw new TypeError(u);return i(r)&&(a="leading"in r?!!r.leading:a,o="trailing"in r?!!r.trailing:o),n(t,e,{leading:a,maxWait:e,trailing:o})}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||a(t)&&M.call(t)==d}function s(t){if("number"==typeof t)return t;if(o(t))return l;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(c,"");var n=h.test(t);return n||_.test(t)?m(t.slice(2),n?2:8):f.test(t)?l:+t}var u="Expected a function",l=NaN,d="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,_=/^0o[0-7]+$/i,m=parseInt,p="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,g=p||v||Function("return this")(),y=Object.prototype,M=y.toString,b=Math.max,L=Math.min,w=function(){return g.Date.now()};t.exports=r}).call(e,n(7))},function(t,e,n){function r(t){return n(i(t))}function i(t){var e=a[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var a={"./af":17,"./af.js":17,"./ar":23,"./ar-dz":18,"./ar-dz.js":18,"./ar-ly":19,"./ar-ly.js":19,"./ar-ma":20,"./ar-ma.js":20,"./ar-sa":21,"./ar-sa.js":21,"./ar-tn":22,"./ar-tn.js":22,"./ar.js":23,"./az":24,"./az.js":24,"./be":25,"./be.js":25,"./bg":26,"./bg.js":26,"./bn":27,"./bn.js":27,"./bo":28,"./bo.js":28,"./br":29,"./br.js":29,"./bs":30,"./bs.js":30,"./ca":31,"./ca.js":31,"./cs":32,"./cs.js":32,"./cv":33,"./cv.js":33,"./cy":34,"./cy.js":34,"./da":35,"./da.js":35,"./de":37,"./de-at":36,"./de-at.js":36,"./de.js":37,"./dv":38,"./dv.js":38,"./el":39,"./el.js":39,"./en-au":40,"./en-au.js":40,"./en-ca":41,"./en-ca.js":41,"./en-gb":42,"./en-gb.js":42,"./en-ie":43,"./en-ie.js":43,"./en-nz":44,"./en-nz.js":44,"./eo":45,"./eo.js":45,"./es":47,"./es-do":46,"./es-do.js":46,"./es.js":47,"./et":48,"./et.js":48,"./eu":49,"./eu.js":49,"./fa":50,"./fa.js":50,"./fi":51,"./fi.js":51,"./fo":52,"./fo.js":52,"./fr":55,"./fr-ca":53,"./fr-ca.js":53,"./fr-ch":54,"./fr-ch.js":54,"./fr.js":55,"./fy":56,"./fy.js":56,"./gd":57,"./gd.js":57,"./gl":58,"./gl.js":58,"./he":59,"./he.js":59,"./hi":60,"./hi.js":60,"./hr":61,"./hr.js":61,"./hu":62,"./hu.js":62,"./hy-am":63,"./hy-am.js":63,"./id":64,"./id.js":64,"./is":65,"./is.js":65,"./it":66,"./it.js":66,"./ja":67,"./ja.js":67,"./jv":68,"./jv.js":68,"./ka":69,"./ka.js":69,"./kk":70,"./kk.js":70,"./km":71,"./km.js":71,"./ko":72,"./ko.js":72,"./ky":73,"./ky.js":73,"./lb":74,"./lb.js":74,"./lo":75,"./lo.js":75,"./lt":76,"./lt.js":76,"./lv":77,"./lv.js":77,"./me":78,"./me.js":78,"./mi":79,"./mi.js":79,"./mk":80,"./mk.js":80,"./ml":81,"./ml.js":81,"./mr":82,"./mr.js":82,"./ms":84,"./ms-my":83,"./ms-my.js":83,"./ms.js":84,"./my":85,"./my.js":85,"./nb":86,"./nb.js":86,"./ne":87,"./ne.js":87,"./nl":89,"./nl-be":88,"./nl-be.js":88,"./nl.js":89,"./nn":90,"./nn.js":90,"./pa-in":91,"./pa-in.js":91,"./pl":92,"./pl.js":92,"./pt":94,"./pt-br":93,"./pt-br.js":93,"./pt.js":94,"./ro":95,"./ro.js":95,"./ru":96,"./ru.js":96,"./se":97,"./se.js":97,"./si":98,"./si.js":98,"./sk":99,"./sk.js":99,"./sl":100,"./sl.js":100,"./sq":101,"./sq.js":101,"./sr":103,"./sr-cyrl":102,"./sr-cyrl.js":102,"./sr.js":103,"./ss":104,"./ss.js":104,"./sv":105,"./sv.js":105,"./sw":106,"./sw.js":106,"./ta":107,"./ta.js":107,"./te":108,"./te.js":108,"./tet":109,"./tet.js":109,"./th":110,"./th.js":110,"./tl-ph":111,"./tl-ph.js":111,"./tlh":112,"./tlh.js":112,"./tr":113,"./tr.js":113,"./tzl":114,"./tzl.js":114,"./tzm":116,"./tzm-latn":115,"./tzm-latn.js":115,"./tzm.js":116,"./uk":117,"./uk.js":117,"./uz":118,"./uz.js":118,"./vi":119,"./vi.js":119,"./x-pseudo":120,"./x-pseudo.js":120,"./yo":121,"./yo.js":121,"./zh-cn":122,"./zh-cn.js":122,"./zh-hk":123,"./zh-hk.js":123,"./zh-tw":124,"./zh-tw.js":124};r.keys=function(){return Object.keys(a)},r.resolve=i,t.exports=r,r.id=235},function(t,e,n){var r,i;r=n(155);var a=n(277);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(156);var a=n(270);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(158);var a=n(274);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(159);var a=n(263);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(160);var a=n(273);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(161);var a=n(257);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(162);var a=n(262);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(163);var a=n(260);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(164);var a=n(264);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(165);var a=n(265);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(166);var a=n(266);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(167);var a=n(268);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(168);var a=n(275);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(169);var a=n(261);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(170);var a=n(256);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(171);var a=n(269);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(172);var a=n(276);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(173);var a=n(258);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(174);var a=n(259);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e,n){var r,i;r=n(176);var a=n(267);i=r=r||{},"object"!=typeof r["default"]&&"function"!=typeof r["default"]||(i=r=r["default"]),"function"==typeof i&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"card poster"},[e("router-link",{attrs:{to:{path:t.link}}},[e("img",{attrs:{src:t.show.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.show.attributes.name))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movie-edit"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Edit Movie")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/movies/"+t.movie.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.movie.attributes.title)+"\n ")]),t._v(" "),t.isResolved?e("div",[e("h2",[t._v("Movie Title")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Title"},domProps:{value:t.movie.attributes.title},on:{input:t.patchTitle}}),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Original Title:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.original_title)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.folder_name)+"\n ")])])]),t._v(" "),t.movie.relationships.posters?e("div",[e("h2",[t._v("Posters")]),t._v(" "),e("ul",{staticClass:"carousel posters"},t._l(t.posters,function(n){return e("movie-poster",{key:n.id,attrs:{movie:t.movie,poster:n}})}))]):t._e(),t._v(" "),t.movie.relationships.backdrops?e("div",[e("h2",[t._v("Backdrops")]),t._v(" "),e("ul",{staticClass:"carousel backdrops"},t._l(t.backdrops,function(n){return e("movie-backdrop",{key:n.id,attrs:{movie:t.movie,backdrop:n}})}))]):t._e()]):t._e(),t._v(" "),t.isResolved?t._e():e("div",[t._m(0),t._v(" "),e("p",[t._v("\n Oops! We can't figure out which movie this is. Please make a selection \n from the search results below.\n ")]),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.folder_name)+"\n ")])])])]),t._v(" "),t.movie.relationships.results?e("div",[e("h2",[t._v("Search Results")]),t._v(" "),e("ul",{staticClass:"carousel posters"},t._l(t.results,function(n){return e("movie-result",{key:n.id,attrs:{movie:t.movie,result:n}})}))]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Please Resolve\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectResult()}}},[e("img",{attrs:{src:t.result.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.result.attributes.name))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"shows"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t._v(" "),e("div",{staticClass:"search"},[e("div",{staticClass:"fields"},[e("input",{staticClass:"form-control",attrs:{placeholder:"Keywords"},domProps:{value:t.keywords},on:{input:t.filterShowKeywords}}),t._v(" "),e("div",{staticClass:"dropdown order"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedOrder},on:{change:t.filterShowOrder}},t._l(t.orders,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.name)+"\n ")])}))]),t._v(" "),e("div",{staticClass:"dropdown genres"},[e("select",{staticClass:"form-control",domProps:{ -value:t.selectedGenre},on:{change:t.filterShowGenres}},[e("option",{attrs:{value:""}},[t._v("All Genres")]),t._v(" "),t._l(t.genres,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])})],!0)])]),t._v(" "),e("div",{staticClass:"clear"},[e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.filterReset(e)}}},[t._v("\n Clear\n ")])])]),t._v(" "),t._v(" "),e("div",{staticClass:"results"},[e("h1",[t._v("Shows")]),t._v(" "),e("div",{staticClass:"cards"},t._l(t.shows,function(t){return e("show-card",{key:t.id,attrs:{show:t}})}))]),t._v(" "),e("mugen-scroll",{attrs:{handler:t.loadMore,"should-handle":!t.loading}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectResult()}}},[e("img",{attrs:{src:t.result.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.result.attributes.title))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectBackdrop()}}},[e("img",{attrs:{src:t.backdrop.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectPoster()}}},[e("img",{attrs:{src:t.poster.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectBackdrop()}}},[e("img",{attrs:{src:t.backdrop.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movies"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t._v(" "),e("div",{staticClass:"search"},[e("div",{staticClass:"fields"},[e("input",{staticClass:"form-control",attrs:{placeholder:"Keywords"},domProps:{value:t.keywords},on:{input:t.filterMovieKeywords}}),t._v(" "),e("div",{staticClass:"dropdown order"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedOrder},on:{change:t.filterMovieOrder}},t._l(t.orders,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.name)+"\n ")])}))]),t._v(" "),e("div",{staticClass:"dropdown genres"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedGenre},on:{change:t.filterMovieGenres}},[e("option",{attrs:{value:""}},[t._v("All Genres")]),t._v(" "),t._l(t.genres,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])})],!0)])]),t._v(" "),e("div",{staticClass:"clear"},[e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.filterReset(e)}}},[t._v("\n Clear\n ")])])]),t._v(" "),t._v(" "),e("div",{staticClass:"results"},[e("h1",[t._v("Movies")]),t._v(" "),e("div",{staticClass:"cards"},t._l(t.movies,function(t){return e("movie-card",{key:t.id,attrs:{movie:t}})}))]),t._v(" "),e("mugen-scroll",{attrs:{handler:t.loadMore,"should-handle":!t.loading}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;t.$createElement,t._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"not-found"},[e("h1",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Page Not Found\n ")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"season"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.show.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.show.attributes.name)+" – "+t._s(t.season.attributes.name)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),t.season.attributes.overview?e("div",{staticClass:"overview"},[t._m(0),t._v(" "),t.season.attributes.poster_url?e("img",{attrs:{src:t.season.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.season.attributes.overview)+"\n ")])]):t._e(),t._v(" "),t._m(1),t._v(" "),t.season.relationships.episodes?e("ul",{staticClass:"summaries"},t._l(t.episodes,function(t){return e("episode",{attrs:{episode:t}})})):t._e(),t._v(" "),t.season.relationships.views?e("div",[t._m(2),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.season.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Episodes\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"toast","class":[t.position,t.toastContext,t.activeToast?"active":"",t.hideProgress?"":"has-progress"],on:{mouseover:t.pause,mouseout:t.animate}},[e("div",{staticClass:"action"},[e("a",{staticClass:"close",attrs:{"aria-label":"Close"},on:{click:function(e){e.preventDefault(),t.clear(e)}}},[t._m(0)])]),t._v(" "),e("div",{domProps:{innerHTML:t._s(t.message)}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideProgress,expression:"!hideProgress"}],staticClass:"progress-bar","class":{active:t.activeProgressBar},style:t.style})])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("span",{attrs:{"aria-hidden":"true"}},[e("i",{staticClass:"material-icons"},[t._v("")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"settings"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Settings")]),t._v(" "),t._m(0),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.refreshNewFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Refresh New\n ")]),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.refreshAllFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Refresh All\n ")]),t._v(" "),t._m(1),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.clearHistoryToday(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Clear Today\n ")]),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.clearHistory(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Clear All\n ")]),t._v(" "),t._m(2),t._v(" "),e("p",[t._v("\n Setting a folder path will refresh the database with \n movies and/or shows found in that location.\n ")]),t._v(" "),e("label",[t._v("Movies Folder")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Movies Folder (i.e. /movies)"},domProps:{value:t.settings.attributes.movies_folder},on:{input:t.setMoviesFolder}}),t._v(" "),e("label",[t._v("Shows Folder")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Shows Folder (i.e. /shows)"},domProps:{value:t.settings.attributes.shows_folder},on:{input:t.setShowsFolder}}),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.patchFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Update Folders\n ")])])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Refresh\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n History\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Folders\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"show-edit"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Edit Show")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),t.isResolved?e("div",[e("h2",[t._v("Show Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Name"},domProps:{value:t.show.attributes.name},on:{input:t.patchName}}),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Original Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.original_name)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.folder_name)+"\n ")])])]),t._v(" "),e("h2",[t._v("Posters")]),t._v(" "),t.show.relationships.posters?e("ul",{staticClass:"carousel posters"},t._l(t.posters,function(n){return e("show-poster",{key:n.id,attrs:{show:t.show,poster:n}})})):t._e(),t._v(" "),e("h2",[t._v("Backdrops")]),t._v(" "),t.show.relationships.backdrops?e("ul",{staticClass:"carousel backdrops"},t._l(t.backdrops,function(n){return e("show-backdrop",{key:n.id,attrs:{show:t.show,backdrop:n}})})):t._e()]):t._e(),t._v(" "),t.isResolved?t._e():e("div",[t._m(0),t._v(" "),e("p",[t._v("\n Oops! We can't figure out which show this is. Please make a selection \n from the search results below.\n ")]),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.folder_name)+"\n ")])])])]),t._v(" "),t.show.relationships.results?e("div",[e("h2",[t._v("Search Results")]),t._v(" "),e("ul",{staticClass:"carousel posters"},t._l(t.results,function(n){return e("show-result",{key:n.id,attrs:{show:t.show,result:n}})}))]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Please Resolve\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",[e("canvas",{ref:"canvas"})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;t.$createElement,t._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"spinner spinner-xl spinner-fixed",attrs:{id:"spinner-box"}},[e("div",{staticClass:"spinner-wrapper"},[e("div",{staticClass:"spinner-circle"}),t._v(" "),e("div",{staticClass:"spinner-text"},[t._v("Loading")])])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{"class":{"toggle-menu":t.showMenu,"toggle-search":t.showSearch},attrs:{id:"app"}},[e("div",{attrs:{id:"header"}},[e("a",{staticClass:"button button-mobile",on:{click:function(e){e.preventDefault(),t.toggleMenu(e)}}},[t.showMenu?e("i",{staticClass:"material-icons"},[t._v("")]):e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" ")]),t._v(" "),t.showSearchButton?e("a",{staticClass:"button button-mobile button-right",on:{click:function(e){e.preventDefault(),t.toggleSearch(e)}}},[t.showSearch?e("i",{staticClass:"material-icons"},[t._v("")]):e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" ")]):t._e(),t._v(" "),t.hasMoviePath?e("router-link",{staticClass:"button button-mobile button-right",attrs:{to:"/movies"}},[e("i",{staticClass:"material-icons"},[t._v("")])]):t._e(),t._v(" "),t.hasShowPath?e("router-link",{staticClass:"button button-mobile button-right",attrs:{to:"/shows"}},[e("i",{staticClass:"material-icons"},[t._v("")])]):t._e(),t._v(" "),e("router-link",{attrs:{id:"logo",to:"/"}},[t._v("\n Airflix\n ")])]),t._v(" "),t._v(" "),e("div",{attrs:{id:"navigation"}},[e("a",{staticClass:"button button-mobile",on:{click:function(e){e.preventDefault(),t.hideMenu(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")])]),t._v(" "),e("ul",[e("router-link",{attrs:{tag:"li",to:"/movies"}},[e("a",{on:{click:t.hideMenu}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Movies\n ")])]),t._v(" "),e("router-link",{attrs:{tag:"li",to:"/shows"}},[e("a",{on:{click:t.hideMenu}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Shows\n ")])]),t._v(" "),e("router-link",{attrs:{tag:"li",to:"/settings"}},[e("a",{on:{click:t.hideMenu}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Settings\n ")])])])]),t._v(" "),t._v(" "),e("a",{attrs:{id:"overlay"},on:{click:function(e){e.preventDefault(),t.toggleMenu(e)}}}),t._v(" "),t._v(" "),e("div",{attrs:{id:"content"}},[e("router-view",{staticClass:"view",attrs:{transition:"","transition-mode":"out-in"}})]),t._v(" "),t._v(" "),e("div",{attrs:{id:"footer"}},[t._v("\n Created by Brian Wells\n ")]),t._v(" "),t._v(" "),e("toast")])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"card poster"},[e("router-link",{attrs:{to:{path:t.link}}},[e("img",{attrs:{src:t.movie.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.movie.attributes.title))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movie"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.movie.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.movie.attributes.title)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button button-desktop",attrs:{to:"/movies"}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Movies\n ")]),t._v(" "),e("a",{staticClass:"button","class":{disabled:t.isDisabled},attrs:{href:"/downloads/movies/"+t.movie.id}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Watch\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/movies/"+t.movie.id+"/edit"}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Edit\n ")]),t._v(" "),e("div",{staticClass:"overview"},[t._m(0),t._v(" "),t.movie.attributes.poster_url?e("img",{attrs:{src:t.movie.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.movie.attributes.overview)+"\n ")])]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.movie.attributes.tmdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TMDB\n ")]),t._v(" "),t.movie.attributes.imdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.movie.attributes.imdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" IMDB\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Runtime:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.runtime)+" minutes\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Release Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.movie.attributes.release_date,"MMMM Do Y"))+"\n ")])]),t._v(" "),"$0"!=t.movie.attributes.budget?e("li",[e("div",{staticClass:"key"},[t._v("Budget:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.budget)+"\n ")])]):t._e(),t._v(" "),"$0"!=t.movie.attributes.revenue?e("li",[e("div",{staticClass:"key"},[t._v("Revenue:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.revenue)+"\n ")])]):t._e()]),t._v(" "),t._m(1),t._v(" "),t.movie.relationships.genres?e("ul",{staticClass:"tags"},t._l(t.genres,function(n){return e("li",[t._v("\n "+t._s(n.attributes.name)+"\n ")])})):t._e(),t._v(" "),t.movie.relationships.views?e("div",[t._m(2),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Genres\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"show"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.show.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button button-desktop",attrs:{to:"/shows"}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Shows\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id+"/edit"}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Edit\n ")]),t._v(" "),t.show.relationships.seasons?e("div",[t._m(0),t._v(" "),e("ul",{staticClass:"grid"},t._l(t.seasons,function(n){return e("li",[e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/seasons/"+n.id}}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])])}))]):t._e(),t._v(" "),e("div",{staticClass:"overview"},[t._m(1),t._v(" "),t.show.attributes.poster_url?e("img",{attrs:{src:t.show.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.show.attributes.overview)+"\n ")])]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.tmdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TMDB\n ")]),t._v(" "),t.show.attributes.imdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.imdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" IMDB\n ")]):t._e(),t._v(" "),t.show.attributes.tvdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.tvdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TVDB\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Total Seasons:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.number_of_seasons)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Total Episodes:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.number_of_episodes)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Average Runtime:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.average_runtime)+" minutes\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("First Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.show.attributes.first_air_date,"MMMM Do Y"))+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.show.attributes.last_air_date,"MMMM Do Y"))+"\n ")])])]),t._v(" "),t._m(2),t._v(" "),t.show.relationships.genres?e("ul",{staticClass:"tags"},t._l(t.genres,function(n){return e("li",[t._v("\n "+t._s(n.attributes.name)+"\n ")])})):t._e(),t._v(" "),t.show.relationships.views?e("div",[t._m(3),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Seasons\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Genres\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectPoster()}}},[e("img",{attrs:{src:t.poster.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[t.episode.attributes.still_url?e("img",{attrs:{src:t.episode.attributes.still_url}}):t._e(),t._v(" "),e("div",{staticClass:"summary"},[e("h3",[t._v("\n S"+t._s(t._f("zeroPad")(t.episode.attributes.season,2))+"E"+t._s(t._f("zeroPad")(t.episode.attributes.episode,2))+" \n – \n "+t._s(t.episode.attributes.name)+"\n ")]),t._v(" "),e("p",[e("a",{staticClass:"button","class":{disabled:t.isDisabled},attrs:{href:"/downloads/episodes/"+t.episode.id}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Watch\n ")])]),t._v(" "),t.episode.attributes.overview?e("p",[t._v("\n "+t._s(t.episode.attributes.overview)+"\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[t.episode.attributes.air_date?e("li",[e("div",{staticClass:"key"},[t._v("Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.episode.attributes.air_date,"MMMM Do Y"))+"\n ")])]):t._e(),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Total Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.episode.attributes.total_views)+"\n ")])])])])])},staticRenderFns:[]}},function(t,e){},function(t,e,n){"use strict";var r=n(8),i=n.n(r),a=n(132),o=n.n(a),s=n(131),u=(n.n(s),n(135)),l=n.n(u),d=n(134),c=n.n(d),f=n(127),h=n.n(f),_=n(130),m=n(128),p=n(129),v=n(136),g=(n.n(v),n(133)),y=n.n(g);i.a.config.devtools=!1,i.a.config.silent=!0,window._=o.a,window.axios=h.a,h.a.defaults.headers.common.Accept="application/vnd.api+json; version=1; charset=utf-8",i.a.use(l.a),i.a.use(c.a),i.a.filter("zeroPad",m.a);var M=new l.a({mode:"history",routes:p.a});n.i(v.sync)(_.a,M),window.vueRouter=M;new i.a(Object.assign({},{router:M,store:_.a},y.a)).$mount("#app")}]); \ No newline at end of file +value:t.selectedGenre},on:{change:t.filterShowGenres}},[e("option",{attrs:{value:""}},[t._v("All Genres")]),t._v(" "),t._l(t.genres,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])})],!0)])]),t._v(" "),e("div",{staticClass:"clear"},[e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.filterReset(e)}}},[t._v("\n Clear\n ")])])]),t._v(" "),t._v(" "),e("div",{staticClass:"results"},[e("h1",[t._v("Shows")]),t._v(" "),e("div",{staticClass:"cards"},t._l(t.shows,function(t){return e("show-card",{key:t.id,attrs:{show:t}})}))]),t._v(" "),e("mugen-scroll",{attrs:{handler:t.loadMore,"should-handle":!t.loading}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectResult()}}},[e("img",{attrs:{src:t.result.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.result.attributes.title))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectBackdrop()}}},[e("img",{attrs:{src:t.backdrop.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectPoster()}}},[e("img",{attrs:{src:t.poster.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectBackdrop()}}},[e("img",{attrs:{src:t.backdrop.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movies"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t._v(" "),e("div",{staticClass:"search"},[e("div",{staticClass:"fields"},[e("input",{staticClass:"form-control",attrs:{placeholder:"Keywords"},domProps:{value:t.keywords},on:{input:t.filterMovieKeywords}}),t._v(" "),e("div",{staticClass:"dropdown order"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedOrder},on:{change:t.filterMovieOrder}},t._l(t.orders,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.name)+"\n ")])}))]),t._v(" "),e("div",{staticClass:"dropdown genres"},[e("select",{staticClass:"form-control",domProps:{value:t.selectedGenre},on:{change:t.filterMovieGenres}},[e("option",{attrs:{value:""}},[t._v("All Genres")]),t._v(" "),t._l(t.genres,function(n){return e("option",{domProps:{value:n.id}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])})],!0)])]),t._v(" "),e("div",{staticClass:"clear"},[e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.filterReset(e)}}},[t._v("\n Clear\n ")])])]),t._v(" "),t._v(" "),e("div",{staticClass:"results"},[e("h1",[t._v("Movies")]),t._v(" "),e("div",{staticClass:"cards"},t._l(t.movies,function(t){return e("movie-card",{key:t.id,attrs:{movie:t}})}))]),t._v(" "),e("mugen-scroll",{attrs:{handler:t.loadMore,"should-handle":!t.loading}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;t.$createElement,t._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"not-found"},[e("h1",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Page Not Found\n ")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"season"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.show.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.show.attributes.name)+" – "+t._s(t.season.attributes.name)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),t.season.attributes.overview?e("div",{staticClass:"overview"},[t._m(0),t._v(" "),t.season.attributes.poster_url?e("img",{attrs:{src:t.season.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.season.attributes.overview)+"\n ")])]):t._e(),t._v(" "),t._m(1),t._v(" "),t.season.relationships.episodes?e("ul",{staticClass:"summaries"},t._l(t.episodes,function(t){return e("episode",{attrs:{episode:t}})})):t._e(),t._v(" "),t.season.relationships.views?e("div",[t._m(2),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.season.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Episodes\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"toast","class":[t.position,t.toastContext,t.activeToast?"active":"",t.hideProgress?"":"has-progress"],on:{mouseover:t.pause,mouseout:t.animate}},[e("div",{staticClass:"action"},[e("a",{staticClass:"close",attrs:{"aria-label":"Close"},on:{click:function(e){e.preventDefault(),t.clear(e)}}},[t._m(0)])]),t._v(" "),e("div",{domProps:{innerHTML:t._s(t.message)}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideProgress,expression:"!hideProgress"}],staticClass:"progress-bar","class":{active:t.activeProgressBar},style:t.style})])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("span",{attrs:{"aria-hidden":"true"}},[e("i",{staticClass:"material-icons"},[t._v("")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"settings"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Settings")]),t._v(" "),t._m(0),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.refreshNewFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Refresh New\n ")]),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.refreshAllFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Refresh All\n ")]),t._v(" "),t._m(1),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.clearHistoryToday(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Clear Today\n ")]),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.clearHistory(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Clear All\n ")]),t._v(" "),t._m(2),t._v(" "),e("p",[t._v("\n Setting a folder path will refresh the database with \n movies and/or shows found in that location.\n ")]),t._v(" "),e("label",[t._v("Movies Folder")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Movies Folder (i.e. /movies)"},domProps:{value:t.settings.attributes.movies_folder},on:{input:t.setMoviesFolder}}),t._v(" "),e("label",[t._v("Shows Folder")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Shows Folder (i.e. /shows)"},domProps:{value:t.settings.attributes.shows_folder},on:{input:t.setShowsFolder}}),t._v(" "),e("a",{staticClass:"button",on:{click:function(e){e.preventDefault(),t.patchFolders(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Update Folders\n ")])])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Refresh\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n History\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Folders\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"show-edit"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("h1",[t._v("Edit Show")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),t.isResolved?e("div",[e("h2",[t._v("Show Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{placeholder:"Name"},domProps:{value:t.show.attributes.name},on:{input:t.patchName}}),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Original Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.original_name)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.folder_name)+"\n ")])])]),t._v(" "),e("h2",[t._v("Posters")]),t._v(" "),t.show.relationships.posters?e("ul",{staticClass:"carousel posters"},t._l(t.posters,function(n){return e("show-poster",{key:n.id,attrs:{show:t.show,poster:n}})})):t._e(),t._v(" "),e("h2",[t._v("Backdrops")]),t._v(" "),t.show.relationships.backdrops?e("ul",{staticClass:"carousel backdrops"},t._l(t.backdrops,function(n){return e("show-backdrop",{key:n.id,attrs:{show:t.show,backdrop:n}})})):t._e()]):t._e(),t._v(" "),t.isResolved?t._e():e("div",[t._m(0),t._v(" "),e("p",[t._v("\n Oops! We can't figure out which show this is. Please make a selection \n from the search results below.\n ")]),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Folder Name:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.folder_name)+"\n ")])])])]),t._v(" "),t.show.relationships.results?e("div",[e("h2",[t._v("Search Results")]),t._v(" "),e("ul",{staticClass:"carousel posters"},t._l(t.results,function(n){return e("show-result",{key:n.id,attrs:{show:t.show,result:n}})}))]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Please Resolve\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",[e("canvas",{ref:"canvas"})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;t.$createElement,t._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"spinner spinner-xl spinner-fixed",attrs:{id:"spinner-box"}},[e("div",{staticClass:"spinner-wrapper"},[e("div",{staticClass:"spinner-circle"}),t._v(" "),e("div",{staticClass:"spinner-text"},[t._v("Loading")])])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{"class":{"toggle-menu":t.showMenu,"toggle-search":t.showSearch},attrs:{id:"app"}},[e("div",{attrs:{id:"header"}},[e("a",{staticClass:"button button-mobile",on:{click:function(e){e.preventDefault(),t.toggleMenu(e)}}},[t.showMenu?e("i",{staticClass:"material-icons"},[t._v("")]):e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" ")]),t._v(" "),t.showSearchButton?e("a",{staticClass:"button button-mobile button-right",on:{click:function(e){e.preventDefault(),t.toggleSearch(e)}}},[t.showSearch?e("i",{staticClass:"material-icons"},[t._v("")]):e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" ")]):t._e(),t._v(" "),t.hasMoviePath?e("router-link",{staticClass:"button button-mobile button-right",attrs:{to:"/movies"}},[e("i",{staticClass:"material-icons"},[t._v("")])]):t._e(),t._v(" "),t.hasShowPath?e("router-link",{staticClass:"button button-mobile button-right",attrs:{to:"/shows"}},[e("i",{staticClass:"material-icons"},[t._v("")])]):t._e(),t._v(" "),e("router-link",{attrs:{id:"logo",to:"/"}},[t._v("\n Airflix\n ")])]),t._v(" "),t._v(" "),e("div",{attrs:{id:"navigation"}},[e("a",{staticClass:"button button-mobile",on:{click:function(e){e.preventDefault(),t.hideMenu(e)}}},[e("i",{staticClass:"material-icons"},[t._v("")])]),t._v(" "),e("ul",[e("router-link",{attrs:{tag:"li",to:"/movies"},nativeOn:{click:function(e){t.hideMenu(e)}}},[e("a",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Movies\n ")])]),t._v(" "),e("router-link",{attrs:{tag:"li",to:"/shows"},nativeOn:{click:function(e){t.hideMenu(e)}}},[e("a",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Shows\n ")])]),t._v(" "),e("router-link",{attrs:{tag:"li",to:"/settings"},nativeOn:{click:function(e){t.hideMenu(e)}}},[e("a",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Settings\n ")])])])]),t._v(" "),t._v(" "),e("a",{attrs:{id:"overlay"},on:{click:function(e){e.preventDefault(),t.toggleMenu(e)}}}),t._v(" "),t._v(" "),e("div",{attrs:{id:"content"}},[e("router-view",{staticClass:"view",attrs:{transition:"","transition-mode":"out-in"}})]),t._v(" "),t._v(" "),e("div",{attrs:{id:"footer"}},[t._v("\n Created by Brian Wells\n ")]),t._v(" "),t._v(" "),e("toast")])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"card poster"},[e("router-link",{attrs:{to:{path:t.link}}},[e("img",{attrs:{src:t.movie.attributes.poster_url}}),t._v(" "),e("span",[t._v(t._s(t.movie.attributes.title))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"movie"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.movie.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.movie.attributes.title)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button button-desktop",attrs:{to:"/movies"}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Movies\n ")]),t._v(" "),e("a",{staticClass:"button","class":{disabled:t.isDisabled},attrs:{href:"/downloads/movies/"+t.movie.id}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Watch\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/movies/"+t.movie.id+"/edit"}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Edit\n ")]),t._v(" "),e("div",{staticClass:"overview"},[t._m(0),t._v(" "),t.movie.attributes.poster_url?e("img",{attrs:{src:t.movie.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.movie.attributes.overview)+"\n ")])]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.movie.attributes.tmdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TMDB\n ")]),t._v(" "),t.movie.attributes.imdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.movie.attributes.imdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" IMDB\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Runtime:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.runtime)+" minutes\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Release Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.movie.attributes.release_date,"MMMM Do Y"))+"\n ")])]),t._v(" "),"$0"!=t.movie.attributes.budget?e("li",[e("div",{staticClass:"key"},[t._v("Budget:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.budget)+"\n ")])]):t._e(),t._v(" "),"$0"!=t.movie.attributes.revenue?e("li",[e("div",{staticClass:"key"},[t._v("Revenue:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.revenue)+"\n ")])]):t._e()]),t._v(" "),t._m(1),t._v(" "),t.movie.relationships.genres?e("ul",{staticClass:"tags"},t._l(t.genres,function(n){return e("li",[t._v("\n "+t._s(n.attributes.name)+"\n ")])})):t._e(),t._v(" "),t.movie.relationships.views?e("div",[t._m(2),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.movie.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Genres\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"show"},[e("transition",{attrs:{name:"loading"}},[e("spinner",{directives:[{name:"show",rawName:"v-show",value:t.loadingRouteData,expression:"loadingRouteData"}]})]),t._v(" "),t.loadingRouteData?t._e():e("div",[e("img",{attrs:{src:t.show.attributes.backdrop_url}}),t._v(" "),e("h1",[t._v("\n "+t._s(t.show.attributes.name)+"\n ")]),t._v(" "),e("router-link",{staticClass:"button button-desktop",attrs:{to:"/shows"}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Shows\n ")]),t._v(" "),e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/"+t.show.id+"/edit"}}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Edit\n ")]),t._v(" "),t.show.relationships.seasons?e("div",[t._m(0),t._v(" "),e("ul",{staticClass:"grid"},t._l(t.seasons,function(n){return e("li",[e("router-link",{staticClass:"button",attrs:{to:{path:"/shows/seasons/"+n.id}}},[t._v("\n "+t._s(n.attributes.name)+"\n ")])])}))]):t._e(),t._v(" "),e("div",{staticClass:"overview"},[t._m(1),t._v(" "),t.show.attributes.poster_url?e("img",{attrs:{src:t.show.attributes.poster_url}}):t._e(),t._v(" "),e("p",[t._v("\n "+t._s(t.show.attributes.overview)+"\n ")])]),t._v(" "),e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.tmdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TMDB\n ")]),t._v(" "),t.show.attributes.imdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.imdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" IMDB\n ")]):t._e(),t._v(" "),t.show.attributes.tvdb_url?e("a",{staticClass:"button",attrs:{target:"_blank",href:t.show.attributes.tvdb_url}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" TVDB\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Total Seasons:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.number_of_seasons)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Total Episodes:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.number_of_episodes)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Average Runtime:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.average_runtime)+" minutes\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("First Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.show.attributes.first_air_date,"MMMM Do Y"))+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.show.attributes.last_air_date,"MMMM Do Y"))+"\n ")])])]),t._v(" "),t._m(2),t._v(" "),t.show.relationships.genres?e("ul",{staticClass:"tags"},t._l(t.genres,function(n){return e("li",[t._v("\n "+t._s(n.attributes.name)+"\n ")])})):t._e(),t._v(" "),t.show.relationships.views?e("div",[t._m(3),t._v(" "),e("ul",{staticClass:"tags"},[e("li",[e("div",{staticClass:"key"},[t._v("Overall Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.show.attributes.total_views)+"\n ")])]),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Last 12 Months:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.totalViewsLastYear)+"\n ")])])]),t._v(" "),e("monthly-chart",{attrs:{months:t.monthlyViews}})]):t._e()])])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Seasons\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Overview\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Genres\n ")])},function(){var t=this,e=(t.$createElement,t._c);return e("h2",[e("i",{staticClass:"material-icons"},[t._v("")]),t._v("\n Stats\n ")])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[e("a",{"class":{active:t.isActive},on:{click:function(e){e.preventDefault(),t.selectPoster()}}},[e("img",{attrs:{src:t.poster.attributes.file_url}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",[t.episode.attributes.still_url?e("img",{attrs:{src:t.episode.attributes.still_url}}):t._e(),t._v(" "),e("div",{staticClass:"summary"},[e("h3",[t._v("\n S"+t._s(t._f("zeroPad")(t.episode.attributes.season,2))+"E"+t._s(t._f("zeroPad")(t.episode.attributes.episode,2))+" \n – \n "+t._s(t.episode.attributes.name)+"\n ")]),t._v(" "),e("p",[e("a",{staticClass:"button","class":{disabled:t.isDisabled},attrs:{href:"/downloads/episodes/"+t.episode.id}},[e("i",{staticClass:"material-icons"},[t._v("")]),t._v(" Watch\n ")])]),t._v(" "),t.episode.attributes.overview?e("p",[t._v("\n "+t._s(t.episode.attributes.overview)+"\n ")]):t._e(),t._v(" "),e("ul",{staticClass:"tags"},[t.episode.attributes.air_date?e("li",[e("div",{staticClass:"key"},[t._v("Air Date:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("moment")(t.episode.attributes.air_date,"MMMM Do Y"))+"\n ")])]):t._e(),t._v(" "),e("li",[e("div",{staticClass:"key"},[t._v("Total Views:")]),t._v(" "),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.episode.attributes.total_views)+"\n ")])])])])])},staticRenderFns:[]}},function(t,e){},function(t,e,n){"use strict";var r=n(8),i=n.n(r),a=n(132),o=n.n(a),s=n(131),u=(n.n(s),n(135)),l=n.n(u),d=n(134),c=n.n(d),f=n(127),h=n.n(f),_=n(130),m=n(128),p=n(129),v=n(136),g=(n.n(v),n(133)),y=n.n(g);i.a.config.devtools=!1,i.a.config.silent=!0,window._=o.a,window.axios=h.a,h.a.defaults.headers.common.Accept="application/vnd.api+json; version=1; charset=utf-8",i.a.use(l.a),i.a.use(c.a),i.a.filter("zeroPad",m.a);var M=new l.a({mode:"history",routes:p.a});n.i(v.sync)(_.a,M),window.vueRouter=M;new i.a(Object.assign({},{router:M,store:_.a},y.a)).$mount("#app")}]); \ No newline at end of file diff --git a/resources/assets/js/components/App.vue b/resources/assets/js/components/App.vue index e9cae70..0a13676 100644 --- a/resources/assets/js/components/App.vue +++ b/resources/assets/js/components/App.vue @@ -1,5 +1,6 @@