diff --git a/public/build/js/app-3a65e013a6.js b/public/build/js/app-dcee74d813.js similarity index 69% rename from public/build/js/app-3a65e013a6.js rename to public/build/js/app-dcee74d813.js index 5064b71..2f175eb 100644 --- a/public/build/js/app-3a65e013a6.js +++ b/public/build/js/app-dcee74d813.js @@ -11,10 +11,10 @@ ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4 }function V(t){return Gn.test(t)}function B(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function U(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function J(t,e){return function(n){return t(e(n))}}function G(t,e){for(var n=-1,r=t.length,i=0,a=[];++n>>1,zt=[["ary",kt],["bind",vt],["bindKey",gt],["curry",Mt],["curryRight",bt],["flip",Dt],["partial",Lt],["partialRight",wt],["rearg",Yt]],$t="[object Arguments]",Nt="[object Array]",Vt="[object AsyncFunction]",Bt="[object Boolean]",Ut="[object Date]",Jt="[object DOMException]",Gt="[object Error]",qt="[object Function]",Kt="[object GeneratorFunction]",Zt="[object Map]",Xt="[object Number]",Qt="[object Null]",te="[object Object]",ee="[object Promise]",ne="[object Proxy]",re="[object RegExp]",ie="[object Set]",ae="[object String]",oe="[object Symbol]",se="[object Undefined]",ue="[object WeakMap]",le="[object WeakSet]",de="[object ArrayBuffer]",ce="[object DataView]",fe="[object Float32Array]",he="[object Float64Array]",_e="[object Int8Array]",me="[object Int16Array]",pe="[object Int32Array]",ve="[object Uint8Array]",ge="[object Uint8ClampedArray]",ye="[object Uint16Array]",Me="[object Uint32Array]",be=/\b__p \+= '';/g,Le=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ye=/[&<>"']/g,De=RegExp(ke.source),xe=RegExp(Ye.source),Te=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ce=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ae=/^\w*$/,He=/^\./,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Ee=RegExp(Oe.source),Fe=/^\s+|\s+$/g,Re=/^\s+/,Ie=/\s+$/,We=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,$e=/,? & /,Ne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,Je=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,tn=/['\n\r\u2028\u2029\\]/g,en="\\ud800-\\udfff",nn="\\u0300-\\u036f",rn="\\ufe20-\\ufe2f",an="\\u20d0-\\u20ff",on=nn+rn+an,sn="\\u2700-\\u27bf",un="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",dn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cn="\\u2000-\\u206f",fn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hn="A-Z\\xc0-\\xd6\\xd8-\\xde",_n="\\ufe0e\\ufe0f",mn=ln+dn+cn+fn,pn="['’]",vn="["+en+"]",gn="["+mn+"]",yn="["+on+"]",Mn="\\d+",bn="["+sn+"]",Ln="["+un+"]",wn="[^"+en+mn+Mn+sn+un+hn+"]",kn="\\ud83c[\\udffb-\\udfff]",Yn="(?:"+yn+"|"+kn+")",Dn="[^"+en+"]",xn="(?:\\ud83c[\\udde6-\\uddff]){2}",Tn="[\\ud800-\\udbff][\\udc00-\\udfff]",Sn="["+hn+"]",Cn="\\u200d",jn="(?:"+Ln+"|"+wn+")",An="(?:"+Sn+"|"+wn+")",Hn="(?:"+pn+"(?:d|ll|m|re|s|t|ve))?",Pn="(?:"+pn+"(?:D|LL|M|RE|S|T|VE))?",On=Yn+"?",En="["+_n+"]?",Fn="(?:"+Cn+"(?:"+[Dn,xn,Tn].join("|")+")"+En+On+")*",Rn="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",In="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Wn=En+On+Fn,zn="(?:"+[bn,xn,Tn].join("|")+")"+Wn,$n="(?:"+[Dn+yn+"?",yn,xn,Tn,vn].join("|")+")",Nn=RegExp(pn,"g"),Vn=RegExp(yn,"g"),Bn=RegExp(kn+"(?="+kn+")|"+$n+Wn,"g"),Un=RegExp([Sn+"?"+Ln+"+"+Hn+"(?="+[gn,Sn,"$"].join("|")+")",An+"+"+Pn+"(?="+[gn,Sn+jn,"$"].join("|")+")",Sn+"?"+jn+"+"+Hn,Sn+"+"+Pn,In,Rn,Mn,zn].join("|"),"g"),Jn=RegExp("["+Cn+en+on+_n+"]"),Gn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kn=-1,Zn={};Zn[fe]=Zn[he]=Zn[_e]=Zn[me]=Zn[pe]=Zn[ve]=Zn[ge]=Zn[ye]=Zn[Me]=!0,Zn[$t]=Zn[Nt]=Zn[de]=Zn[Bt]=Zn[ce]=Zn[Ut]=Zn[Gt]=Zn[qt]=Zn[Zt]=Zn[Xt]=Zn[te]=Zn[re]=Zn[ie]=Zn[ae]=Zn[ue]=!1;var Xn={};Xn[$t]=Xn[Nt]=Xn[de]=Xn[ce]=Xn[Bt]=Xn[Ut]=Xn[fe]=Xn[he]=Xn[_e]=Xn[me]=Xn[pe]=Xn[Zt]=Xn[Xt]=Xn[te]=Xn[re]=Xn[ie]=Xn[ae]=Xn[oe]=Xn[ve]=Xn[ge]=Xn[ye]=Xn[Me]=!0,Xn[Gt]=Xn[qt]=Xn[ue]=!1;var Qn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},tr={"&":"&","<":"<",">":">",'"':""","'":"'"},er={"&":"&","<":"<",">":">",""":'"',"'":"'"},nr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rr=parseFloat,ir=parseInt,ar="object"==typeof t&&t&&t.Object===Object&&t,or="object"==typeof self&&self&&self.Object===Object&&self,sr=ar||or||Function("return this")(),ur="object"==typeof e&&e&&!e.nodeType&&e,lr=ur&&"object"==typeof r&&r&&!r.nodeType&&r,dr=lr&&lr.exports===ur,cr=dr&&ar.process,fr=function(){try{return cr&&cr.binding&&cr.binding("util")}catch(t){}}(),hr=fr&&fr.isArrayBuffer,_r=fr&&fr.isDate,mr=fr&&fr.isMap,pr=fr&&fr.isRegExp,vr=fr&&fr.isSet,gr=fr&&fr.isTypedArray,yr=T("length"),Mr=S(Qn),br=S(tr),Lr=S(er),wr=function Yr(t){function e(t){if(uu(t)&&!Mf(t)&&!(t instanceof i)){if(t instanceof r)return t;if(yd.call(t,"__wrapped__"))return io(t)}return new r(t)}function n(){}function r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rt,this.__views__=[]}function M(){var t=new i(this.__wrapped__);return t.__actions__=zi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zi(this.__views__),t}function S(){if(this.__filtered__){var t=new i(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Z(){var t=this.__wrapped__.value(),e=this.__dir__,n=Mf(t),r=e<0,i=n?t.length:0,a=xa(0,i,this.__views__),o=a.start,s=a.end,u=s-o,l=r?s:o-1,d=this.__iteratees__,c=d.length,f=0,h=qd(u,this.__takeCount__);if(!n||i-1}function dn(t,e){var n=this.__data__,r=Hn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function cn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Wn(t,e,n,r,i,a){var o,s=e&ft,u=e&ht,d=e&_t;if(n&&(o=i?n(t,r,i,a):n(t)),o!==it)return o;if(!su(t))return t;var c=Mf(t);if(c){if(o=Ca(t),!s)return zi(t,o)}else{var f=Sc(t),h=f==qt||f==Kt;if(Lf(t))return Si(t,s);if(f==te||f==$t||h&&!i){if(o=u||h?{}:ja(t),!s)return u?Vi(t,En(o,t)):Ni(t,On(o,t))}else{if(!Xn[f])return i?t:{};o=Aa(t,f,Wn,s)}}a||(a=new Mn);var _=a.get(t);if(_)return _;a.set(t,o);var m=d?u?ya:ga:u?Vu:Nu,p=c?it:m(t);return l(p||t,function(r,i){p&&(i=r,r=t[i]),An(o,i,Wn(r,e,n,i,t,a))}),o}function zn(t){var e=Nu(t);return function(n){return $n(n,t,e)}}function $n(t,e,n){var r=n.length;if(null==t)return!r;for(t=dd(t);r--;){var i=n[r],a=e[i],o=t[i];if(o===it&&!(i in t)||!a(o))return!1}return!0}function Bn(t,e,n){if("function"!=typeof t)throw new hd(ut);return Ac(function(){t.apply(it,n)},e)}function Un(t,e,n,r){var i=-1,a=h,o=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=m(e,O(n))),r?(a=_,o=!1):e.length>=ot&&(a=F,o=!1,e=new vn(e));t:for(;++ii?0:i+n),r=r===it||r>i?i:Yu(r),r<0&&(r+=i),r=n>r?0:Du(r);n0&&n(s)?e>1?er(s,e-1,n,r,i):p(i,s):r||(i[i.length]=s)}return i}function nr(t,e){return t&&yc(t,e,Nu)}function ar(t,e){return t&&Mc(t,e,Nu)}function or(t,e){return f(e,function(e){return iu(t[e])})}function ur(t,e){e=xi(e,t);for(var n=0,r=e.length;null!=t&&ne}function yr(t,e){return null!=t&&yd.call(t,e)}function wr(t,e){return null!=t&&e in dd(t)}function Dr(t,e,n){return t>=qd(e,n)&&t=120&&d.length>=120)?new vn(o&&d):it}d=t[0];var c=-1,f=s[0];t:for(;++c-1;)s!==t&&Hd.call(s,u,1),Hd.call(t,u,1);return t}function ni(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;Oa(i)?Hd.call(t,i,1):yi(t,i)}}return t}function ri(t,e){return t+$d(Xd()*(e-t+1))}function ii(t,e,n,r){for(var i=-1,a=Gd(zd((e-t)/(n||1)),0),o=ad(a);a--;)o[r?a:++i]=t,t+=n;return o}function ai(t,e){var n="";if(!t||e<1||e>Ot)return n;do e%2&&(n+=t),e=$d(e/2),e&&(t+=t);while(e);return n}function oi(t,e){return Hc(qa(t,e,Hl),t+"")}function si(t){return xn(nl(t))}function ui(t,e){var n=nl(t);return to(n,In(e,0,n.length))}function li(t,e,n,r){if(!su(t))return t;e=xi(e,t);for(var i=-1,a=e.length,o=a-1,s=t;null!=s&&++ii?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=ad(i);++r>>1,o=t[a];null!==o&&!yu(o)&&(n?o<=e:o=ot){var l=e?null:Yc(t);if(l)return q(l);o=!1,i=F,u=new vn}else u=e?[]:s;t:for(;++r=r?t:ci(t,e,n)}function Si(t,e){if(e)return t.slice();var n=t.length,r=Sd?Sd(n):new t.constructor(n);return t.copy(r),r}function Ci(t){var e=new t.constructor(t.byteLength);return new Td(e).set(new Td(t)),e}function ji(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ai(t,e,n){var r=e?n(U(t),ft):U(t);return v(r,a,new t.constructor)}function Hi(t){var e=new t.constructor(t.source,Ue.exec(t));return e.lastIndex=t.lastIndex,e}function Pi(t,e,n){var r=e?n(q(t),ft):q(t);return v(r,o,new t.constructor)}function Oi(t){return _c?dd(_c.call(t)):{}}function Ei(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Fi(t,e){if(t!==e){var n=t!==it,r=null===t,i=t===t,a=yu(t),o=e!==it,s=null===e,u=e===e,l=yu(e);if(!s&&!l&&!a&&t>e||a&&o&&u&&!s&&!l||r&&o&&u||!n&&u||!i)return 1;if(!r&&!a&&!l&&t=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}function Ii(t,e,n,r){for(var i=-1,a=t.length,o=n.length,s=-1,u=e.length,l=Gd(a-o,0),d=ad(u+l),c=!r;++s1?n[i-1]:it,o=i>2?n[2]:it;for(a=t.length>3&&"function"==typeof a?(i--,a):it,o&&Ea(n[0],n[1],o)&&(a=i<3?it:a,i=1),e=dd(e);++r-1?i[a?e[o]:o]:it}}function ea(t){return va(function(e){var n=e.length,i=n,a=r.prototype.thru;for(t&&e.reverse();i--;){var o=e[i];if("function"!=typeof o)throw new hd(ut);if(a&&!s&&"wrapper"==Ma(o))var s=new r([],(!0))}for(i=s?i:n;++i=ot)return s.plant(r).value();for(var i=0,a=n?e[i].apply(this,t):r;++i1&&g.reverse(),c&&us))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var d=-1,c=!0,f=n&pt?new vn:it;for(a.set(t,e),a.set(e,t);++d1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(We,"{\n/* [wrapped with "+e+"] */\n")}function Pa(t){return Mf(t)||yf(t)||!!(Pd&&t&&t[Pd])}function Oa(t,e){return e=null==e?Ot:e,!!e&&("number"==typeof t||Ze.test(t))&&t>-1&&t%1==0&&t0){if(++e>=St)return arguments[0]}else e=0;return t.apply(it,arguments)}}function to(t,e){var n=-1,r=t.length,i=r-1;for(e=e===it?r:e;++n=this.__values__.length,e=t?it:this.__values__[this.__index__++];return{done:t,value:e}}function as(){return this}function os(t){for(var e,r=this;r instanceof n;){var i=io(r);i.__index__=0,i.__values__=it,e?a.__wrapped__=i:e=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,e}function ss(){var t=this.__wrapped__;if(t instanceof i){var e=t;return this.__actions__.length&&(e=new i(this)),e=e.reverse(),e.__actions__.push({func:es,args:[jo],thisArg:it}),new r(e,this.__chain__)}return this.thru(jo)}function us(){return Li(this.__wrapped__,this.__actions__)}function ls(t,e,n){var r=Mf(t)?c:Jn;return n&&Ea(t,e,n)&&(e=it),r(t,La(e,3))}function ds(t,e){var n=Mf(t)?f:tr;return n(t,La(e,3))}function cs(t,e){return er(vs(t,e),1)}function fs(t,e){return er(vs(t,e),Pt)}function hs(t,e,n){return n=n===it?1:Yu(n),er(vs(t,e),n)}function _s(t,e){var n=Mf(t)?l:vc;return n(t,La(e,3))}function ms(t,e){var n=Mf(t)?d:gc;return n(t,La(e,3))}function ps(t,e,n,r){t=qs(t)?t:nl(t),n=n&&!r?Yu(n):0;var i=t.length;return n<0&&(n=Gd(i+n,0)),gu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&k(t,e,n)>-1}function vs(t,e){var n=Mf(t)?m:Br;return n(t,La(e,3))}function gs(t,e,n,r){return null==t?[]:(Mf(e)||(e=null==e?[]:[e]),n=r?it:n,Mf(n)||(n=null==n?[]:[n]),Zr(t,e,n))}function ys(t,e,n){var r=Mf(t)?v:C,i=arguments.length<3;return r(t,La(e,4),n,i,vc)}function Ms(t,e,n){var r=Mf(t)?g:C,i=arguments.length<3;return r(t,La(e,4),n,i,gc)}function bs(t,e){var n=Mf(t)?f:tr;return n(t,Os(La(e,3)))}function Ls(t){var e=Mf(t)?xn:si;return e(t)}function ws(t,e,n){e=(n?Ea(t,e,n):e===it)?1:Yu(e);var r=Mf(t)?Tn:ui;return r(t,e)}function ks(t){var e=Mf(t)?Sn:di;return e(t)}function Ys(t){if(null==t)return 0;if(qs(t))return gu(t)?Q(t):t.length;var e=Sc(t);return e==Zt||e==ie?t.size:$r(t).length}function Ds(t,e,n){var r=Mf(t)?y:fi;return n&&Ea(t,e,n)&&(e=it),r(t,La(e,3))}function xs(t,e){if("function"!=typeof e)throw new hd(ut);return t=Yu(t),function(){if(--t<1)return e.apply(this,arguments)}}function Ts(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,ha(t,kt,it,it,it,it,e)}function Ss(t,e){var n;if("function"!=typeof e)throw new hd(ut);return t=Yu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function Cs(t,e,n){e=n?it:e;var r=ha(t,Mt,it,it,it,it,it,e);return r.placeholder=Cs.placeholder,r}function js(t,e,n){e=n?it:e;var r=ha(t,bt,it,it,it,it,it,e);return r.placeholder=js.placeholder,r}function As(t,e,n){function r(e){var n=f,r=h;return f=h=it,g=e,m=t.apply(r,n)}function i(t){return g=t,p=Ac(s,e),y?r(t):m}function a(t){var n=t-v,r=t-g,i=e-n;return M?qd(i,_-r):i}function o(t){var n=t-v,r=t-g;return v===it||n>=e||n<0||M&&r>=_}function s(){var t=uf();return o(t)?u(t):void(p=Ac(s,a(t)))}function u(t){return p=it,b&&f?r(t):(f=h=it,m)}function l(){p!==it&&kc(p),g=0,f=v=h=p=it}function d(){return p===it?m:u(uf())}function c(){var t=uf(),n=o(t);if(f=arguments,h=this,v=t,n){if(p===it)return i(v);if(M)return p=Ac(s,e),r(v)}return p===it&&(p=Ac(s,e)),m}var f,h,_,m,p,v,g=0,y=!1,M=!1,b=!0;if("function"!=typeof t)throw new hd(ut);return e=xu(e)||0,su(n)&&(y=!!n.leading,M="maxWait"in n,_=M?Gd(xu(n.maxWait)||0,e):_,b="trailing"in n?!!n.trailing:b),c.cancel=l,c.flush=d,c}function Hs(t){return ha(t,Dt)}function Ps(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new hd(ut);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ps.Cache||cn),n}function Os(t){if("function"!=typeof t)throw new hd(ut);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Es(t){return Ss(2,t)}function Fs(t,e){if("function"!=typeof t)throw new hd(ut);return e=e===it?e:Yu(e),oi(t,e)}function Rs(t,e){if("function"!=typeof t)throw new hd(ut);return e=e===it?0:Gd(Yu(e),0),oi(function(n){var r=n[e],i=Ti(n,0,e);return r&&p(i,r),s(t,this,i)})}function Is(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new hd(ut);return su(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),As(t,e,{leading:r,maxWait:e,trailing:i})}function Ws(t){return Ts(t,1)}function zs(t,e){return _f(Di(e),t)}function $s(){if(!arguments.length)return[];var t=arguments[0];return Mf(t)?t:[t]}function Ns(t){return Wn(t,_t)}function Vs(t,e){return e="function"==typeof e?e:it,Wn(t,_t,e)}function Bs(t){return Wn(t,ft|_t)}function Us(t,e){return e="function"==typeof e?e:it,Wn(t,ft|_t,e)}function Js(t,e){return null==e||$n(t,e,Nu(e))}function Gs(t,e){return t===e||t!==t&&e!==e}function qs(t){return null!=t&&ou(t.length)&&!iu(t)}function Ks(t){return uu(t)&&qs(t)}function Zs(t){return t===!0||t===!1||uu(t)&&cr(t)==Bt}function Xs(t){return uu(t)&&1===t.nodeType&&!pu(t)}function Qs(t){if(null==t)return!0;if(qs(t)&&(Mf(t)||"string"==typeof t||"function"==typeof t.splice||Lf(t)||xf(t)||yf(t)))return!t.length;var e=Sc(t);if(e==Zt||e==ie)return!t.size;if(za(t))return!$r(t).length;for(var n in t)if(yd.call(t,n))return!1;return!0}function tu(t,e){return Hr(t,e)}function eu(t,e,n){n="function"==typeof n?n:it;var r=n?n(t,e):it;return r===it?Hr(t,e,it,n):!!r}function nu(t){if(!uu(t))return!1;var e=cr(t);return e==Gt||e==Jt||"string"==typeof t.message&&"string"==typeof t.name&&!pu(t)}function ru(t){return"number"==typeof t&&Bd(t)}function iu(t){if(!su(t))return!1;var e=cr(t);return e==qt||e==Kt||e==Vt||e==ne}function au(t){return"number"==typeof t&&t==Yu(t)}function ou(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ot}function su(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function uu(t){return null!=t&&"object"==typeof t}function lu(t,e){return t===e||Er(t,e,ka(e))}function du(t,e,n){return n="function"==typeof n?n:it,Er(t,e,ka(e),n)}function cu(t){return mu(t)&&t!=+t}function fu(t){if(Cc(t))throw new sd(st);return Fr(t)}function hu(t){return null===t}function _u(t){return null==t}function mu(t){return"number"==typeof t||uu(t)&&cr(t)==Xt}function pu(t){if(!uu(t)||cr(t)!=te)return!1;var e=Cd(t);if(null===e)return!0;var n=yd.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&gd.call(n)==wd}function vu(t){return au(t)&&t>=-Ot&&t<=Ot}function gu(t){return"string"==typeof t||!Mf(t)&&uu(t)&&cr(t)==ae}function yu(t){return"symbol"==typeof t||uu(t)&&cr(t)==oe}function Mu(t){return t===it}function bu(t){return uu(t)&&Sc(t)==ue}function Lu(t){return uu(t)&&cr(t)==le}function wu(t){if(!t)return[];if(qs(t))return gu(t)?tt(t):zi(t);if(Od&&t[Od])return B(t[Od]());var e=Sc(t),n=e==Zt?U:e==ie?q:nl;return n(t)}function ku(t){if(!t)return 0===t?t:0;if(t=xu(t),t===Pt||t===-Pt){var e=t<0?-1:1;return e*Et}return t===t?t:0}function Yu(t){var e=ku(t),n=e%1;return e===e?n?e-n:e:0}function Du(t){return t?In(Yu(t),0,Rt):0}function xu(t){if("number"==typeof t)return t;if(yu(t))return Ft;if(su(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=su(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Fe,"");var n=Ge.test(t);return n||Ke.test(t)?ir(t.slice(2),n?2:8):Je.test(t)?Ft:+t}function Tu(t){return $i(t,Vu(t))}function Su(t){return In(Yu(t),-Ot,Ot)}function Cu(t){return null==t?"":vi(t)}function ju(t,e){var n=pc(t);return null==e?n:On(n,e)}function Au(t,e){return L(t,La(e,3),nr)}function Hu(t,e){return L(t,La(e,3),ar)}function Pu(t,e){return null==t?t:yc(t,La(e,3),Vu)}function Ou(t,e){return null==t?t:Mc(t,La(e,3),Vu)}function Eu(t,e){return t&&nr(t,La(e,3))}function Fu(t,e){return t&&ar(t,La(e,3))}function Ru(t){return null==t?[]:or(t,Nu(t))}function Iu(t){return null==t?[]:or(t,Vu(t))}function Wu(t,e,n){var r=null==t?it:ur(t,e);return r===it?n:r}function zu(t,e){return null!=t&&Sa(t,e,yr)}function $u(t,e){return null!=t&&Sa(t,e,wr)}function Nu(t){return qs(t)?Dn(t):$r(t)}function Vu(t){return qs(t)?Dn(t,!0):Nr(t)}function Bu(t,e){var n={};return e=La(e,3),nr(t,function(t,r,i){Fn(n,e(t,r,i),t)}),n}function Uu(t,e){var n={};return e=La(e,3),nr(t,function(t,r,i){Fn(n,r,e(t,r,i))}),n}function Ju(t,e){return Gu(t,Os(La(e)))}function Gu(t,e){if(null==t)return{};var n=m(ya(t),function(t){return[t]});return e=La(e),Qr(t,n,function(t,n){return e(t,n[0])})}function qu(t,e,n){e=xi(e,t);var r=-1,i=e.length;for(i||(i=1,t=it);++re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Xd();return qd(t+i*(e-t+rr("1e-"+((i+"").length-1))),e)}return ri(t,e)}function sl(t){return Qf(Cu(t).toLowerCase())}function ul(t){return t=Cu(t),t&&t.replace(Xe,Mr).replace(Vn,"")}function ll(t,e,n){t=Cu(t),e=vi(e);var r=t.length;n=n===it?r:In(Yu(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function dl(t){return t=Cu(t),t&&xe.test(t)?t.replace(Ye,br):t}function cl(t){return t=Cu(t),t&&Ee.test(t)?t.replace(Oe,"\\$&"):t}function fl(t,e,n){t=Cu(t),e=Yu(e);var r=e?Q(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return oa($d(i),n)+t+oa(zd(i),n)}function hl(t,e,n){t=Cu(t),e=Yu(e);var r=e?Q(t):0;return e&&r>>0)?(t=Cu(t),t&&("string"==typeof e||null!=e&&!Yf(e))&&(e=vi(e),!e&&N(t))?Ti(tt(t),0,n):t.split(e,n)):[]}function yl(t,e,n){return t=Cu(t),n=In(Yu(n),0,t.length),e=vi(e),t.slice(n,n+e.length)==e}function Ml(t,n,r){var i=e.templateSettings;r&&Ea(t,n,r)&&(n=it),t=Cu(t),n=Af({},n,i,Cn);var a,o,s=Af({},n.imports,i.imports,Cn),u=Nu(s),l=E(s,u),d=0,c=n.interpolate||Qe,f="__p += '",h=cd((n.escape||Qe).source+"|"+c.source+"|"+(c===Ce?Be:Qe).source+"|"+(n.evaluate||Qe).source+"|$","g"),_="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Kn+"]")+"\n";t.replace(h,function(e,n,r,i,s,u){return r||(r=i),f+=t.slice(d,u).replace(tn,z),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=u+e.length,e}),f+="';\n";var m=n.variable;m||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(be,""):f).replace(Le,"$1").replace(we,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=th(function(){return ud(u,_+"return "+f).apply(it,l)});if(p.source=f,nu(p))throw p;return p}function bl(t){return Cu(t).toLowerCase()}function Ll(t){return Cu(t).toUpperCase()}function wl(t,e,n){if(t=Cu(t),t&&(n||e===it))return t.replace(Fe,"");if(!t||!(e=vi(e)))return t;var r=tt(t),i=tt(e),a=R(r,i),o=I(r,i)+1;return Ti(r,a,o).join("")}function kl(t,e,n){if(t=Cu(t),t&&(n||e===it))return t.replace(Ie,"");if(!t||!(e=vi(e)))return t;var r=tt(t),i=I(r,tt(e))+1;return Ti(r,0,i).join("")}function Yl(t,e,n){if(t=Cu(t),t&&(n||e===it))return t.replace(Re,"");if(!t||!(e=vi(e)))return t;var r=tt(t),i=R(r,tt(e));return Ti(r,i).join("")}function Dl(t,e){var n=xt,r=Tt;if(su(e)){var i="separator"in e?e.separator:i;n="length"in e?Yu(e.length):n,r="omission"in e?vi(e.omission):r}t=Cu(t);var a=t.length;if(N(t)){var o=tt(t);a=o.length}if(n>=a)return t;var s=n-Q(r);if(s<1)return r;var u=o?Ti(o,0,s).join(""):t.slice(0,s);if(i===it)return u+r;if(o&&(s+=u.length-s),Yf(i)){if(t.slice(s).search(i)){var l,d=u;for(i.global||(i=cd(i.source,Cu(Ue.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var c=l.index;u=u.slice(0,c===it?s:c)}}else if(t.indexOf(vi(i),s)!=s){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r}function xl(t){return t=Cu(t),t&&De.test(t)?t.replace(ke,Lr):t}function Tl(t,e,n){return t=Cu(t),e=n?it:e,e===it?V(t)?rt(t):b(t):t.match(e)||[]}function Sl(t){var e=null==t?0:t.length,n=La();return t=e?m(t,function(t){if("function"!=typeof t[1])throw new hd(ut);return[n(t[0]),t[1]]}):[],oi(function(n){for(var r=-1;++rOt)return[];var n=Rt,r=qd(t,Rt);e=La(e),t-=Rt;for(var i=H(r,e);++n1?t[e-1]:it;return n="function"==typeof n?(t.pop(),n):it,Ko(t,n)}),Xc=va(function(t){var e=t.length,n=e?t[0]:0,a=this.__wrapped__,o=function(e){return Rn(e,t)};return!(e>1||this.__actions__.length)&&a instanceof i&&Oa(n)?(a=a.slice(n,+n+(e?1:0)),a.__actions__.push({func:es,args:[o],thisArg:it}),new r(a,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(o)}),Qc=Bi(function(t,e,n){yd.call(t,n)?++t[n]:Fn(t,n,1)}),tf=ta(_o),ef=ta(mo),nf=Bi(function(t,e,n){yd.call(t,n)?t[n].push(e):Fn(t,n,[e])}),rf=oi(function(t,e,n){var r=-1,i="function"==typeof e,a=qs(t)?ad(t.length):[];return vc(t,function(t){a[++r]=i?s(e,t,n):Sr(t,e,n)}),a}),af=Bi(function(t,e,n){Fn(t,n,e)}),of=Bi(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),sf=oi(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ea(t,e[0],e[1])?e=[]:n>2&&Ea(e[0],e[1],e[2])&&(e=[e[0]]),Zr(t,er(e,1),[])}),uf=Id||function(){return sr.Date.now()},lf=oi(function(t,e,n){var r=vt;if(n.length){var i=G(n,ba(lf));r|=Lt}return ha(t,r,e,n,i)}),df=oi(function(t,e,n){var r=vt|gt;if(n.length){var i=G(n,ba(df));r|=Lt}return ha(e,r,t,n,i)}),cf=oi(function(t,e){return Bn(t,1,e)}),ff=oi(function(t,e,n){return Bn(t,xu(e)||0,n)});Ps.Cache=cn;var hf=wc(function(t,e){e=1==e.length&&Mf(e[0])?m(e[0],O(La())):m(er(e,1),O(La()));var n=e.length;return oi(function(r){for(var i=-1,a=qd(r.length,n);++i=e}),yf=Cr(function(){return arguments}())?Cr:function(t){return uu(t)&&yd.call(t,"callee")&&!Ad.call(t,"callee")},Mf=ad.isArray,bf=hr?O(hr):jr,Lf=Vd||Vl,wf=_r?O(_r):Ar,kf=mr?O(mr):Or,Yf=pr?O(pr):Rr,Df=vr?O(vr):Ir,xf=gr?O(gr):Wr,Tf=la(Vr),Sf=la(function(t,e){return t<=e}),Cf=Ui(function(t,e){if(za(e)||qs(e))return void $i(e,Nu(e),t);for(var n in e)yd.call(e,n)&&An(t,n,e[n])}),jf=Ui(function(t,e){$i(e,Vu(e),t)}),Af=Ui(function(t,e,n,r){$i(e,Vu(e),t,r)}),Hf=Ui(function(t,e,n,r){$i(e,Nu(e),t,r)}),Pf=va(Rn),Of=oi(function(t){return t.push(it,Cn),s(Af,it,t)}),Ef=oi(function(t){return t.push(it,Ua),s(zf,it,t)}),Ff=ra(function(t,e,n){t[e]=n},jl(Hl)),Rf=ra(function(t,e,n){yd.call(t,e)?t[e].push(n):t[e]=[n]},La),If=oi(Sr),Wf=Ui(function(t,e,n){Gr(t,e,n)}),zf=Ui(function(t,e,n,r){Gr(t,e,n,r)}),$f=va(function(t,e){var n={};if(null==t)return n;var r=!1;e=m(e,function(e){return e=xi(e,t),r||(r=e.length>1),e}),$i(t,ya(t),n),r&&(n=Wn(n,ft|ht|_t));for(var i=e.length;i--;)yi(n,e[i]);return n}),Nf=va(function(t,e){return null==t?{}:Xr(t,e)}),Vf=fa(Nu),Bf=fa(Vu),Uf=Zi(function(t,e,n){return e=e.toLowerCase(),t+(n?sl(e):e)}),Jf=Zi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Gf=Zi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),qf=Ki("toLowerCase"),Kf=Zi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Zf=Zi(function(t,e,n){return t+(n?" ":"")+Qf(e)}),Xf=Zi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Qf=Ki("toUpperCase"),th=oi(function(t,e){try{return s(t,it,e)}catch(n){return nu(n)?n:new sd(n)}}),eh=va(function(t,e){return l(e,function(e){e=eo(e),Fn(t,e,lf(t[e],t))}),t}),nh=ea(),rh=ea(!0),ih=oi(function(t,e){return function(n){return Sr(n,t,e)}}),ah=oi(function(t,e){return function(n){return Sr(t,n,e)}}),oh=aa(m),sh=aa(c),uh=aa(y),lh=ua(),dh=ua(!0),ch=ia(function(t,e){return t+e},0),fh=ca("ceil"),hh=ia(function(t,e){return t/e},1),_h=ca("floor"),mh=ia(function(t,e){return t*e},1),ph=ca("round"),vh=ia(function(t,e){return t-e},0);return e.after=xs,e.ary=Ts,e.assign=Cf,e.assignIn=jf,e.assignInWith=Af,e.assignWith=Hf,e.at=Pf,e.before=Ss,e.bind=lf,e.bindAll=eh,e.bindKey=df,e.castArray=$s,e.chain=Qo,e.chunk=ao,e.compact=oo,e.concat=so,e.cond=Sl,e.conforms=Cl,e.constant=jl,e.countBy=Qc,e.create=ju,e.curry=Cs,e.curryRight=js,e.debounce=As,e.defaults=Of,e.defaultsDeep=Ef,e.defer=cf,e.delay=ff,e.difference=Oc,e.differenceBy=Ec,e.differenceWith=Fc,e.drop=uo,e.dropRight=lo,e.dropRightWhile=co,e.dropWhile=fo,e.fill=ho,e.filter=ds,e.flatMap=cs,e.flatMapDeep=fs,e.flatMapDepth=hs,e.flatten=po,e.flattenDeep=vo,e.flattenDepth=go,e.flip=Hs,e.flow=nh,e.flowRight=rh,e.fromPairs=yo,e.functions=Ru,e.functionsIn=Iu,e.groupBy=nf,e.initial=Lo,e.intersection=Rc,e.intersectionBy=Ic,e.intersectionWith=Wc,e.invert=Ff,e.invertBy=Rf,e.invokeMap=rf,e.iteratee=Pl,e.keyBy=af,e.keys=Nu,e.keysIn=Vu,e.map=vs,e.mapKeys=Bu,e.mapValues=Uu,e.matches=Ol,e.matchesProperty=El,e.memoize=Ps,e.merge=Wf,e.mergeWith=zf,e.method=ih,e.methodOf=ah,e.mixin=Fl,e.negate=Os,e.nthArg=Wl,e.omit=$f,e.omitBy=Ju,e.once=Es,e.orderBy=gs,e.over=oh,e.overArgs=hf,e.overEvery=sh,e.overSome=uh,e.partial=_f,e.partialRight=mf,e.partition=of,e.pick=Nf,e.pickBy=Gu,e.property=zl,e.propertyOf=$l,e.pull=zc,e.pullAll=xo,e.pullAllBy=To,e.pullAllWith=So,e.pullAt=$c,e.range=lh,e.rangeRight=dh,e.rearg=pf,e.reject=bs,e.remove=Co,e.rest=Fs,e.reverse=jo,e.sampleSize=ws,e.set=Ku,e.setWith=Zu,e.shuffle=ks,e.slice=Ao,e.sortBy=sf,e.sortedUniq=Io,e.sortedUniqBy=Wo,e.split=gl,e.spread=Rs,e.tail=zo,e.take=$o,e.takeRight=No,e.takeRightWhile=Vo,e.takeWhile=Bo,e.tap=ts,e.throttle=Is,e.thru=es,e.toArray=wu,e.toPairs=Vf,e.toPairsIn=Bf,e.toPath=ql,e.toPlainObject=Tu,e.transform=Xu,e.unary=Ws,e.union=Nc,e.unionBy=Vc,e.unionWith=Bc,e.uniq=Uo,e.uniqBy=Jo,e.uniqWith=Go,e.unset=Qu,e.unzip=qo,e.unzipWith=Ko,e.update=tl,e.updateWith=el,e.values=nl,e.valuesIn=rl,e.without=Uc,e.words=Tl,e.wrap=zs,e.xor=Jc,e.xorBy=Gc,e.xorWith=qc,e.zip=Kc,e.zipObject=Zo,e.zipObjectDeep=Xo,e.zipWith=Zc,e.entries=Vf,e.entriesIn=Bf,e.extend=jf,e.extendWith=Af,Fl(e,e),e.add=ch,e.attempt=th,e.camelCase=Uf,e.capitalize=sl,e.ceil=fh,e.clamp=il,e.clone=Ns,e.cloneDeep=Bs,e.cloneDeepWith=Us,e.cloneWith=Vs,e.conformsTo=Js,e.deburr=ul,e.defaultTo=Al,e.divide=hh,e.endsWith=ll,e.eq=Gs,e.escape=dl,e.escapeRegExp=cl,e.every=ls,e.find=tf,e.findIndex=_o,e.findKey=Au,e.findLast=ef,e.findLastIndex=mo,e.findLastKey=Hu,e.floor=_h,e.forEach=_s,e.forEachRight=ms,e.forIn=Pu,e.forInRight=Ou,e.forOwn=Eu,e.forOwnRight=Fu,e.get=Wu,e.gt=vf,e.gte=gf,e.has=zu,e.hasIn=$u,e.head=Mo,e.identity=Hl,e.includes=ps,e.indexOf=bo,e.inRange=al,e.invoke=If,e.isArguments=yf,e.isArray=Mf,e.isArrayBuffer=bf,e.isArrayLike=qs,e.isArrayLikeObject=Ks,e.isBoolean=Zs,e.isBuffer=Lf,e.isDate=wf,e.isElement=Xs,e.isEmpty=Qs,e.isEqual=tu,e.isEqualWith=eu,e.isError=nu,e.isFinite=ru,e.isFunction=iu,e.isInteger=au,e.isLength=ou,e.isMap=kf,e.isMatch=lu,e.isMatchWith=du,e.isNaN=cu,e.isNative=fu, e.isNil=_u,e.isNull=hu,e.isNumber=mu,e.isObject=su,e.isObjectLike=uu,e.isPlainObject=pu,e.isRegExp=Yf,e.isSafeInteger=vu,e.isSet=Df,e.isString=gu,e.isSymbol=yu,e.isTypedArray=xf,e.isUndefined=Mu,e.isWeakMap=bu,e.isWeakSet=Lu,e.join=wo,e.kebabCase=Jf,e.last=ko,e.lastIndexOf=Yo,e.lowerCase=Gf,e.lowerFirst=qf,e.lt=Tf,e.lte=Sf,e.max=Zl,e.maxBy=Xl,e.mean=Ql,e.meanBy=td,e.min=ed,e.minBy=nd,e.stubArray=Nl,e.stubFalse=Vl,e.stubObject=Bl,e.stubString=Ul,e.stubTrue=Jl,e.multiply=mh,e.nth=Do,e.noConflict=Rl,e.noop=Il,e.now=uf,e.pad=fl,e.padEnd=hl,e.padStart=_l,e.parseInt=ml,e.random=ol,e.reduce=ys,e.reduceRight=Ms,e.repeat=pl,e.replace=vl,e.result=qu,e.round=ph,e.runInContext=Yr,e.sample=Ls,e.size=Ys,e.snakeCase=Kf,e.some=Ds,e.sortedIndex=Ho,e.sortedIndexBy=Po,e.sortedIndexOf=Oo,e.sortedLastIndex=Eo,e.sortedLastIndexBy=Fo,e.sortedLastIndexOf=Ro,e.startCase=Zf,e.startsWith=yl,e.subtract=vh,e.sum=rd,e.sumBy=id,e.template=Ml,e.times=Gl,e.toFinite=ku,e.toInteger=Yu,e.toLength=Du,e.toLower=bl,e.toNumber=xu,e.toSafeInteger=Su,e.toString=Cu,e.toUpper=Ll,e.trim=wl,e.trimEnd=kl,e.trimStart=Yl,e.truncate=Dl,e.unescape=xl,e.uniqueId=Kl,e.upperCase=Xf,e.upperFirst=Qf,e.each=_s,e.eachRight=ms,e.first=Mo,Fl(e,function(){var t={};return nr(e,function(n,r){yd.call(e.prototype,r)||(t[r]=n)}),t}(),{chain:!1}),e.VERSION=at,l(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),l(["drop","take"],function(t,e){i.prototype[t]=function(n){var r=this.__filtered__;if(r&&!e)return new i(this);n=n===it?1:Gd(Yu(n),0);var a=this.clone();return r?a.__takeCount__=qd(n,a.__takeCount__):a.__views__.push({size:qd(n,Rt),type:t+(a.__dir__<0?"Right":"")}),a},i.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),l(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==jt||n==Ht;i.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:La(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),l(["head","last"],function(t,e){var n="take"+(e?"Right":"");i.prototype[t]=function(){return this[n](1).value()[0]}}),l(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");i.prototype[t]=function(){return this.__filtered__?new i(this):this[n](1)}}),i.prototype.compact=function(){return this.filter(Hl)},i.prototype.find=function(t){return this.filter(t).head()},i.prototype.findLast=function(t){return this.reverse().find(t)},i.prototype.invokeMap=oi(function(t,e){return"function"==typeof t?new i(this):this.map(function(n){return Sr(n,t,e)})}),i.prototype.reject=function(t){return this.filter(Os(La(t)))},i.prototype.slice=function(t,e){t=Yu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new i(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=Yu(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},i.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},i.prototype.toArray=function(){return this.take(Rt)},nr(i.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),s=e[o?"take"+("last"==n?"Right":""):n],u=o||/^find/.test(n);s&&(e.prototype[n]=function(){var n=this.__wrapped__,l=o?[1]:arguments,d=n instanceof i,c=l[0],f=d||Mf(n),h=function(t){var n=s.apply(e,p([t],l));return o&&_?n[0]:n};f&&a&&"function"==typeof c&&1!=c.length&&(d=f=!1);var _=this.__chain__,m=!!this.__actions__.length,v=u&&!_,g=d&&!m;if(!u&&f){n=g?n:new i(this);var y=t.apply(n,l);return y.__actions__.push({func:es,args:[h],thisArg:it}),new r(y,_)}return v&&g?t.apply(this,l):(y=this.thru(h),v?o?y.value()[0]:y.value():y)})}),l(["pop","push","shift","sort","splice","unshift"],function(t){var n=_d[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var e=this.value();return n.apply(Mf(e)?e:[],t)}return this[r](function(e){return n.apply(Mf(e)?e:[],t)})}}),nr(i.prototype,function(t,n){var r=e[n];if(r){var i=r.name+"",a=sc[i]||(sc[i]=[]);a.push({name:n,func:r})}}),sc[na(it,gt).name]=[{name:"wrapper",func:it}],i.prototype.clone=M,i.prototype.reverse=S,i.prototype.value=Z,e.prototype.at=Xc,e.prototype.chain=ns,e.prototype.commit=rs,e.prototype.next=is,e.prototype.plant=os,e.prototype.reverse=ss,e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=us,e.prototype.first=e.prototype.head,Od&&(e.prototype[Od]=as),e},kr=wr();sr._=kr,i=function(){return kr}.call(e,n,e,r),!(i!==it&&(r.exports=i))}).call(this)}).call(e,n(7),n(126)(t))},function(t,e,n){var r,i;r=n(154);var a=n(272);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=n(0);t.exports={install:function(t,e){Object.defineProperties(t.prototype,{$moment:{get:function(){return t.moment.bind(this)}}}),e&&e.moment&&(r=e.moment),t.moment=function(t){return r(t)},t.filter("moment",function(){function t(){var e=Array.prototype.slice.call(arguments).map(function(t){return t.replace(/^("|')|("|')$/g,"")}),n=e.shift();switch(n){case"add":var a=e.shift().split(",").map(Function.prototype.call,String.prototype.trim);obj={};for(var o=0;o=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function y(t){return t.replace(/\/\//g,"/")}function M(t){var e=Object.create(null),n=Object.create(null);return t.forEach(function(t){b(e,n,t)}),{pathMap:e,nameMap:n}}function b(t,i,a,o,s){var u=a.path,l=a.name;"production"!==e.env.NODE_ENV&&(n(null!=u,'"path" is required in a route configuration.'),n("string"!=typeof a.component,'route config "component" for path: '+String(u||l)+" cannot be a string id. Use an actual component instead."));var d={path:L(u,o),components:a.components||{"default":a.component},instances:{},name:l,parent:o,matchAs:s,redirect:a.redirect,beforeEnter:a.beforeEnter,meta:a.meta||{}};a.children&&("production"!==e.env.NODE_ENV&&a.name&&a.children.some(function(t){return/^\/?$/.test(t.path)})&&r(!1,"Named Route '"+a.name+"' has a default child route.\n When navigating to this named route (:to=\"{name: '"+a.name+"'\"), the default child route will not be rendered.\n Remove the name from this route and use the name of the default child route for named links instead."),a.children.forEach(function(e){b(t,i,e,d)})),void 0!==a.alias&&(Array.isArray(a.alias)?a.alias.forEach(function(e){b(t,i,{path:e},o,d.path)}):b(t,i,{path:a.alias},o,d.path)),t[d.path]||(t[d.path]=d),l&&(i[l]?"production"!==e.env.NODE_ENV&&r(!1,'Duplicate named routes definition: { name: "'+l+'", path: "'+d.path+'" }'):i[l]=d)}function L(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:y(e.path+"/"+t)}function w(t,e){for(var n,r=[],i=0,a=0,o="",s=e&&e.delimiter||"/";null!=(n=jt.exec(t));){var u=n[0],l=n[1],d=n.index;if(o+=t.slice(a,d),a=d+u.length,l)o+=l[1];else{var c=t[a],f=n[2],h=n[3],_=n[4],m=n[5],p=n[6],v=n[7];o&&(r.push(o),o="");var g=null!=f&&null!=c&&c!==f,y="+"===p||"*"===p,M="?"===p||"*"===p,b=n[2]||s,L=_||m;r.push({name:h||i++,prefix:f||"",delimiter:b,optional:M,repeat:y,partial:g,asterisk:!!v,pattern:L?S(L):v?".*":"[^"+T(b)+"]+?"})}}return a-1&&(r.params[s]=e.params[s]);if(a)return r.path=R(a.path,r.params,'named route "'+i+'"'),u(a,r,n)}else if(r.path){r.params={};for(var l in d)if($(l,r.params,r.path))return u(d[l],r,n)}return u(null,r)}function a(t,a){var o=t.redirect,l="function"==typeof o?o(s(t,a)):o;if("string"==typeof l&&(l={path:l}),!l||"object"!=typeof l)return"production"!==e.env.NODE_ENV&&r(!1,"invalid redirect option: "+JSON.stringify(l)),u(null,a);var d=l,f=d.name,h=d.path,_=a.query,m=a.hash,p=a.params;if(_=d.hasOwnProperty("query")?d.query:_,m=d.hasOwnProperty("hash")?d.hash:m,p=d.hasOwnProperty("params")?d.params:p,f){var v=c[f];return"production"!==e.env.NODE_ENV&&n(v,'redirect failed: named route "'+f+'" not found.'),i({_normalized:!0,name:f,query:_,hash:m,params:p},void 0,a)}if(h){var g=N(h,t),y=R(g,p,'redirect route with path "'+g+'"');return i({_normalized:!0,path:y,query:_,hash:m},void 0,a)}return r(!1,"invalid redirect option: "+JSON.stringify(l)),u(null,a)}function o(t,e,n){var r=R(n,e.params,'aliased route with path "'+n+'"'),a=i({_normalized:!0,path:r});if(a){var o=a.matched,s=o[o.length-1];return e.params=a.params,u(s,e)}return u(null,e)}function u(t,e,n){return t&&t.redirect?a(t,n||e):t&&t.matchAs?o(t,e,t.matchAs):s(t,e,n)}var l=M(t),d=l.pathMap,c=l.nameMap;return i}function $(t,e,n){var r=F(t),i=r.regexp,a=r.keys,o=n.match(i);if(!o)return!1;if(!e)return!0;for(var s=1,u=o.length;s=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function B(t){if(!t)if(Pt){var e=document.querySelector("base");t=e?e.getAttribute("href"):"/"}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function U(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e:0)+"#"+t)}function mt(t,e,n){var r="hash"===n?"#"+e:e;return t?y(t+"/"+r):r}var pt,vt={name:"router-view",functional:!0,props:{name:{type:String,"default":"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,a=e.data;a.routerView=!0;for(var o=i.$route,s=i._routerViewCache||(i._routerViewCache={}),u=0,l=!1;i;)i.$vnode&&i.$vnode.data.routerView&&u++,i._inactive&&(l=!0),i=i.$parent;a.routerViewDepth=u;var d=o.matched[u];if(!d)return t();var c=n.name,f=l?s[c]:s[c]=d.components[c];if(!l){var h=a.hook||(a.hook={});h.init=function(t){d.instances[c]=t.child},h.prepatch=function(t,e){d.instances[c]=e.child},h.destroy=function(t){d.instances[c]===t.child&&(d.instances[c]=void 0)}}return t(f,a,r)}},gt=encodeURIComponent,yt=decodeURIComponent,Mt=s(null,{path:"/"}),bt=/\/$/,Lt=[String,Object],wt={name:"router-link",props:{to:{type:Lt,required:!0},tag:{type:String,"default":"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,event:{type:[String,Array],"default":"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.normalizedTo,o=i.resolved,u=i.href,l={},c=this.activeClass||n.options.linkActiveClass||"router-link-active",h=a.path?s(null,a):o;l[c]=this.exact?d(r,h):f(r,h);var p=function(t){_(t)&&(e.replace?n.replace(a):n.push(a))},v={click:_};Array.isArray(this.event)?this.event.forEach(function(t){v[t]=p}):v[this.event]=p;var g={"class":l};if("a"===this.tag)g.on=v,g.attrs={href:u};else{var y=m(this.$slots["default"]);if(y){y.isStatic=!1;var M=pt.util.extend,b=y.data=M({},y.data);b.on=v;var L=y.data.attrs=M({},y.data.attrs);L.href=u}else g.on=v}return t(this.tag,g,this.$slots["default"])}},kt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Yt=kt,Dt=E,xt=w,Tt=k,St=x,Ct=O,jt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Dt.parse=xt,Dt.compile=Tt,Dt.tokensToFunction=St,Dt.tokensToRegExp=Ct;var At=Object.create(null),Ht=Object.create(null),Pt="undefined"!=typeof window,Ot=Pt&&function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}(),Et=function(t,e){this.router=t,this.base=B(e),this.current=Mt,this.pending=null};Et.prototype.listen=function(t){this.cb=t},Et.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL()},n)},Et.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,a=function(){n&&n()};if(d(t,i))return this.ensureURL(),a();var o=U(this.current.matched,t.matched),s=o.deactivated,u=o.activated,l=[].concat(G(s),this.router.beforeHooks,u.map(function(t){return t.beforeEnter}),Q(u));this.pending=t;var c=function(e,n){return r.pending!==t?a():void e(t,i,function(t){t===!1?(r.ensureURL(!0),a()):"string"==typeof t||"object"==typeof t?("object"==typeof t&&t.replace?r.replace(t):r.push(t),a()):n(t)})};V(l,c,function(){var n=[],i=K(u,n,function(){return r.current===t});V(i,c,function(){return r.pending!==t?a():(r.pending=null,e(t),void(r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){return t()})})))})})},Et.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Ft=Object.create(null),Rt=function(){return String(Date.now())},It=Rt(),Wt=function(t){function r(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior;window.addEventListener("popstate",function(t){It=t.state&&t.state.key;var e=r.current;r.transitionTo(ut(r.base),function(t){i&&r.handleScroll(t,e,!0)})}),i&&window.addEventListener("scroll",function(){nt(It)})}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.go=function(t){window.history.go(t)},r.prototype.push=function(t){var e=this,n=this.current;this.transitionTo(t,function(t){lt(y(e.base+t.fullPath)),e.handleScroll(t,n,!1)})},r.prototype.replace=function(t){var e=this,n=this.current;this.transitionTo(t,function(t){dt(y(e.base+t.fullPath)),e.handleScroll(t,n,!1)})},r.prototype.ensureURL=function(t){if(ut(this.base)!==this.current.fullPath){var e=y(this.base+this.current.fullPath);t?lt(e):dt(e)}},r.prototype.handleScroll=function(t,r,i){var a=this.router;if(a.app){var o=a.options.scrollBehavior;o&&("production"!==e.env.NODE_ENV&&n("function"==typeof o,"scrollBehavior must be a function"),a.app.$nextTick(function(){var e=rt(It),n=o(t,r,i?e:null);if(n){var a="object"==typeof n;if(a&&"string"==typeof n.selector){var s=document.querySelector(n.selector);s?e=it(s):at(n)&&(e=ot(n))}else a&&at(n)&&(e=ot(n));e&&window.scrollTo(e.x,e.y)}}))}},r}(Et),zt=function(t){function e(e,n,r){t.call(this,e,n),r&&this.checkFallback()||ct()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.checkFallback=function(){var t=ut(this.base);if(!/^\/#/.test(t))return window.location.replace(y(this.base+"/#"+t)),!0},e.prototype.onHashChange=function(){ct()&&this.transitionTo(ft(),function(t){_t(t.fullPath)})},e.prototype.push=function(t){this.transitionTo(t,function(t){ht(t.fullPath)})},e.prototype.replace=function(t){this.transitionTo(t,function(t){_t(t.fullPath)})},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ft()!==e&&(t?ht(e):_t(e))},e}(Et),$t=function(t){function e(e){t.call(this,e),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index+1).concat(t),e.index++})},e.prototype.replace=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index).concat(t)})},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.ensureURL=function(){},e}(Et),Nt=function(t){void 0===t&&(t={}),this.app=null,this.options=t,this.beforeHooks=[],this.afterHooks=[],this.match=z(t.routes||[]);var r=t.mode||"hash";switch(this.fallback="history"===r&&!Ot,this.fallback&&(r="hash"),Pt||(r="abstract"),this.mode=r,r){case"history":this.history=new Wt(this,t.base);break;case"hash":this.history=new zt(this,t.base,this.fallback);break;case"abstract":this.history=new $t(this);break;default:"production"!==e.env.NODE_ENV&&n(!1,"invalid mode: "+r)}},Vt={currentRoute:{}};Vt.currentRoute.get=function(){return this.history&&this.history.current},Nt.prototype.init=function(t){var r=this;"production"!==e.env.NODE_ENV&&n(p.installed,"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."),this.app=t;var i=this.history;if(i instanceof Wt)i.transitionTo(ut(i.base));else if(i instanceof zt){var a=function(){window.addEventListener("hashchange",function(){i.onHashChange()})};i.transitionTo(ft(),a,a)}i.listen(function(t){r.app._route=t})},Nt.prototype.beforeEach=function(t){this.beforeHooks.push(t)},Nt.prototype.afterEach=function(t){this.afterHooks.push(t)},Nt.prototype.push=function(t){this.history.push(t)},Nt.prototype.replace=function(t){this.history.replace(t)},Nt.prototype.go=function(t){this.history.go(t)},Nt.prototype.back=function(){this.go(-1)},Nt.prototype.forward=function(){this.go(1)},Nt.prototype.getMatchedComponents=function(t){var e=t?this.resolve(t).resolved:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Nt.prototype.resolve=function(t,e,n){var r=I(t,e||this.history.current,n),i=this.match(r,e),a=i.redirectedFrom||i.fullPath,o=this.history.base,s=mt(o,a,this.mode);return{normalizedTo:r,resolved:i,href:s}},Object.defineProperties(Nt.prototype,Vt),Nt.install=p,Pt&&window.Vue&&window.Vue.use(Nt),t.exports=Nt}).call(e,n(6))},function(t,e){e.sync=function(t,e){t.registerModule("route",{state:{},mutations:{"router/ROUTE_CHANGED":function(e,n){t.state.route=Object.freeze({name:n.name,path:n.path,hash:n.hash,query:n.query,params:n.params,fullPath:n.fullPath})}}});var n,r=!1;t.watch(function(t){return t.route},function(t){t.fullPath!==n&&(r=!0,n=t.fullPath,e.push(t))},{sync:!0}),e.afterEach(function(e){return r?void(r=!1):(n=e.fullPath,void t.commit("router/ROUTE_CHANGED",e))})}},function(t,e,n){"use strict";function r(t){var e=new o(t),n=a(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var i=n(2),a=n(16),o=n(139),s=n(9),u=r(s);u.Axios=o,u.create=function(t){return r(i.merge(s,t))},u.Cancel=n(13),u.CancelToken=n(138),u.isCancel=n(14),u.all=function(t){return Promise.all(t)},u.spread=n(153),t.exports=u,t.exports["default"]=u},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new i(t),e(n.reason))})}var i=n(13);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r(function(e){t=e});return{token:e,cancel:t}},t.exports=r},function(t,e,n){"use strict";function r(t){this.defaults=t,this.interceptors={request:new o,response:new o}}var i=n(9),a=n(2),o=n(140),s=n(141),u=n(149),l=n(147);r.prototype.request=function(t){"string"==typeof t&&(t=a.merge({url:arguments[0]},arguments[1])),t=a.merge(i,this.defaults,{method:"get"},t),t.baseURL&&!u(t.url)&&(t.url=l(t.baseURL,t.url));var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},a.forEach(["delete","get","head"],function(t){r.prototype[t]=function(e,n){return this.request(a.merge(n||{},{method:t,url:e}))}}),a.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(a.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=r},function(t,e,n){"use strict";function r(){this.handlers=[]}var i=n(2);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){"use strict";function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var i=n(2),a=n(144),o=n(14),s=n(9);t.exports=function(t){r(t),t.headers=t.headers||{},t.data=a(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=t.adapter||s.adapter;return e(t).then(function(e){return r(t),e.data=a(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(r(t),e&&e.response&&(e.response.data=a(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e){"use strict";t.exports=function(t,e,n,r){return t.config=e,n&&(t.code=n),t.response=r,t}},function(t,e,n){"use strict";var r=n(15);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n)):t(n)}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e){"use strict";function n(){this.message="String contains an invalid character"}function r(t){for(var e,r,a=String(t),o="",s=0,u=i;a.charAt(0|s)||(u="=",s%1);o+=u.charAt(63&e>>8-s%1*8)){if(r=a.charCodeAt(s+=.75),r>255)throw new n;e=e<<8|r}return o}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=r},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(2);t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(i.isURLSearchParams(e))a=e.toString();else{var o=[];i.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(i.isArray(t)&&(e+="[]"),i.isArray(t)||(t=[t]),i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),o.push(r(e)+"="+r(t))}))}),a=o.join("&")}return a&&(t+=(t.indexOf("?")===-1?"?":"&")+a),t}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,a,o){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()), -r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(n){var i=r.isString(n)?t(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e&&(a[e]=a[e]?a[e]+", "+n:n)}),a):a}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(255),i=n.n(r),a=n(1);n.n(a);e["default"]={name:"App",components:{Toast:i.a},computed:{hasMoviePath:function(){return this.$route.path.indexOf("/movies/")>-1},hasShowPath:function(){return this.$route.path.indexOf("/shows/")>-1||this.$route.path.indexOf("/seasons/")>-1},showSearchButton:function(){return"/movies"==this.$route.path||"/shows"==this.$route.path},showMenu:function(){return this.$store.state.interfaces.showMenu},showSearch:function(){return this.$store.state.interfaces.showSearch}},methods:Object.assign({},n.i(a.mapActions)(["hideMenu","toggleMenu","toggleSearch"]))}},function(t,e,n){"use strict";e["default"]={name:"Episode",props:["episode"],computed:{isDisabled:function(){return!this.episode.attributes.has_file}}}},function(t,e,n){"use strict";var r=n(8),i=n.n(r),a=n(189),o=n.n(a);e["default"]=i.a.extend({methods:{render:function(t){var e={type:"line",data:t,options:{legend:{display:!1},scales:{yAxes:[{ticks:{min:0,stepSize:1,beginAtZero:!0,fontColor:"rgba(255,255,255,0.5)"},gridLines:{color:"rgba(255,255,255,0.1)",zeroLineColor:"rgba(255,255,255,0.2)"}}],xAxes:[{ticks:{fontColor:"rgba(255,255,255,0.5)"},gridLines:{color:"rgba(255,255,255,0.1)",zeroLineColor:"rgba(255,255,255,0.2)"}}]}}};new o.a(this.$refs.canvas.getContext("2d"),e)}}})},function(t,e,n){"use strict";var r=n(237),i=n.n(r);e["default"]=i.a.extend({name:"MonthlyChart",props:["months"],mounted:function(){this.render({labels:this.months.map(function(t){return t.id}),datasets:[{label:"Views",backgroundColor:"rgba(151,187,205,0.2)",borderColor:"rgba(151,187,205,1)",lineTension:0,pointBackgroundColor:"#fff",pointBorderColor:"rgba(151,187,205,1)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointHoverRadius:6,pointRadius:5,data:this.months.map(function(t){return t.total})}]})}})},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(11)),s=n.n(o),u=n(5),l=n.n(u),d=n(1);n.n(d);e["default"]={name:"Movie",components:{MonthlyChart:s.a,Spinner:l.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(d.mapActions)(["getMovie","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/movies/"+this.$route.params.id};this.getMovie(t)}}),computed:{isDisabled:function(){return!this.movie.attributes.has_file},genres:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.genres.data.map(function(e){var n=e.id;return t.genres.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.movies.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},movie:function(){var t=this.$store.state;return t.movies.all.find(function(e){return e.id==t.movies.currentID})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MovieBackdrop",props:["movie","backdrop"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectBackdrop:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{backdrop_path:this.backdrop.attributes.file_path}}}};this.patchMovie(t)}}}),computed:{isActive:function(){var t=this.movie.attributes.backdrop_url,e=this.backdrop.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";e["default"]={name:"MovieCard",props:["movie"],computed:{link:function(){return 0==this.movie.attributes.tmdb_movie_id?"/movies/"+this.movie.id+"/edit":"/movies/"+this.movie.id}}}},function(t,e,n){"use strict";var r=n(239),i=n.n(r),a=n(242),o=n.n(a),s=n(243),u=n.n(s),l=n(5),d=n.n(l),c=n(1);n.n(c);e["default"]={name:"MovieEdit",components:{MovieBackdrop:i.a,MoviePoster:o.a,MovieResult:u.a,Spinner:d.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(c.mapActions)(["getMovieWithResults","loadingRoute","patchMovie"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/movies/"+this.$route.params.id+"?include=backdrops,posters,results"};this.getMovieWithResults(t)},patchTitle:_.debounce(function(t){var e={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{title:t.target.value}}}};this.patchMovie(e)},500)}),computed:{backdrops:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.backdrops.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},isResolved:function(){return 0!=this.movie.attributes.tmdb_movie_id},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},movie:function(){var t=this.$store.state;return t.movies.all.find(function(e){return e.id==t.movies.currentID})},posters:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.posters.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},results:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.results.data.map(function(e){var n=e.id;return t.search.movies.find(function(t){return t.id==n})})}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MoviePoster",props:["movie","poster"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectPoster:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{poster_path:this.poster.attributes.file_path}}}};this.patchMovie(t)}}}),computed:{isActive:function(){var t=this.movie.attributes.poster_url,e=this.poster.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MovieResult",props:["movie","result"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectResult:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{tmdb_movie_id:this.result.id}}},redirect:"/movies/"+this.movie.id};this.patchMovie(t)}}}),computed:{isActive:function(){return this.result.id==this.movie.attributes.tmdb_movie_id}}}},function(t,e,n){"use strict";var r=n(240),i=n.n(r),a=n(125),o=n.n(a),s=n(5),u=n.n(s),l=n(1);n.n(l);e["default"]={name:"Movies",components:{MovieCard:i.a,MugenScroll:o.a,Spinner:u.a},created:function(){this.loadingRoute(),this.clearGenresFilter(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()},links:function(){var t=this;clearTimeout(t.loadingTimeout),t.loadingTimeout=setTimeout(function(){t.links&&t.links.next&&!t.loading&&t.fetchData(t.links.next)},1e3)}},methods:Object.assign({},n.i(l.mapActions)(["clearFilters","clearGenresFilter","getMovies","filterGenres","filterKeywords","filterOrder","loadingRoute"]),{fetchData:_.debounce(function(t){t||(t="/api/movies"+this.$store.state.filters.queryMovies);var e={url:t};this.getMovies(e)},250),filterMovieGenres:function(t){this.filterGenres(t),this.fetchData()},filterMovieKeywords:function(t){this.filterKeywords(t),this.fetchData()},filterMovieOrder:function(t){this.filterOrder(t),this.fetchData()},filterReset:function(){this.clearFilters(),this.fetchData()},loadMore:_.throttle(function(){this.links&&this.links.next&&!this.loading&&this.fetchData(this.links.next)},500)}),computed:{genres:function(){return _.chain(this.$store.state.genres.all).sortBy("attributes.name").filter(function(t){return t.attributes.total_movies>0}).value()},keywords:function(){return this.$store.state.filters.keywords},links:function(){return this.$store.state.movies.links},loading:function(){return this.$store.state.movies.loading},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},movies:function(){var t=this.$store.state,e=t.filters.keywords,n=t.filters.selectedGenre,r=t.filters.attributes.movies,i=t.filters.direction;return _.chain(t.movies.all).filter(function(t){var n=new RegExp(e,"i");return n.test(t.attributes.title)}).filter(function(t){var e=t.relationships.genres.data.find(function(t){return t.id==n});return""==n||null!=e}).orderBy([r],[i]).value()},orders:function(){return this.$store.state.filters.orders},selectedGenre:function(){return this.$store.state.filters.selectedGenre},selectedOrder:function(){return this.$store.state.filters.selectedOrder}}}},function(t,e,n){"use strict";e["default"]={name:"NotFound"}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(236)),s=n.n(o),u=n(11),l=n.n(u),d=n(5),c=n.n(d),f=n(1);n.n(f);e["default"]={name:"Season",components:{Episode:s.a,MonthlyChart:l.a,Spinner:c.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(f.mapActions)(["getSeason","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/seasons/"+this.$route.params.id};this.getSeason(t)}}),computed:{episodes:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID});return e.relationships.episodes.data.map(function(e){var n=e.id;return t.episodes.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.seasons.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},season:function(){var t=this.$store.state;return t.seasons.all.find(function(e){return e.id==t.seasons.currentID})},show:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID});return t.shows.all.find(function(t){return t.id==e.relationships.show.data.id})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(5),i=n.n(r),a=n(1);n.n(a);e["default"]={name:"Settings",components:{Spinner:i.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(a.mapActions)(["clearAll","clearToday","getSettings","patchSettings","refreshAll","refreshNew","setMoviesFolder","setShowsFolder","loadingRoute"]),{clearHistory:function(){var t={url:"/api/settings/history?all"};this.clearAll(t)},clearHistoryToday:function(){var t={url:"/api/settings/history"};this.clearToday(t)},fetchData:function(){var t={url:"/api/settings"};this.getSettings(t)},patchFolders:function(){var t={url:"/api/settings",json:{data:this.settings}};this.patchSettings(t)},refreshAllFolders:function(){var t={url:"/api/settings/folders?all"};this.refreshAll(t)},refreshNewFolders:function(){var t={url:"/api/settings/folders"};this.refreshNew(t)}}),computed:{loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},settings:function(){return this.$store.state.settings.current}}}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(11)),s=n.n(o),u=n(5),l=n.n(u),d=n(1);n.n(d);e["default"]={name:"Show",components:{MonthlyChart:s.a,Spinner:l.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(d.mapActions)(["getShow","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/shows/"+this.$route.params.id};this.getShow(t)}}),computed:{genres:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.genres.data.map(function(e){var n=e.id;return t.genres.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.shows.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},seasons:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return _.chain(e.relationships.seasons.data.map(function(e){var n=e.id;return t.seasons.all.find(function(t){return t.id==n})})).orderBy(["attributes.season_number"],["asc"]).value()},show:function(){var t=this.$store.state;return t.shows.all.find(function(e){return e.id==t.shows.currentID})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowBackdrop",props:["show","backdrop"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectBackdrop:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{backdrop_path:this.backdrop.attributes.file_path}}}};this.patchShow(t)}}}),computed:{isActive:function(){var t=this.show.attributes.backdrop_url,e=this.backdrop.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";e["default"]={name:"ShowCard",props:["show"],computed:{link:function(){return 0==this.show.attributes.tmdb_show_id?"/shows/"+this.show.id+"/edit":"/shows/"+this.show.id}}}},function(t,e,n){"use strict";var r=n(249),i=n.n(r),a=n(252),o=n.n(a),s=n(253),u=n.n(s),l=n(5),d=n.n(l),c=n(1);n.n(c);e["default"]={name:"ShowEdit",components:{ShowBackdrop:i.a,ShowPoster:o.a,ShowResult:u.a,Spinner:d.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(c.mapActions)(["getShowWithResults","loadingRoute","patchShow"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/shows/"+this.$route.params.id+"?include=backdrops,posters,results"};this.getShowWithResults(t)},patchName:_.debounce(function(t){var e={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{name:t.target.value}}}};this.patchShow(e)},500)}),computed:{backdrops:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.backdrops.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},isResolved:function(){return 0!=this.show.attributes.tmdb_show_id},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},posters:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.posters.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},results:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.results.data.map(function(e){var n=e.id;return t.search.shows.find(function(t){return t.id==n})})},show:function(){var t=this.$store.state;return t.shows.all.find(function(e){return e.id==t.shows.currentID})}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowPoster",props:["show","poster"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectPoster:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{poster_path:this.poster.attributes.file_path}}}};this.patchShow(t)}}}),computed:{isActive:function(){var t=this.show.attributes.poster_url,e=this.poster.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowResult",props:["show","result"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectResult:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{tmdb_show_id:this.result.id}}},redirect:"/shows/"+this.show.id};this.patchShow(t)}}}),computed:{isActive:function(){return this.result.id==this.show.attributes.tmdb_show_id}}}},function(t,e,n){"use strict";var r=n(125),i=n.n(r),a=n(250),o=n.n(a),s=n(5),u=n.n(s),l=n(1);n.n(l);e["default"]={name:"Shows",components:{MugenScroll:i.a,ShowCard:o.a,Spinner:u.a},created:function(){this.loadingRoute(),this.clearGenresFilter(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()},links:function(){var t=this;clearTimeout(t.loadingTimeout),t.loadingTimeout=setTimeout(function(){t.links&&t.links.next&&!t.loading&&t.fetchData(t.links.next)},1e3)}},methods:Object.assign({},n.i(l.mapActions)(["clearFilters","clearGenresFilter","getShows","filterGenres","filterKeywords","filterOrder","loadingRoute"]),{fetchData:_.debounce(function(t){t||(t="/api/shows"+this.$store.state.filters.queryShows);var e={url:t};this.getShows(e)},250),filterShowGenres:function(t){this.filterGenres(t),this.fetchData()},filterShowKeywords:function(t){this.filterKeywords(t),this.fetchData()},filterShowOrder:function(t){this.filterOrder(t),this.fetchData()},filterReset:function(){this.clearFilters(),this.fetchData()},loadMore:function(){!this.links.next||this.loading||this._inactive||this.fetchData(this.links.next)}}),computed:{genres:function(){return _.chain(this.$store.state.genres.all).sortBy("attributes.name").filter(function(t){return t.attributes.total_movies>0}).value()},keywords:function(){return this.$store.state.filters.keywords},links:function(){return this.$store.state.shows.links},loading:function(){return this.$store.state.shows.loading},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},selectedGenre:function(){return this.$store.state.filters.selectedGenre},selectedOrder:function(){return this.$store.state.filters.selectedOrder},shows:function(){var t=this.$store.state,e=t.filters.keywords,n=t.filters.selectedGenre,r=t.filters.attributes.shows,i=t.filters.direction;return _.chain(t.shows.all).filter(function(t){var n=new RegExp(e,"i");return n.test(t.attributes.name)}).filter(function(t){var e=t.relationships.genres.data.find(function(t){return t.id==n});return""==n||null!=e}).orderBy([r],[i]).value()},orders:function(){return this.$store.state.filters.orders}}}},function(t,e,n){"use strict";e["default"]={name:"Spinner"}},function(t,e,n){"use strict";var r=n(1),i=(n.n(r),300),a=3e3,o=300;e["default"]={name:"Toast",replace:!0,watch:{toast:function(t){this.addToQueue(t)}},computed:Object.assign({},n.i(r.mapState)({toast:function(t){return t.toasts.current}}),{toastContext:function(){return this.context?"toast-"+this.context:""}}),data:function(){return{activeToast:!1,activeProgressBar:!1,animation:null,animationInProgress:!1,queue:[],style:{transition:"width 0s"}}},props:{context:{type:String,"default":""},duration:{type:Number,"default":a},message:{type:String,"default":"Done!"},onAjaxErrors:{type:Boolean,"default":!1},position:{type:String,"default":"bottom left"},hideProgress:{type:Boolean,"default":!1},debounce:{type:Number,"default":i}},methods:{pause:function(){this.activeProgressBar=!1,clearTimeout(this.animation),this.style.transition="width 0.1s"},clear:function(){var t=this;this._toastAnimation=setTimeout(function(){t.activeProgressBar=!1,t.animationInProgress=!1,t.style.transition="width 0s",t.activeToast=!1,clearTimeout(t.animation),t.queue.length>0&&(t._toastAnimation=setTimeout(function(){var e=t.queue.shift();t.show(e)},0))},o)},animate:function(){this.style.transition="width "+this.duration/1e3+"s",this.activeProgressBar=!0,this.animation=setTimeout(this.clear,this.duration)},show:function(t){var e=this;this.context="default",this.animationInProgress=!0,this.message=t.message||this.message,this.context=t.context||this.context,this.debounce=t.debounce||this.debounce,this.duration=t.duration||this.duration,this.hideProgress=t.hideProgress||this.hideProgress,this.position=t.position||this.position,t.success&&(this.context="success",this.message=t.success),t.info&&(this.context="info",this.message=t.info),t.warning&&(this.context="warning",this.message=t.warning),t.error&&(this.context="danger",this.message=t.error),setTimeout(function(){e.activeToast=!0,e.animate()},100)},addToQueue:function(t){var e=this;this.animationInProgress||this.queue.length>0?this.queue.push(t):setTimeout(function(){e.show(t)},this.debounce)}},events:{"end::ajax":function(t){this.onAjaxErrors&&t&&t.error&&this.addToQueue(t)},"show::toast":function(t){this.addToQueue(t)}},destroyed:function(){clearTimeout(this._animation),clearTimeout(this._toastAnimation)}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{currentID:null,all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.b]=function(t,e){t.currentID=e},r[a.c]=function(t,e){n.i(i.a)(t.all,e,"episodes")},r[a.d]=function(t,e){n.i(i.b)(t.all,e,"episodes")},r)}},function(t,e,n){"use strict";function r(t){var e=t.orders.find(function(e){return e.id==t.selectedOrder});t.attributes.movies="attributes."+e.movies,t.attributes.shows="attributes."+e.shows,t.direction=e.direction,i(t,e),a(t,e)}function i(t,e){var n=e.prefix+e.movies;t.queryMovies=o(t,n)}function a(t,e){var n=e.prefix+e.shows;t.queryShows=o(t,n)}function o(t,e){var n=[{key:"keywords",value:t.keywords},{key:"sort",value:e},{key:"genre",value:t.selectedGenre}],r="";return n.forEach(function(e){s(t,e)&&(r+=encodeURIComponent(e.key)+"="+encodeURIComponent(e.value)+"&")}),r.length>0&&(r=r.substring(0,r.length-1),r="?"+r),r}function s(t,e){return("sort"!=e.key||"a-z"!=t.selectedOrder)&&""!=e.value}var u,l=n(3);e.a={state:{selectedGenre:"",keywords:"",selectedOrder:"a-z",attributes:{movies:"attributes.title",shows:"attributes.name"},queryMovies:"",queryShows:"",direction:"asc",orders:[{id:"a-z",name:"Title: A-Z",prefix:"",movies:"title",shows:"name",direction:"asc"},{id:"z-a",name:"Title: Z-A",prefix:"-",movies:"title",shows:"name",direction:"desc"},{id:"newest",name:"Year: Newest",prefix:"-",movies:"release_date",shows:"first_air_date",direction:"desc"},{id:"oldest",name:"Year: Oldest",prefix:"",movies:"release_date",shows:"first_air_date",direction:"asc"}]},mutations:(u={},u[l.e]=function(t){t.selectedGenre="",t.keywords="",t.selectedOrder="a-z",r(t)},u[l.f]=function(t){t.selectedGenre="",r(t)},u[l.g]=function(t,e){t.selectedGenre=e,r(t)},u[l.h]=function(t,e){t.keywords=e,r(t)},u[l.i]=function(t,e){t.selectedOrder=e,r(t)},u),actions:{clearFilters:function(t){t.commit(l.e)},clearGenresFilter:function(t){t.commit(l.f)},filterGenres:function(t,e){t.commit(l.g,e.target.value)},filterKeywords:function(t,e){t.commit(l.h,e.target.value)},filterOrder:function(t,e){t.commit(l.i,e.target.value)}}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.j]=function(t,e){n.i(i.b)(t.all,e,"genres")},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.k]=function(t,e){n.i(i.b)(t.all,e,"images")},r)}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{showMenu:!1,showSearch:!1,loadingRouteData:!0},mutations:(r={},r[i.l]=function(t){t.loadingRouteData=!0},r[i.m]=function(t){t.loadingRouteData=!1},r[i.n]=function(t){t.showMenu=!1},r[i.o]=function(t){t.showMenu=!t.showMenu},r[i.p]=function(t){t.showSearch=!t.showSearch},r),actions:{loadingRoute:function(t){t.commit(i.l)},loadedRoute:function(t){t.commit(i.m)},hideMenu:function(t){t.commit(i.n)},toggleMenu:function(t){t.commit(i.o)},toggleSearch:function(t){t.commit(i.p)}}}},function(t,e,n){"use strict";function r(t,e){e.relationships&&(t.relationships.backdrops=e.relationships.backdrops?e.relationships.backdrops:t.relationships.backdrops,t.relationships.genres=e.relationships.genres?e.relationships.genres:t.relationships.genres,t.relationships.posters=e.relationships.posters?e.relationships.posters:t.relationships.posters,t.relationships.results=e.relationships.results?e.relationships.results:t.relationships.results,t.relationships.views=e.relationships.views?e.relationships.views:t.relationships.views)}var i,a=n(4),o=n(3);e.a={state:{currentID:null,loading:!1,all:[],links:[]},mutations:(i={},i[o.a]=function(t){t.all=[]},i[o.q]=function(t){t.loading=!0},i[o.r]=function(t){t.loading=!1},i[o.s]=function(t,e){t.currentID=e},i[o.t]=function(t,e){t.links=e},i[o.u]=function(t,e){n.i(a.a)(t.all,e,"movies",r)},i[o.v]=function(t,e){n.i(a.b)(t.all,e,"movies")},i),actions:{getMovies:function(t,e){t.commit(o.q),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.v,n.data),t.commit(o.t,n.links),t.commit(o.j,n.included),t.commit(o.r),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getMovie:function(t,e){t.commit(o.s,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.u,n.data),t.commit(o.j,n.included),t.commit(o.x,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getMovieWithResults:function(t,e){t.commit(o.s,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.u,n.data),t.commit(o.k,n.included),t.commit(o.y,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},patchMovie:function(t,e){e.redirect&&t.commit(o.w,{success:"Updating Movie"}),axios.patch(e.url,e.json).then(function(n){var r=n.data;t.commit(o.u,r.data),e.redirect&&window.vueRouter.push(e.redirect)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{movies:[],shows:[]},mutations:(r={},r[a.a]=function(t){t.movies=[],t.shows=[]},r[a.y]=function(t,e){n.i(i.b)(t.movies,e,"movie-results")},r[a.z]=function(t,e){n.i(i.b)(t.shows,e,"show-results")},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{currentID:null,all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.A]=function(t,e){t.currentID=e},r[a.B]=function(t,e){n.i(i.a)(t.all,e,"seasons")},r[a.C]=function(t,e){n.i(i.b)(t.all,e,"seasons")},r),actions:{getSeason:function(t,e){t.commit(a.A,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(a.B,n.data),t.commit(a.d,n.included),t.commit(a.D,n.included),t.commit(a.j,n.included),t.commit(a.E,n.included),t.commit(a.m)})["catch"](function(e){t.commit(a.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{current:null},mutations:(r={},r[i.F]=function(t,e){t.current=e},r[i.G]=function(t,e){for(var n in e)t.current.attributes[n]=e[n]},r),actions:{clearAll:function(t,e){axios["delete"](e.url).then(function(e){t.commit(i.w,{success:"Clearing All History"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},clearToday:function(t,e){axios["delete"](e.url).then(function(e){t.commit(i.w,{success:"Clearing Today's History"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},getSettings:function(t,e){axios.get(e.url).then(function(e){var n=e.data;t.commit(i.F,n.data),t.commit(i.m)})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},patchSettings:function(t,e){axios.patch(e.url,e.json).then(function(e){var n=e.data;t.commit(i.F,n.data),t.commit(i.a),t.commit(i.w,{success:"Updating Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},refreshAll:function(t,e){axios.patch(e.url).then(function(e){t.commit(i.w,{success:"Refreshing All Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},refreshNew:function(t,e){axios.patch(e.url).then(function(e){t.commit(i.w,{success:"Refreshing New Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},setMoviesFolder:function(t,e){var n={movies_folder:e.target.value};t.commit(i.G,n)},setShowsFolder:function(t,e){var n={shows_folder:e.target.value};t.commit(i.G,n)}}}},function(t,e,n){"use strict";function r(t,e){e.relationships&&(t.relationships.backdrops=e.relationships.backdrops?e.relationships.backdrops:t.relationships.backdrops,t.relationships.genres=e.relationships.genres?e.relationships.genres:t.relationships.genres,t.relationships.posters=e.relationships.posters?e.relationships.posters:t.relationships.posters,t.relationships.results=e.relationships.results?e.relationships.results:t.relationships.results,t.relationships.seasons=e.relationships.seasons?e.relationships.seasons:t.relationships.seasons,t.relationships.views=e.relationships.views?e.relationships.views:t.relationships.views)}var i,a=n(4),o=n(3);e.a={state:{currentID:null,loading:!1,all:[],links:[]},mutations:(i={},i[o.a]=function(t){t.all=[]},i[o.H]=function(t){t.loading=!0},i[o.I]=function(t){t.loading=!1},i[o.J]=function(t,e){t.currentID=e},i[o.K]=function(t,e){t.links=e},i[o.L]=function(t,e){n.i(a.a)(t.all,e,"shows",r)},i[o.D]=function(t,e){n.i(a.b)(t.all,e,"shows")},i),actions:{getShows:function(t,e){t.commit(o.H),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.D,n.data),t.commit(o.K,n.links),t.commit(o.j,n.included),t.commit(o.I),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getShow:function(t,e){t.commit(o.J,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.L,n.data),t.commit(o.j,n.included),t.commit(o.C,n.included),t.commit(o.M,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getShowWithResults:function(t,e){t.commit(o.J,e.id), -axios.get(e.url).then(function(e){var n=e.data;t.commit(o.L,n.data),t.commit(o.j,n.included),t.commit(o.C,n.included),t.commit(o.k,n.included),t.commit(o.z,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},patchShow:function(t,e){e.redirect&&t.commit(o.w,{success:"Updating Show"}),axios.patch(e.url,e.json).then(function(n){var r=n.data;t.commit(o.L,r.data),e.redirect&&window.vueRouter.push(e.redirect)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{current:null},mutations:(r={},r[i.w]=function(t,e){t.current=e},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{movies:[],seasons:[],shows:[]},mutations:(r={},r[a.a]=function(t){t.movies=[],t.seasons=[],t.shows=[]},r[a.x]=function(t,e){n.i(i.b)(t.movies,e,"movie-views")},r[a.E]=function(t,e){n.i(i.b)(t.seasons,e,"season-views")},r[a.M]=function(t,e){n.i(i.b)(t.shows,e,"show-views")},r)}},function(t,e,n){var r=n(210)();n(208)(r),n(204)(r),n(207)(r),n(203)(r),n(205)(r),n(206)(r),n(211)(r),n(215)(r),n(213)(r),n(216)(r),n(214)(r),n(217)(r),n(212)(r),n(209)(r),n(218)(r),n(219)(r),n(220)(r),n(221)(r),n(222)(r),n(225)(r),n(223)(r),n(224)(r),n(226)(r),n(227)(r),n(228)(r),n(197)(r),n(198)(r),n(199)(r),n(200)(r),n(201)(r),n(202)(r),n(190)(r),n(191)(r),n(192)(r),n(193)(r),n(194)(r),n(195)(r),n(196)(r),window.Chart=t.exports=r},function(t,e){"use strict";t.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Radar=function(e,n){return n.type="radar",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){var e={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(e,n){t.DatasetController.prototype.initialize.call(this,e,n),this.getMeta().bar=!0},getBarCount:function(){var t=this,n=0;return e.each(t.chart.data.datasets,function(e,r){var i=t.chart.getDatasetMeta(r);i.bar&&t.chart.isDatasetVisible(r)&&++n},t),n},update:function(t){var n=this;e.each(n.getMeta().data,function(e,r){n.updateElement(e,r,t)},n)},updateElement:function(t,n,r){var i=this,a=i.getMeta(),o=i.getScaleForId(a.xAxisID),s=i.getScaleForId(a.yAxisID),u=s.getBasePixel(),l=i.chart.options.elements.rectangle,d=t.custom||{},c=i.getDataset();t._xScale=o,t._yScale=s,t._datasetIndex=i.index,t._index=n;var f=i.getRuler(n);t._model={x:i.calculateBarX(n,i.index,f),y:r?u:i.calculateBarY(n,i.index),label:i.chart.data.labels[n],datasetLabel:c.label,base:r?u:i.calculateBarBase(i.index,n),width:i.calculateBarWidth(f),backgroundColor:d.backgroundColor?d.backgroundColor:e.getValueAtIndexOrDefault(c.backgroundColor,n,l.backgroundColor),borderSkipped:d.borderSkipped?d.borderSkipped:l.borderSkipped,borderColor:d.borderColor?d.borderColor:e.getValueAtIndexOrDefault(c.borderColor,n,l.borderColor),borderWidth:d.borderWidth?d.borderWidth:e.getValueAtIndexOrDefault(c.borderWidth,n,l.borderWidth)},t.pivot()},calculateBarBase:function(t,e){var n=this,r=n.getMeta(),i=n.getScaleForId(r.yAxisID),a=0;if(i.options.stacked){for(var o=n.chart,s=o.data.datasets,u=Number(s[t].data[e]),l=0;l0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(r,i){var a=t.getDatasetMeta(0),o=n.datasets[0],s=a.data[i],u=s&&s.custom||{},l=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=u.backgroundColor?u.backgroundColor:l(o.backgroundColor,i,d.backgroundColor),f=u.borderColor?u.borderColor:l(o.borderColor,i,d.borderColor),h=u.borderWidth?u.borderWidth:l(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,r,i,a=e.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n=Math.PI?-1:_<-Math.PI?1:0);var m=_+h,p={x:Math.cos(_),y:Math.sin(_)},v={x:Math.cos(m),y:Math.sin(m)},g=_<=0&&0<=m||_<=2*Math.PI&&2*Math.PI<=m,y=_<=.5*Math.PI&&.5*Math.PI<=m||_<=2.5*Math.PI&&2.5*Math.PI<=m,M=_<=-Math.PI&&-Math.PI<=m||_<=Math.PI&&Math.PI<=m,b=_<=.5*-Math.PI&&.5*-Math.PI<=m||_<=1.5*Math.PI&&1.5*Math.PI<=m,L=f/100,w={x:M?-1:Math.min(p.x*(p.x<0?1:L),v.x*(v.x<0?1:L)),y:b?-1:Math.min(p.y*(p.y<0?1:L),v.y*(v.y<0?1:L))},k={x:g?1:Math.max(p.x*(p.x>0?1:L),v.x*(v.x>0?1:L)),y:y?1:Math.max(p.y*(p.y>0?1:L),v.y*(v.y>0?1:L))},Y={width:.5*(k.x-w.x),height:.5*(k.y-w.y)};l=Math.min(s/Y.width,u/Y.height),d={x:(k.x+w.x)*-.5,y:(k.y+w.y)*-.5}}r.borderWidth=n.getMaxBorderWidth(c.data),r.outerRadius=Math.max((l-r.borderWidth)/2,0),r.innerRadius=Math.max(f?r.outerRadius/100*f:1,0),r.radiusLength=(r.outerRadius-r.innerRadius)/r.getVisibleDatasetCount(),r.offsetX=d.x*r.outerRadius,r.offsetY=d.y*r.outerRadius,c.total=n.calculateTotal(),n.outerRadius=r.outerRadius-r.radiusLength*n.getRingIndex(n.index),n.innerRadius=n.outerRadius-r.radiusLength,e.each(c.data,function(e,r){n.updateElement(e,r,t)})},updateElement:function(t,n,r){var i=this,a=i.chart,o=a.chartArea,s=a.options,u=s.animation,l=(o.left+o.right)/2,d=(o.top+o.bottom)/2,c=s.rotation,f=s.rotation,h=i.getDataset(),_=r&&u.animateRotate?0:t.hidden?0:i.calculateCircumference(h.data[n])*(s.circumference/(2*Math.PI)),m=r&&u.animateScale?0:i.innerRadius,p=r&&u.animateScale?0:i.outerRadius,v=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:i.index,_index:n,_model:{x:l+a.offsetX,y:d+a.offsetY,startAngle:c,endAngle:f,circumference:_,outerRadius:p,innerRadius:m,label:v(h.label,n,a.data.labels[n])}});var g=t._model;this.removeHoverStyle(t),r&&u.animateRotate||(0===n?g.startAngle=s.rotation:g.startAngle=i.getMeta().data[n-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,n=this.getDataset(),r=this.getMeta(),i=0;return e.each(r.data,function(e,r){t=n.data[r],isNaN(t)||e.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,r=0,i=this.index,a=t.length,o=0;or?e:r,r=n>r?n:r;return r}})}},function(t,e){"use strict";t.exports=function(t){function e(t,e){return n.getValueOrDefault(t.showLine,e.showLines)}var n=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,update:function(t){var r,i,a,o=this,s=o.getMeta(),u=s.dataset,l=s.data||[],d=o.chart.options,c=d.elements.line,f=o.getScaleForId(s.yAxisID),h=o.getDataset(),_=e(h,d);for(_&&(a=u.custom||{},void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),u._scale=f,u._datasetIndex=o.index,u._children=l,u._model={spanGaps:h.spanGaps?h.spanGaps:d.spanGaps,tension:a.tension?a.tension:n.getValueOrDefault(h.lineTension,c.tension),backgroundColor:a.backgroundColor?a.backgroundColor:h.backgroundColor||c.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:h.borderWidth||c.borderWidth,borderColor:a.borderColor?a.borderColor:h.borderColor||c.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:h.borderCapStyle||c.borderCapStyle,borderDash:a.borderDash?a.borderDash:h.borderDash||c.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:h.borderDashOffset||c.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:h.borderJoinStyle||c.borderJoinStyle,fill:a.fill?a.fill:void 0!==h.fill?h.fill:c.fill,steppedLine:a.steppedLine?a.steppedLine:n.getValueOrDefault(h.steppedLine,c.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:n.getValueOrDefault(h.cubicInterpolationMode,c.cubicInterpolationMode),scaleTop:f.top,scaleBottom:f.bottom,scaleZero:f.getBasePixel()},u.pivot()),r=0,i=l.length;r');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(r,i){var a=t.getDatasetMeta(0),o=n.datasets[0],s=a.data[i],u=s.custom||{},l=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=u.backgroundColor?u.backgroundColor:l(o.backgroundColor,i,d.backgroundColor),f=u.borderColor?u.borderColor:l(o.borderColor,i,d.borderColor),h=u.borderWidth?u.borderWidth:l(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,r,i,a=e.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,update:function(t){var n=this,r=n.getMeta(),i=r.dataset,a=r.data,o=i.custom||{},s=n.getDataset(),u=n.chart.options.elements.line,l=n.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),e.extend(r.dataset,{_datasetIndex:n.index,_children:a,_loop:!0,_model:{tension:o.tension?o.tension:e.getValueOrDefault(s.lineTension,u.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||u.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||u.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||u.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:u.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||u.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||u.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||u.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||u.borderJoinStyle,scaleTop:l.top,scaleBottom:l.bottom,scaleZero:l.getBasePosition()}}),r.dataset.pivot(),e.each(a,function(e,r){n.updateElement(e,r,t)},n),n.updateBezierControlPoints()},updateElement:function(t,n,r){var i=this,a=t.custom||{},o=i.getDataset(),s=i.chart.scale,u=i.chart.options.elements.point,l=s.getPointPositionForValue(n,o.data[n]);e.extend(t,{_datasetIndex:i.index,_index:n,_scale:s,_model:{x:r?s.xCenter:l.x,y:r?s.yCenter:l.y,tension:a.tension?a.tension:e.getValueOrDefault(o.tension,i.chart.options.elements.line.tension),radius:a.radius?a.radius:e.getValueAtIndexOrDefault(o.pointRadius,n,u.radius),backgroundColor:a.backgroundColor?a.backgroundColor:e.getValueAtIndexOrDefault(o.pointBackgroundColor,n,u.backgroundColor),borderColor:a.borderColor?a.borderColor:e.getValueAtIndexOrDefault(o.pointBorderColor,n,u.borderColor),borderWidth:a.borderWidth?a.borderWidth:e.getValueAtIndexOrDefault(o.pointBorderWidth,n,u.borderWidth),pointStyle:a.pointStyle?a.pointStyle:e.getValueAtIndexOrDefault(o.pointStyle,n,u.pointStyle),hitRadius:a.hitRadius?a.hitRadius:e.getValueAtIndexOrDefault(o.hitRadius,n,u.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,n=this.getMeta();e.each(n.data,function(r,i){var a=r._model,o=e.splineCurve(e.previousItem(n.data,i,!0)._model,a,e.nextItem(n.data,i,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),r.pivot()})},draw:function(t){var n=this.getMeta(),r=t||1;e.each(n.data,function(t){t.transition(r)}),n.dataset.transition(r).draw(),e.each(n.data,function(t){t.draw()})},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],r=t.custom||{},i=t._index,a=t._model;a.radius=r.hoverRadius?r.hoverRadius:e.getValueAtIndexOrDefault(n.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),a.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:e.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,i,e.getHoverColor(a.backgroundColor)),a.borderColor=r.hoverBorderColor?r.hoverBorderColor:e.getValueAtIndexOrDefault(n.pointHoverBorderColor,i,e.getHoverColor(a.borderColor)),a.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:e.getValueAtIndexOrDefault(n.pointHoverBorderWidth,i,a.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],r=t.custom||{},i=t._index,a=t._model,o=this.chart.options.elements.point;a.radius=r.radius?r.radius:e.getValueAtIndexOrDefault(n.radius,i,o.radius),a.backgroundColor=r.backgroundColor?r.backgroundColor:e.getValueAtIndexOrDefault(n.pointBackgroundColor,i,o.backgroundColor),a.borderColor=r.borderColor?r.borderColor:e.getValueAtIndexOrDefault(n.pointBorderColor,i,o.borderColor),a.borderWidth=r.borderWidth?r.borderWidth:e.getValueAtIndexOrDefault(n.pointBorderWidth,i,o.borderWidth)}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,r){var i=this;r||(t.animating=!0);for(var a=0;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var r=0;rt.animations[r].animationObject.numSteps&&(t.animations[r].animationObject.currentStep=t.animations[r].animationObject.numSteps),t.animations[r].animationObject.render(t.animations[r].chartInstance,t.animations[r].animationObject),t.animations[r].animationObject.onAnimationProgress&&t.animations[r].animationObject.onAnimationProgress.call&&t.animations[r].animationObject.onAnimationProgress.call(t.animations[r].chartInstance,t.animations[r]),t.animations[r].animationObject.currentStep===t.animations[r].animationObject.numSteps?(t.animations[r].animationObject.onAnimationComplete&&t.animations[r].animationObject.onAnimationComplete.call&&t.animations[r].animationObject.onAnimationComplete.call(t.animations[r].chartInstance,t.animations[r]),t.animations[r].chartInstance.animating=!1,t.animations.splice(r,1)):++r;var i=Date.now(),a=(i-e)/t.frameDuration;t.dropFrames+=a,t.animations.length>0&&t.requestAnimationFrame()}}}},function(t,e){"use strict";t.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(t,e,n,r,i){var a,o,s,u,l,d;if("object"==typeof e&&(a=e.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return void t.drawImage(e,r-e.width/2,i-e.height/2);if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(r,i,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),o=3*n/Math.sqrt(3),l=o*Math.sqrt(3)/2,t.moveTo(r-o/2,i+l/3),t.lineTo(r+o/2,i+l/3),t.lineTo(r,i-2*l/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(r-d,i-d,2*d,2*d),t.strokeRect(r-d,i-d,2*d,2*d);break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(r-d,i),t.lineTo(r,i+d),t.lineTo(r+d,i),t.lineTo(r,i-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(r,i+n),t.lineTo(r,i-n),t.moveTo(r-n,i),t.lineTo(r+n,i),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r-s,i+u),t.lineTo(r+s,i-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(r,i+n),t.lineTo(r,i-n),t.moveTo(r-n,i),t.lineTo(r+n,i),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r-s,i+u),t.lineTo(r+s,i-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(r-n,i),t.lineTo(r+n,i),t.closePath();break;case"dash":t.beginPath(),t.moveTo(r,i),t.lineTo(r+n,i),t.closePath()}t.stroke()}}}},function(t,e){"use strict";t.exports=function(t){function e(t,e){var n=o.getStyle(t,e),r=n&&n.match(/(\d+)px/);return r?Number(r[1]):void 0}function n(t,n){var r=t.style,i=t.getAttribute("height"),a=t.getAttribute("width");if(t._chartjs={initial:{height:i,width:a,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===a||""===a){var o=e(t,"width");void 0!==o&&(t.width=o)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(n.options.aspectRatio||2);else{var s=e(t,"height");void 0!==o&&(t.height=s)}return t}function r(t){if(t._chartjs){var e=t._chartjs.initial;["height","width"].forEach(function(n){var r=e[n];void 0===r||null===r?t.removeAttribute(n):t.setAttribute(n,r)}),o.each(e.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t._chartjs}}function i(t,e){if("string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t instanceof HTMLCanvasElement){var r=t.getContext&&t.getContext("2d");if(r instanceof CanvasRenderingContext2D)return n(t,e),r}return null}function a(e){e=e||{};var n=e.data=e.data||{};return n.datasets=n.datasets||[],n.labels=n.labels||[],e.options=o.configMerge(t.defaults.global,t.defaults[e.type],e.options||{}),e}var o=t.helpers;t.types={},t.instances={},t.controllers={},t.Controller=function(e,n,r){var s=this;n=a(n);var u=i(e,n),l=u&&u.canvas,d=l&&l.height,c=l&&l.width;return r.ctx=u,r.canvas=l,r.config=n,r.width=c,r.height=d,r.aspectRatio=d?c/d:null,s.id=o.uid(),s.chart=r,s.config=n,s.options=n.options,s._bufferedRender=!1,t.instances[s.id]=s,Object.defineProperty(s,"data",{get:function(){return s.config.data}}),u&&l?(o.retinaScale(r),s.options.responsive&&(o.addResizeListener(l.parentNode,function(){s.resize()}),s.resize(!0)),s.initialize(),s):s},o.extend(t.Controller.prototype,{initialize:function(){var e=this;return t.plugins.notify("beforeInit",[e]),e.bindEvents(),e.ensureScalesHaveIDs(),e.buildOrUpdateControllers(),e.buildScales(),e.updateLayout(),e.resetElements(),e.initToolTip(),e.update(),t.plugins.notify("afterInit",[e]),e},clear:function(){return o.clear(this.chart),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(e){var n=this,r=n.chart,i=n.options,a=r.canvas,s=i.maintainAspectRatio&&r.aspectRatio||null,u=Math.floor(o.getMaximumWidth(a)),l=Math.floor(s?u/s:o.getMaximumHeight(a));if(r.width!==u||r.height!==l){a.width=r.width=u,a.height=r.height=l,a.style.width=u+"px",a.style.height=l+"px",o.retinaScale(r);var d={width:u,height:l};t.plugins.notify("resize",[n,d]),n.options.onResize&&n.options.onResize(n,d),e||(n.stop(),n.update(n.options.responsiveAnimationDuration))}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;o.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),o.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,n=e.options,r=e.scales={},i=[];n.scales&&(i=i.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear"}}))),n.scale&&i.push({options:n.scale,dtype:"radialLinear",isDefault:!0}),o.each(i,function(n){var i=n.options,a=o.getValueOrDefault(i.type,n.dtype),s=t.scaleService.getScaleConstructor(a);if(s){var u=new s({id:i.id,options:i,ctx:e.chart.ctx,chart:e});r[u.id]=u,n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},updateLayout:function(){t.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var e=this,n=[],r=[];if(o.each(e.data.datasets,function(i,a){var o=e.getDatasetMeta(a);o.type||(o.type=i.type||e.config.type),n.push(o.type),o.controller?o.controller.updateIndex(a):(o.controller=new t.controllers[o.type](e,a),r.push(o.controller))},e),n.length>1)for(var i=1;i0||(i.forEach(function(e){delete t[e]}),delete t._chartjs)}}var r=t.helpers,i=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},r.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,r=n.getMeta(),i=n.getDataset().data||[],a=r.data;for(t=0,e=i.length;tr&&t.insertElements(r,i-r)},insertElements:function(t,e){for(var n=0;n=0;i--)e.call(n,t[i],i);else for(i=0;i=r[n].length||!r[n][i].type?r[n].push(a.configMerge(s,e)):e.type&&e.type!==r[n][i].type?r[n][i]=a.configMerge(r[n][i],s,e):r[n][i]=a.configMerge(r[n][i],e)}):(r[n]=[],a.each(e,function(e){var i=a.getValueOrDefault(e.type,"xAxes"===n?"category":"linear");r[n].push(a.configMerge(t.scaleService.getScaleDefaults(i),e))})):r.hasOwnProperty(n)&&"object"==typeof r[n]&&null!==r[n]&&"object"==typeof e?r[n]=a.configMerge(r[n],e):r[n]=e}),r},a.getValueAtIndexOrDefault=function(t,e,n){return void 0===t||null===t?n:a.isArray(t)?e=0;r--){var i=t[r];if(e(i))return i}},a.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=e.prototype,n.prototype=new r,n.extend=a.inherits,t&&a.extend(n.prototype,t),n.__super__=e.prototype,n},a.noop=function(){},a.uid=function(){var t=0;return function(){return t++}}(),a.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a.almostEquals=function(t,e,n){return Math.abs(t-e)0?1:-1},a.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},a.toRadians=function(t){return t*(Math.PI/180)},a.toDegrees=function(t){return t*(180/Math.PI)},a.getAngleFromPoint=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:i}},a.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.aliasPixel=function(t){return t%2===0?0:.5},a.splineCurve=function(t,e,n,r){var i=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),u=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),l=s/(s+u),d=u/(s+u);l=isNaN(l)?0:l,d=isNaN(d)?0:d;var c=r*l,f=r*d;return{previous:{x:a.x-c*(o.x-i.x),y:a.y-c*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}},a.EPSILON=Number.EPSILON||1e-14,a.splineCurveMonotone=function(t){var e,n,r,i,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,i=e0?o[e-1]:null,i=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},a.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},a.niceNum=function(t,e){var n,r=Math.floor(a.log10(t)),i=t/Math.pow(10,r);return n=e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,n*Math.pow(10,r)};var o=a.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===(t/=1)?1:(n||(n=.3),r0?(n=u[0].clientX,r=u[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(a.getStyle(o,"padding-left")),d=parseFloat(a.getStyle(o,"padding-top")),c=parseFloat(a.getStyle(o,"padding-right")),f=parseFloat(a.getStyle(o,"padding-bottom")),h=s.right-s.left-l-c,_=s.bottom-s.top-d-f;return n=Math.round((n-s.left-l)/h*o.width/e.currentDevicePixelRatio),r=Math.round((r-s.top-d)/_*o.height/e.currentDevicePixelRatio),{x:n,y:r}},a.addEvent=function(t,e,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},a.removeEvent=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=a.noop},a.bindEvents=function(t,e,n){var r=t.events=t.events||{};a.each(e,function(e){r[e]=function(){n.apply(t,arguments)},a.addEvent(t.chart.canvas,e,r[e])})},a.unbindEvents=function(t,e){var n=t.chart.canvas;a.each(e,function(t,e){a.removeEvent(n,e,t)})},a.getConstraintWidth=function(t){return i(t,"max-width","clientWidth")},a.getConstraintHeight=function(t){return i(t,"max-height","clientHeight")},a.getMaximumWidth=function(t){var e=t.parentNode,n=parseInt(a.getStyle(e,"padding-left"),10),r=parseInt(a.getStyle(e,"padding-right"),10),i=e.clientWidth-n-r,o=a.getConstraintWidth(t);return isNaN(o)?i:Math.min(i,o)},a.getMaximumHeight=function(t){var e=t.parentNode,n=parseInt(a.getStyle(e,"padding-top"),10),r=parseInt(a.getStyle(e,"padding-bottom"),10),i=e.clientHeight-n-r,o=a.getConstraintHeight(t);return isNaN(o)?i:Math.min(i,o)},a.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},a.retinaScale=function(t){var e=t.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==e){var n=t.canvas,r=t.height,i=t.width;n.height=r*e,n.width=i*e,t.ctx.scale(e,e),n.style.height=r+"px",n.style.width=i+"px"}},a.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},a.fontString=function(t,e,n){return e+" "+t+"px "+n},a.longestText=function(t,e,n,r){r=r||{};var i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.font=e;var s=0;a.each(n,function(e){void 0!==e&&null!==e&&a.isArray(e)!==!0?s=a.measureText(t,i,o,s,e):a.isArray(e)&&a.each(e,function(e){void 0===e||null===e||a.isArray(e)||(s=a.measureText(t,i,o,s,e))})});var u=o.length/2;if(u>n.length){for(var l=0;lr&&(r=a),r},a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t)&&t.length>e&&(e=t.length)}),e},a.drawRoundedRectangle=function(t,e,n,r,i,a){t.beginPath(),t.moveTo(e+a,n),t.lineTo(e+r-a,n),t.quadraticCurveTo(e+r,n,e+r,n+a),t.lineTo(e+r,n+i-a),t.quadraticCurveTo(e+r,n+i,e+r-a,n+i),t.lineTo(e+a,n+i),t.quadraticCurveTo(e,n+i,e,n+i-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+a,n),t.closePath()},a.color=function(e){return r?r(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):e},a.addResizeListener=function(t,e){var n=document.createElement("iframe");n.className="chartjs-hidden-iframe",n.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",n.tabIndex=-1;var r=t._chartjs={resizer:n,ticking:!1},i=function(){r.ticking||(r.ticking=!0,a.requestAnimFrame.call(window,function(){if(r.resizer)return r.ticking=!1,e()}))};a.addEvent(n,"load",function(){a.addEvent(n.contentWindow||n,"resize",i),i()}),t.insertBefore(n,t.firstChild)},a.removeResizeListener=function(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}},a.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},a.arrayEquals=function(t,e){var n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n0&&(s=t.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(t,e){return i(t,e,!0)},point:function(t,e){var r=a.getRelativePosition(e,t.chart);return n(t,r)},nearest:function(t,e,n){var i=a.getRelativePosition(e,t.chart),o=r(t,i,n.intersect);return o.length>1&&o.sort(function(t,e){var n=t.getArea(),r=e.getArea(),i=n-r;return 0===i&&(i=t._datasetIndex-e._datasetIndex),i}),o.slice(0,1)},x:function(t,n,r){var i=a.getRelativePosition(n,t.chart),o=[],s=!1;return e(t,function(t){t.inXRange(i.x)&&o.push(t),t.inRange(i.x,i.y)&&(s=!0)}),r.intersect&&!s&&(o=[]),o},y:function(t,n,r){var i=a.getRelativePosition(n,t.chart),o=[],s=!1;return e(t,function(t){t.inYRange(i.y)&&o.push(t),t.inRange(i.x,i.y)&&(s=!0)}),r.intersect&&!s&&(o=[]),o}}}}},function(t,e){"use strict";t.exports=function(){var t=function(e,n){return this.controller=new t.Controller(e,n,this),this.controller};return t.defaults={global:{ -responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('
    ');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push("
"),e.join("")}}},t.Chart=t,t}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,n,r){function i(t){var e,n=t.isHorizontal();n?(e=t.update(t.options.fullWidth?y:Y,k),D-=e.height):(e=t.update(w,L),Y-=e.width),x.push({horizontal:n,minSize:e,box:t})}function a(t){var n=e.findNextWhere(x,function(e){return e.box===t});if(n)if(t.isHorizontal()){var r={left:T,right:S,top:0,bottom:0};t.update(t.options.fullWidth?y:Y,M/2,r)}else t.update(n.minSize.width,D)}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"},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 +r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(n){var i=r.isString(n)?t(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e&&(a[e]=a[e]?a[e]+", "+n:n)}),a):a}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(255),i=n.n(r),a=n(1);n.n(a);e["default"]={name:"App",components:{Toast:i.a},computed:{hasMoviePath:function(){return this.$route.path.indexOf("/movies/")>-1},hasShowPath:function(){return this.$route.path.indexOf("/shows/")>-1||this.$route.path.indexOf("/seasons/")>-1},showSearchButton:function(){return"/movies"==this.$route.path||"/shows"==this.$route.path},showMenu:function(){return this.$store.state.interfaces.showMenu},showSearch:function(){return this.$store.state.interfaces.showSearch}},methods:Object.assign({},n.i(a.mapActions)(["hideMenu","toggleMenu","toggleSearch"]))}},function(t,e,n){"use strict";e["default"]={name:"Episode",props:["episode"],computed:{isDisabled:function(){return!this.episode.attributes.has_file}}}},function(t,e,n){"use strict";var r=n(8),i=n.n(r),a=n(189),o=n.n(a);e["default"]=i.a.extend({methods:{render:function(t){var e={type:"line",data:t,options:{legend:{display:!1},scales:{yAxes:[{ticks:{min:0,stepSize:1,beginAtZero:!0,fontColor:"rgba(255,255,255,0.5)"},gridLines:{color:"rgba(255,255,255,0.1)",zeroLineColor:"rgba(255,255,255,0.2)"}}],xAxes:[{ticks:{fontColor:"rgba(255,255,255,0.5)"},gridLines:{color:"rgba(255,255,255,0.1)",zeroLineColor:"rgba(255,255,255,0.2)"}}]}}};new o.a(this.$refs.canvas.getContext("2d"),e)}}})},function(t,e,n){"use strict";var r=n(237),i=n.n(r);e["default"]=i.a.extend({name:"MonthlyChart",props:["months"],mounted:function(){this.render({labels:this.months.map(function(t){return t.id}),datasets:[{label:"Views",backgroundColor:"rgba(151,187,205,0.2)",borderColor:"rgba(151,187,205,1)",lineTension:0,pointBackgroundColor:"#fff",pointBorderColor:"rgba(151,187,205,1)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointHoverRadius:6,pointRadius:5,data:this.months.map(function(t){return t.total})}]})}})},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(11)),s=n.n(o),u=n(5),l=n.n(u),d=n(1);n.n(d);e["default"]={name:"Movie",components:{MonthlyChart:s.a,Spinner:l.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(d.mapActions)(["getMovie","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/movies/"+this.$route.params.id};this.getMovie(t)}}),computed:{isDisabled:function(){return!this.movie.attributes.has_file},genres:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.genres.data.map(function(e){var n=e.id;return t.genres.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.movies.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},movie:function(){var t=this.$store.state;return t.movies.all.find(function(e){return e.id==t.movies.currentID})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MovieBackdrop",props:["movie","backdrop"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectBackdrop:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{backdrop_path:this.backdrop.attributes.file_path}}}};this.patchMovie(t)}}}),computed:{isActive:function(){var t=this.movie.attributes.backdrop_url,e=this.backdrop.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";e["default"]={name:"MovieCard",props:["movie"],computed:{link:function(){return 0==this.movie.attributes.tmdb_movie_id?"/movies/"+this.movie.id+"/edit":"/movies/"+this.movie.id}}}},function(t,e,n){"use strict";var r=n(239),i=n.n(r),a=n(242),o=n.n(a),s=n(243),u=n.n(s),l=n(5),d=n.n(l),c=n(1);n.n(c);e["default"]={name:"MovieEdit",components:{MovieBackdrop:i.a,MoviePoster:o.a,MovieResult:u.a,Spinner:d.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(c.mapActions)(["getMovieWithResults","loadingRoute","patchMovie"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/movies/"+this.$route.params.id+"?include=backdrops,posters,results"};this.getMovieWithResults(t)},patchTitle:_.debounce(function(t){var e={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{title:t.target.value}}}};this.patchMovie(e)},500)}),computed:{backdrops:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.backdrops.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},isResolved:function(){return 0!=this.movie.attributes.tmdb_movie_id},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},movie:function(){var t=this.$store.state;return t.movies.all.find(function(e){return e.id==t.movies.currentID})},posters:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.posters.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},results:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.results.data.map(function(e){var n=e.id;return t.search.movies.find(function(t){return t.id==n})})}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MoviePoster",props:["movie","poster"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectPoster:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{poster_path:this.poster.attributes.file_path}}}};this.patchMovie(t)}}}),computed:{isActive:function(){var t=this.movie.attributes.poster_url,e=this.poster.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MovieResult",props:["movie","result"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectResult:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{tmdb_movie_id:this.result.id}}},redirect:"/movies/"+this.movie.id};this.patchMovie(t)}}}),computed:{isActive:function(){return this.result.id==this.movie.attributes.tmdb_movie_id}}}},function(t,e,n){"use strict";var r=n(240),i=n.n(r),a=n(125),o=n.n(a),s=n(5),u=n.n(s),l=n(1);n.n(l);e["default"]={name:"Movies",components:{MovieCard:i.a,MugenScroll:o.a,Spinner:u.a},created:function(){0==this.movies.length&&this.loadingRoute(),this.clearGenresFilter(),this.fetchData()},watch:{links:function(){var t=this;clearTimeout(t.loadingTimeout),t.loadingTimeout=setTimeout(function(){t.links&&t.links.next&&!t.loading&&t.fetchData(t.links.next)},1e3)}},methods:Object.assign({},n.i(l.mapActions)(["clearFilters","clearGenresFilter","getMovies","filterGenres","filterKeywords","filterOrder","loadingRoute"]),{fetchData:_.debounce(function(t){t||(t="/api/movies"+this.$store.state.filters.queryMovies);var e={url:t};this.getMovies(e)},250),filterMovieGenres:function(t){this.filterGenres(t),this.fetchData()},filterMovieKeywords:function(t){this.filterKeywords(t),this.fetchData()},filterMovieOrder:function(t){this.filterOrder(t),this.fetchData()},filterReset:function(){this.clearFilters(),this.fetchData()},loadMore:_.throttle(function(){this.links&&this.links.next&&!this.loading&&this.fetchData(this.links.next)},500)}),computed:{genres:function(){return _.chain(this.$store.state.genres.all).sortBy("attributes.name").filter(function(t){return t.attributes.total_movies>0}).value()},keywords:function(){return this.$store.state.filters.keywords},links:function(){return this.$store.state.movies.links},loading:function(){return this.$store.state.movies.loading},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},movies:function(){var t=this.$store.state,e=t.filters.keywords,n=t.filters.selectedGenre,r=t.filters.attributes.movies,i=t.filters.direction;return _.chain(t.movies.all).filter(function(t){var n=new RegExp(e,"i");return n.test(t.attributes.title)}).filter(function(t){var e=t.relationships.genres.data.find(function(t){return t.id==n});return""==n||null!=e}).orderBy([r],[i]).value()},orders:function(){return this.$store.state.filters.orders},selectedGenre:function(){return this.$store.state.filters.selectedGenre},selectedOrder:function(){return this.$store.state.filters.selectedOrder}}}},function(t,e,n){"use strict";e["default"]={name:"NotFound"}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(236)),s=n.n(o),u=n(11),l=n.n(u),d=n(5),c=n.n(d),f=n(1);n.n(f);e["default"]={name:"Season",components:{Episode:s.a,MonthlyChart:l.a,Spinner:c.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(f.mapActions)(["getSeason","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/seasons/"+this.$route.params.id};this.getSeason(t)}}),computed:{episodes:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID});return e.relationships.episodes.data.map(function(e){var n=e.id;return t.episodes.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.seasons.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},season:function(){var t=this.$store.state;return t.seasons.all.find(function(e){return e.id==t.seasons.currentID})},show:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID});return t.shows.all.find(function(t){return t.id==e.relationships.show.data.id})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(5),i=n.n(r),a=n(1);n.n(a);e["default"]={name:"Settings",components:{Spinner:i.a},created:function(){this.settings||this.loadingRoute(),this.fetchData()},methods:Object.assign({},n.i(a.mapActions)(["clearAll","clearToday","getSettings","patchSettings","refreshAll","refreshNew","setMoviesFolder","setShowsFolder","loadingRoute"]),{clearHistory:function(){var t={url:"/api/settings/history?all"};this.clearAll(t)},clearHistoryToday:function(){var t={url:"/api/settings/history"};this.clearToday(t)},fetchData:function(){var t={url:"/api/settings"};this.getSettings(t)},patchFolders:function(){var t={url:"/api/settings",json:{data:this.settings}};this.patchSettings(t)},refreshAllFolders:function(){var t={url:"/api/settings/folders?all"};this.refreshAll(t)},refreshNewFolders:function(){var t={url:"/api/settings/folders"};this.refreshNew(t)}}),computed:{loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},settings:function(){return this.$store.state.settings.current}}}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(11)),s=n.n(o),u=n(5),l=n.n(u),d=n(1);n.n(d);e["default"]={name:"Show",components:{MonthlyChart:s.a,Spinner:l.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(d.mapActions)(["getShow","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/shows/"+this.$route.params.id};this.getShow(t)}}),computed:{genres:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.genres.data.map(function(e){var n=e.id;return t.genres.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.shows.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},seasons:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return _.chain(e.relationships.seasons.data.map(function(e){var n=e.id;return t.seasons.all.find(function(t){return t.id==n})})).orderBy(["attributes.season_number"],["asc"]).value()},show:function(){var t=this.$store.state;return t.shows.all.find(function(e){return e.id==t.shows.currentID})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowBackdrop",props:["show","backdrop"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectBackdrop:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{backdrop_path:this.backdrop.attributes.file_path}}}};this.patchShow(t)}}}),computed:{isActive:function(){var t=this.show.attributes.backdrop_url,e=this.backdrop.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";e["default"]={name:"ShowCard",props:["show"],computed:{link:function(){return 0==this.show.attributes.tmdb_show_id?"/shows/"+this.show.id+"/edit":"/shows/"+this.show.id}}}},function(t,e,n){"use strict";var r=n(249),i=n.n(r),a=n(252),o=n.n(a),s=n(253),u=n.n(s),l=n(5),d=n.n(l),c=n(1);n.n(c);e["default"]={name:"ShowEdit",components:{ShowBackdrop:i.a,ShowPoster:o.a,ShowResult:u.a,Spinner:d.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(c.mapActions)(["getShowWithResults","loadingRoute","patchShow"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/shows/"+this.$route.params.id+"?include=backdrops,posters,results"};this.getShowWithResults(t)},patchName:_.debounce(function(t){var e={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{name:t.target.value}}}};this.patchShow(e)},500)}),computed:{backdrops:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.backdrops.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},isResolved:function(){return 0!=this.show.attributes.tmdb_show_id},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},posters:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.posters.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},results:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.results.data.map(function(e){var n=e.id;return t.search.shows.find(function(t){return t.id==n})})},show:function(){var t=this.$store.state;return t.shows.all.find(function(e){return e.id==t.shows.currentID})}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowPoster",props:["show","poster"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectPoster:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{poster_path:this.poster.attributes.file_path}}}};this.patchShow(t)}}}),computed:{isActive:function(){var t=this.show.attributes.poster_url,e=this.poster.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowResult",props:["show","result"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectResult:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{tmdb_show_id:this.result.id}}},redirect:"/shows/"+this.show.id};this.patchShow(t)}}}),computed:{isActive:function(){return this.result.id==this.show.attributes.tmdb_show_id}}}},function(t,e,n){"use strict";var r=n(125),i=n.n(r),a=n(250),o=n.n(a),s=n(5),u=n.n(s),l=n(1);n.n(l);e["default"]={name:"Shows",components:{MugenScroll:i.a,ShowCard:o.a,Spinner:u.a},created:function(){0==this.shows.length&&this.loadingRoute(),this.clearGenresFilter(),this.fetchData()},watch:{links:function(){var t=this;clearTimeout(t.loadingTimeout),t.loadingTimeout=setTimeout(function(){t.links&&t.links.next&&!t.loading&&t.fetchData(t.links.next)},1e3)}},methods:Object.assign({},n.i(l.mapActions)(["clearFilters","clearGenresFilter","getShows","filterGenres","filterKeywords","filterOrder","loadingRoute"]),{fetchData:_.debounce(function(t){t||(t="/api/shows"+this.$store.state.filters.queryShows);var e={url:t};this.getShows(e)},250),filterShowGenres:function(t){this.filterGenres(t),this.fetchData()},filterShowKeywords:function(t){this.filterKeywords(t),this.fetchData()},filterShowOrder:function(t){this.filterOrder(t),this.fetchData()},filterReset:function(){this.clearFilters(),this.fetchData()},loadMore:function(){!this.links.next||this.loading||this._inactive||this.fetchData(this.links.next)}}),computed:{genres:function(){return _.chain(this.$store.state.genres.all).sortBy("attributes.name").filter(function(t){return t.attributes.total_movies>0}).value()},keywords:function(){return this.$store.state.filters.keywords},links:function(){return this.$store.state.shows.links},loading:function(){return this.$store.state.shows.loading},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},selectedGenre:function(){return this.$store.state.filters.selectedGenre},selectedOrder:function(){return this.$store.state.filters.selectedOrder},shows:function(){var t=this.$store.state,e=t.filters.keywords,n=t.filters.selectedGenre,r=t.filters.attributes.shows,i=t.filters.direction;return _.chain(t.shows.all).filter(function(t){var n=new RegExp(e,"i");return n.test(t.attributes.name)}).filter(function(t){var e=t.relationships.genres.data.find(function(t){return t.id==n});return""==n||null!=e}).orderBy([r],[i]).value()},orders:function(){return this.$store.state.filters.orders}}}},function(t,e,n){"use strict";e["default"]={name:"Spinner"}},function(t,e,n){"use strict";var r=n(1),i=(n.n(r),300),a=3e3,o=300;e["default"]={name:"Toast",replace:!0,watch:{toast:function(t){this.addToQueue(t)}},computed:Object.assign({},n.i(r.mapState)({toast:function(t){return t.toasts.current}}),{toastContext:function(){return this.context?"toast-"+this.context:""}}),data:function(){return{activeToast:!1,activeProgressBar:!1,animation:null,animationInProgress:!1,queue:[],style:{transition:"width 0s"}}},props:{context:{type:String,"default":""},duration:{type:Number,"default":a},message:{type:String,"default":"Done!"},onAjaxErrors:{type:Boolean,"default":!1},position:{type:String,"default":"bottom left"},hideProgress:{type:Boolean,"default":!1},debounce:{type:Number,"default":i}},methods:{pause:function(){this.activeProgressBar=!1,clearTimeout(this.animation),this.style.transition="width 0.1s"},clear:function(){var t=this;this._toastAnimation=setTimeout(function(){t.activeProgressBar=!1,t.animationInProgress=!1,t.style.transition="width 0s",t.activeToast=!1,clearTimeout(t.animation),t.queue.length>0&&(t._toastAnimation=setTimeout(function(){var e=t.queue.shift();t.show(e)},0))},o)},animate:function(){this.style.transition="width "+this.duration/1e3+"s",this.activeProgressBar=!0,this.animation=setTimeout(this.clear,this.duration)},show:function(t){var e=this;this.context="default",this.animationInProgress=!0,this.message=t.message||this.message,this.context=t.context||this.context,this.debounce=t.debounce||this.debounce,this.duration=t.duration||this.duration,this.hideProgress=t.hideProgress||this.hideProgress,this.position=t.position||this.position,t.success&&(this.context="success",this.message=t.success),t.info&&(this.context="info",this.message=t.info),t.warning&&(this.context="warning",this.message=t.warning),t.error&&(this.context="danger",this.message=t.error),setTimeout(function(){e.activeToast=!0,e.animate()},100)},addToQueue:function(t){var e=this;this.animationInProgress||this.queue.length>0?this.queue.push(t):setTimeout(function(){e.show(t)},this.debounce)}},events:{"end::ajax":function(t){this.onAjaxErrors&&t&&t.error&&this.addToQueue(t)},"show::toast":function(t){this.addToQueue(t)}},destroyed:function(){clearTimeout(this._animation),clearTimeout(this._toastAnimation)}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{currentID:null,all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.b]=function(t,e){t.currentID=e},r[a.c]=function(t,e){n.i(i.a)(t.all,e,"episodes")},r[a.d]=function(t,e){n.i(i.b)(t.all,e,"episodes")},r)}},function(t,e,n){"use strict";function r(t){var e=t.orders.find(function(e){return e.id==t.selectedOrder});t.attributes.movies="attributes."+e.movies,t.attributes.shows="attributes."+e.shows,t.direction=e.direction,i(t,e),a(t,e)}function i(t,e){var n=e.prefix+e.movies;t.queryMovies=o(t,n)}function a(t,e){var n=e.prefix+e.shows;t.queryShows=o(t,n)}function o(t,e){var n=[{key:"keywords",value:t.keywords},{key:"sort",value:e},{key:"genre",value:t.selectedGenre}],r="";return n.forEach(function(e){s(t,e)&&(r+=encodeURIComponent(e.key)+"="+encodeURIComponent(e.value)+"&")}),r.length>0&&(r=r.substring(0,r.length-1),r="?"+r),r}function s(t,e){return("sort"!=e.key||"a-z"!=t.selectedOrder)&&""!=e.value}var u,l=n(3);e.a={state:{selectedGenre:"",keywords:"",selectedOrder:"a-z",attributes:{movies:"attributes.title",shows:"attributes.name"},queryMovies:"",queryShows:"",direction:"asc",orders:[{id:"a-z",name:"Title: A-Z",prefix:"",movies:"title",shows:"name",direction:"asc"},{id:"z-a",name:"Title: Z-A",prefix:"-",movies:"title",shows:"name",direction:"desc"},{id:"newest",name:"Year: Newest",prefix:"-",movies:"release_date",shows:"first_air_date",direction:"desc"},{id:"oldest",name:"Year: Oldest",prefix:"",movies:"release_date",shows:"first_air_date",direction:"asc"}]},mutations:(u={},u[l.e]=function(t){t.selectedGenre="",t.keywords="",t.selectedOrder="a-z",r(t)},u[l.f]=function(t){t.selectedGenre="",r(t)},u[l.g]=function(t,e){t.selectedGenre=e,r(t)},u[l.h]=function(t,e){t.keywords=e,r(t)},u[l.i]=function(t,e){t.selectedOrder=e,r(t)},u),actions:{clearFilters:function(t){t.commit(l.e)},clearGenresFilter:function(t){t.commit(l.f)},filterGenres:function(t,e){t.commit(l.g,e.target.value)},filterKeywords:function(t,e){t.commit(l.h,e.target.value)},filterOrder:function(t,e){t.commit(l.i,e.target.value)}}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.j]=function(t,e){n.i(i.b)(t.all,e,"genres")},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.k]=function(t,e){n.i(i.b)(t.all,e,"images")},r)}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{showMenu:!1,showSearch:!1,loadingRouteData:!0},mutations:(r={},r[i.l]=function(t){t.loadingRouteData=!0},r[i.m]=function(t){t.loadingRouteData=!1},r[i.n]=function(t){t.showMenu=!1},r[i.o]=function(t){t.showMenu=!t.showMenu},r[i.p]=function(t){t.showSearch=!t.showSearch},r),actions:{loadingRoute:function(t){t.commit(i.l)},loadedRoute:function(t){t.commit(i.m)},hideMenu:function(t){t.commit(i.n)},toggleMenu:function(t){t.commit(i.o)},toggleSearch:function(t){t.commit(i.p)}}}},function(t,e,n){"use strict";function r(t,e){e.relationships&&(t.relationships.backdrops=e.relationships.backdrops?e.relationships.backdrops:t.relationships.backdrops,t.relationships.genres=e.relationships.genres?e.relationships.genres:t.relationships.genres,t.relationships.posters=e.relationships.posters?e.relationships.posters:t.relationships.posters,t.relationships.results=e.relationships.results?e.relationships.results:t.relationships.results,t.relationships.views=e.relationships.views?e.relationships.views:t.relationships.views)}var i,a=n(4),o=n(3);e.a={state:{currentID:null,loading:!1,all:[],links:[]},mutations:(i={},i[o.a]=function(t){t.all=[]},i[o.q]=function(t){t.loading=!0},i[o.r]=function(t){t.loading=!1},i[o.s]=function(t,e){t.currentID=e},i[o.t]=function(t,e){t.links=e},i[o.u]=function(t,e){n.i(a.a)(t.all,e,"movies",r)},i[o.v]=function(t,e){n.i(a.b)(t.all,e,"movies")},i),actions:{getMovies:function(t,e){t.commit(o.q),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.v,n.data),t.commit(o.t,n.links),t.commit(o.j,n.included),t.commit(o.r),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getMovie:function(t,e){t.commit(o.s,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.u,n.data),t.commit(o.j,n.included),t.commit(o.x,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getMovieWithResults:function(t,e){t.commit(o.s,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.u,n.data),t.commit(o.k,n.included),t.commit(o.y,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},patchMovie:function(t,e){e.redirect&&t.commit(o.w,{success:"Updating Movie"}),axios.patch(e.url,e.json).then(function(n){var r=n.data;t.commit(o.u,r.data),e.redirect&&window.vueRouter.push(e.redirect)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{movies:[],shows:[]},mutations:(r={},r[a.a]=function(t){t.movies=[],t.shows=[]},r[a.y]=function(t,e){n.i(i.b)(t.movies,e,"movie-results")},r[a.z]=function(t,e){n.i(i.b)(t.shows,e,"show-results")},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{currentID:null,all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.A]=function(t,e){t.currentID=e},r[a.B]=function(t,e){n.i(i.a)(t.all,e,"seasons")},r[a.C]=function(t,e){n.i(i.b)(t.all,e,"seasons")},r),actions:{getSeason:function(t,e){t.commit(a.A,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(a.B,n.data),t.commit(a.d,n.included),t.commit(a.D,n.included),t.commit(a.j,n.included),t.commit(a.E,n.included),t.commit(a.m)})["catch"](function(e){t.commit(a.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{current:null},mutations:(r={},r[i.F]=function(t,e){t.current=e},r[i.G]=function(t,e){for(var n in e)t.current.attributes[n]=e[n]},r),actions:{clearAll:function(t,e){axios["delete"](e.url).then(function(e){t.commit(i.w,{success:"Clearing All History"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},clearToday:function(t,e){axios["delete"](e.url).then(function(e){t.commit(i.w,{success:"Clearing Today's History"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},getSettings:function(t,e){axios.get(e.url).then(function(e){var n=e.data;t.commit(i.F,n.data),t.commit(i.m)})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},patchSettings:function(t,e){axios.patch(e.url,e.json).then(function(e){var n=e.data;t.commit(i.F,n.data),t.commit(i.a),t.commit(i.w,{success:"Updating Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},refreshAll:function(t,e){axios.patch(e.url).then(function(e){t.commit(i.w,{success:"Refreshing All Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},refreshNew:function(t,e){axios.patch(e.url).then(function(e){t.commit(i.w,{success:"Refreshing New Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},setMoviesFolder:function(t,e){var n={movies_folder:e.target.value};t.commit(i.G,n)},setShowsFolder:function(t,e){var n={shows_folder:e.target.value};t.commit(i.G,n)}}}},function(t,e,n){"use strict";function r(t,e){e.relationships&&(t.relationships.backdrops=e.relationships.backdrops?e.relationships.backdrops:t.relationships.backdrops,t.relationships.genres=e.relationships.genres?e.relationships.genres:t.relationships.genres,t.relationships.posters=e.relationships.posters?e.relationships.posters:t.relationships.posters,t.relationships.results=e.relationships.results?e.relationships.results:t.relationships.results,t.relationships.seasons=e.relationships.seasons?e.relationships.seasons:t.relationships.seasons,t.relationships.views=e.relationships.views?e.relationships.views:t.relationships.views)}var i,a=n(4),o=n(3);e.a={state:{currentID:null,loading:!1,all:[],links:[]},mutations:(i={},i[o.a]=function(t){t.all=[]},i[o.H]=function(t){t.loading=!0},i[o.I]=function(t){t.loading=!1},i[o.J]=function(t,e){t.currentID=e},i[o.K]=function(t,e){t.links=e},i[o.L]=function(t,e){n.i(a.a)(t.all,e,"shows",r)},i[o.D]=function(t,e){n.i(a.b)(t.all,e,"shows")},i),actions:{getShows:function(t,e){t.commit(o.H),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.D,n.data),t.commit(o.K,n.links),t.commit(o.j,n.included),t.commit(o.I),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getShow:function(t,e){t.commit(o.J,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.L,n.data),t.commit(o.j,n.included),t.commit(o.C,n.included),t.commit(o.M,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getShowWithResults:function(t,e){t.commit(o.J,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.L,n.data),t.commit(o.j,n.included),t.commit(o.C,n.included), +t.commit(o.k,n.included),t.commit(o.z,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},patchShow:function(t,e){e.redirect&&t.commit(o.w,{success:"Updating Show"}),axios.patch(e.url,e.json).then(function(n){var r=n.data;t.commit(o.L,r.data),e.redirect&&window.vueRouter.push(e.redirect)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{current:null},mutations:(r={},r[i.w]=function(t,e){t.current=e},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{movies:[],seasons:[],shows:[]},mutations:(r={},r[a.a]=function(t){t.movies=[],t.seasons=[],t.shows=[]},r[a.x]=function(t,e){n.i(i.b)(t.movies,e,"movie-views")},r[a.E]=function(t,e){n.i(i.b)(t.seasons,e,"season-views")},r[a.M]=function(t,e){n.i(i.b)(t.shows,e,"show-views")},r)}},function(t,e,n){var r=n(210)();n(208)(r),n(204)(r),n(207)(r),n(203)(r),n(205)(r),n(206)(r),n(211)(r),n(215)(r),n(213)(r),n(216)(r),n(214)(r),n(217)(r),n(212)(r),n(209)(r),n(218)(r),n(219)(r),n(220)(r),n(221)(r),n(222)(r),n(225)(r),n(223)(r),n(224)(r),n(226)(r),n(227)(r),n(228)(r),n(197)(r),n(198)(r),n(199)(r),n(200)(r),n(201)(r),n(202)(r),n(190)(r),n(191)(r),n(192)(r),n(193)(r),n(194)(r),n(195)(r),n(196)(r),window.Chart=t.exports=r},function(t,e){"use strict";t.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Radar=function(e,n){return n.type="radar",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){var e={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(e,n){t.DatasetController.prototype.initialize.call(this,e,n),this.getMeta().bar=!0},getBarCount:function(){var t=this,n=0;return e.each(t.chart.data.datasets,function(e,r){var i=t.chart.getDatasetMeta(r);i.bar&&t.chart.isDatasetVisible(r)&&++n},t),n},update:function(t){var n=this;e.each(n.getMeta().data,function(e,r){n.updateElement(e,r,t)},n)},updateElement:function(t,n,r){var i=this,a=i.getMeta(),o=i.getScaleForId(a.xAxisID),s=i.getScaleForId(a.yAxisID),u=s.getBasePixel(),l=i.chart.options.elements.rectangle,d=t.custom||{},c=i.getDataset();t._xScale=o,t._yScale=s,t._datasetIndex=i.index,t._index=n;var f=i.getRuler(n);t._model={x:i.calculateBarX(n,i.index,f),y:r?u:i.calculateBarY(n,i.index),label:i.chart.data.labels[n],datasetLabel:c.label,base:r?u:i.calculateBarBase(i.index,n),width:i.calculateBarWidth(f),backgroundColor:d.backgroundColor?d.backgroundColor:e.getValueAtIndexOrDefault(c.backgroundColor,n,l.backgroundColor),borderSkipped:d.borderSkipped?d.borderSkipped:l.borderSkipped,borderColor:d.borderColor?d.borderColor:e.getValueAtIndexOrDefault(c.borderColor,n,l.borderColor),borderWidth:d.borderWidth?d.borderWidth:e.getValueAtIndexOrDefault(c.borderWidth,n,l.borderWidth)},t.pivot()},calculateBarBase:function(t,e){var n=this,r=n.getMeta(),i=n.getScaleForId(r.yAxisID),a=0;if(i.options.stacked){for(var o=n.chart,s=o.data.datasets,u=Number(s[t].data[e]),l=0;l0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(r,i){var a=t.getDatasetMeta(0),o=n.datasets[0],s=a.data[i],u=s&&s.custom||{},l=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=u.backgroundColor?u.backgroundColor:l(o.backgroundColor,i,d.backgroundColor),f=u.borderColor?u.borderColor:l(o.borderColor,i,d.borderColor),h=u.borderWidth?u.borderWidth:l(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,r,i,a=e.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n=Math.PI?-1:_<-Math.PI?1:0);var m=_+h,p={x:Math.cos(_),y:Math.sin(_)},v={x:Math.cos(m),y:Math.sin(m)},g=_<=0&&0<=m||_<=2*Math.PI&&2*Math.PI<=m,y=_<=.5*Math.PI&&.5*Math.PI<=m||_<=2.5*Math.PI&&2.5*Math.PI<=m,M=_<=-Math.PI&&-Math.PI<=m||_<=Math.PI&&Math.PI<=m,b=_<=.5*-Math.PI&&.5*-Math.PI<=m||_<=1.5*Math.PI&&1.5*Math.PI<=m,L=f/100,w={x:M?-1:Math.min(p.x*(p.x<0?1:L),v.x*(v.x<0?1:L)),y:b?-1:Math.min(p.y*(p.y<0?1:L),v.y*(v.y<0?1:L))},k={x:g?1:Math.max(p.x*(p.x>0?1:L),v.x*(v.x>0?1:L)),y:y?1:Math.max(p.y*(p.y>0?1:L),v.y*(v.y>0?1:L))},Y={width:.5*(k.x-w.x),height:.5*(k.y-w.y)};l=Math.min(s/Y.width,u/Y.height),d={x:(k.x+w.x)*-.5,y:(k.y+w.y)*-.5}}r.borderWidth=n.getMaxBorderWidth(c.data),r.outerRadius=Math.max((l-r.borderWidth)/2,0),r.innerRadius=Math.max(f?r.outerRadius/100*f:1,0),r.radiusLength=(r.outerRadius-r.innerRadius)/r.getVisibleDatasetCount(),r.offsetX=d.x*r.outerRadius,r.offsetY=d.y*r.outerRadius,c.total=n.calculateTotal(),n.outerRadius=r.outerRadius-r.radiusLength*n.getRingIndex(n.index),n.innerRadius=n.outerRadius-r.radiusLength,e.each(c.data,function(e,r){n.updateElement(e,r,t)})},updateElement:function(t,n,r){var i=this,a=i.chart,o=a.chartArea,s=a.options,u=s.animation,l=(o.left+o.right)/2,d=(o.top+o.bottom)/2,c=s.rotation,f=s.rotation,h=i.getDataset(),_=r&&u.animateRotate?0:t.hidden?0:i.calculateCircumference(h.data[n])*(s.circumference/(2*Math.PI)),m=r&&u.animateScale?0:i.innerRadius,p=r&&u.animateScale?0:i.outerRadius,v=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:i.index,_index:n,_model:{x:l+a.offsetX,y:d+a.offsetY,startAngle:c,endAngle:f,circumference:_,outerRadius:p,innerRadius:m,label:v(h.label,n,a.data.labels[n])}});var g=t._model;this.removeHoverStyle(t),r&&u.animateRotate||(0===n?g.startAngle=s.rotation:g.startAngle=i.getMeta().data[n-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,n=this.getDataset(),r=this.getMeta(),i=0;return e.each(r.data,function(e,r){t=n.data[r],isNaN(t)||e.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,r=0,i=this.index,a=t.length,o=0;or?e:r,r=n>r?n:r;return r}})}},function(t,e){"use strict";t.exports=function(t){function e(t,e){return n.getValueOrDefault(t.showLine,e.showLines)}var n=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,update:function(t){var r,i,a,o=this,s=o.getMeta(),u=s.dataset,l=s.data||[],d=o.chart.options,c=d.elements.line,f=o.getScaleForId(s.yAxisID),h=o.getDataset(),_=e(h,d);for(_&&(a=u.custom||{},void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),u._scale=f,u._datasetIndex=o.index,u._children=l,u._model={spanGaps:h.spanGaps?h.spanGaps:d.spanGaps,tension:a.tension?a.tension:n.getValueOrDefault(h.lineTension,c.tension),backgroundColor:a.backgroundColor?a.backgroundColor:h.backgroundColor||c.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:h.borderWidth||c.borderWidth,borderColor:a.borderColor?a.borderColor:h.borderColor||c.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:h.borderCapStyle||c.borderCapStyle,borderDash:a.borderDash?a.borderDash:h.borderDash||c.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:h.borderDashOffset||c.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:h.borderJoinStyle||c.borderJoinStyle,fill:a.fill?a.fill:void 0!==h.fill?h.fill:c.fill,steppedLine:a.steppedLine?a.steppedLine:n.getValueOrDefault(h.steppedLine,c.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:n.getValueOrDefault(h.cubicInterpolationMode,c.cubicInterpolationMode),scaleTop:f.top,scaleBottom:f.bottom,scaleZero:f.getBasePixel()},u.pivot()),r=0,i=l.length;r');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(r,i){var a=t.getDatasetMeta(0),o=n.datasets[0],s=a.data[i],u=s.custom||{},l=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=u.backgroundColor?u.backgroundColor:l(o.backgroundColor,i,d.backgroundColor),f=u.borderColor?u.borderColor:l(o.borderColor,i,d.borderColor),h=u.borderWidth?u.borderWidth:l(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,r,i,a=e.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,update:function(t){var n=this,r=n.getMeta(),i=r.dataset,a=r.data,o=i.custom||{},s=n.getDataset(),u=n.chart.options.elements.line,l=n.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),e.extend(r.dataset,{_datasetIndex:n.index,_children:a,_loop:!0,_model:{tension:o.tension?o.tension:e.getValueOrDefault(s.lineTension,u.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||u.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||u.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||u.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:u.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||u.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||u.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||u.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||u.borderJoinStyle,scaleTop:l.top,scaleBottom:l.bottom,scaleZero:l.getBasePosition()}}),r.dataset.pivot(),e.each(a,function(e,r){n.updateElement(e,r,t)},n),n.updateBezierControlPoints()},updateElement:function(t,n,r){var i=this,a=t.custom||{},o=i.getDataset(),s=i.chart.scale,u=i.chart.options.elements.point,l=s.getPointPositionForValue(n,o.data[n]);e.extend(t,{_datasetIndex:i.index,_index:n,_scale:s,_model:{x:r?s.xCenter:l.x,y:r?s.yCenter:l.y,tension:a.tension?a.tension:e.getValueOrDefault(o.tension,i.chart.options.elements.line.tension),radius:a.radius?a.radius:e.getValueAtIndexOrDefault(o.pointRadius,n,u.radius),backgroundColor:a.backgroundColor?a.backgroundColor:e.getValueAtIndexOrDefault(o.pointBackgroundColor,n,u.backgroundColor),borderColor:a.borderColor?a.borderColor:e.getValueAtIndexOrDefault(o.pointBorderColor,n,u.borderColor),borderWidth:a.borderWidth?a.borderWidth:e.getValueAtIndexOrDefault(o.pointBorderWidth,n,u.borderWidth),pointStyle:a.pointStyle?a.pointStyle:e.getValueAtIndexOrDefault(o.pointStyle,n,u.pointStyle),hitRadius:a.hitRadius?a.hitRadius:e.getValueAtIndexOrDefault(o.hitRadius,n,u.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,n=this.getMeta();e.each(n.data,function(r,i){var a=r._model,o=e.splineCurve(e.previousItem(n.data,i,!0)._model,a,e.nextItem(n.data,i,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),r.pivot()})},draw:function(t){var n=this.getMeta(),r=t||1;e.each(n.data,function(t){t.transition(r)}),n.dataset.transition(r).draw(),e.each(n.data,function(t){t.draw()})},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],r=t.custom||{},i=t._index,a=t._model;a.radius=r.hoverRadius?r.hoverRadius:e.getValueAtIndexOrDefault(n.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),a.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:e.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,i,e.getHoverColor(a.backgroundColor)),a.borderColor=r.hoverBorderColor?r.hoverBorderColor:e.getValueAtIndexOrDefault(n.pointHoverBorderColor,i,e.getHoverColor(a.borderColor)),a.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:e.getValueAtIndexOrDefault(n.pointHoverBorderWidth,i,a.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],r=t.custom||{},i=t._index,a=t._model,o=this.chart.options.elements.point;a.radius=r.radius?r.radius:e.getValueAtIndexOrDefault(n.radius,i,o.radius),a.backgroundColor=r.backgroundColor?r.backgroundColor:e.getValueAtIndexOrDefault(n.pointBackgroundColor,i,o.backgroundColor),a.borderColor=r.borderColor?r.borderColor:e.getValueAtIndexOrDefault(n.pointBorderColor,i,o.borderColor),a.borderWidth=r.borderWidth?r.borderWidth:e.getValueAtIndexOrDefault(n.pointBorderWidth,i,o.borderWidth)}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,r){var i=this;r||(t.animating=!0);for(var a=0;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var r=0;rt.animations[r].animationObject.numSteps&&(t.animations[r].animationObject.currentStep=t.animations[r].animationObject.numSteps),t.animations[r].animationObject.render(t.animations[r].chartInstance,t.animations[r].animationObject),t.animations[r].animationObject.onAnimationProgress&&t.animations[r].animationObject.onAnimationProgress.call&&t.animations[r].animationObject.onAnimationProgress.call(t.animations[r].chartInstance,t.animations[r]),t.animations[r].animationObject.currentStep===t.animations[r].animationObject.numSteps?(t.animations[r].animationObject.onAnimationComplete&&t.animations[r].animationObject.onAnimationComplete.call&&t.animations[r].animationObject.onAnimationComplete.call(t.animations[r].chartInstance,t.animations[r]),t.animations[r].chartInstance.animating=!1,t.animations.splice(r,1)):++r;var i=Date.now(),a=(i-e)/t.frameDuration;t.dropFrames+=a,t.animations.length>0&&t.requestAnimationFrame()}}}},function(t,e){"use strict";t.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(t,e,n,r,i){var a,o,s,u,l,d;if("object"==typeof e&&(a=e.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return void t.drawImage(e,r-e.width/2,i-e.height/2);if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(r,i,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),o=3*n/Math.sqrt(3),l=o*Math.sqrt(3)/2,t.moveTo(r-o/2,i+l/3),t.lineTo(r+o/2,i+l/3),t.lineTo(r,i-2*l/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(r-d,i-d,2*d,2*d),t.strokeRect(r-d,i-d,2*d,2*d);break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(r-d,i),t.lineTo(r,i+d),t.lineTo(r+d,i),t.lineTo(r,i-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(r,i+n),t.lineTo(r,i-n),t.moveTo(r-n,i),t.lineTo(r+n,i),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r-s,i+u),t.lineTo(r+s,i-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(r,i+n),t.lineTo(r,i-n),t.moveTo(r-n,i),t.lineTo(r+n,i),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r-s,i+u),t.lineTo(r+s,i-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(r-n,i),t.lineTo(r+n,i),t.closePath();break;case"dash":t.beginPath(),t.moveTo(r,i),t.lineTo(r+n,i),t.closePath()}t.stroke()}}}},function(t,e){"use strict";t.exports=function(t){function e(t,e){var n=o.getStyle(t,e),r=n&&n.match(/(\d+)px/);return r?Number(r[1]):void 0}function n(t,n){var r=t.style,i=t.getAttribute("height"),a=t.getAttribute("width");if(t._chartjs={initial:{height:i,width:a,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===a||""===a){var o=e(t,"width");void 0!==o&&(t.width=o)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(n.options.aspectRatio||2);else{var s=e(t,"height");void 0!==o&&(t.height=s)}return t}function r(t){if(t._chartjs){var e=t._chartjs.initial;["height","width"].forEach(function(n){var r=e[n];void 0===r||null===r?t.removeAttribute(n):t.setAttribute(n,r)}),o.each(e.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t._chartjs}}function i(t,e){if("string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t instanceof HTMLCanvasElement){var r=t.getContext&&t.getContext("2d");if(r instanceof CanvasRenderingContext2D)return n(t,e),r}return null}function a(e){e=e||{};var n=e.data=e.data||{};return n.datasets=n.datasets||[],n.labels=n.labels||[],e.options=o.configMerge(t.defaults.global,t.defaults[e.type],e.options||{}),e}var o=t.helpers;t.types={},t.instances={},t.controllers={},t.Controller=function(e,n,r){var s=this;n=a(n);var u=i(e,n),l=u&&u.canvas,d=l&&l.height,c=l&&l.width;return r.ctx=u,r.canvas=l,r.config=n,r.width=c,r.height=d,r.aspectRatio=d?c/d:null,s.id=o.uid(),s.chart=r,s.config=n,s.options=n.options,s._bufferedRender=!1,t.instances[s.id]=s,Object.defineProperty(s,"data",{get:function(){return s.config.data}}),u&&l?(o.retinaScale(r),s.options.responsive&&(o.addResizeListener(l.parentNode,function(){s.resize()}),s.resize(!0)),s.initialize(),s):s},o.extend(t.Controller.prototype,{initialize:function(){var e=this;return t.plugins.notify("beforeInit",[e]),e.bindEvents(),e.ensureScalesHaveIDs(),e.buildOrUpdateControllers(),e.buildScales(),e.updateLayout(),e.resetElements(),e.initToolTip(),e.update(),t.plugins.notify("afterInit",[e]),e},clear:function(){return o.clear(this.chart),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(e){var n=this,r=n.chart,i=n.options,a=r.canvas,s=i.maintainAspectRatio&&r.aspectRatio||null,u=Math.floor(o.getMaximumWidth(a)),l=Math.floor(s?u/s:o.getMaximumHeight(a));if(r.width!==u||r.height!==l){a.width=r.width=u,a.height=r.height=l,a.style.width=u+"px",a.style.height=l+"px",o.retinaScale(r);var d={width:u,height:l};t.plugins.notify("resize",[n,d]),n.options.onResize&&n.options.onResize(n,d),e||(n.stop(),n.update(n.options.responsiveAnimationDuration))}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;o.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),o.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,n=e.options,r=e.scales={},i=[];n.scales&&(i=i.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear"}}))),n.scale&&i.push({options:n.scale,dtype:"radialLinear",isDefault:!0}),o.each(i,function(n){var i=n.options,a=o.getValueOrDefault(i.type,n.dtype),s=t.scaleService.getScaleConstructor(a);if(s){var u=new s({id:i.id,options:i,ctx:e.chart.ctx,chart:e});r[u.id]=u,n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},updateLayout:function(){t.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var e=this,n=[],r=[];if(o.each(e.data.datasets,function(i,a){var o=e.getDatasetMeta(a);o.type||(o.type=i.type||e.config.type),n.push(o.type),o.controller?o.controller.updateIndex(a):(o.controller=new t.controllers[o.type](e,a),r.push(o.controller))},e),n.length>1)for(var i=1;i0||(i.forEach(function(e){delete t[e]}),delete t._chartjs)}}var r=t.helpers,i=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},r.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,r=n.getMeta(),i=n.getDataset().data||[],a=r.data;for(t=0,e=i.length;tr&&t.insertElements(r,i-r)},insertElements:function(t,e){for(var n=0;n=0;i--)e.call(n,t[i],i);else for(i=0;i=r[n].length||!r[n][i].type?r[n].push(a.configMerge(s,e)):e.type&&e.type!==r[n][i].type?r[n][i]=a.configMerge(r[n][i],s,e):r[n][i]=a.configMerge(r[n][i],e)}):(r[n]=[],a.each(e,function(e){var i=a.getValueOrDefault(e.type,"xAxes"===n?"category":"linear");r[n].push(a.configMerge(t.scaleService.getScaleDefaults(i),e))})):r.hasOwnProperty(n)&&"object"==typeof r[n]&&null!==r[n]&&"object"==typeof e?r[n]=a.configMerge(r[n],e):r[n]=e}),r},a.getValueAtIndexOrDefault=function(t,e,n){return void 0===t||null===t?n:a.isArray(t)?e=0;r--){var i=t[r];if(e(i))return i}},a.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=e.prototype,n.prototype=new r,n.extend=a.inherits,t&&a.extend(n.prototype,t),n.__super__=e.prototype,n},a.noop=function(){},a.uid=function(){var t=0;return function(){return t++}}(),a.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a.almostEquals=function(t,e,n){return Math.abs(t-e)0?1:-1},a.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},a.toRadians=function(t){return t*(Math.PI/180)},a.toDegrees=function(t){return t*(180/Math.PI)},a.getAngleFromPoint=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:i}},a.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.aliasPixel=function(t){return t%2===0?0:.5},a.splineCurve=function(t,e,n,r){var i=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),u=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),l=s/(s+u),d=u/(s+u);l=isNaN(l)?0:l,d=isNaN(d)?0:d;var c=r*l,f=r*d;return{previous:{x:a.x-c*(o.x-i.x),y:a.y-c*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}},a.EPSILON=Number.EPSILON||1e-14,a.splineCurveMonotone=function(t){var e,n,r,i,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,i=e0?o[e-1]:null,i=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},a.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},a.niceNum=function(t,e){var n,r=Math.floor(a.log10(t)),i=t/Math.pow(10,r);return n=e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,n*Math.pow(10,r)};var o=a.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===(t/=1)?1:(n||(n=.3),r0?(n=u[0].clientX,r=u[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(a.getStyle(o,"padding-left")),d=parseFloat(a.getStyle(o,"padding-top")),c=parseFloat(a.getStyle(o,"padding-right")),f=parseFloat(a.getStyle(o,"padding-bottom")),h=s.right-s.left-l-c,_=s.bottom-s.top-d-f;return n=Math.round((n-s.left-l)/h*o.width/e.currentDevicePixelRatio),r=Math.round((r-s.top-d)/_*o.height/e.currentDevicePixelRatio),{x:n,y:r}},a.addEvent=function(t,e,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},a.removeEvent=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=a.noop},a.bindEvents=function(t,e,n){var r=t.events=t.events||{};a.each(e,function(e){r[e]=function(){n.apply(t,arguments)},a.addEvent(t.chart.canvas,e,r[e])})},a.unbindEvents=function(t,e){var n=t.chart.canvas;a.each(e,function(t,e){a.removeEvent(n,e,t)})},a.getConstraintWidth=function(t){return i(t,"max-width","clientWidth")},a.getConstraintHeight=function(t){return i(t,"max-height","clientHeight")},a.getMaximumWidth=function(t){var e=t.parentNode,n=parseInt(a.getStyle(e,"padding-left"),10),r=parseInt(a.getStyle(e,"padding-right"),10),i=e.clientWidth-n-r,o=a.getConstraintWidth(t);return isNaN(o)?i:Math.min(i,o)},a.getMaximumHeight=function(t){var e=t.parentNode,n=parseInt(a.getStyle(e,"padding-top"),10),r=parseInt(a.getStyle(e,"padding-bottom"),10),i=e.clientHeight-n-r,o=a.getConstraintHeight(t);return isNaN(o)?i:Math.min(i,o)},a.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},a.retinaScale=function(t){var e=t.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==e){var n=t.canvas,r=t.height,i=t.width;n.height=r*e,n.width=i*e,t.ctx.scale(e,e),n.style.height=r+"px",n.style.width=i+"px"}},a.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},a.fontString=function(t,e,n){return e+" "+t+"px "+n},a.longestText=function(t,e,n,r){r=r||{};var i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.font=e;var s=0;a.each(n,function(e){void 0!==e&&null!==e&&a.isArray(e)!==!0?s=a.measureText(t,i,o,s,e):a.isArray(e)&&a.each(e,function(e){void 0===e||null===e||a.isArray(e)||(s=a.measureText(t,i,o,s,e))})});var u=o.length/2;if(u>n.length){for(var l=0;lr&&(r=a),r},a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t)&&t.length>e&&(e=t.length)}),e},a.drawRoundedRectangle=function(t,e,n,r,i,a){t.beginPath(),t.moveTo(e+a,n),t.lineTo(e+r-a,n),t.quadraticCurveTo(e+r,n,e+r,n+a),t.lineTo(e+r,n+i-a),t.quadraticCurveTo(e+r,n+i,e+r-a,n+i),t.lineTo(e+a,n+i),t.quadraticCurveTo(e,n+i,e,n+i-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+a,n),t.closePath()},a.color=function(e){return r?r(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):e},a.addResizeListener=function(t,e){var n=document.createElement("iframe");n.className="chartjs-hidden-iframe",n.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",n.tabIndex=-1;var r=t._chartjs={resizer:n,ticking:!1},i=function(){r.ticking||(r.ticking=!0,a.requestAnimFrame.call(window,function(){if(r.resizer)return r.ticking=!1,e()}))};a.addEvent(n,"load",function(){a.addEvent(n.contentWindow||n,"resize",i),i()}),t.insertBefore(n,t.firstChild)},a.removeResizeListener=function(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}},a.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},a.arrayEquals=function(t,e){var n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n0&&(s=t.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(t,e){return i(t,e,!0)},point:function(t,e){var r=a.getRelativePosition(e,t.chart);return n(t,r)},nearest:function(t,e,n){var i=a.getRelativePosition(e,t.chart),o=r(t,i,n.intersect);return o.length>1&&o.sort(function(t,e){var n=t.getArea(),r=e.getArea(),i=n-r;return 0===i&&(i=t._datasetIndex-e._datasetIndex),i}),o.slice(0,1)},x:function(t,n,r){var i=a.getRelativePosition(n,t.chart),o=[],s=!1;return e(t,function(t){t.inXRange(i.x)&&o.push(t),t.inRange(i.x,i.y)&&(s=!0)}),r.intersect&&!s&&(o=[]),o},y:function(t,n,r){var i=a.getRelativePosition(n,t.chart),o=[],s=!1;return e(t,function(t){t.inYRange(i.y)&&o.push(t),t.inRange(i.x,i.y)&&(s=!0)}),r.intersect&&!s&&(o=[]),o}}}}},function(t,e){"use strict";t.exports=function(){var t=function(e,n){return this.controller=new t.Controller(e,n,this),this.controller};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0, +animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('
    ');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push("
"),e.join("")}}},t.Chart=t,t}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,n,r){function i(t){var e,n=t.isHorizontal();n?(e=t.update(t.options.fullWidth?y:Y,k),D-=e.height):(e=t.update(w,L),Y-=e.width),x.push({horizontal:n,minSize:e,box:t})}function a(t){var n=e.findNextWhere(x,function(e){return e.box===t});if(n)if(t.isHorizontal()){var r={left:T,right:S,top:0,bottom:0};t.update(t.options.fullWidth?y:Y,M/2,r)}else t.update(n.minSize.width,D)}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"},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 a67c844..fd183db 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-3a65e013a6.js" + "js/app.js": "js/app-dcee74d813.js" } \ No newline at end of file diff --git a/public/js/app.js b/public/js/app.js index 5064b71..2f175eb 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -11,10 +11,10 @@ ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4 }function V(t){return Gn.test(t)}function B(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function U(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function J(t,e){return function(n){return t(e(n))}}function G(t,e){for(var n=-1,r=t.length,i=0,a=[];++n>>1,zt=[["ary",kt],["bind",vt],["bindKey",gt],["curry",Mt],["curryRight",bt],["flip",Dt],["partial",Lt],["partialRight",wt],["rearg",Yt]],$t="[object Arguments]",Nt="[object Array]",Vt="[object AsyncFunction]",Bt="[object Boolean]",Ut="[object Date]",Jt="[object DOMException]",Gt="[object Error]",qt="[object Function]",Kt="[object GeneratorFunction]",Zt="[object Map]",Xt="[object Number]",Qt="[object Null]",te="[object Object]",ee="[object Promise]",ne="[object Proxy]",re="[object RegExp]",ie="[object Set]",ae="[object String]",oe="[object Symbol]",se="[object Undefined]",ue="[object WeakMap]",le="[object WeakSet]",de="[object ArrayBuffer]",ce="[object DataView]",fe="[object Float32Array]",he="[object Float64Array]",_e="[object Int8Array]",me="[object Int16Array]",pe="[object Int32Array]",ve="[object Uint8Array]",ge="[object Uint8ClampedArray]",ye="[object Uint16Array]",Me="[object Uint32Array]",be=/\b__p \+= '';/g,Le=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ye=/[&<>"']/g,De=RegExp(ke.source),xe=RegExp(Ye.source),Te=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ce=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ae=/^\w*$/,He=/^\./,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Ee=RegExp(Oe.source),Fe=/^\s+|\s+$/g,Re=/^\s+/,Ie=/\s+$/,We=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,$e=/,? & /,Ne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ue=/\w*$/,Je=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,qe=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,tn=/['\n\r\u2028\u2029\\]/g,en="\\ud800-\\udfff",nn="\\u0300-\\u036f",rn="\\ufe20-\\ufe2f",an="\\u20d0-\\u20ff",on=nn+rn+an,sn="\\u2700-\\u27bf",un="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",dn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cn="\\u2000-\\u206f",fn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hn="A-Z\\xc0-\\xd6\\xd8-\\xde",_n="\\ufe0e\\ufe0f",mn=ln+dn+cn+fn,pn="['’]",vn="["+en+"]",gn="["+mn+"]",yn="["+on+"]",Mn="\\d+",bn="["+sn+"]",Ln="["+un+"]",wn="[^"+en+mn+Mn+sn+un+hn+"]",kn="\\ud83c[\\udffb-\\udfff]",Yn="(?:"+yn+"|"+kn+")",Dn="[^"+en+"]",xn="(?:\\ud83c[\\udde6-\\uddff]){2}",Tn="[\\ud800-\\udbff][\\udc00-\\udfff]",Sn="["+hn+"]",Cn="\\u200d",jn="(?:"+Ln+"|"+wn+")",An="(?:"+Sn+"|"+wn+")",Hn="(?:"+pn+"(?:d|ll|m|re|s|t|ve))?",Pn="(?:"+pn+"(?:D|LL|M|RE|S|T|VE))?",On=Yn+"?",En="["+_n+"]?",Fn="(?:"+Cn+"(?:"+[Dn,xn,Tn].join("|")+")"+En+On+")*",Rn="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",In="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Wn=En+On+Fn,zn="(?:"+[bn,xn,Tn].join("|")+")"+Wn,$n="(?:"+[Dn+yn+"?",yn,xn,Tn,vn].join("|")+")",Nn=RegExp(pn,"g"),Vn=RegExp(yn,"g"),Bn=RegExp(kn+"(?="+kn+")|"+$n+Wn,"g"),Un=RegExp([Sn+"?"+Ln+"+"+Hn+"(?="+[gn,Sn,"$"].join("|")+")",An+"+"+Pn+"(?="+[gn,Sn+jn,"$"].join("|")+")",Sn+"?"+jn+"+"+Hn,Sn+"+"+Pn,In,Rn,Mn,zn].join("|"),"g"),Jn=RegExp("["+Cn+en+on+_n+"]"),Gn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kn=-1,Zn={};Zn[fe]=Zn[he]=Zn[_e]=Zn[me]=Zn[pe]=Zn[ve]=Zn[ge]=Zn[ye]=Zn[Me]=!0,Zn[$t]=Zn[Nt]=Zn[de]=Zn[Bt]=Zn[ce]=Zn[Ut]=Zn[Gt]=Zn[qt]=Zn[Zt]=Zn[Xt]=Zn[te]=Zn[re]=Zn[ie]=Zn[ae]=Zn[ue]=!1;var Xn={};Xn[$t]=Xn[Nt]=Xn[de]=Xn[ce]=Xn[Bt]=Xn[Ut]=Xn[fe]=Xn[he]=Xn[_e]=Xn[me]=Xn[pe]=Xn[Zt]=Xn[Xt]=Xn[te]=Xn[re]=Xn[ie]=Xn[ae]=Xn[oe]=Xn[ve]=Xn[ge]=Xn[ye]=Xn[Me]=!0,Xn[Gt]=Xn[qt]=Xn[ue]=!1;var Qn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},tr={"&":"&","<":"<",">":">",'"':""","'":"'"},er={"&":"&","<":"<",">":">",""":'"',"'":"'"},nr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rr=parseFloat,ir=parseInt,ar="object"==typeof t&&t&&t.Object===Object&&t,or="object"==typeof self&&self&&self.Object===Object&&self,sr=ar||or||Function("return this")(),ur="object"==typeof e&&e&&!e.nodeType&&e,lr=ur&&"object"==typeof r&&r&&!r.nodeType&&r,dr=lr&&lr.exports===ur,cr=dr&&ar.process,fr=function(){try{return cr&&cr.binding&&cr.binding("util")}catch(t){}}(),hr=fr&&fr.isArrayBuffer,_r=fr&&fr.isDate,mr=fr&&fr.isMap,pr=fr&&fr.isRegExp,vr=fr&&fr.isSet,gr=fr&&fr.isTypedArray,yr=T("length"),Mr=S(Qn),br=S(tr),Lr=S(er),wr=function Yr(t){function e(t){if(uu(t)&&!Mf(t)&&!(t instanceof i)){if(t instanceof r)return t;if(yd.call(t,"__wrapped__"))return io(t)}return new r(t)}function n(){}function r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rt,this.__views__=[]}function M(){var t=new i(this.__wrapped__);return t.__actions__=zi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zi(this.__views__),t}function S(){if(this.__filtered__){var t=new i(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Z(){var t=this.__wrapped__.value(),e=this.__dir__,n=Mf(t),r=e<0,i=n?t.length:0,a=xa(0,i,this.__views__),o=a.start,s=a.end,u=s-o,l=r?s:o-1,d=this.__iteratees__,c=d.length,f=0,h=qd(u,this.__takeCount__);if(!n||i-1}function dn(t,e){var n=this.__data__,r=Hn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function cn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Wn(t,e,n,r,i,a){var o,s=e&ft,u=e&ht,d=e&_t;if(n&&(o=i?n(t,r,i,a):n(t)),o!==it)return o;if(!su(t))return t;var c=Mf(t);if(c){if(o=Ca(t),!s)return zi(t,o)}else{var f=Sc(t),h=f==qt||f==Kt;if(Lf(t))return Si(t,s);if(f==te||f==$t||h&&!i){if(o=u||h?{}:ja(t),!s)return u?Vi(t,En(o,t)):Ni(t,On(o,t))}else{if(!Xn[f])return i?t:{};o=Aa(t,f,Wn,s)}}a||(a=new Mn);var _=a.get(t);if(_)return _;a.set(t,o);var m=d?u?ya:ga:u?Vu:Nu,p=c?it:m(t);return l(p||t,function(r,i){p&&(i=r,r=t[i]),An(o,i,Wn(r,e,n,i,t,a))}),o}function zn(t){var e=Nu(t);return function(n){return $n(n,t,e)}}function $n(t,e,n){var r=n.length;if(null==t)return!r;for(t=dd(t);r--;){var i=n[r],a=e[i],o=t[i];if(o===it&&!(i in t)||!a(o))return!1}return!0}function Bn(t,e,n){if("function"!=typeof t)throw new hd(ut);return Ac(function(){t.apply(it,n)},e)}function Un(t,e,n,r){var i=-1,a=h,o=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=m(e,O(n))),r?(a=_,o=!1):e.length>=ot&&(a=F,o=!1,e=new vn(e));t:for(;++ii?0:i+n),r=r===it||r>i?i:Yu(r),r<0&&(r+=i),r=n>r?0:Du(r);n0&&n(s)?e>1?er(s,e-1,n,r,i):p(i,s):r||(i[i.length]=s)}return i}function nr(t,e){return t&&yc(t,e,Nu)}function ar(t,e){return t&&Mc(t,e,Nu)}function or(t,e){return f(e,function(e){return iu(t[e])})}function ur(t,e){e=xi(e,t);for(var n=0,r=e.length;null!=t&&ne}function yr(t,e){return null!=t&&yd.call(t,e)}function wr(t,e){return null!=t&&e in dd(t)}function Dr(t,e,n){return t>=qd(e,n)&&t=120&&d.length>=120)?new vn(o&&d):it}d=t[0];var c=-1,f=s[0];t:for(;++c-1;)s!==t&&Hd.call(s,u,1),Hd.call(t,u,1);return t}function ni(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;Oa(i)?Hd.call(t,i,1):yi(t,i)}}return t}function ri(t,e){return t+$d(Xd()*(e-t+1))}function ii(t,e,n,r){for(var i=-1,a=Gd(zd((e-t)/(n||1)),0),o=ad(a);a--;)o[r?a:++i]=t,t+=n;return o}function ai(t,e){var n="";if(!t||e<1||e>Ot)return n;do e%2&&(n+=t),e=$d(e/2),e&&(t+=t);while(e);return n}function oi(t,e){return Hc(qa(t,e,Hl),t+"")}function si(t){return xn(nl(t))}function ui(t,e){var n=nl(t);return to(n,In(e,0,n.length))}function li(t,e,n,r){if(!su(t))return t;e=xi(e,t);for(var i=-1,a=e.length,o=a-1,s=t;null!=s&&++ii?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=ad(i);++r>>1,o=t[a];null!==o&&!yu(o)&&(n?o<=e:o=ot){var l=e?null:Yc(t);if(l)return q(l);o=!1,i=F,u=new vn}else u=e?[]:s;t:for(;++r=r?t:ci(t,e,n)}function Si(t,e){if(e)return t.slice();var n=t.length,r=Sd?Sd(n):new t.constructor(n);return t.copy(r),r}function Ci(t){var e=new t.constructor(t.byteLength);return new Td(e).set(new Td(t)),e}function ji(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ai(t,e,n){var r=e?n(U(t),ft):U(t);return v(r,a,new t.constructor)}function Hi(t){var e=new t.constructor(t.source,Ue.exec(t));return e.lastIndex=t.lastIndex,e}function Pi(t,e,n){var r=e?n(q(t),ft):q(t);return v(r,o,new t.constructor)}function Oi(t){return _c?dd(_c.call(t)):{}}function Ei(t,e){var n=e?Ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Fi(t,e){if(t!==e){var n=t!==it,r=null===t,i=t===t,a=yu(t),o=e!==it,s=null===e,u=e===e,l=yu(e);if(!s&&!l&&!a&&t>e||a&&o&&u&&!s&&!l||r&&o&&u||!n&&u||!i)return 1;if(!r&&!a&&!l&&t=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}function Ii(t,e,n,r){for(var i=-1,a=t.length,o=n.length,s=-1,u=e.length,l=Gd(a-o,0),d=ad(u+l),c=!r;++s1?n[i-1]:it,o=i>2?n[2]:it;for(a=t.length>3&&"function"==typeof a?(i--,a):it,o&&Ea(n[0],n[1],o)&&(a=i<3?it:a,i=1),e=dd(e);++r-1?i[a?e[o]:o]:it}}function ea(t){return va(function(e){var n=e.length,i=n,a=r.prototype.thru;for(t&&e.reverse();i--;){var o=e[i];if("function"!=typeof o)throw new hd(ut);if(a&&!s&&"wrapper"==Ma(o))var s=new r([],(!0))}for(i=s?i:n;++i=ot)return s.plant(r).value();for(var i=0,a=n?e[i].apply(this,t):r;++i1&&g.reverse(),c&&us))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var d=-1,c=!0,f=n&pt?new vn:it;for(a.set(t,e),a.set(e,t);++d1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(We,"{\n/* [wrapped with "+e+"] */\n")}function Pa(t){return Mf(t)||yf(t)||!!(Pd&&t&&t[Pd])}function Oa(t,e){return e=null==e?Ot:e,!!e&&("number"==typeof t||Ze.test(t))&&t>-1&&t%1==0&&t0){if(++e>=St)return arguments[0]}else e=0;return t.apply(it,arguments)}}function to(t,e){var n=-1,r=t.length,i=r-1;for(e=e===it?r:e;++n=this.__values__.length,e=t?it:this.__values__[this.__index__++];return{done:t,value:e}}function as(){return this}function os(t){for(var e,r=this;r instanceof n;){var i=io(r);i.__index__=0,i.__values__=it,e?a.__wrapped__=i:e=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,e}function ss(){var t=this.__wrapped__;if(t instanceof i){var e=t;return this.__actions__.length&&(e=new i(this)),e=e.reverse(),e.__actions__.push({func:es,args:[jo],thisArg:it}),new r(e,this.__chain__)}return this.thru(jo)}function us(){return Li(this.__wrapped__,this.__actions__)}function ls(t,e,n){var r=Mf(t)?c:Jn;return n&&Ea(t,e,n)&&(e=it),r(t,La(e,3))}function ds(t,e){var n=Mf(t)?f:tr;return n(t,La(e,3))}function cs(t,e){return er(vs(t,e),1)}function fs(t,e){return er(vs(t,e),Pt)}function hs(t,e,n){return n=n===it?1:Yu(n),er(vs(t,e),n)}function _s(t,e){var n=Mf(t)?l:vc;return n(t,La(e,3))}function ms(t,e){var n=Mf(t)?d:gc;return n(t,La(e,3))}function ps(t,e,n,r){t=qs(t)?t:nl(t),n=n&&!r?Yu(n):0;var i=t.length;return n<0&&(n=Gd(i+n,0)),gu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&k(t,e,n)>-1}function vs(t,e){var n=Mf(t)?m:Br;return n(t,La(e,3))}function gs(t,e,n,r){return null==t?[]:(Mf(e)||(e=null==e?[]:[e]),n=r?it:n,Mf(n)||(n=null==n?[]:[n]),Zr(t,e,n))}function ys(t,e,n){var r=Mf(t)?v:C,i=arguments.length<3;return r(t,La(e,4),n,i,vc)}function Ms(t,e,n){var r=Mf(t)?g:C,i=arguments.length<3;return r(t,La(e,4),n,i,gc)}function bs(t,e){var n=Mf(t)?f:tr;return n(t,Os(La(e,3)))}function Ls(t){var e=Mf(t)?xn:si;return e(t)}function ws(t,e,n){e=(n?Ea(t,e,n):e===it)?1:Yu(e);var r=Mf(t)?Tn:ui;return r(t,e)}function ks(t){var e=Mf(t)?Sn:di;return e(t)}function Ys(t){if(null==t)return 0;if(qs(t))return gu(t)?Q(t):t.length;var e=Sc(t);return e==Zt||e==ie?t.size:$r(t).length}function Ds(t,e,n){var r=Mf(t)?y:fi;return n&&Ea(t,e,n)&&(e=it),r(t,La(e,3))}function xs(t,e){if("function"!=typeof e)throw new hd(ut);return t=Yu(t),function(){if(--t<1)return e.apply(this,arguments)}}function Ts(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,ha(t,kt,it,it,it,it,e)}function Ss(t,e){var n;if("function"!=typeof e)throw new hd(ut);return t=Yu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function Cs(t,e,n){e=n?it:e;var r=ha(t,Mt,it,it,it,it,it,e);return r.placeholder=Cs.placeholder,r}function js(t,e,n){e=n?it:e;var r=ha(t,bt,it,it,it,it,it,e);return r.placeholder=js.placeholder,r}function As(t,e,n){function r(e){var n=f,r=h;return f=h=it,g=e,m=t.apply(r,n)}function i(t){return g=t,p=Ac(s,e),y?r(t):m}function a(t){var n=t-v,r=t-g,i=e-n;return M?qd(i,_-r):i}function o(t){var n=t-v,r=t-g;return v===it||n>=e||n<0||M&&r>=_}function s(){var t=uf();return o(t)?u(t):void(p=Ac(s,a(t)))}function u(t){return p=it,b&&f?r(t):(f=h=it,m)}function l(){p!==it&&kc(p),g=0,f=v=h=p=it}function d(){return p===it?m:u(uf())}function c(){var t=uf(),n=o(t);if(f=arguments,h=this,v=t,n){if(p===it)return i(v);if(M)return p=Ac(s,e),r(v)}return p===it&&(p=Ac(s,e)),m}var f,h,_,m,p,v,g=0,y=!1,M=!1,b=!0;if("function"!=typeof t)throw new hd(ut);return e=xu(e)||0,su(n)&&(y=!!n.leading,M="maxWait"in n,_=M?Gd(xu(n.maxWait)||0,e):_,b="trailing"in n?!!n.trailing:b),c.cancel=l,c.flush=d,c}function Hs(t){return ha(t,Dt)}function Ps(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new hd(ut);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ps.Cache||cn),n}function Os(t){if("function"!=typeof t)throw new hd(ut);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Es(t){return Ss(2,t)}function Fs(t,e){if("function"!=typeof t)throw new hd(ut);return e=e===it?e:Yu(e),oi(t,e)}function Rs(t,e){if("function"!=typeof t)throw new hd(ut);return e=e===it?0:Gd(Yu(e),0),oi(function(n){var r=n[e],i=Ti(n,0,e);return r&&p(i,r),s(t,this,i)})}function Is(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new hd(ut);return su(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),As(t,e,{leading:r,maxWait:e,trailing:i})}function Ws(t){return Ts(t,1)}function zs(t,e){return _f(Di(e),t)}function $s(){if(!arguments.length)return[];var t=arguments[0];return Mf(t)?t:[t]}function Ns(t){return Wn(t,_t)}function Vs(t,e){return e="function"==typeof e?e:it,Wn(t,_t,e)}function Bs(t){return Wn(t,ft|_t)}function Us(t,e){return e="function"==typeof e?e:it,Wn(t,ft|_t,e)}function Js(t,e){return null==e||$n(t,e,Nu(e))}function Gs(t,e){return t===e||t!==t&&e!==e}function qs(t){return null!=t&&ou(t.length)&&!iu(t)}function Ks(t){return uu(t)&&qs(t)}function Zs(t){return t===!0||t===!1||uu(t)&&cr(t)==Bt}function Xs(t){return uu(t)&&1===t.nodeType&&!pu(t)}function Qs(t){if(null==t)return!0;if(qs(t)&&(Mf(t)||"string"==typeof t||"function"==typeof t.splice||Lf(t)||xf(t)||yf(t)))return!t.length;var e=Sc(t);if(e==Zt||e==ie)return!t.size;if(za(t))return!$r(t).length;for(var n in t)if(yd.call(t,n))return!1;return!0}function tu(t,e){return Hr(t,e)}function eu(t,e,n){n="function"==typeof n?n:it;var r=n?n(t,e):it;return r===it?Hr(t,e,it,n):!!r}function nu(t){if(!uu(t))return!1;var e=cr(t);return e==Gt||e==Jt||"string"==typeof t.message&&"string"==typeof t.name&&!pu(t)}function ru(t){return"number"==typeof t&&Bd(t)}function iu(t){if(!su(t))return!1;var e=cr(t);return e==qt||e==Kt||e==Vt||e==ne}function au(t){return"number"==typeof t&&t==Yu(t)}function ou(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ot}function su(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function uu(t){return null!=t&&"object"==typeof t}function lu(t,e){return t===e||Er(t,e,ka(e))}function du(t,e,n){return n="function"==typeof n?n:it,Er(t,e,ka(e),n)}function cu(t){return mu(t)&&t!=+t}function fu(t){if(Cc(t))throw new sd(st);return Fr(t)}function hu(t){return null===t}function _u(t){return null==t}function mu(t){return"number"==typeof t||uu(t)&&cr(t)==Xt}function pu(t){if(!uu(t)||cr(t)!=te)return!1;var e=Cd(t);if(null===e)return!0;var n=yd.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&gd.call(n)==wd}function vu(t){return au(t)&&t>=-Ot&&t<=Ot}function gu(t){return"string"==typeof t||!Mf(t)&&uu(t)&&cr(t)==ae}function yu(t){return"symbol"==typeof t||uu(t)&&cr(t)==oe}function Mu(t){return t===it}function bu(t){return uu(t)&&Sc(t)==ue}function Lu(t){return uu(t)&&cr(t)==le}function wu(t){if(!t)return[];if(qs(t))return gu(t)?tt(t):zi(t);if(Od&&t[Od])return B(t[Od]());var e=Sc(t),n=e==Zt?U:e==ie?q:nl;return n(t)}function ku(t){if(!t)return 0===t?t:0;if(t=xu(t),t===Pt||t===-Pt){var e=t<0?-1:1;return e*Et}return t===t?t:0}function Yu(t){var e=ku(t),n=e%1;return e===e?n?e-n:e:0}function Du(t){return t?In(Yu(t),0,Rt):0}function xu(t){if("number"==typeof t)return t;if(yu(t))return Ft;if(su(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=su(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Fe,"");var n=Ge.test(t);return n||Ke.test(t)?ir(t.slice(2),n?2:8):Je.test(t)?Ft:+t}function Tu(t){return $i(t,Vu(t))}function Su(t){return In(Yu(t),-Ot,Ot)}function Cu(t){return null==t?"":vi(t)}function ju(t,e){var n=pc(t);return null==e?n:On(n,e)}function Au(t,e){return L(t,La(e,3),nr)}function Hu(t,e){return L(t,La(e,3),ar)}function Pu(t,e){return null==t?t:yc(t,La(e,3),Vu)}function Ou(t,e){return null==t?t:Mc(t,La(e,3),Vu)}function Eu(t,e){return t&&nr(t,La(e,3))}function Fu(t,e){return t&&ar(t,La(e,3))}function Ru(t){return null==t?[]:or(t,Nu(t))}function Iu(t){return null==t?[]:or(t,Vu(t))}function Wu(t,e,n){var r=null==t?it:ur(t,e);return r===it?n:r}function zu(t,e){return null!=t&&Sa(t,e,yr)}function $u(t,e){return null!=t&&Sa(t,e,wr)}function Nu(t){return qs(t)?Dn(t):$r(t)}function Vu(t){return qs(t)?Dn(t,!0):Nr(t)}function Bu(t,e){var n={};return e=La(e,3),nr(t,function(t,r,i){Fn(n,e(t,r,i),t)}),n}function Uu(t,e){var n={};return e=La(e,3),nr(t,function(t,r,i){Fn(n,r,e(t,r,i))}),n}function Ju(t,e){return Gu(t,Os(La(e)))}function Gu(t,e){if(null==t)return{};var n=m(ya(t),function(t){return[t]});return e=La(e),Qr(t,n,function(t,n){return e(t,n[0])})}function qu(t,e,n){e=xi(e,t);var r=-1,i=e.length;for(i||(i=1,t=it);++re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Xd();return qd(t+i*(e-t+rr("1e-"+((i+"").length-1))),e)}return ri(t,e)}function sl(t){return Qf(Cu(t).toLowerCase())}function ul(t){return t=Cu(t),t&&t.replace(Xe,Mr).replace(Vn,"")}function ll(t,e,n){t=Cu(t),e=vi(e);var r=t.length;n=n===it?r:In(Yu(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function dl(t){return t=Cu(t),t&&xe.test(t)?t.replace(Ye,br):t}function cl(t){return t=Cu(t),t&&Ee.test(t)?t.replace(Oe,"\\$&"):t}function fl(t,e,n){t=Cu(t),e=Yu(e);var r=e?Q(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return oa($d(i),n)+t+oa(zd(i),n)}function hl(t,e,n){t=Cu(t),e=Yu(e);var r=e?Q(t):0;return e&&r>>0)?(t=Cu(t),t&&("string"==typeof e||null!=e&&!Yf(e))&&(e=vi(e),!e&&N(t))?Ti(tt(t),0,n):t.split(e,n)):[]}function yl(t,e,n){return t=Cu(t),n=In(Yu(n),0,t.length),e=vi(e),t.slice(n,n+e.length)==e}function Ml(t,n,r){var i=e.templateSettings;r&&Ea(t,n,r)&&(n=it),t=Cu(t),n=Af({},n,i,Cn);var a,o,s=Af({},n.imports,i.imports,Cn),u=Nu(s),l=E(s,u),d=0,c=n.interpolate||Qe,f="__p += '",h=cd((n.escape||Qe).source+"|"+c.source+"|"+(c===Ce?Be:Qe).source+"|"+(n.evaluate||Qe).source+"|$","g"),_="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Kn+"]")+"\n";t.replace(h,function(e,n,r,i,s,u){return r||(r=i),f+=t.slice(d,u).replace(tn,z),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=u+e.length,e}),f+="';\n";var m=n.variable;m||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(be,""):f).replace(Le,"$1").replace(we,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=th(function(){return ud(u,_+"return "+f).apply(it,l)});if(p.source=f,nu(p))throw p;return p}function bl(t){return Cu(t).toLowerCase()}function Ll(t){return Cu(t).toUpperCase()}function wl(t,e,n){if(t=Cu(t),t&&(n||e===it))return t.replace(Fe,"");if(!t||!(e=vi(e)))return t;var r=tt(t),i=tt(e),a=R(r,i),o=I(r,i)+1;return Ti(r,a,o).join("")}function kl(t,e,n){if(t=Cu(t),t&&(n||e===it))return t.replace(Ie,"");if(!t||!(e=vi(e)))return t;var r=tt(t),i=I(r,tt(e))+1;return Ti(r,0,i).join("")}function Yl(t,e,n){if(t=Cu(t),t&&(n||e===it))return t.replace(Re,"");if(!t||!(e=vi(e)))return t;var r=tt(t),i=R(r,tt(e));return Ti(r,i).join("")}function Dl(t,e){var n=xt,r=Tt;if(su(e)){var i="separator"in e?e.separator:i;n="length"in e?Yu(e.length):n,r="omission"in e?vi(e.omission):r}t=Cu(t);var a=t.length;if(N(t)){var o=tt(t);a=o.length}if(n>=a)return t;var s=n-Q(r);if(s<1)return r;var u=o?Ti(o,0,s).join(""):t.slice(0,s);if(i===it)return u+r;if(o&&(s+=u.length-s),Yf(i)){if(t.slice(s).search(i)){var l,d=u;for(i.global||(i=cd(i.source,Cu(Ue.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var c=l.index;u=u.slice(0,c===it?s:c)}}else if(t.indexOf(vi(i),s)!=s){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r}function xl(t){return t=Cu(t),t&&De.test(t)?t.replace(ke,Lr):t}function Tl(t,e,n){return t=Cu(t),e=n?it:e,e===it?V(t)?rt(t):b(t):t.match(e)||[]}function Sl(t){var e=null==t?0:t.length,n=La();return t=e?m(t,function(t){if("function"!=typeof t[1])throw new hd(ut);return[n(t[0]),t[1]]}):[],oi(function(n){for(var r=-1;++rOt)return[];var n=Rt,r=qd(t,Rt);e=La(e),t-=Rt;for(var i=H(r,e);++n1?t[e-1]:it;return n="function"==typeof n?(t.pop(),n):it,Ko(t,n)}),Xc=va(function(t){var e=t.length,n=e?t[0]:0,a=this.__wrapped__,o=function(e){return Rn(e,t)};return!(e>1||this.__actions__.length)&&a instanceof i&&Oa(n)?(a=a.slice(n,+n+(e?1:0)),a.__actions__.push({func:es,args:[o],thisArg:it}),new r(a,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(o)}),Qc=Bi(function(t,e,n){yd.call(t,n)?++t[n]:Fn(t,n,1)}),tf=ta(_o),ef=ta(mo),nf=Bi(function(t,e,n){yd.call(t,n)?t[n].push(e):Fn(t,n,[e])}),rf=oi(function(t,e,n){var r=-1,i="function"==typeof e,a=qs(t)?ad(t.length):[];return vc(t,function(t){a[++r]=i?s(e,t,n):Sr(t,e,n)}),a}),af=Bi(function(t,e,n){Fn(t,n,e)}),of=Bi(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),sf=oi(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ea(t,e[0],e[1])?e=[]:n>2&&Ea(e[0],e[1],e[2])&&(e=[e[0]]),Zr(t,er(e,1),[])}),uf=Id||function(){return sr.Date.now()},lf=oi(function(t,e,n){var r=vt;if(n.length){var i=G(n,ba(lf));r|=Lt}return ha(t,r,e,n,i)}),df=oi(function(t,e,n){var r=vt|gt;if(n.length){var i=G(n,ba(df));r|=Lt}return ha(e,r,t,n,i)}),cf=oi(function(t,e){return Bn(t,1,e)}),ff=oi(function(t,e,n){return Bn(t,xu(e)||0,n)});Ps.Cache=cn;var hf=wc(function(t,e){e=1==e.length&&Mf(e[0])?m(e[0],O(La())):m(er(e,1),O(La()));var n=e.length;return oi(function(r){for(var i=-1,a=qd(r.length,n);++i=e}),yf=Cr(function(){return arguments}())?Cr:function(t){return uu(t)&&yd.call(t,"callee")&&!Ad.call(t,"callee")},Mf=ad.isArray,bf=hr?O(hr):jr,Lf=Vd||Vl,wf=_r?O(_r):Ar,kf=mr?O(mr):Or,Yf=pr?O(pr):Rr,Df=vr?O(vr):Ir,xf=gr?O(gr):Wr,Tf=la(Vr),Sf=la(function(t,e){return t<=e}),Cf=Ui(function(t,e){if(za(e)||qs(e))return void $i(e,Nu(e),t);for(var n in e)yd.call(e,n)&&An(t,n,e[n])}),jf=Ui(function(t,e){$i(e,Vu(e),t)}),Af=Ui(function(t,e,n,r){$i(e,Vu(e),t,r)}),Hf=Ui(function(t,e,n,r){$i(e,Nu(e),t,r)}),Pf=va(Rn),Of=oi(function(t){return t.push(it,Cn),s(Af,it,t)}),Ef=oi(function(t){return t.push(it,Ua),s(zf,it,t)}),Ff=ra(function(t,e,n){t[e]=n},jl(Hl)),Rf=ra(function(t,e,n){yd.call(t,e)?t[e].push(n):t[e]=[n]},La),If=oi(Sr),Wf=Ui(function(t,e,n){Gr(t,e,n)}),zf=Ui(function(t,e,n,r){Gr(t,e,n,r)}),$f=va(function(t,e){var n={};if(null==t)return n;var r=!1;e=m(e,function(e){return e=xi(e,t),r||(r=e.length>1),e}),$i(t,ya(t),n),r&&(n=Wn(n,ft|ht|_t));for(var i=e.length;i--;)yi(n,e[i]);return n}),Nf=va(function(t,e){return null==t?{}:Xr(t,e)}),Vf=fa(Nu),Bf=fa(Vu),Uf=Zi(function(t,e,n){return e=e.toLowerCase(),t+(n?sl(e):e)}),Jf=Zi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Gf=Zi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),qf=Ki("toLowerCase"),Kf=Zi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Zf=Zi(function(t,e,n){return t+(n?" ":"")+Qf(e)}),Xf=Zi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Qf=Ki("toUpperCase"),th=oi(function(t,e){try{return s(t,it,e)}catch(n){return nu(n)?n:new sd(n)}}),eh=va(function(t,e){return l(e,function(e){e=eo(e),Fn(t,e,lf(t[e],t))}),t}),nh=ea(),rh=ea(!0),ih=oi(function(t,e){return function(n){return Sr(n,t,e)}}),ah=oi(function(t,e){return function(n){return Sr(t,n,e)}}),oh=aa(m),sh=aa(c),uh=aa(y),lh=ua(),dh=ua(!0),ch=ia(function(t,e){return t+e},0),fh=ca("ceil"),hh=ia(function(t,e){return t/e},1),_h=ca("floor"),mh=ia(function(t,e){return t*e},1),ph=ca("round"),vh=ia(function(t,e){return t-e},0);return e.after=xs,e.ary=Ts,e.assign=Cf,e.assignIn=jf,e.assignInWith=Af,e.assignWith=Hf,e.at=Pf,e.before=Ss,e.bind=lf,e.bindAll=eh,e.bindKey=df,e.castArray=$s,e.chain=Qo,e.chunk=ao,e.compact=oo,e.concat=so,e.cond=Sl,e.conforms=Cl,e.constant=jl,e.countBy=Qc,e.create=ju,e.curry=Cs,e.curryRight=js,e.debounce=As,e.defaults=Of,e.defaultsDeep=Ef,e.defer=cf,e.delay=ff,e.difference=Oc,e.differenceBy=Ec,e.differenceWith=Fc,e.drop=uo,e.dropRight=lo,e.dropRightWhile=co,e.dropWhile=fo,e.fill=ho,e.filter=ds,e.flatMap=cs,e.flatMapDeep=fs,e.flatMapDepth=hs,e.flatten=po,e.flattenDeep=vo,e.flattenDepth=go,e.flip=Hs,e.flow=nh,e.flowRight=rh,e.fromPairs=yo,e.functions=Ru,e.functionsIn=Iu,e.groupBy=nf,e.initial=Lo,e.intersection=Rc,e.intersectionBy=Ic,e.intersectionWith=Wc,e.invert=Ff,e.invertBy=Rf,e.invokeMap=rf,e.iteratee=Pl,e.keyBy=af,e.keys=Nu,e.keysIn=Vu,e.map=vs,e.mapKeys=Bu,e.mapValues=Uu,e.matches=Ol,e.matchesProperty=El,e.memoize=Ps,e.merge=Wf,e.mergeWith=zf,e.method=ih,e.methodOf=ah,e.mixin=Fl,e.negate=Os,e.nthArg=Wl,e.omit=$f,e.omitBy=Ju,e.once=Es,e.orderBy=gs,e.over=oh,e.overArgs=hf,e.overEvery=sh,e.overSome=uh,e.partial=_f,e.partialRight=mf,e.partition=of,e.pick=Nf,e.pickBy=Gu,e.property=zl,e.propertyOf=$l,e.pull=zc,e.pullAll=xo,e.pullAllBy=To,e.pullAllWith=So,e.pullAt=$c,e.range=lh,e.rangeRight=dh,e.rearg=pf,e.reject=bs,e.remove=Co,e.rest=Fs,e.reverse=jo,e.sampleSize=ws,e.set=Ku,e.setWith=Zu,e.shuffle=ks,e.slice=Ao,e.sortBy=sf,e.sortedUniq=Io,e.sortedUniqBy=Wo,e.split=gl,e.spread=Rs,e.tail=zo,e.take=$o,e.takeRight=No,e.takeRightWhile=Vo,e.takeWhile=Bo,e.tap=ts,e.throttle=Is,e.thru=es,e.toArray=wu,e.toPairs=Vf,e.toPairsIn=Bf,e.toPath=ql,e.toPlainObject=Tu,e.transform=Xu,e.unary=Ws,e.union=Nc,e.unionBy=Vc,e.unionWith=Bc,e.uniq=Uo,e.uniqBy=Jo,e.uniqWith=Go,e.unset=Qu,e.unzip=qo,e.unzipWith=Ko,e.update=tl,e.updateWith=el,e.values=nl,e.valuesIn=rl,e.without=Uc,e.words=Tl,e.wrap=zs,e.xor=Jc,e.xorBy=Gc,e.xorWith=qc,e.zip=Kc,e.zipObject=Zo,e.zipObjectDeep=Xo,e.zipWith=Zc,e.entries=Vf,e.entriesIn=Bf,e.extend=jf,e.extendWith=Af,Fl(e,e),e.add=ch,e.attempt=th,e.camelCase=Uf,e.capitalize=sl,e.ceil=fh,e.clamp=il,e.clone=Ns,e.cloneDeep=Bs,e.cloneDeepWith=Us,e.cloneWith=Vs,e.conformsTo=Js,e.deburr=ul,e.defaultTo=Al,e.divide=hh,e.endsWith=ll,e.eq=Gs,e.escape=dl,e.escapeRegExp=cl,e.every=ls,e.find=tf,e.findIndex=_o,e.findKey=Au,e.findLast=ef,e.findLastIndex=mo,e.findLastKey=Hu,e.floor=_h,e.forEach=_s,e.forEachRight=ms,e.forIn=Pu,e.forInRight=Ou,e.forOwn=Eu,e.forOwnRight=Fu,e.get=Wu,e.gt=vf,e.gte=gf,e.has=zu,e.hasIn=$u,e.head=Mo,e.identity=Hl,e.includes=ps,e.indexOf=bo,e.inRange=al,e.invoke=If,e.isArguments=yf,e.isArray=Mf,e.isArrayBuffer=bf,e.isArrayLike=qs,e.isArrayLikeObject=Ks,e.isBoolean=Zs,e.isBuffer=Lf,e.isDate=wf,e.isElement=Xs,e.isEmpty=Qs,e.isEqual=tu,e.isEqualWith=eu,e.isError=nu,e.isFinite=ru,e.isFunction=iu,e.isInteger=au,e.isLength=ou,e.isMap=kf,e.isMatch=lu,e.isMatchWith=du,e.isNaN=cu,e.isNative=fu, e.isNil=_u,e.isNull=hu,e.isNumber=mu,e.isObject=su,e.isObjectLike=uu,e.isPlainObject=pu,e.isRegExp=Yf,e.isSafeInteger=vu,e.isSet=Df,e.isString=gu,e.isSymbol=yu,e.isTypedArray=xf,e.isUndefined=Mu,e.isWeakMap=bu,e.isWeakSet=Lu,e.join=wo,e.kebabCase=Jf,e.last=ko,e.lastIndexOf=Yo,e.lowerCase=Gf,e.lowerFirst=qf,e.lt=Tf,e.lte=Sf,e.max=Zl,e.maxBy=Xl,e.mean=Ql,e.meanBy=td,e.min=ed,e.minBy=nd,e.stubArray=Nl,e.stubFalse=Vl,e.stubObject=Bl,e.stubString=Ul,e.stubTrue=Jl,e.multiply=mh,e.nth=Do,e.noConflict=Rl,e.noop=Il,e.now=uf,e.pad=fl,e.padEnd=hl,e.padStart=_l,e.parseInt=ml,e.random=ol,e.reduce=ys,e.reduceRight=Ms,e.repeat=pl,e.replace=vl,e.result=qu,e.round=ph,e.runInContext=Yr,e.sample=Ls,e.size=Ys,e.snakeCase=Kf,e.some=Ds,e.sortedIndex=Ho,e.sortedIndexBy=Po,e.sortedIndexOf=Oo,e.sortedLastIndex=Eo,e.sortedLastIndexBy=Fo,e.sortedLastIndexOf=Ro,e.startCase=Zf,e.startsWith=yl,e.subtract=vh,e.sum=rd,e.sumBy=id,e.template=Ml,e.times=Gl,e.toFinite=ku,e.toInteger=Yu,e.toLength=Du,e.toLower=bl,e.toNumber=xu,e.toSafeInteger=Su,e.toString=Cu,e.toUpper=Ll,e.trim=wl,e.trimEnd=kl,e.trimStart=Yl,e.truncate=Dl,e.unescape=xl,e.uniqueId=Kl,e.upperCase=Xf,e.upperFirst=Qf,e.each=_s,e.eachRight=ms,e.first=Mo,Fl(e,function(){var t={};return nr(e,function(n,r){yd.call(e.prototype,r)||(t[r]=n)}),t}(),{chain:!1}),e.VERSION=at,l(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),l(["drop","take"],function(t,e){i.prototype[t]=function(n){var r=this.__filtered__;if(r&&!e)return new i(this);n=n===it?1:Gd(Yu(n),0);var a=this.clone();return r?a.__takeCount__=qd(n,a.__takeCount__):a.__views__.push({size:qd(n,Rt),type:t+(a.__dir__<0?"Right":"")}),a},i.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),l(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==jt||n==Ht;i.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:La(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),l(["head","last"],function(t,e){var n="take"+(e?"Right":"");i.prototype[t]=function(){return this[n](1).value()[0]}}),l(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");i.prototype[t]=function(){return this.__filtered__?new i(this):this[n](1)}}),i.prototype.compact=function(){return this.filter(Hl)},i.prototype.find=function(t){return this.filter(t).head()},i.prototype.findLast=function(t){return this.reverse().find(t)},i.prototype.invokeMap=oi(function(t,e){return"function"==typeof t?new i(this):this.map(function(n){return Sr(n,t,e)})}),i.prototype.reject=function(t){return this.filter(Os(La(t)))},i.prototype.slice=function(t,e){t=Yu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new i(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=Yu(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},i.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},i.prototype.toArray=function(){return this.take(Rt)},nr(i.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),s=e[o?"take"+("last"==n?"Right":""):n],u=o||/^find/.test(n);s&&(e.prototype[n]=function(){var n=this.__wrapped__,l=o?[1]:arguments,d=n instanceof i,c=l[0],f=d||Mf(n),h=function(t){var n=s.apply(e,p([t],l));return o&&_?n[0]:n};f&&a&&"function"==typeof c&&1!=c.length&&(d=f=!1);var _=this.__chain__,m=!!this.__actions__.length,v=u&&!_,g=d&&!m;if(!u&&f){n=g?n:new i(this);var y=t.apply(n,l);return y.__actions__.push({func:es,args:[h],thisArg:it}),new r(y,_)}return v&&g?t.apply(this,l):(y=this.thru(h),v?o?y.value()[0]:y.value():y)})}),l(["pop","push","shift","sort","splice","unshift"],function(t){var n=_d[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var e=this.value();return n.apply(Mf(e)?e:[],t)}return this[r](function(e){return n.apply(Mf(e)?e:[],t)})}}),nr(i.prototype,function(t,n){var r=e[n];if(r){var i=r.name+"",a=sc[i]||(sc[i]=[]);a.push({name:n,func:r})}}),sc[na(it,gt).name]=[{name:"wrapper",func:it}],i.prototype.clone=M,i.prototype.reverse=S,i.prototype.value=Z,e.prototype.at=Xc,e.prototype.chain=ns,e.prototype.commit=rs,e.prototype.next=is,e.prototype.plant=os,e.prototype.reverse=ss,e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=us,e.prototype.first=e.prototype.head,Od&&(e.prototype[Od]=as),e},kr=wr();sr._=kr,i=function(){return kr}.call(e,n,e,r),!(i!==it&&(r.exports=i))}).call(this)}).call(e,n(7),n(126)(t))},function(t,e,n){var r,i;r=n(154);var a=n(272);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=n(0);t.exports={install:function(t,e){Object.defineProperties(t.prototype,{$moment:{get:function(){return t.moment.bind(this)}}}),e&&e.moment&&(r=e.moment),t.moment=function(t){return r(t)},t.filter("moment",function(){function t(){var e=Array.prototype.slice.call(arguments).map(function(t){return t.replace(/^("|')|("|')$/g,"")}),n=e.shift();switch(n){case"add":var a=e.shift().split(",").map(Function.prototype.call,String.prototype.trim);obj={};for(var o=0;o=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function y(t){return t.replace(/\/\//g,"/")}function M(t){var e=Object.create(null),n=Object.create(null);return t.forEach(function(t){b(e,n,t)}),{pathMap:e,nameMap:n}}function b(t,i,a,o,s){var u=a.path,l=a.name;"production"!==e.env.NODE_ENV&&(n(null!=u,'"path" is required in a route configuration.'),n("string"!=typeof a.component,'route config "component" for path: '+String(u||l)+" cannot be a string id. Use an actual component instead."));var d={path:L(u,o),components:a.components||{"default":a.component},instances:{},name:l,parent:o,matchAs:s,redirect:a.redirect,beforeEnter:a.beforeEnter,meta:a.meta||{}};a.children&&("production"!==e.env.NODE_ENV&&a.name&&a.children.some(function(t){return/^\/?$/.test(t.path)})&&r(!1,"Named Route '"+a.name+"' has a default child route.\n When navigating to this named route (:to=\"{name: '"+a.name+"'\"), the default child route will not be rendered.\n Remove the name from this route and use the name of the default child route for named links instead."),a.children.forEach(function(e){b(t,i,e,d)})),void 0!==a.alias&&(Array.isArray(a.alias)?a.alias.forEach(function(e){b(t,i,{path:e},o,d.path)}):b(t,i,{path:a.alias},o,d.path)),t[d.path]||(t[d.path]=d),l&&(i[l]?"production"!==e.env.NODE_ENV&&r(!1,'Duplicate named routes definition: { name: "'+l+'", path: "'+d.path+'" }'):i[l]=d)}function L(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:y(e.path+"/"+t)}function w(t,e){for(var n,r=[],i=0,a=0,o="",s=e&&e.delimiter||"/";null!=(n=jt.exec(t));){var u=n[0],l=n[1],d=n.index;if(o+=t.slice(a,d),a=d+u.length,l)o+=l[1];else{var c=t[a],f=n[2],h=n[3],_=n[4],m=n[5],p=n[6],v=n[7];o&&(r.push(o),o="");var g=null!=f&&null!=c&&c!==f,y="+"===p||"*"===p,M="?"===p||"*"===p,b=n[2]||s,L=_||m;r.push({name:h||i++,prefix:f||"",delimiter:b,optional:M,repeat:y,partial:g,asterisk:!!v,pattern:L?S(L):v?".*":"[^"+T(b)+"]+?"})}}return a-1&&(r.params[s]=e.params[s]);if(a)return r.path=R(a.path,r.params,'named route "'+i+'"'),u(a,r,n)}else if(r.path){r.params={};for(var l in d)if($(l,r.params,r.path))return u(d[l],r,n)}return u(null,r)}function a(t,a){var o=t.redirect,l="function"==typeof o?o(s(t,a)):o;if("string"==typeof l&&(l={path:l}),!l||"object"!=typeof l)return"production"!==e.env.NODE_ENV&&r(!1,"invalid redirect option: "+JSON.stringify(l)),u(null,a);var d=l,f=d.name,h=d.path,_=a.query,m=a.hash,p=a.params;if(_=d.hasOwnProperty("query")?d.query:_,m=d.hasOwnProperty("hash")?d.hash:m,p=d.hasOwnProperty("params")?d.params:p,f){var v=c[f];return"production"!==e.env.NODE_ENV&&n(v,'redirect failed: named route "'+f+'" not found.'),i({_normalized:!0,name:f,query:_,hash:m,params:p},void 0,a)}if(h){var g=N(h,t),y=R(g,p,'redirect route with path "'+g+'"');return i({_normalized:!0,path:y,query:_,hash:m},void 0,a)}return r(!1,"invalid redirect option: "+JSON.stringify(l)),u(null,a)}function o(t,e,n){var r=R(n,e.params,'aliased route with path "'+n+'"'),a=i({_normalized:!0,path:r});if(a){var o=a.matched,s=o[o.length-1];return e.params=a.params,u(s,e)}return u(null,e)}function u(t,e,n){return t&&t.redirect?a(t,n||e):t&&t.matchAs?o(t,e,t.matchAs):s(t,e,n)}var l=M(t),d=l.pathMap,c=l.nameMap;return i}function $(t,e,n){var r=F(t),i=r.regexp,a=r.keys,o=n.match(i);if(!o)return!1;if(!e)return!0;for(var s=1,u=o.length;s=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function B(t){if(!t)if(Pt){var e=document.querySelector("base");t=e?e.getAttribute("href"):"/"}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function U(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e:0)+"#"+t)}function mt(t,e,n){var r="hash"===n?"#"+e:e;return t?y(t+"/"+r):r}var pt,vt={name:"router-view",functional:!0,props:{name:{type:String,"default":"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,a=e.data;a.routerView=!0;for(var o=i.$route,s=i._routerViewCache||(i._routerViewCache={}),u=0,l=!1;i;)i.$vnode&&i.$vnode.data.routerView&&u++,i._inactive&&(l=!0),i=i.$parent;a.routerViewDepth=u;var d=o.matched[u];if(!d)return t();var c=n.name,f=l?s[c]:s[c]=d.components[c];if(!l){var h=a.hook||(a.hook={});h.init=function(t){d.instances[c]=t.child},h.prepatch=function(t,e){d.instances[c]=e.child},h.destroy=function(t){d.instances[c]===t.child&&(d.instances[c]=void 0)}}return t(f,a,r)}},gt=encodeURIComponent,yt=decodeURIComponent,Mt=s(null,{path:"/"}),bt=/\/$/,Lt=[String,Object],wt={name:"router-link",props:{to:{type:Lt,required:!0},tag:{type:String,"default":"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,event:{type:[String,Array],"default":"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.normalizedTo,o=i.resolved,u=i.href,l={},c=this.activeClass||n.options.linkActiveClass||"router-link-active",h=a.path?s(null,a):o;l[c]=this.exact?d(r,h):f(r,h);var p=function(t){_(t)&&(e.replace?n.replace(a):n.push(a))},v={click:_};Array.isArray(this.event)?this.event.forEach(function(t){v[t]=p}):v[this.event]=p;var g={"class":l};if("a"===this.tag)g.on=v,g.attrs={href:u};else{var y=m(this.$slots["default"]);if(y){y.isStatic=!1;var M=pt.util.extend,b=y.data=M({},y.data);b.on=v;var L=y.data.attrs=M({},y.data.attrs);L.href=u}else g.on=v}return t(this.tag,g,this.$slots["default"])}},kt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Yt=kt,Dt=E,xt=w,Tt=k,St=x,Ct=O,jt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Dt.parse=xt,Dt.compile=Tt,Dt.tokensToFunction=St,Dt.tokensToRegExp=Ct;var At=Object.create(null),Ht=Object.create(null),Pt="undefined"!=typeof window,Ot=Pt&&function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}(),Et=function(t,e){this.router=t,this.base=B(e),this.current=Mt,this.pending=null};Et.prototype.listen=function(t){this.cb=t},Et.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL()},n)},Et.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,a=function(){n&&n()};if(d(t,i))return this.ensureURL(),a();var o=U(this.current.matched,t.matched),s=o.deactivated,u=o.activated,l=[].concat(G(s),this.router.beforeHooks,u.map(function(t){return t.beforeEnter}),Q(u));this.pending=t;var c=function(e,n){return r.pending!==t?a():void e(t,i,function(t){t===!1?(r.ensureURL(!0),a()):"string"==typeof t||"object"==typeof t?("object"==typeof t&&t.replace?r.replace(t):r.push(t),a()):n(t)})};V(l,c,function(){var n=[],i=K(u,n,function(){return r.current===t});V(i,c,function(){return r.pending!==t?a():(r.pending=null,e(t),void(r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){return t()})})))})})},Et.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Ft=Object.create(null),Rt=function(){return String(Date.now())},It=Rt(),Wt=function(t){function r(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior;window.addEventListener("popstate",function(t){It=t.state&&t.state.key;var e=r.current;r.transitionTo(ut(r.base),function(t){i&&r.handleScroll(t,e,!0)})}),i&&window.addEventListener("scroll",function(){nt(It)})}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.go=function(t){window.history.go(t)},r.prototype.push=function(t){var e=this,n=this.current;this.transitionTo(t,function(t){lt(y(e.base+t.fullPath)),e.handleScroll(t,n,!1)})},r.prototype.replace=function(t){var e=this,n=this.current;this.transitionTo(t,function(t){dt(y(e.base+t.fullPath)),e.handleScroll(t,n,!1)})},r.prototype.ensureURL=function(t){if(ut(this.base)!==this.current.fullPath){var e=y(this.base+this.current.fullPath);t?lt(e):dt(e)}},r.prototype.handleScroll=function(t,r,i){var a=this.router;if(a.app){var o=a.options.scrollBehavior;o&&("production"!==e.env.NODE_ENV&&n("function"==typeof o,"scrollBehavior must be a function"),a.app.$nextTick(function(){var e=rt(It),n=o(t,r,i?e:null);if(n){var a="object"==typeof n;if(a&&"string"==typeof n.selector){var s=document.querySelector(n.selector);s?e=it(s):at(n)&&(e=ot(n))}else a&&at(n)&&(e=ot(n));e&&window.scrollTo(e.x,e.y)}}))}},r}(Et),zt=function(t){function e(e,n,r){t.call(this,e,n),r&&this.checkFallback()||ct()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.checkFallback=function(){var t=ut(this.base);if(!/^\/#/.test(t))return window.location.replace(y(this.base+"/#"+t)),!0},e.prototype.onHashChange=function(){ct()&&this.transitionTo(ft(),function(t){_t(t.fullPath)})},e.prototype.push=function(t){this.transitionTo(t,function(t){ht(t.fullPath)})},e.prototype.replace=function(t){this.transitionTo(t,function(t){_t(t.fullPath)})},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ft()!==e&&(t?ht(e):_t(e))},e}(Et),$t=function(t){function e(e){t.call(this,e),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index+1).concat(t),e.index++})},e.prototype.replace=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index).concat(t)})},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.ensureURL=function(){},e}(Et),Nt=function(t){void 0===t&&(t={}),this.app=null,this.options=t,this.beforeHooks=[],this.afterHooks=[],this.match=z(t.routes||[]);var r=t.mode||"hash";switch(this.fallback="history"===r&&!Ot,this.fallback&&(r="hash"),Pt||(r="abstract"),this.mode=r,r){case"history":this.history=new Wt(this,t.base);break;case"hash":this.history=new zt(this,t.base,this.fallback);break;case"abstract":this.history=new $t(this);break;default:"production"!==e.env.NODE_ENV&&n(!1,"invalid mode: "+r)}},Vt={currentRoute:{}};Vt.currentRoute.get=function(){return this.history&&this.history.current},Nt.prototype.init=function(t){var r=this;"production"!==e.env.NODE_ENV&&n(p.installed,"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."),this.app=t;var i=this.history;if(i instanceof Wt)i.transitionTo(ut(i.base));else if(i instanceof zt){var a=function(){window.addEventListener("hashchange",function(){i.onHashChange()})};i.transitionTo(ft(),a,a)}i.listen(function(t){r.app._route=t})},Nt.prototype.beforeEach=function(t){this.beforeHooks.push(t)},Nt.prototype.afterEach=function(t){this.afterHooks.push(t)},Nt.prototype.push=function(t){this.history.push(t)},Nt.prototype.replace=function(t){this.history.replace(t)},Nt.prototype.go=function(t){this.history.go(t)},Nt.prototype.back=function(){this.go(-1)},Nt.prototype.forward=function(){this.go(1)},Nt.prototype.getMatchedComponents=function(t){var e=t?this.resolve(t).resolved:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Nt.prototype.resolve=function(t,e,n){var r=I(t,e||this.history.current,n),i=this.match(r,e),a=i.redirectedFrom||i.fullPath,o=this.history.base,s=mt(o,a,this.mode);return{normalizedTo:r,resolved:i,href:s}},Object.defineProperties(Nt.prototype,Vt),Nt.install=p,Pt&&window.Vue&&window.Vue.use(Nt),t.exports=Nt}).call(e,n(6))},function(t,e){e.sync=function(t,e){t.registerModule("route",{state:{},mutations:{"router/ROUTE_CHANGED":function(e,n){t.state.route=Object.freeze({name:n.name,path:n.path,hash:n.hash,query:n.query,params:n.params,fullPath:n.fullPath})}}});var n,r=!1;t.watch(function(t){return t.route},function(t){t.fullPath!==n&&(r=!0,n=t.fullPath,e.push(t))},{sync:!0}),e.afterEach(function(e){return r?void(r=!1):(n=e.fullPath,void t.commit("router/ROUTE_CHANGED",e))})}},function(t,e,n){"use strict";function r(t){var e=new o(t),n=a(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var i=n(2),a=n(16),o=n(139),s=n(9),u=r(s);u.Axios=o,u.create=function(t){return r(i.merge(s,t))},u.Cancel=n(13),u.CancelToken=n(138),u.isCancel=n(14),u.all=function(t){return Promise.all(t)},u.spread=n(153),t.exports=u,t.exports["default"]=u},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new i(t),e(n.reason))})}var i=n(13);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r(function(e){t=e});return{token:e,cancel:t}},t.exports=r},function(t,e,n){"use strict";function r(t){this.defaults=t,this.interceptors={request:new o,response:new o}}var i=n(9),a=n(2),o=n(140),s=n(141),u=n(149),l=n(147);r.prototype.request=function(t){"string"==typeof t&&(t=a.merge({url:arguments[0]},arguments[1])),t=a.merge(i,this.defaults,{method:"get"},t),t.baseURL&&!u(t.url)&&(t.url=l(t.baseURL,t.url));var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},a.forEach(["delete","get","head"],function(t){r.prototype[t]=function(e,n){return this.request(a.merge(n||{},{method:t,url:e}))}}),a.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(a.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=r},function(t,e,n){"use strict";function r(){this.handlers=[]}var i=n(2);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){"use strict";function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var i=n(2),a=n(144),o=n(14),s=n(9);t.exports=function(t){r(t),t.headers=t.headers||{},t.data=a(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=t.adapter||s.adapter;return e(t).then(function(e){return r(t),e.data=a(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(r(t),e&&e.response&&(e.response.data=a(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e){"use strict";t.exports=function(t,e,n,r){return t.config=e,n&&(t.code=n),t.response=r,t}},function(t,e,n){"use strict";var r=n(15);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n)):t(n)}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e){"use strict";function n(){this.message="String contains an invalid character"}function r(t){for(var e,r,a=String(t),o="",s=0,u=i;a.charAt(0|s)||(u="=",s%1);o+=u.charAt(63&e>>8-s%1*8)){if(r=a.charCodeAt(s+=.75),r>255)throw new n;e=e<<8|r}return o}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=r},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(2);t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(i.isURLSearchParams(e))a=e.toString();else{var o=[];i.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(i.isArray(t)&&(e+="[]"),i.isArray(t)||(t=[t]),i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),o.push(r(e)+"="+r(t))}))}),a=o.join("&")}return a&&(t+=(t.indexOf("?")===-1?"?":"&")+a),t}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,a,o){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()), -r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(n){var i=r.isString(n)?t(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e&&(a[e]=a[e]?a[e]+", "+n:n)}),a):a}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(255),i=n.n(r),a=n(1);n.n(a);e["default"]={name:"App",components:{Toast:i.a},computed:{hasMoviePath:function(){return this.$route.path.indexOf("/movies/")>-1},hasShowPath:function(){return this.$route.path.indexOf("/shows/")>-1||this.$route.path.indexOf("/seasons/")>-1},showSearchButton:function(){return"/movies"==this.$route.path||"/shows"==this.$route.path},showMenu:function(){return this.$store.state.interfaces.showMenu},showSearch:function(){return this.$store.state.interfaces.showSearch}},methods:Object.assign({},n.i(a.mapActions)(["hideMenu","toggleMenu","toggleSearch"]))}},function(t,e,n){"use strict";e["default"]={name:"Episode",props:["episode"],computed:{isDisabled:function(){return!this.episode.attributes.has_file}}}},function(t,e,n){"use strict";var r=n(8),i=n.n(r),a=n(189),o=n.n(a);e["default"]=i.a.extend({methods:{render:function(t){var e={type:"line",data:t,options:{legend:{display:!1},scales:{yAxes:[{ticks:{min:0,stepSize:1,beginAtZero:!0,fontColor:"rgba(255,255,255,0.5)"},gridLines:{color:"rgba(255,255,255,0.1)",zeroLineColor:"rgba(255,255,255,0.2)"}}],xAxes:[{ticks:{fontColor:"rgba(255,255,255,0.5)"},gridLines:{color:"rgba(255,255,255,0.1)",zeroLineColor:"rgba(255,255,255,0.2)"}}]}}};new o.a(this.$refs.canvas.getContext("2d"),e)}}})},function(t,e,n){"use strict";var r=n(237),i=n.n(r);e["default"]=i.a.extend({name:"MonthlyChart",props:["months"],mounted:function(){this.render({labels:this.months.map(function(t){return t.id}),datasets:[{label:"Views",backgroundColor:"rgba(151,187,205,0.2)",borderColor:"rgba(151,187,205,1)",lineTension:0,pointBackgroundColor:"#fff",pointBorderColor:"rgba(151,187,205,1)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointHoverRadius:6,pointRadius:5,data:this.months.map(function(t){return t.total})}]})}})},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(11)),s=n.n(o),u=n(5),l=n.n(u),d=n(1);n.n(d);e["default"]={name:"Movie",components:{MonthlyChart:s.a,Spinner:l.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(d.mapActions)(["getMovie","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/movies/"+this.$route.params.id};this.getMovie(t)}}),computed:{isDisabled:function(){return!this.movie.attributes.has_file},genres:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.genres.data.map(function(e){var n=e.id;return t.genres.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.movies.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},movie:function(){var t=this.$store.state;return t.movies.all.find(function(e){return e.id==t.movies.currentID})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MovieBackdrop",props:["movie","backdrop"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectBackdrop:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{backdrop_path:this.backdrop.attributes.file_path}}}};this.patchMovie(t)}}}),computed:{isActive:function(){var t=this.movie.attributes.backdrop_url,e=this.backdrop.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";e["default"]={name:"MovieCard",props:["movie"],computed:{link:function(){return 0==this.movie.attributes.tmdb_movie_id?"/movies/"+this.movie.id+"/edit":"/movies/"+this.movie.id}}}},function(t,e,n){"use strict";var r=n(239),i=n.n(r),a=n(242),o=n.n(a),s=n(243),u=n.n(s),l=n(5),d=n.n(l),c=n(1);n.n(c);e["default"]={name:"MovieEdit",components:{MovieBackdrop:i.a,MoviePoster:o.a,MovieResult:u.a,Spinner:d.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(c.mapActions)(["getMovieWithResults","loadingRoute","patchMovie"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/movies/"+this.$route.params.id+"?include=backdrops,posters,results"};this.getMovieWithResults(t)},patchTitle:_.debounce(function(t){var e={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{title:t.target.value}}}};this.patchMovie(e)},500)}),computed:{backdrops:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.backdrops.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},isResolved:function(){return 0!=this.movie.attributes.tmdb_movie_id},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},movie:function(){var t=this.$store.state;return t.movies.all.find(function(e){return e.id==t.movies.currentID})},posters:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.posters.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},results:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.results.data.map(function(e){var n=e.id;return t.search.movies.find(function(t){return t.id==n})})}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MoviePoster",props:["movie","poster"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectPoster:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{poster_path:this.poster.attributes.file_path}}}};this.patchMovie(t)}}}),computed:{isActive:function(){var t=this.movie.attributes.poster_url,e=this.poster.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MovieResult",props:["movie","result"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectResult:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{tmdb_movie_id:this.result.id}}},redirect:"/movies/"+this.movie.id};this.patchMovie(t)}}}),computed:{isActive:function(){return this.result.id==this.movie.attributes.tmdb_movie_id}}}},function(t,e,n){"use strict";var r=n(240),i=n.n(r),a=n(125),o=n.n(a),s=n(5),u=n.n(s),l=n(1);n.n(l);e["default"]={name:"Movies",components:{MovieCard:i.a,MugenScroll:o.a,Spinner:u.a},created:function(){this.loadingRoute(),this.clearGenresFilter(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()},links:function(){var t=this;clearTimeout(t.loadingTimeout),t.loadingTimeout=setTimeout(function(){t.links&&t.links.next&&!t.loading&&t.fetchData(t.links.next)},1e3)}},methods:Object.assign({},n.i(l.mapActions)(["clearFilters","clearGenresFilter","getMovies","filterGenres","filterKeywords","filterOrder","loadingRoute"]),{fetchData:_.debounce(function(t){t||(t="/api/movies"+this.$store.state.filters.queryMovies);var e={url:t};this.getMovies(e)},250),filterMovieGenres:function(t){this.filterGenres(t),this.fetchData()},filterMovieKeywords:function(t){this.filterKeywords(t),this.fetchData()},filterMovieOrder:function(t){this.filterOrder(t),this.fetchData()},filterReset:function(){this.clearFilters(),this.fetchData()},loadMore:_.throttle(function(){this.links&&this.links.next&&!this.loading&&this.fetchData(this.links.next)},500)}),computed:{genres:function(){return _.chain(this.$store.state.genres.all).sortBy("attributes.name").filter(function(t){return t.attributes.total_movies>0}).value()},keywords:function(){return this.$store.state.filters.keywords},links:function(){return this.$store.state.movies.links},loading:function(){return this.$store.state.movies.loading},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},movies:function(){var t=this.$store.state,e=t.filters.keywords,n=t.filters.selectedGenre,r=t.filters.attributes.movies,i=t.filters.direction;return _.chain(t.movies.all).filter(function(t){var n=new RegExp(e,"i");return n.test(t.attributes.title)}).filter(function(t){var e=t.relationships.genres.data.find(function(t){return t.id==n});return""==n||null!=e}).orderBy([r],[i]).value()},orders:function(){return this.$store.state.filters.orders},selectedGenre:function(){return this.$store.state.filters.selectedGenre},selectedOrder:function(){return this.$store.state.filters.selectedOrder}}}},function(t,e,n){"use strict";e["default"]={name:"NotFound"}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(236)),s=n.n(o),u=n(11),l=n.n(u),d=n(5),c=n.n(d),f=n(1);n.n(f);e["default"]={name:"Season",components:{Episode:s.a,MonthlyChart:l.a,Spinner:c.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(f.mapActions)(["getSeason","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/seasons/"+this.$route.params.id};this.getSeason(t)}}),computed:{episodes:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID});return e.relationships.episodes.data.map(function(e){var n=e.id;return t.episodes.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.seasons.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},season:function(){var t=this.$store.state;return t.seasons.all.find(function(e){return e.id==t.seasons.currentID})},show:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID});return t.shows.all.find(function(t){return t.id==e.relationships.show.data.id})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(5),i=n.n(r),a=n(1);n.n(a);e["default"]={name:"Settings",components:{Spinner:i.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(a.mapActions)(["clearAll","clearToday","getSettings","patchSettings","refreshAll","refreshNew","setMoviesFolder","setShowsFolder","loadingRoute"]),{clearHistory:function(){var t={url:"/api/settings/history?all"};this.clearAll(t)},clearHistoryToday:function(){var t={url:"/api/settings/history"};this.clearToday(t)},fetchData:function(){var t={url:"/api/settings"};this.getSettings(t)},patchFolders:function(){var t={url:"/api/settings",json:{data:this.settings}};this.patchSettings(t)},refreshAllFolders:function(){var t={url:"/api/settings/folders?all"};this.refreshAll(t)},refreshNewFolders:function(){var t={url:"/api/settings/folders"};this.refreshNew(t)}}),computed:{loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},settings:function(){return this.$store.state.settings.current}}}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(11)),s=n.n(o),u=n(5),l=n.n(u),d=n(1);n.n(d);e["default"]={name:"Show",components:{MonthlyChart:s.a,Spinner:l.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(d.mapActions)(["getShow","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/shows/"+this.$route.params.id};this.getShow(t)}}),computed:{genres:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.genres.data.map(function(e){var n=e.id;return t.genres.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.shows.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},seasons:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return _.chain(e.relationships.seasons.data.map(function(e){var n=e.id;return t.seasons.all.find(function(t){return t.id==n})})).orderBy(["attributes.season_number"],["asc"]).value()},show:function(){var t=this.$store.state;return t.shows.all.find(function(e){return e.id==t.shows.currentID})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowBackdrop",props:["show","backdrop"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectBackdrop:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{backdrop_path:this.backdrop.attributes.file_path}}}};this.patchShow(t)}}}),computed:{isActive:function(){var t=this.show.attributes.backdrop_url,e=this.backdrop.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";e["default"]={name:"ShowCard",props:["show"],computed:{link:function(){return 0==this.show.attributes.tmdb_show_id?"/shows/"+this.show.id+"/edit":"/shows/"+this.show.id}}}},function(t,e,n){"use strict";var r=n(249),i=n.n(r),a=n(252),o=n.n(a),s=n(253),u=n.n(s),l=n(5),d=n.n(l),c=n(1);n.n(c);e["default"]={name:"ShowEdit",components:{ShowBackdrop:i.a,ShowPoster:o.a,ShowResult:u.a,Spinner:d.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(c.mapActions)(["getShowWithResults","loadingRoute","patchShow"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/shows/"+this.$route.params.id+"?include=backdrops,posters,results"};this.getShowWithResults(t)},patchName:_.debounce(function(t){var e={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{name:t.target.value}}}};this.patchShow(e)},500)}),computed:{backdrops:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.backdrops.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},isResolved:function(){return 0!=this.show.attributes.tmdb_show_id},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},posters:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.posters.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},results:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.results.data.map(function(e){var n=e.id;return t.search.shows.find(function(t){return t.id==n})})},show:function(){var t=this.$store.state;return t.shows.all.find(function(e){return e.id==t.shows.currentID})}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowPoster",props:["show","poster"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectPoster:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{poster_path:this.poster.attributes.file_path}}}};this.patchShow(t)}}}),computed:{isActive:function(){var t=this.show.attributes.poster_url,e=this.poster.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowResult",props:["show","result"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectResult:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{tmdb_show_id:this.result.id}}},redirect:"/shows/"+this.show.id};this.patchShow(t)}}}),computed:{isActive:function(){return this.result.id==this.show.attributes.tmdb_show_id}}}},function(t,e,n){"use strict";var r=n(125),i=n.n(r),a=n(250),o=n.n(a),s=n(5),u=n.n(s),l=n(1);n.n(l);e["default"]={name:"Shows",components:{MugenScroll:i.a,ShowCard:o.a,Spinner:u.a},created:function(){this.loadingRoute(),this.clearGenresFilter(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()},links:function(){var t=this;clearTimeout(t.loadingTimeout),t.loadingTimeout=setTimeout(function(){t.links&&t.links.next&&!t.loading&&t.fetchData(t.links.next)},1e3)}},methods:Object.assign({},n.i(l.mapActions)(["clearFilters","clearGenresFilter","getShows","filterGenres","filterKeywords","filterOrder","loadingRoute"]),{fetchData:_.debounce(function(t){t||(t="/api/shows"+this.$store.state.filters.queryShows);var e={url:t};this.getShows(e)},250),filterShowGenres:function(t){this.filterGenres(t),this.fetchData()},filterShowKeywords:function(t){this.filterKeywords(t),this.fetchData()},filterShowOrder:function(t){this.filterOrder(t),this.fetchData()},filterReset:function(){this.clearFilters(),this.fetchData()},loadMore:function(){!this.links.next||this.loading||this._inactive||this.fetchData(this.links.next)}}),computed:{genres:function(){return _.chain(this.$store.state.genres.all).sortBy("attributes.name").filter(function(t){return t.attributes.total_movies>0}).value()},keywords:function(){return this.$store.state.filters.keywords},links:function(){return this.$store.state.shows.links},loading:function(){return this.$store.state.shows.loading},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},selectedGenre:function(){return this.$store.state.filters.selectedGenre},selectedOrder:function(){return this.$store.state.filters.selectedOrder},shows:function(){var t=this.$store.state,e=t.filters.keywords,n=t.filters.selectedGenre,r=t.filters.attributes.shows,i=t.filters.direction;return _.chain(t.shows.all).filter(function(t){var n=new RegExp(e,"i");return n.test(t.attributes.name)}).filter(function(t){var e=t.relationships.genres.data.find(function(t){return t.id==n});return""==n||null!=e}).orderBy([r],[i]).value()},orders:function(){return this.$store.state.filters.orders}}}},function(t,e,n){"use strict";e["default"]={name:"Spinner"}},function(t,e,n){"use strict";var r=n(1),i=(n.n(r),300),a=3e3,o=300;e["default"]={name:"Toast",replace:!0,watch:{toast:function(t){this.addToQueue(t)}},computed:Object.assign({},n.i(r.mapState)({toast:function(t){return t.toasts.current}}),{toastContext:function(){return this.context?"toast-"+this.context:""}}),data:function(){return{activeToast:!1,activeProgressBar:!1,animation:null,animationInProgress:!1,queue:[],style:{transition:"width 0s"}}},props:{context:{type:String,"default":""},duration:{type:Number,"default":a},message:{type:String,"default":"Done!"},onAjaxErrors:{type:Boolean,"default":!1},position:{type:String,"default":"bottom left"},hideProgress:{type:Boolean,"default":!1},debounce:{type:Number,"default":i}},methods:{pause:function(){this.activeProgressBar=!1,clearTimeout(this.animation),this.style.transition="width 0.1s"},clear:function(){var t=this;this._toastAnimation=setTimeout(function(){t.activeProgressBar=!1,t.animationInProgress=!1,t.style.transition="width 0s",t.activeToast=!1,clearTimeout(t.animation),t.queue.length>0&&(t._toastAnimation=setTimeout(function(){var e=t.queue.shift();t.show(e)},0))},o)},animate:function(){this.style.transition="width "+this.duration/1e3+"s",this.activeProgressBar=!0,this.animation=setTimeout(this.clear,this.duration)},show:function(t){var e=this;this.context="default",this.animationInProgress=!0,this.message=t.message||this.message,this.context=t.context||this.context,this.debounce=t.debounce||this.debounce,this.duration=t.duration||this.duration,this.hideProgress=t.hideProgress||this.hideProgress,this.position=t.position||this.position,t.success&&(this.context="success",this.message=t.success),t.info&&(this.context="info",this.message=t.info),t.warning&&(this.context="warning",this.message=t.warning),t.error&&(this.context="danger",this.message=t.error),setTimeout(function(){e.activeToast=!0,e.animate()},100)},addToQueue:function(t){var e=this;this.animationInProgress||this.queue.length>0?this.queue.push(t):setTimeout(function(){e.show(t)},this.debounce)}},events:{"end::ajax":function(t){this.onAjaxErrors&&t&&t.error&&this.addToQueue(t)},"show::toast":function(t){this.addToQueue(t)}},destroyed:function(){clearTimeout(this._animation),clearTimeout(this._toastAnimation)}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{currentID:null,all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.b]=function(t,e){t.currentID=e},r[a.c]=function(t,e){n.i(i.a)(t.all,e,"episodes")},r[a.d]=function(t,e){n.i(i.b)(t.all,e,"episodes")},r)}},function(t,e,n){"use strict";function r(t){var e=t.orders.find(function(e){return e.id==t.selectedOrder});t.attributes.movies="attributes."+e.movies,t.attributes.shows="attributes."+e.shows,t.direction=e.direction,i(t,e),a(t,e)}function i(t,e){var n=e.prefix+e.movies;t.queryMovies=o(t,n)}function a(t,e){var n=e.prefix+e.shows;t.queryShows=o(t,n)}function o(t,e){var n=[{key:"keywords",value:t.keywords},{key:"sort",value:e},{key:"genre",value:t.selectedGenre}],r="";return n.forEach(function(e){s(t,e)&&(r+=encodeURIComponent(e.key)+"="+encodeURIComponent(e.value)+"&")}),r.length>0&&(r=r.substring(0,r.length-1),r="?"+r),r}function s(t,e){return("sort"!=e.key||"a-z"!=t.selectedOrder)&&""!=e.value}var u,l=n(3);e.a={state:{selectedGenre:"",keywords:"",selectedOrder:"a-z",attributes:{movies:"attributes.title",shows:"attributes.name"},queryMovies:"",queryShows:"",direction:"asc",orders:[{id:"a-z",name:"Title: A-Z",prefix:"",movies:"title",shows:"name",direction:"asc"},{id:"z-a",name:"Title: Z-A",prefix:"-",movies:"title",shows:"name",direction:"desc"},{id:"newest",name:"Year: Newest",prefix:"-",movies:"release_date",shows:"first_air_date",direction:"desc"},{id:"oldest",name:"Year: Oldest",prefix:"",movies:"release_date",shows:"first_air_date",direction:"asc"}]},mutations:(u={},u[l.e]=function(t){t.selectedGenre="",t.keywords="",t.selectedOrder="a-z",r(t)},u[l.f]=function(t){t.selectedGenre="",r(t)},u[l.g]=function(t,e){t.selectedGenre=e,r(t)},u[l.h]=function(t,e){t.keywords=e,r(t)},u[l.i]=function(t,e){t.selectedOrder=e,r(t)},u),actions:{clearFilters:function(t){t.commit(l.e)},clearGenresFilter:function(t){t.commit(l.f)},filterGenres:function(t,e){t.commit(l.g,e.target.value)},filterKeywords:function(t,e){t.commit(l.h,e.target.value)},filterOrder:function(t,e){t.commit(l.i,e.target.value)}}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.j]=function(t,e){n.i(i.b)(t.all,e,"genres")},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.k]=function(t,e){n.i(i.b)(t.all,e,"images")},r)}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{showMenu:!1,showSearch:!1,loadingRouteData:!0},mutations:(r={},r[i.l]=function(t){t.loadingRouteData=!0},r[i.m]=function(t){t.loadingRouteData=!1},r[i.n]=function(t){t.showMenu=!1},r[i.o]=function(t){t.showMenu=!t.showMenu},r[i.p]=function(t){t.showSearch=!t.showSearch},r),actions:{loadingRoute:function(t){t.commit(i.l)},loadedRoute:function(t){t.commit(i.m)},hideMenu:function(t){t.commit(i.n)},toggleMenu:function(t){t.commit(i.o)},toggleSearch:function(t){t.commit(i.p)}}}},function(t,e,n){"use strict";function r(t,e){e.relationships&&(t.relationships.backdrops=e.relationships.backdrops?e.relationships.backdrops:t.relationships.backdrops,t.relationships.genres=e.relationships.genres?e.relationships.genres:t.relationships.genres,t.relationships.posters=e.relationships.posters?e.relationships.posters:t.relationships.posters,t.relationships.results=e.relationships.results?e.relationships.results:t.relationships.results,t.relationships.views=e.relationships.views?e.relationships.views:t.relationships.views)}var i,a=n(4),o=n(3);e.a={state:{currentID:null,loading:!1,all:[],links:[]},mutations:(i={},i[o.a]=function(t){t.all=[]},i[o.q]=function(t){t.loading=!0},i[o.r]=function(t){t.loading=!1},i[o.s]=function(t,e){t.currentID=e},i[o.t]=function(t,e){t.links=e},i[o.u]=function(t,e){n.i(a.a)(t.all,e,"movies",r)},i[o.v]=function(t,e){n.i(a.b)(t.all,e,"movies")},i),actions:{getMovies:function(t,e){t.commit(o.q),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.v,n.data),t.commit(o.t,n.links),t.commit(o.j,n.included),t.commit(o.r),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getMovie:function(t,e){t.commit(o.s,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.u,n.data),t.commit(o.j,n.included),t.commit(o.x,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getMovieWithResults:function(t,e){t.commit(o.s,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.u,n.data),t.commit(o.k,n.included),t.commit(o.y,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},patchMovie:function(t,e){e.redirect&&t.commit(o.w,{success:"Updating Movie"}),axios.patch(e.url,e.json).then(function(n){var r=n.data;t.commit(o.u,r.data),e.redirect&&window.vueRouter.push(e.redirect)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{movies:[],shows:[]},mutations:(r={},r[a.a]=function(t){t.movies=[],t.shows=[]},r[a.y]=function(t,e){n.i(i.b)(t.movies,e,"movie-results")},r[a.z]=function(t,e){n.i(i.b)(t.shows,e,"show-results")},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{currentID:null,all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.A]=function(t,e){t.currentID=e},r[a.B]=function(t,e){n.i(i.a)(t.all,e,"seasons")},r[a.C]=function(t,e){n.i(i.b)(t.all,e,"seasons")},r),actions:{getSeason:function(t,e){t.commit(a.A,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(a.B,n.data),t.commit(a.d,n.included),t.commit(a.D,n.included),t.commit(a.j,n.included),t.commit(a.E,n.included),t.commit(a.m)})["catch"](function(e){t.commit(a.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{current:null},mutations:(r={},r[i.F]=function(t,e){t.current=e},r[i.G]=function(t,e){for(var n in e)t.current.attributes[n]=e[n]},r),actions:{clearAll:function(t,e){axios["delete"](e.url).then(function(e){t.commit(i.w,{success:"Clearing All History"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},clearToday:function(t,e){axios["delete"](e.url).then(function(e){t.commit(i.w,{success:"Clearing Today's History"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},getSettings:function(t,e){axios.get(e.url).then(function(e){var n=e.data;t.commit(i.F,n.data),t.commit(i.m)})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},patchSettings:function(t,e){axios.patch(e.url,e.json).then(function(e){var n=e.data;t.commit(i.F,n.data),t.commit(i.a),t.commit(i.w,{success:"Updating Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},refreshAll:function(t,e){axios.patch(e.url).then(function(e){t.commit(i.w,{success:"Refreshing All Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},refreshNew:function(t,e){axios.patch(e.url).then(function(e){t.commit(i.w,{success:"Refreshing New Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},setMoviesFolder:function(t,e){var n={movies_folder:e.target.value};t.commit(i.G,n)},setShowsFolder:function(t,e){var n={shows_folder:e.target.value};t.commit(i.G,n)}}}},function(t,e,n){"use strict";function r(t,e){e.relationships&&(t.relationships.backdrops=e.relationships.backdrops?e.relationships.backdrops:t.relationships.backdrops,t.relationships.genres=e.relationships.genres?e.relationships.genres:t.relationships.genres,t.relationships.posters=e.relationships.posters?e.relationships.posters:t.relationships.posters,t.relationships.results=e.relationships.results?e.relationships.results:t.relationships.results,t.relationships.seasons=e.relationships.seasons?e.relationships.seasons:t.relationships.seasons,t.relationships.views=e.relationships.views?e.relationships.views:t.relationships.views)}var i,a=n(4),o=n(3);e.a={state:{currentID:null,loading:!1,all:[],links:[]},mutations:(i={},i[o.a]=function(t){t.all=[]},i[o.H]=function(t){t.loading=!0},i[o.I]=function(t){t.loading=!1},i[o.J]=function(t,e){t.currentID=e},i[o.K]=function(t,e){t.links=e},i[o.L]=function(t,e){n.i(a.a)(t.all,e,"shows",r)},i[o.D]=function(t,e){n.i(a.b)(t.all,e,"shows")},i),actions:{getShows:function(t,e){t.commit(o.H),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.D,n.data),t.commit(o.K,n.links),t.commit(o.j,n.included),t.commit(o.I),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getShow:function(t,e){t.commit(o.J,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.L,n.data),t.commit(o.j,n.included),t.commit(o.C,n.included),t.commit(o.M,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getShowWithResults:function(t,e){t.commit(o.J,e.id), -axios.get(e.url).then(function(e){var n=e.data;t.commit(o.L,n.data),t.commit(o.j,n.included),t.commit(o.C,n.included),t.commit(o.k,n.included),t.commit(o.z,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},patchShow:function(t,e){e.redirect&&t.commit(o.w,{success:"Updating Show"}),axios.patch(e.url,e.json).then(function(n){var r=n.data;t.commit(o.L,r.data),e.redirect&&window.vueRouter.push(e.redirect)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{current:null},mutations:(r={},r[i.w]=function(t,e){t.current=e},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{movies:[],seasons:[],shows:[]},mutations:(r={},r[a.a]=function(t){t.movies=[],t.seasons=[],t.shows=[]},r[a.x]=function(t,e){n.i(i.b)(t.movies,e,"movie-views")},r[a.E]=function(t,e){n.i(i.b)(t.seasons,e,"season-views")},r[a.M]=function(t,e){n.i(i.b)(t.shows,e,"show-views")},r)}},function(t,e,n){var r=n(210)();n(208)(r),n(204)(r),n(207)(r),n(203)(r),n(205)(r),n(206)(r),n(211)(r),n(215)(r),n(213)(r),n(216)(r),n(214)(r),n(217)(r),n(212)(r),n(209)(r),n(218)(r),n(219)(r),n(220)(r),n(221)(r),n(222)(r),n(225)(r),n(223)(r),n(224)(r),n(226)(r),n(227)(r),n(228)(r),n(197)(r),n(198)(r),n(199)(r),n(200)(r),n(201)(r),n(202)(r),n(190)(r),n(191)(r),n(192)(r),n(193)(r),n(194)(r),n(195)(r),n(196)(r),window.Chart=t.exports=r},function(t,e){"use strict";t.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Radar=function(e,n){return n.type="radar",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){var e={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(e,n){t.DatasetController.prototype.initialize.call(this,e,n),this.getMeta().bar=!0},getBarCount:function(){var t=this,n=0;return e.each(t.chart.data.datasets,function(e,r){var i=t.chart.getDatasetMeta(r);i.bar&&t.chart.isDatasetVisible(r)&&++n},t),n},update:function(t){var n=this;e.each(n.getMeta().data,function(e,r){n.updateElement(e,r,t)},n)},updateElement:function(t,n,r){var i=this,a=i.getMeta(),o=i.getScaleForId(a.xAxisID),s=i.getScaleForId(a.yAxisID),u=s.getBasePixel(),l=i.chart.options.elements.rectangle,d=t.custom||{},c=i.getDataset();t._xScale=o,t._yScale=s,t._datasetIndex=i.index,t._index=n;var f=i.getRuler(n);t._model={x:i.calculateBarX(n,i.index,f),y:r?u:i.calculateBarY(n,i.index),label:i.chart.data.labels[n],datasetLabel:c.label,base:r?u:i.calculateBarBase(i.index,n),width:i.calculateBarWidth(f),backgroundColor:d.backgroundColor?d.backgroundColor:e.getValueAtIndexOrDefault(c.backgroundColor,n,l.backgroundColor),borderSkipped:d.borderSkipped?d.borderSkipped:l.borderSkipped,borderColor:d.borderColor?d.borderColor:e.getValueAtIndexOrDefault(c.borderColor,n,l.borderColor),borderWidth:d.borderWidth?d.borderWidth:e.getValueAtIndexOrDefault(c.borderWidth,n,l.borderWidth)},t.pivot()},calculateBarBase:function(t,e){var n=this,r=n.getMeta(),i=n.getScaleForId(r.yAxisID),a=0;if(i.options.stacked){for(var o=n.chart,s=o.data.datasets,u=Number(s[t].data[e]),l=0;l0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(r,i){var a=t.getDatasetMeta(0),o=n.datasets[0],s=a.data[i],u=s&&s.custom||{},l=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=u.backgroundColor?u.backgroundColor:l(o.backgroundColor,i,d.backgroundColor),f=u.borderColor?u.borderColor:l(o.borderColor,i,d.borderColor),h=u.borderWidth?u.borderWidth:l(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,r,i,a=e.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n=Math.PI?-1:_<-Math.PI?1:0);var m=_+h,p={x:Math.cos(_),y:Math.sin(_)},v={x:Math.cos(m),y:Math.sin(m)},g=_<=0&&0<=m||_<=2*Math.PI&&2*Math.PI<=m,y=_<=.5*Math.PI&&.5*Math.PI<=m||_<=2.5*Math.PI&&2.5*Math.PI<=m,M=_<=-Math.PI&&-Math.PI<=m||_<=Math.PI&&Math.PI<=m,b=_<=.5*-Math.PI&&.5*-Math.PI<=m||_<=1.5*Math.PI&&1.5*Math.PI<=m,L=f/100,w={x:M?-1:Math.min(p.x*(p.x<0?1:L),v.x*(v.x<0?1:L)),y:b?-1:Math.min(p.y*(p.y<0?1:L),v.y*(v.y<0?1:L))},k={x:g?1:Math.max(p.x*(p.x>0?1:L),v.x*(v.x>0?1:L)),y:y?1:Math.max(p.y*(p.y>0?1:L),v.y*(v.y>0?1:L))},Y={width:.5*(k.x-w.x),height:.5*(k.y-w.y)};l=Math.min(s/Y.width,u/Y.height),d={x:(k.x+w.x)*-.5,y:(k.y+w.y)*-.5}}r.borderWidth=n.getMaxBorderWidth(c.data),r.outerRadius=Math.max((l-r.borderWidth)/2,0),r.innerRadius=Math.max(f?r.outerRadius/100*f:1,0),r.radiusLength=(r.outerRadius-r.innerRadius)/r.getVisibleDatasetCount(),r.offsetX=d.x*r.outerRadius,r.offsetY=d.y*r.outerRadius,c.total=n.calculateTotal(),n.outerRadius=r.outerRadius-r.radiusLength*n.getRingIndex(n.index),n.innerRadius=n.outerRadius-r.radiusLength,e.each(c.data,function(e,r){n.updateElement(e,r,t)})},updateElement:function(t,n,r){var i=this,a=i.chart,o=a.chartArea,s=a.options,u=s.animation,l=(o.left+o.right)/2,d=(o.top+o.bottom)/2,c=s.rotation,f=s.rotation,h=i.getDataset(),_=r&&u.animateRotate?0:t.hidden?0:i.calculateCircumference(h.data[n])*(s.circumference/(2*Math.PI)),m=r&&u.animateScale?0:i.innerRadius,p=r&&u.animateScale?0:i.outerRadius,v=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:i.index,_index:n,_model:{x:l+a.offsetX,y:d+a.offsetY,startAngle:c,endAngle:f,circumference:_,outerRadius:p,innerRadius:m,label:v(h.label,n,a.data.labels[n])}});var g=t._model;this.removeHoverStyle(t),r&&u.animateRotate||(0===n?g.startAngle=s.rotation:g.startAngle=i.getMeta().data[n-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,n=this.getDataset(),r=this.getMeta(),i=0;return e.each(r.data,function(e,r){t=n.data[r],isNaN(t)||e.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,r=0,i=this.index,a=t.length,o=0;or?e:r,r=n>r?n:r;return r}})}},function(t,e){"use strict";t.exports=function(t){function e(t,e){return n.getValueOrDefault(t.showLine,e.showLines)}var n=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,update:function(t){var r,i,a,o=this,s=o.getMeta(),u=s.dataset,l=s.data||[],d=o.chart.options,c=d.elements.line,f=o.getScaleForId(s.yAxisID),h=o.getDataset(),_=e(h,d);for(_&&(a=u.custom||{},void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),u._scale=f,u._datasetIndex=o.index,u._children=l,u._model={spanGaps:h.spanGaps?h.spanGaps:d.spanGaps,tension:a.tension?a.tension:n.getValueOrDefault(h.lineTension,c.tension),backgroundColor:a.backgroundColor?a.backgroundColor:h.backgroundColor||c.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:h.borderWidth||c.borderWidth,borderColor:a.borderColor?a.borderColor:h.borderColor||c.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:h.borderCapStyle||c.borderCapStyle,borderDash:a.borderDash?a.borderDash:h.borderDash||c.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:h.borderDashOffset||c.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:h.borderJoinStyle||c.borderJoinStyle,fill:a.fill?a.fill:void 0!==h.fill?h.fill:c.fill,steppedLine:a.steppedLine?a.steppedLine:n.getValueOrDefault(h.steppedLine,c.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:n.getValueOrDefault(h.cubicInterpolationMode,c.cubicInterpolationMode),scaleTop:f.top,scaleBottom:f.bottom,scaleZero:f.getBasePixel()},u.pivot()),r=0,i=l.length;r');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(r,i){var a=t.getDatasetMeta(0),o=n.datasets[0],s=a.data[i],u=s.custom||{},l=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=u.backgroundColor?u.backgroundColor:l(o.backgroundColor,i,d.backgroundColor),f=u.borderColor?u.borderColor:l(o.borderColor,i,d.borderColor),h=u.borderWidth?u.borderWidth:l(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,r,i,a=e.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,update:function(t){var n=this,r=n.getMeta(),i=r.dataset,a=r.data,o=i.custom||{},s=n.getDataset(),u=n.chart.options.elements.line,l=n.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),e.extend(r.dataset,{_datasetIndex:n.index,_children:a,_loop:!0,_model:{tension:o.tension?o.tension:e.getValueOrDefault(s.lineTension,u.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||u.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||u.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||u.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:u.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||u.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||u.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||u.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||u.borderJoinStyle,scaleTop:l.top,scaleBottom:l.bottom,scaleZero:l.getBasePosition()}}),r.dataset.pivot(),e.each(a,function(e,r){n.updateElement(e,r,t)},n),n.updateBezierControlPoints()},updateElement:function(t,n,r){var i=this,a=t.custom||{},o=i.getDataset(),s=i.chart.scale,u=i.chart.options.elements.point,l=s.getPointPositionForValue(n,o.data[n]);e.extend(t,{_datasetIndex:i.index,_index:n,_scale:s,_model:{x:r?s.xCenter:l.x,y:r?s.yCenter:l.y,tension:a.tension?a.tension:e.getValueOrDefault(o.tension,i.chart.options.elements.line.tension),radius:a.radius?a.radius:e.getValueAtIndexOrDefault(o.pointRadius,n,u.radius),backgroundColor:a.backgroundColor?a.backgroundColor:e.getValueAtIndexOrDefault(o.pointBackgroundColor,n,u.backgroundColor),borderColor:a.borderColor?a.borderColor:e.getValueAtIndexOrDefault(o.pointBorderColor,n,u.borderColor),borderWidth:a.borderWidth?a.borderWidth:e.getValueAtIndexOrDefault(o.pointBorderWidth,n,u.borderWidth),pointStyle:a.pointStyle?a.pointStyle:e.getValueAtIndexOrDefault(o.pointStyle,n,u.pointStyle),hitRadius:a.hitRadius?a.hitRadius:e.getValueAtIndexOrDefault(o.hitRadius,n,u.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,n=this.getMeta();e.each(n.data,function(r,i){var a=r._model,o=e.splineCurve(e.previousItem(n.data,i,!0)._model,a,e.nextItem(n.data,i,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),r.pivot()})},draw:function(t){var n=this.getMeta(),r=t||1;e.each(n.data,function(t){t.transition(r)}),n.dataset.transition(r).draw(),e.each(n.data,function(t){t.draw()})},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],r=t.custom||{},i=t._index,a=t._model;a.radius=r.hoverRadius?r.hoverRadius:e.getValueAtIndexOrDefault(n.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),a.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:e.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,i,e.getHoverColor(a.backgroundColor)),a.borderColor=r.hoverBorderColor?r.hoverBorderColor:e.getValueAtIndexOrDefault(n.pointHoverBorderColor,i,e.getHoverColor(a.borderColor)),a.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:e.getValueAtIndexOrDefault(n.pointHoverBorderWidth,i,a.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],r=t.custom||{},i=t._index,a=t._model,o=this.chart.options.elements.point;a.radius=r.radius?r.radius:e.getValueAtIndexOrDefault(n.radius,i,o.radius),a.backgroundColor=r.backgroundColor?r.backgroundColor:e.getValueAtIndexOrDefault(n.pointBackgroundColor,i,o.backgroundColor),a.borderColor=r.borderColor?r.borderColor:e.getValueAtIndexOrDefault(n.pointBorderColor,i,o.borderColor),a.borderWidth=r.borderWidth?r.borderWidth:e.getValueAtIndexOrDefault(n.pointBorderWidth,i,o.borderWidth)}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,r){var i=this;r||(t.animating=!0);for(var a=0;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var r=0;rt.animations[r].animationObject.numSteps&&(t.animations[r].animationObject.currentStep=t.animations[r].animationObject.numSteps),t.animations[r].animationObject.render(t.animations[r].chartInstance,t.animations[r].animationObject),t.animations[r].animationObject.onAnimationProgress&&t.animations[r].animationObject.onAnimationProgress.call&&t.animations[r].animationObject.onAnimationProgress.call(t.animations[r].chartInstance,t.animations[r]),t.animations[r].animationObject.currentStep===t.animations[r].animationObject.numSteps?(t.animations[r].animationObject.onAnimationComplete&&t.animations[r].animationObject.onAnimationComplete.call&&t.animations[r].animationObject.onAnimationComplete.call(t.animations[r].chartInstance,t.animations[r]),t.animations[r].chartInstance.animating=!1,t.animations.splice(r,1)):++r;var i=Date.now(),a=(i-e)/t.frameDuration;t.dropFrames+=a,t.animations.length>0&&t.requestAnimationFrame()}}}},function(t,e){"use strict";t.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(t,e,n,r,i){var a,o,s,u,l,d;if("object"==typeof e&&(a=e.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return void t.drawImage(e,r-e.width/2,i-e.height/2);if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(r,i,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),o=3*n/Math.sqrt(3),l=o*Math.sqrt(3)/2,t.moveTo(r-o/2,i+l/3),t.lineTo(r+o/2,i+l/3),t.lineTo(r,i-2*l/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(r-d,i-d,2*d,2*d),t.strokeRect(r-d,i-d,2*d,2*d);break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(r-d,i),t.lineTo(r,i+d),t.lineTo(r+d,i),t.lineTo(r,i-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(r,i+n),t.lineTo(r,i-n),t.moveTo(r-n,i),t.lineTo(r+n,i),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r-s,i+u),t.lineTo(r+s,i-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(r,i+n),t.lineTo(r,i-n),t.moveTo(r-n,i),t.lineTo(r+n,i),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r-s,i+u),t.lineTo(r+s,i-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(r-n,i),t.lineTo(r+n,i),t.closePath();break;case"dash":t.beginPath(),t.moveTo(r,i),t.lineTo(r+n,i),t.closePath()}t.stroke()}}}},function(t,e){"use strict";t.exports=function(t){function e(t,e){var n=o.getStyle(t,e),r=n&&n.match(/(\d+)px/);return r?Number(r[1]):void 0}function n(t,n){var r=t.style,i=t.getAttribute("height"),a=t.getAttribute("width");if(t._chartjs={initial:{height:i,width:a,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===a||""===a){var o=e(t,"width");void 0!==o&&(t.width=o)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(n.options.aspectRatio||2);else{var s=e(t,"height");void 0!==o&&(t.height=s)}return t}function r(t){if(t._chartjs){var e=t._chartjs.initial;["height","width"].forEach(function(n){var r=e[n];void 0===r||null===r?t.removeAttribute(n):t.setAttribute(n,r)}),o.each(e.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t._chartjs}}function i(t,e){if("string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t instanceof HTMLCanvasElement){var r=t.getContext&&t.getContext("2d");if(r instanceof CanvasRenderingContext2D)return n(t,e),r}return null}function a(e){e=e||{};var n=e.data=e.data||{};return n.datasets=n.datasets||[],n.labels=n.labels||[],e.options=o.configMerge(t.defaults.global,t.defaults[e.type],e.options||{}),e}var o=t.helpers;t.types={},t.instances={},t.controllers={},t.Controller=function(e,n,r){var s=this;n=a(n);var u=i(e,n),l=u&&u.canvas,d=l&&l.height,c=l&&l.width;return r.ctx=u,r.canvas=l,r.config=n,r.width=c,r.height=d,r.aspectRatio=d?c/d:null,s.id=o.uid(),s.chart=r,s.config=n,s.options=n.options,s._bufferedRender=!1,t.instances[s.id]=s,Object.defineProperty(s,"data",{get:function(){return s.config.data}}),u&&l?(o.retinaScale(r),s.options.responsive&&(o.addResizeListener(l.parentNode,function(){s.resize()}),s.resize(!0)),s.initialize(),s):s},o.extend(t.Controller.prototype,{initialize:function(){var e=this;return t.plugins.notify("beforeInit",[e]),e.bindEvents(),e.ensureScalesHaveIDs(),e.buildOrUpdateControllers(),e.buildScales(),e.updateLayout(),e.resetElements(),e.initToolTip(),e.update(),t.plugins.notify("afterInit",[e]),e},clear:function(){return o.clear(this.chart),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(e){var n=this,r=n.chart,i=n.options,a=r.canvas,s=i.maintainAspectRatio&&r.aspectRatio||null,u=Math.floor(o.getMaximumWidth(a)),l=Math.floor(s?u/s:o.getMaximumHeight(a));if(r.width!==u||r.height!==l){a.width=r.width=u,a.height=r.height=l,a.style.width=u+"px",a.style.height=l+"px",o.retinaScale(r);var d={width:u,height:l};t.plugins.notify("resize",[n,d]),n.options.onResize&&n.options.onResize(n,d),e||(n.stop(),n.update(n.options.responsiveAnimationDuration))}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;o.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),o.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,n=e.options,r=e.scales={},i=[];n.scales&&(i=i.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear"}}))),n.scale&&i.push({options:n.scale,dtype:"radialLinear",isDefault:!0}),o.each(i,function(n){var i=n.options,a=o.getValueOrDefault(i.type,n.dtype),s=t.scaleService.getScaleConstructor(a);if(s){var u=new s({id:i.id,options:i,ctx:e.chart.ctx,chart:e});r[u.id]=u,n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},updateLayout:function(){t.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var e=this,n=[],r=[];if(o.each(e.data.datasets,function(i,a){var o=e.getDatasetMeta(a);o.type||(o.type=i.type||e.config.type),n.push(o.type),o.controller?o.controller.updateIndex(a):(o.controller=new t.controllers[o.type](e,a),r.push(o.controller))},e),n.length>1)for(var i=1;i0||(i.forEach(function(e){delete t[e]}),delete t._chartjs)}}var r=t.helpers,i=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},r.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,r=n.getMeta(),i=n.getDataset().data||[],a=r.data;for(t=0,e=i.length;tr&&t.insertElements(r,i-r)},insertElements:function(t,e){for(var n=0;n=0;i--)e.call(n,t[i],i);else for(i=0;i=r[n].length||!r[n][i].type?r[n].push(a.configMerge(s,e)):e.type&&e.type!==r[n][i].type?r[n][i]=a.configMerge(r[n][i],s,e):r[n][i]=a.configMerge(r[n][i],e)}):(r[n]=[],a.each(e,function(e){var i=a.getValueOrDefault(e.type,"xAxes"===n?"category":"linear");r[n].push(a.configMerge(t.scaleService.getScaleDefaults(i),e))})):r.hasOwnProperty(n)&&"object"==typeof r[n]&&null!==r[n]&&"object"==typeof e?r[n]=a.configMerge(r[n],e):r[n]=e}),r},a.getValueAtIndexOrDefault=function(t,e,n){return void 0===t||null===t?n:a.isArray(t)?e=0;r--){var i=t[r];if(e(i))return i}},a.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=e.prototype,n.prototype=new r,n.extend=a.inherits,t&&a.extend(n.prototype,t),n.__super__=e.prototype,n},a.noop=function(){},a.uid=function(){var t=0;return function(){return t++}}(),a.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a.almostEquals=function(t,e,n){return Math.abs(t-e)0?1:-1},a.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},a.toRadians=function(t){return t*(Math.PI/180)},a.toDegrees=function(t){return t*(180/Math.PI)},a.getAngleFromPoint=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:i}},a.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.aliasPixel=function(t){return t%2===0?0:.5},a.splineCurve=function(t,e,n,r){var i=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),u=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),l=s/(s+u),d=u/(s+u);l=isNaN(l)?0:l,d=isNaN(d)?0:d;var c=r*l,f=r*d;return{previous:{x:a.x-c*(o.x-i.x),y:a.y-c*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}},a.EPSILON=Number.EPSILON||1e-14,a.splineCurveMonotone=function(t){var e,n,r,i,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,i=e0?o[e-1]:null,i=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},a.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},a.niceNum=function(t,e){var n,r=Math.floor(a.log10(t)),i=t/Math.pow(10,r);return n=e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,n*Math.pow(10,r)};var o=a.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===(t/=1)?1:(n||(n=.3),r0?(n=u[0].clientX,r=u[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(a.getStyle(o,"padding-left")),d=parseFloat(a.getStyle(o,"padding-top")),c=parseFloat(a.getStyle(o,"padding-right")),f=parseFloat(a.getStyle(o,"padding-bottom")),h=s.right-s.left-l-c,_=s.bottom-s.top-d-f;return n=Math.round((n-s.left-l)/h*o.width/e.currentDevicePixelRatio),r=Math.round((r-s.top-d)/_*o.height/e.currentDevicePixelRatio),{x:n,y:r}},a.addEvent=function(t,e,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},a.removeEvent=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=a.noop},a.bindEvents=function(t,e,n){var r=t.events=t.events||{};a.each(e,function(e){r[e]=function(){n.apply(t,arguments)},a.addEvent(t.chart.canvas,e,r[e])})},a.unbindEvents=function(t,e){var n=t.chart.canvas;a.each(e,function(t,e){a.removeEvent(n,e,t)})},a.getConstraintWidth=function(t){return i(t,"max-width","clientWidth")},a.getConstraintHeight=function(t){return i(t,"max-height","clientHeight")},a.getMaximumWidth=function(t){var e=t.parentNode,n=parseInt(a.getStyle(e,"padding-left"),10),r=parseInt(a.getStyle(e,"padding-right"),10),i=e.clientWidth-n-r,o=a.getConstraintWidth(t);return isNaN(o)?i:Math.min(i,o)},a.getMaximumHeight=function(t){var e=t.parentNode,n=parseInt(a.getStyle(e,"padding-top"),10),r=parseInt(a.getStyle(e,"padding-bottom"),10),i=e.clientHeight-n-r,o=a.getConstraintHeight(t);return isNaN(o)?i:Math.min(i,o)},a.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},a.retinaScale=function(t){var e=t.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==e){var n=t.canvas,r=t.height,i=t.width;n.height=r*e,n.width=i*e,t.ctx.scale(e,e),n.style.height=r+"px",n.style.width=i+"px"}},a.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},a.fontString=function(t,e,n){return e+" "+t+"px "+n},a.longestText=function(t,e,n,r){r=r||{};var i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.font=e;var s=0;a.each(n,function(e){void 0!==e&&null!==e&&a.isArray(e)!==!0?s=a.measureText(t,i,o,s,e):a.isArray(e)&&a.each(e,function(e){void 0===e||null===e||a.isArray(e)||(s=a.measureText(t,i,o,s,e))})});var u=o.length/2;if(u>n.length){for(var l=0;lr&&(r=a),r},a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t)&&t.length>e&&(e=t.length)}),e},a.drawRoundedRectangle=function(t,e,n,r,i,a){t.beginPath(),t.moveTo(e+a,n),t.lineTo(e+r-a,n),t.quadraticCurveTo(e+r,n,e+r,n+a),t.lineTo(e+r,n+i-a),t.quadraticCurveTo(e+r,n+i,e+r-a,n+i),t.lineTo(e+a,n+i),t.quadraticCurveTo(e,n+i,e,n+i-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+a,n),t.closePath()},a.color=function(e){return r?r(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):e},a.addResizeListener=function(t,e){var n=document.createElement("iframe");n.className="chartjs-hidden-iframe",n.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",n.tabIndex=-1;var r=t._chartjs={resizer:n,ticking:!1},i=function(){r.ticking||(r.ticking=!0,a.requestAnimFrame.call(window,function(){if(r.resizer)return r.ticking=!1,e()}))};a.addEvent(n,"load",function(){a.addEvent(n.contentWindow||n,"resize",i),i()}),t.insertBefore(n,t.firstChild)},a.removeResizeListener=function(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}},a.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},a.arrayEquals=function(t,e){var n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n0&&(s=t.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(t,e){return i(t,e,!0)},point:function(t,e){var r=a.getRelativePosition(e,t.chart);return n(t,r)},nearest:function(t,e,n){var i=a.getRelativePosition(e,t.chart),o=r(t,i,n.intersect);return o.length>1&&o.sort(function(t,e){var n=t.getArea(),r=e.getArea(),i=n-r;return 0===i&&(i=t._datasetIndex-e._datasetIndex),i}),o.slice(0,1)},x:function(t,n,r){var i=a.getRelativePosition(n,t.chart),o=[],s=!1;return e(t,function(t){t.inXRange(i.x)&&o.push(t),t.inRange(i.x,i.y)&&(s=!0)}),r.intersect&&!s&&(o=[]),o},y:function(t,n,r){var i=a.getRelativePosition(n,t.chart),o=[],s=!1;return e(t,function(t){t.inYRange(i.y)&&o.push(t),t.inRange(i.x,i.y)&&(s=!0)}),r.intersect&&!s&&(o=[]),o}}}}},function(t,e){"use strict";t.exports=function(){var t=function(e,n){return this.controller=new t.Controller(e,n,this),this.controller};return t.defaults={global:{ -responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('
    ');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push("
"),e.join("")}}},t.Chart=t,t}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,n,r){function i(t){var e,n=t.isHorizontal();n?(e=t.update(t.options.fullWidth?y:Y,k),D-=e.height):(e=t.update(w,L),Y-=e.width),x.push({horizontal:n,minSize:e,box:t})}function a(t){var n=e.findNextWhere(x,function(e){return e.box===t});if(n)if(t.isHorizontal()){var r={left:T,right:S,top:0,bottom:0};t.update(t.options.fullWidth?y:Y,M/2,r)}else t.update(n.minSize.width,D)}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"},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 +r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(n){var i=r.isString(n)?t(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e&&(a[e]=a[e]?a[e]+", "+n:n)}),a):a}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(255),i=n.n(r),a=n(1);n.n(a);e["default"]={name:"App",components:{Toast:i.a},computed:{hasMoviePath:function(){return this.$route.path.indexOf("/movies/")>-1},hasShowPath:function(){return this.$route.path.indexOf("/shows/")>-1||this.$route.path.indexOf("/seasons/")>-1},showSearchButton:function(){return"/movies"==this.$route.path||"/shows"==this.$route.path},showMenu:function(){return this.$store.state.interfaces.showMenu},showSearch:function(){return this.$store.state.interfaces.showSearch}},methods:Object.assign({},n.i(a.mapActions)(["hideMenu","toggleMenu","toggleSearch"]))}},function(t,e,n){"use strict";e["default"]={name:"Episode",props:["episode"],computed:{isDisabled:function(){return!this.episode.attributes.has_file}}}},function(t,e,n){"use strict";var r=n(8),i=n.n(r),a=n(189),o=n.n(a);e["default"]=i.a.extend({methods:{render:function(t){var e={type:"line",data:t,options:{legend:{display:!1},scales:{yAxes:[{ticks:{min:0,stepSize:1,beginAtZero:!0,fontColor:"rgba(255,255,255,0.5)"},gridLines:{color:"rgba(255,255,255,0.1)",zeroLineColor:"rgba(255,255,255,0.2)"}}],xAxes:[{ticks:{fontColor:"rgba(255,255,255,0.5)"},gridLines:{color:"rgba(255,255,255,0.1)",zeroLineColor:"rgba(255,255,255,0.2)"}}]}}};new o.a(this.$refs.canvas.getContext("2d"),e)}}})},function(t,e,n){"use strict";var r=n(237),i=n.n(r);e["default"]=i.a.extend({name:"MonthlyChart",props:["months"],mounted:function(){this.render({labels:this.months.map(function(t){return t.id}),datasets:[{label:"Views",backgroundColor:"rgba(151,187,205,0.2)",borderColor:"rgba(151,187,205,1)",lineTension:0,pointBackgroundColor:"#fff",pointBorderColor:"rgba(151,187,205,1)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointHoverRadius:6,pointRadius:5,data:this.months.map(function(t){return t.total})}]})}})},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(11)),s=n.n(o),u=n(5),l=n.n(u),d=n(1);n.n(d);e["default"]={name:"Movie",components:{MonthlyChart:s.a,Spinner:l.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(d.mapActions)(["getMovie","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/movies/"+this.$route.params.id};this.getMovie(t)}}),computed:{isDisabled:function(){return!this.movie.attributes.has_file},genres:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.genres.data.map(function(e){var n=e.id;return t.genres.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.movies.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},movie:function(){var t=this.$store.state;return t.movies.all.find(function(e){return e.id==t.movies.currentID})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MovieBackdrop",props:["movie","backdrop"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectBackdrop:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{backdrop_path:this.backdrop.attributes.file_path}}}};this.patchMovie(t)}}}),computed:{isActive:function(){var t=this.movie.attributes.backdrop_url,e=this.backdrop.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";e["default"]={name:"MovieCard",props:["movie"],computed:{link:function(){return 0==this.movie.attributes.tmdb_movie_id?"/movies/"+this.movie.id+"/edit":"/movies/"+this.movie.id}}}},function(t,e,n){"use strict";var r=n(239),i=n.n(r),a=n(242),o=n.n(a),s=n(243),u=n.n(s),l=n(5),d=n.n(l),c=n(1);n.n(c);e["default"]={name:"MovieEdit",components:{MovieBackdrop:i.a,MoviePoster:o.a,MovieResult:u.a,Spinner:d.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(c.mapActions)(["getMovieWithResults","loadingRoute","patchMovie"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/movies/"+this.$route.params.id+"?include=backdrops,posters,results"};this.getMovieWithResults(t)},patchTitle:_.debounce(function(t){var e={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{title:t.target.value}}}};this.patchMovie(e)},500)}),computed:{backdrops:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.backdrops.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},isResolved:function(){return 0!=this.movie.attributes.tmdb_movie_id},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},movie:function(){var t=this.$store.state;return t.movies.all.find(function(e){return e.id==t.movies.currentID})},posters:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.posters.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},results:function(){var t=this.$store.state,e=t.movies.all.find(function(e){return e.id==t.movies.currentID});return e.relationships.results.data.map(function(e){var n=e.id;return t.search.movies.find(function(t){return t.id==n})})}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MoviePoster",props:["movie","poster"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectPoster:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{poster_path:this.poster.attributes.file_path}}}};this.patchMovie(t)}}}),computed:{isActive:function(){var t=this.movie.attributes.poster_url,e=this.poster.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"MovieResult",props:["movie","result"],methods:Object.assign({},n.i(r.mapActions)(["patchMovie"]),{selectResult:function(){if(!this.isActive){var t={url:"/api/movies/"+this.movie.id,json:{data:{type:"movies",id:this.movie.id,attributes:{tmdb_movie_id:this.result.id}}},redirect:"/movies/"+this.movie.id};this.patchMovie(t)}}}),computed:{isActive:function(){return this.result.id==this.movie.attributes.tmdb_movie_id}}}},function(t,e,n){"use strict";var r=n(240),i=n.n(r),a=n(125),o=n.n(a),s=n(5),u=n.n(s),l=n(1);n.n(l);e["default"]={name:"Movies",components:{MovieCard:i.a,MugenScroll:o.a,Spinner:u.a},created:function(){0==this.movies.length&&this.loadingRoute(),this.clearGenresFilter(),this.fetchData()},watch:{links:function(){var t=this;clearTimeout(t.loadingTimeout),t.loadingTimeout=setTimeout(function(){t.links&&t.links.next&&!t.loading&&t.fetchData(t.links.next)},1e3)}},methods:Object.assign({},n.i(l.mapActions)(["clearFilters","clearGenresFilter","getMovies","filterGenres","filterKeywords","filterOrder","loadingRoute"]),{fetchData:_.debounce(function(t){t||(t="/api/movies"+this.$store.state.filters.queryMovies);var e={url:t};this.getMovies(e)},250),filterMovieGenres:function(t){this.filterGenres(t),this.fetchData()},filterMovieKeywords:function(t){this.filterKeywords(t),this.fetchData()},filterMovieOrder:function(t){this.filterOrder(t),this.fetchData()},filterReset:function(){this.clearFilters(),this.fetchData()},loadMore:_.throttle(function(){this.links&&this.links.next&&!this.loading&&this.fetchData(this.links.next)},500)}),computed:{genres:function(){return _.chain(this.$store.state.genres.all).sortBy("attributes.name").filter(function(t){return t.attributes.total_movies>0}).value()},keywords:function(){return this.$store.state.filters.keywords},links:function(){return this.$store.state.movies.links},loading:function(){return this.$store.state.movies.loading},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},movies:function(){var t=this.$store.state,e=t.filters.keywords,n=t.filters.selectedGenre,r=t.filters.attributes.movies,i=t.filters.direction;return _.chain(t.movies.all).filter(function(t){var n=new RegExp(e,"i");return n.test(t.attributes.title)}).filter(function(t){var e=t.relationships.genres.data.find(function(t){return t.id==n});return""==n||null!=e}).orderBy([r],[i]).value()},orders:function(){return this.$store.state.filters.orders},selectedGenre:function(){return this.$store.state.filters.selectedGenre},selectedOrder:function(){return this.$store.state.filters.selectedOrder}}}},function(t,e,n){"use strict";e["default"]={name:"NotFound"}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(236)),s=n.n(o),u=n(11),l=n.n(u),d=n(5),c=n.n(d),f=n(1);n.n(f);e["default"]={name:"Season",components:{Episode:s.a,MonthlyChart:l.a,Spinner:c.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(f.mapActions)(["getSeason","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/seasons/"+this.$route.params.id};this.getSeason(t)}}),computed:{episodes:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID});return e.relationships.episodes.data.map(function(e){var n=e.id;return t.episodes.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.seasons.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},season:function(){var t=this.$store.state;return t.seasons.all.find(function(e){return e.id==t.seasons.currentID})},show:function(){var t=this.$store.state,e=t.seasons.all.find(function(e){return e.id==t.seasons.currentID});return t.shows.all.find(function(t){return t.id==e.relationships.show.data.id})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(5),i=n.n(r),a=n(1);n.n(a);e["default"]={name:"Settings",components:{Spinner:i.a},created:function(){this.settings||this.loadingRoute(),this.fetchData()},methods:Object.assign({},n.i(a.mapActions)(["clearAll","clearToday","getSettings","patchSettings","refreshAll","refreshNew","setMoviesFolder","setShowsFolder","loadingRoute"]),{clearHistory:function(){var t={url:"/api/settings/history?all"};this.clearAll(t)},clearHistoryToday:function(){var t={url:"/api/settings/history"};this.clearToday(t)},fetchData:function(){var t={url:"/api/settings"};this.getSettings(t)},patchFolders:function(){var t={url:"/api/settings",json:{data:this.settings}};this.patchSettings(t)},refreshAllFolders:function(){var t={url:"/api/settings/folders?all"};this.refreshAll(t)},refreshNewFolders:function(){var t={url:"/api/settings/folders"};this.refreshNew(t)}}),computed:{loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},settings:function(){return this.$store.state.settings.current}}}},function(t,e,n){"use strict";var r=n(0),i=n.n(r),a=n(10),o=(n.n(a),n(11)),s=n.n(o),u=n(5),l=n.n(u),d=n(1);n.n(d);e["default"]={name:"Show",components:{MonthlyChart:s.a,Spinner:l.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(d.mapActions)(["getShow","loadingRoute"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/shows/"+this.$route.params.id};this.getShow(t)}}),computed:{genres:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.genres.data.map(function(e){var n=e.id;return t.genres.all.find(function(t){return t.id==n})})},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},monthlyViews:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID}),n=e.relationships.views.data.map(function(e){var n=e.id;return t.views.shows.find(function(t){return t.id==n})}),r=i()().startOf("month"),a=r.clone().subtract(11,"M"),o=i.a.range(a,r),s=[];return o.by("months",function(t){var e=t.format("MM/YY"),r=n.find(function(t){return t.attributes.label==e});s.push({id:e,total:r?r.attributes.total:0})}),s},seasons:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return _.chain(e.relationships.seasons.data.map(function(e){var n=e.id;return t.seasons.all.find(function(t){return t.id==n})})).orderBy(["attributes.season_number"],["asc"]).value()},show:function(){var t=this.$store.state;return t.shows.all.find(function(e){return e.id==t.shows.currentID})},totalViewsLastYear:function(){return this.monthlyViews.reduce(function(t,e){return t+e.total},0)}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowBackdrop",props:["show","backdrop"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectBackdrop:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{backdrop_path:this.backdrop.attributes.file_path}}}};this.patchShow(t)}}}),computed:{isActive:function(){var t=this.show.attributes.backdrop_url,e=this.backdrop.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";e["default"]={name:"ShowCard",props:["show"],computed:{link:function(){return 0==this.show.attributes.tmdb_show_id?"/shows/"+this.show.id+"/edit":"/shows/"+this.show.id}}}},function(t,e,n){"use strict";var r=n(249),i=n.n(r),a=n(252),o=n.n(a),s=n(253),u=n.n(s),l=n(5),d=n.n(l),c=n(1);n.n(c);e["default"]={name:"ShowEdit",components:{ShowBackdrop:i.a,ShowPoster:o.a,ShowResult:u.a,Spinner:d.a},created:function(){this.loadingRoute(),this.fetchData()},watch:{$route:function(){this.loadingRoute(),this.fetchData()}},methods:Object.assign({},n.i(c.mapActions)(["getShowWithResults","loadingRoute","patchShow"]),{fetchData:function(){var t={id:this.$route.params.id,url:"/api/shows/"+this.$route.params.id+"?include=backdrops,posters,results"};this.getShowWithResults(t)},patchName:_.debounce(function(t){var e={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{name:t.target.value}}}};this.patchShow(e)},500)}),computed:{backdrops:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.backdrops.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},isResolved:function(){return 0!=this.show.attributes.tmdb_show_id},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},posters:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.posters.data.map(function(e){var n=e.id;return t.images.all.find(function(t){return t.id==n})})},results:function(){var t=this.$store.state,e=t.shows.all.find(function(e){return e.id==t.shows.currentID});return e.relationships.results.data.map(function(e){var n=e.id;return t.search.shows.find(function(t){return t.id==n})})},show:function(){var t=this.$store.state;return t.shows.all.find(function(e){return e.id==t.shows.currentID})}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowPoster",props:["show","poster"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectPoster:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{poster_path:this.poster.attributes.file_path}}}};this.patchShow(t)}}}),computed:{isActive:function(){var t=this.show.attributes.poster_url,e=this.poster.attributes.file_path;return t.indexOf(e)>-1}}}},function(t,e,n){"use strict";var r=n(1);n.n(r);e["default"]={name:"ShowResult",props:["show","result"],methods:Object.assign({},n.i(r.mapActions)(["patchShow"]),{selectResult:function(){if(!this.isActive){var t={url:"/api/shows/"+this.show.id,json:{data:{type:"shows",id:this.show.id,attributes:{tmdb_show_id:this.result.id}}},redirect:"/shows/"+this.show.id};this.patchShow(t)}}}),computed:{isActive:function(){return this.result.id==this.show.attributes.tmdb_show_id}}}},function(t,e,n){"use strict";var r=n(125),i=n.n(r),a=n(250),o=n.n(a),s=n(5),u=n.n(s),l=n(1);n.n(l);e["default"]={name:"Shows",components:{MugenScroll:i.a,ShowCard:o.a,Spinner:u.a},created:function(){0==this.shows.length&&this.loadingRoute(),this.clearGenresFilter(),this.fetchData()},watch:{links:function(){var t=this;clearTimeout(t.loadingTimeout),t.loadingTimeout=setTimeout(function(){t.links&&t.links.next&&!t.loading&&t.fetchData(t.links.next)},1e3)}},methods:Object.assign({},n.i(l.mapActions)(["clearFilters","clearGenresFilter","getShows","filterGenres","filterKeywords","filterOrder","loadingRoute"]),{fetchData:_.debounce(function(t){t||(t="/api/shows"+this.$store.state.filters.queryShows);var e={url:t};this.getShows(e)},250),filterShowGenres:function(t){this.filterGenres(t),this.fetchData()},filterShowKeywords:function(t){this.filterKeywords(t),this.fetchData()},filterShowOrder:function(t){this.filterOrder(t),this.fetchData()},filterReset:function(){this.clearFilters(),this.fetchData()},loadMore:function(){!this.links.next||this.loading||this._inactive||this.fetchData(this.links.next)}}),computed:{genres:function(){return _.chain(this.$store.state.genres.all).sortBy("attributes.name").filter(function(t){return t.attributes.total_movies>0}).value()},keywords:function(){return this.$store.state.filters.keywords},links:function(){return this.$store.state.shows.links},loading:function(){return this.$store.state.shows.loading},loadingRouteData:function(){return this.$store.state.interfaces.loadingRouteData},selectedGenre:function(){return this.$store.state.filters.selectedGenre},selectedOrder:function(){return this.$store.state.filters.selectedOrder},shows:function(){var t=this.$store.state,e=t.filters.keywords,n=t.filters.selectedGenre,r=t.filters.attributes.shows,i=t.filters.direction;return _.chain(t.shows.all).filter(function(t){var n=new RegExp(e,"i");return n.test(t.attributes.name)}).filter(function(t){var e=t.relationships.genres.data.find(function(t){return t.id==n});return""==n||null!=e}).orderBy([r],[i]).value()},orders:function(){return this.$store.state.filters.orders}}}},function(t,e,n){"use strict";e["default"]={name:"Spinner"}},function(t,e,n){"use strict";var r=n(1),i=(n.n(r),300),a=3e3,o=300;e["default"]={name:"Toast",replace:!0,watch:{toast:function(t){this.addToQueue(t)}},computed:Object.assign({},n.i(r.mapState)({toast:function(t){return t.toasts.current}}),{toastContext:function(){return this.context?"toast-"+this.context:""}}),data:function(){return{activeToast:!1,activeProgressBar:!1,animation:null,animationInProgress:!1,queue:[],style:{transition:"width 0s"}}},props:{context:{type:String,"default":""},duration:{type:Number,"default":a},message:{type:String,"default":"Done!"},onAjaxErrors:{type:Boolean,"default":!1},position:{type:String,"default":"bottom left"},hideProgress:{type:Boolean,"default":!1},debounce:{type:Number,"default":i}},methods:{pause:function(){this.activeProgressBar=!1,clearTimeout(this.animation),this.style.transition="width 0.1s"},clear:function(){var t=this;this._toastAnimation=setTimeout(function(){t.activeProgressBar=!1,t.animationInProgress=!1,t.style.transition="width 0s",t.activeToast=!1,clearTimeout(t.animation),t.queue.length>0&&(t._toastAnimation=setTimeout(function(){var e=t.queue.shift();t.show(e)},0))},o)},animate:function(){this.style.transition="width "+this.duration/1e3+"s",this.activeProgressBar=!0,this.animation=setTimeout(this.clear,this.duration)},show:function(t){var e=this;this.context="default",this.animationInProgress=!0,this.message=t.message||this.message,this.context=t.context||this.context,this.debounce=t.debounce||this.debounce,this.duration=t.duration||this.duration,this.hideProgress=t.hideProgress||this.hideProgress,this.position=t.position||this.position,t.success&&(this.context="success",this.message=t.success),t.info&&(this.context="info",this.message=t.info),t.warning&&(this.context="warning",this.message=t.warning),t.error&&(this.context="danger",this.message=t.error),setTimeout(function(){e.activeToast=!0,e.animate()},100)},addToQueue:function(t){var e=this;this.animationInProgress||this.queue.length>0?this.queue.push(t):setTimeout(function(){e.show(t)},this.debounce)}},events:{"end::ajax":function(t){this.onAjaxErrors&&t&&t.error&&this.addToQueue(t)},"show::toast":function(t){this.addToQueue(t)}},destroyed:function(){clearTimeout(this._animation),clearTimeout(this._toastAnimation)}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{currentID:null,all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.b]=function(t,e){t.currentID=e},r[a.c]=function(t,e){n.i(i.a)(t.all,e,"episodes")},r[a.d]=function(t,e){n.i(i.b)(t.all,e,"episodes")},r)}},function(t,e,n){"use strict";function r(t){var e=t.orders.find(function(e){return e.id==t.selectedOrder});t.attributes.movies="attributes."+e.movies,t.attributes.shows="attributes."+e.shows,t.direction=e.direction,i(t,e),a(t,e)}function i(t,e){var n=e.prefix+e.movies;t.queryMovies=o(t,n)}function a(t,e){var n=e.prefix+e.shows;t.queryShows=o(t,n)}function o(t,e){var n=[{key:"keywords",value:t.keywords},{key:"sort",value:e},{key:"genre",value:t.selectedGenre}],r="";return n.forEach(function(e){s(t,e)&&(r+=encodeURIComponent(e.key)+"="+encodeURIComponent(e.value)+"&")}),r.length>0&&(r=r.substring(0,r.length-1),r="?"+r),r}function s(t,e){return("sort"!=e.key||"a-z"!=t.selectedOrder)&&""!=e.value}var u,l=n(3);e.a={state:{selectedGenre:"",keywords:"",selectedOrder:"a-z",attributes:{movies:"attributes.title",shows:"attributes.name"},queryMovies:"",queryShows:"",direction:"asc",orders:[{id:"a-z",name:"Title: A-Z",prefix:"",movies:"title",shows:"name",direction:"asc"},{id:"z-a",name:"Title: Z-A",prefix:"-",movies:"title",shows:"name",direction:"desc"},{id:"newest",name:"Year: Newest",prefix:"-",movies:"release_date",shows:"first_air_date",direction:"desc"},{id:"oldest",name:"Year: Oldest",prefix:"",movies:"release_date",shows:"first_air_date",direction:"asc"}]},mutations:(u={},u[l.e]=function(t){t.selectedGenre="",t.keywords="",t.selectedOrder="a-z",r(t)},u[l.f]=function(t){t.selectedGenre="",r(t)},u[l.g]=function(t,e){t.selectedGenre=e,r(t)},u[l.h]=function(t,e){t.keywords=e,r(t)},u[l.i]=function(t,e){t.selectedOrder=e,r(t)},u),actions:{clearFilters:function(t){t.commit(l.e)},clearGenresFilter:function(t){t.commit(l.f)},filterGenres:function(t,e){t.commit(l.g,e.target.value)},filterKeywords:function(t,e){t.commit(l.h,e.target.value)},filterOrder:function(t,e){t.commit(l.i,e.target.value)}}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.j]=function(t,e){n.i(i.b)(t.all,e,"genres")},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.k]=function(t,e){n.i(i.b)(t.all,e,"images")},r)}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{showMenu:!1,showSearch:!1,loadingRouteData:!0},mutations:(r={},r[i.l]=function(t){t.loadingRouteData=!0},r[i.m]=function(t){t.loadingRouteData=!1},r[i.n]=function(t){t.showMenu=!1},r[i.o]=function(t){t.showMenu=!t.showMenu},r[i.p]=function(t){t.showSearch=!t.showSearch},r),actions:{loadingRoute:function(t){t.commit(i.l)},loadedRoute:function(t){t.commit(i.m)},hideMenu:function(t){t.commit(i.n)},toggleMenu:function(t){t.commit(i.o)},toggleSearch:function(t){t.commit(i.p)}}}},function(t,e,n){"use strict";function r(t,e){e.relationships&&(t.relationships.backdrops=e.relationships.backdrops?e.relationships.backdrops:t.relationships.backdrops,t.relationships.genres=e.relationships.genres?e.relationships.genres:t.relationships.genres,t.relationships.posters=e.relationships.posters?e.relationships.posters:t.relationships.posters,t.relationships.results=e.relationships.results?e.relationships.results:t.relationships.results,t.relationships.views=e.relationships.views?e.relationships.views:t.relationships.views)}var i,a=n(4),o=n(3);e.a={state:{currentID:null,loading:!1,all:[],links:[]},mutations:(i={},i[o.a]=function(t){t.all=[]},i[o.q]=function(t){t.loading=!0},i[o.r]=function(t){t.loading=!1},i[o.s]=function(t,e){t.currentID=e},i[o.t]=function(t,e){t.links=e},i[o.u]=function(t,e){n.i(a.a)(t.all,e,"movies",r)},i[o.v]=function(t,e){n.i(a.b)(t.all,e,"movies")},i),actions:{getMovies:function(t,e){t.commit(o.q),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.v,n.data),t.commit(o.t,n.links),t.commit(o.j,n.included),t.commit(o.r),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getMovie:function(t,e){t.commit(o.s,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.u,n.data),t.commit(o.j,n.included),t.commit(o.x,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getMovieWithResults:function(t,e){t.commit(o.s,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.u,n.data),t.commit(o.k,n.included),t.commit(o.y,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},patchMovie:function(t,e){e.redirect&&t.commit(o.w,{success:"Updating Movie"}),axios.patch(e.url,e.json).then(function(n){var r=n.data;t.commit(o.u,r.data),e.redirect&&window.vueRouter.push(e.redirect)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{movies:[],shows:[]},mutations:(r={},r[a.a]=function(t){t.movies=[],t.shows=[]},r[a.y]=function(t,e){n.i(i.b)(t.movies,e,"movie-results")},r[a.z]=function(t,e){n.i(i.b)(t.shows,e,"show-results")},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{currentID:null,all:[]},mutations:(r={},r[a.a]=function(t){t.all=[]},r[a.A]=function(t,e){t.currentID=e},r[a.B]=function(t,e){n.i(i.a)(t.all,e,"seasons")},r[a.C]=function(t,e){n.i(i.b)(t.all,e,"seasons")},r),actions:{getSeason:function(t,e){t.commit(a.A,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(a.B,n.data),t.commit(a.d,n.included),t.commit(a.D,n.included),t.commit(a.j,n.included),t.commit(a.E,n.included),t.commit(a.m)})["catch"](function(e){t.commit(a.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{current:null},mutations:(r={},r[i.F]=function(t,e){t.current=e},r[i.G]=function(t,e){for(var n in e)t.current.attributes[n]=e[n]},r),actions:{clearAll:function(t,e){axios["delete"](e.url).then(function(e){t.commit(i.w,{success:"Clearing All History"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},clearToday:function(t,e){axios["delete"](e.url).then(function(e){t.commit(i.w,{success:"Clearing Today's History"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},getSettings:function(t,e){axios.get(e.url).then(function(e){var n=e.data;t.commit(i.F,n.data),t.commit(i.m)})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},patchSettings:function(t,e){axios.patch(e.url,e.json).then(function(e){var n=e.data;t.commit(i.F,n.data),t.commit(i.a),t.commit(i.w,{success:"Updating Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},refreshAll:function(t,e){axios.patch(e.url).then(function(e){t.commit(i.w,{success:"Refreshing All Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},refreshNew:function(t,e){axios.patch(e.url).then(function(e){t.commit(i.w,{success:"Refreshing New Folders"})})["catch"](function(e){t.commit(i.w,{error:"Connection Error"})})},setMoviesFolder:function(t,e){var n={movies_folder:e.target.value};t.commit(i.G,n)},setShowsFolder:function(t,e){var n={shows_folder:e.target.value};t.commit(i.G,n)}}}},function(t,e,n){"use strict";function r(t,e){e.relationships&&(t.relationships.backdrops=e.relationships.backdrops?e.relationships.backdrops:t.relationships.backdrops,t.relationships.genres=e.relationships.genres?e.relationships.genres:t.relationships.genres,t.relationships.posters=e.relationships.posters?e.relationships.posters:t.relationships.posters,t.relationships.results=e.relationships.results?e.relationships.results:t.relationships.results,t.relationships.seasons=e.relationships.seasons?e.relationships.seasons:t.relationships.seasons,t.relationships.views=e.relationships.views?e.relationships.views:t.relationships.views)}var i,a=n(4),o=n(3);e.a={state:{currentID:null,loading:!1,all:[],links:[]},mutations:(i={},i[o.a]=function(t){t.all=[]},i[o.H]=function(t){t.loading=!0},i[o.I]=function(t){t.loading=!1},i[o.J]=function(t,e){t.currentID=e},i[o.K]=function(t,e){t.links=e},i[o.L]=function(t,e){n.i(a.a)(t.all,e,"shows",r)},i[o.D]=function(t,e){n.i(a.b)(t.all,e,"shows")},i),actions:{getShows:function(t,e){t.commit(o.H),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.D,n.data),t.commit(o.K,n.links),t.commit(o.j,n.included),t.commit(o.I),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getShow:function(t,e){t.commit(o.J,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.L,n.data),t.commit(o.j,n.included),t.commit(o.C,n.included),t.commit(o.M,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},getShowWithResults:function(t,e){t.commit(o.J,e.id),axios.get(e.url).then(function(e){var n=e.data;t.commit(o.L,n.data),t.commit(o.j,n.included),t.commit(o.C,n.included), +t.commit(o.k,n.included),t.commit(o.z,n.included),t.commit(o.m)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})},patchShow:function(t,e){e.redirect&&t.commit(o.w,{success:"Updating Show"}),axios.patch(e.url,e.json).then(function(n){var r=n.data;t.commit(o.L,r.data),e.redirect&&window.vueRouter.push(e.redirect)})["catch"](function(e){t.commit(o.w,{error:"Connection Error"})})}}}},function(t,e,n){"use strict";var r,i=n(3);e.a={state:{current:null},mutations:(r={},r[i.w]=function(t,e){t.current=e},r)}},function(t,e,n){"use strict";var r,i=n(4),a=n(3);e.a={state:{movies:[],seasons:[],shows:[]},mutations:(r={},r[a.a]=function(t){t.movies=[],t.seasons=[],t.shows=[]},r[a.x]=function(t,e){n.i(i.b)(t.movies,e,"movie-views")},r[a.E]=function(t,e){n.i(i.b)(t.seasons,e,"season-views")},r[a.M]=function(t,e){n.i(i.b)(t.shows,e,"show-views")},r)}},function(t,e,n){var r=n(210)();n(208)(r),n(204)(r),n(207)(r),n(203)(r),n(205)(r),n(206)(r),n(211)(r),n(215)(r),n(213)(r),n(216)(r),n(214)(r),n(217)(r),n(212)(r),n(209)(r),n(218)(r),n(219)(r),n(220)(r),n(221)(r),n(222)(r),n(225)(r),n(223)(r),n(224)(r),n(226)(r),n(227)(r),n(228)(r),n(197)(r),n(198)(r),n(199)(r),n(200)(r),n(201)(r),n(202)(r),n(190)(r),n(191)(r),n(192)(r),n(193)(r),n(194)(r),n(195)(r),n(196)(r),window.Chart=t.exports=r},function(t,e){"use strict";t.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){t.Radar=function(e,n){return n.type="radar",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){var e={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(e,n){t.DatasetController.prototype.initialize.call(this,e,n),this.getMeta().bar=!0},getBarCount:function(){var t=this,n=0;return e.each(t.chart.data.datasets,function(e,r){var i=t.chart.getDatasetMeta(r);i.bar&&t.chart.isDatasetVisible(r)&&++n},t),n},update:function(t){var n=this;e.each(n.getMeta().data,function(e,r){n.updateElement(e,r,t)},n)},updateElement:function(t,n,r){var i=this,a=i.getMeta(),o=i.getScaleForId(a.xAxisID),s=i.getScaleForId(a.yAxisID),u=s.getBasePixel(),l=i.chart.options.elements.rectangle,d=t.custom||{},c=i.getDataset();t._xScale=o,t._yScale=s,t._datasetIndex=i.index,t._index=n;var f=i.getRuler(n);t._model={x:i.calculateBarX(n,i.index,f),y:r?u:i.calculateBarY(n,i.index),label:i.chart.data.labels[n],datasetLabel:c.label,base:r?u:i.calculateBarBase(i.index,n),width:i.calculateBarWidth(f),backgroundColor:d.backgroundColor?d.backgroundColor:e.getValueAtIndexOrDefault(c.backgroundColor,n,l.backgroundColor),borderSkipped:d.borderSkipped?d.borderSkipped:l.borderSkipped,borderColor:d.borderColor?d.borderColor:e.getValueAtIndexOrDefault(c.borderColor,n,l.borderColor),borderWidth:d.borderWidth?d.borderWidth:e.getValueAtIndexOrDefault(c.borderWidth,n,l.borderWidth)},t.pivot()},calculateBarBase:function(t,e){var n=this,r=n.getMeta(),i=n.getScaleForId(r.yAxisID),a=0;if(i.options.stacked){for(var o=n.chart,s=o.data.datasets,u=Number(s[t].data[e]),l=0;l0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(r,i){var a=t.getDatasetMeta(0),o=n.datasets[0],s=a.data[i],u=s&&s.custom||{},l=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=u.backgroundColor?u.backgroundColor:l(o.backgroundColor,i,d.backgroundColor),f=u.borderColor?u.borderColor:l(o.borderColor,i,d.borderColor),h=u.borderWidth?u.borderWidth:l(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,r,i,a=e.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n=Math.PI?-1:_<-Math.PI?1:0);var m=_+h,p={x:Math.cos(_),y:Math.sin(_)},v={x:Math.cos(m),y:Math.sin(m)},g=_<=0&&0<=m||_<=2*Math.PI&&2*Math.PI<=m,y=_<=.5*Math.PI&&.5*Math.PI<=m||_<=2.5*Math.PI&&2.5*Math.PI<=m,M=_<=-Math.PI&&-Math.PI<=m||_<=Math.PI&&Math.PI<=m,b=_<=.5*-Math.PI&&.5*-Math.PI<=m||_<=1.5*Math.PI&&1.5*Math.PI<=m,L=f/100,w={x:M?-1:Math.min(p.x*(p.x<0?1:L),v.x*(v.x<0?1:L)),y:b?-1:Math.min(p.y*(p.y<0?1:L),v.y*(v.y<0?1:L))},k={x:g?1:Math.max(p.x*(p.x>0?1:L),v.x*(v.x>0?1:L)),y:y?1:Math.max(p.y*(p.y>0?1:L),v.y*(v.y>0?1:L))},Y={width:.5*(k.x-w.x),height:.5*(k.y-w.y)};l=Math.min(s/Y.width,u/Y.height),d={x:(k.x+w.x)*-.5,y:(k.y+w.y)*-.5}}r.borderWidth=n.getMaxBorderWidth(c.data),r.outerRadius=Math.max((l-r.borderWidth)/2,0),r.innerRadius=Math.max(f?r.outerRadius/100*f:1,0),r.radiusLength=(r.outerRadius-r.innerRadius)/r.getVisibleDatasetCount(),r.offsetX=d.x*r.outerRadius,r.offsetY=d.y*r.outerRadius,c.total=n.calculateTotal(),n.outerRadius=r.outerRadius-r.radiusLength*n.getRingIndex(n.index),n.innerRadius=n.outerRadius-r.radiusLength,e.each(c.data,function(e,r){n.updateElement(e,r,t)})},updateElement:function(t,n,r){var i=this,a=i.chart,o=a.chartArea,s=a.options,u=s.animation,l=(o.left+o.right)/2,d=(o.top+o.bottom)/2,c=s.rotation,f=s.rotation,h=i.getDataset(),_=r&&u.animateRotate?0:t.hidden?0:i.calculateCircumference(h.data[n])*(s.circumference/(2*Math.PI)),m=r&&u.animateScale?0:i.innerRadius,p=r&&u.animateScale?0:i.outerRadius,v=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:i.index,_index:n,_model:{x:l+a.offsetX,y:d+a.offsetY,startAngle:c,endAngle:f,circumference:_,outerRadius:p,innerRadius:m,label:v(h.label,n,a.data.labels[n])}});var g=t._model;this.removeHoverStyle(t),r&&u.animateRotate||(0===n?g.startAngle=s.rotation:g.startAngle=i.getMeta().data[n-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,n=this.getDataset(),r=this.getMeta(),i=0;return e.each(r.data,function(e,r){t=n.data[r],isNaN(t)||e.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,r=0,i=this.index,a=t.length,o=0;or?e:r,r=n>r?n:r;return r}})}},function(t,e){"use strict";t.exports=function(t){function e(t,e){return n.getValueOrDefault(t.showLine,e.showLines)}var n=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,update:function(t){var r,i,a,o=this,s=o.getMeta(),u=s.dataset,l=s.data||[],d=o.chart.options,c=d.elements.line,f=o.getScaleForId(s.yAxisID),h=o.getDataset(),_=e(h,d);for(_&&(a=u.custom||{},void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),u._scale=f,u._datasetIndex=o.index,u._children=l,u._model={spanGaps:h.spanGaps?h.spanGaps:d.spanGaps,tension:a.tension?a.tension:n.getValueOrDefault(h.lineTension,c.tension),backgroundColor:a.backgroundColor?a.backgroundColor:h.backgroundColor||c.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:h.borderWidth||c.borderWidth,borderColor:a.borderColor?a.borderColor:h.borderColor||c.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:h.borderCapStyle||c.borderCapStyle,borderDash:a.borderDash?a.borderDash:h.borderDash||c.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:h.borderDashOffset||c.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:h.borderJoinStyle||c.borderJoinStyle,fill:a.fill?a.fill:void 0!==h.fill?h.fill:c.fill,steppedLine:a.steppedLine?a.steppedLine:n.getValueOrDefault(h.steppedLine,c.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:n.getValueOrDefault(h.cubicInterpolationMode,c.cubicInterpolationMode),scaleTop:f.top,scaleBottom:f.bottom,scaleZero:f.getBasePixel()},u.pivot()),r=0,i=l.length;r');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var a=0;a'),i[a]&&e.push(i[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(r,i){var a=t.getDatasetMeta(0),o=n.datasets[0],s=a.data[i],u=s.custom||{},l=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=u.backgroundColor?u.backgroundColor:l(o.backgroundColor,i,d.backgroundColor),f=u.borderColor?u.borderColor:l(o.borderColor,i,d.borderColor),h=u.borderWidth?u.borderWidth:l(o.borderWidth,i,d.borderWidth);return{text:r,fillStyle:c,strokeStyle:f,lineWidth:h,hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,r,i,a=e.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,update:function(t){var n=this,r=n.getMeta(),i=r.dataset,a=r.data,o=i.custom||{},s=n.getDataset(),u=n.chart.options.elements.line,l=n.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),e.extend(r.dataset,{_datasetIndex:n.index,_children:a,_loop:!0,_model:{tension:o.tension?o.tension:e.getValueOrDefault(s.lineTension,u.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||u.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||u.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||u.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:u.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||u.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||u.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||u.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||u.borderJoinStyle,scaleTop:l.top,scaleBottom:l.bottom,scaleZero:l.getBasePosition()}}),r.dataset.pivot(),e.each(a,function(e,r){n.updateElement(e,r,t)},n),n.updateBezierControlPoints()},updateElement:function(t,n,r){var i=this,a=t.custom||{},o=i.getDataset(),s=i.chart.scale,u=i.chart.options.elements.point,l=s.getPointPositionForValue(n,o.data[n]);e.extend(t,{_datasetIndex:i.index,_index:n,_scale:s,_model:{x:r?s.xCenter:l.x,y:r?s.yCenter:l.y,tension:a.tension?a.tension:e.getValueOrDefault(o.tension,i.chart.options.elements.line.tension),radius:a.radius?a.radius:e.getValueAtIndexOrDefault(o.pointRadius,n,u.radius),backgroundColor:a.backgroundColor?a.backgroundColor:e.getValueAtIndexOrDefault(o.pointBackgroundColor,n,u.backgroundColor),borderColor:a.borderColor?a.borderColor:e.getValueAtIndexOrDefault(o.pointBorderColor,n,u.borderColor),borderWidth:a.borderWidth?a.borderWidth:e.getValueAtIndexOrDefault(o.pointBorderWidth,n,u.borderWidth),pointStyle:a.pointStyle?a.pointStyle:e.getValueAtIndexOrDefault(o.pointStyle,n,u.pointStyle),hitRadius:a.hitRadius?a.hitRadius:e.getValueAtIndexOrDefault(o.hitRadius,n,u.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,n=this.getMeta();e.each(n.data,function(r,i){var a=r._model,o=e.splineCurve(e.previousItem(n.data,i,!0)._model,a,e.nextItem(n.data,i,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),r.pivot()})},draw:function(t){var n=this.getMeta(),r=t||1;e.each(n.data,function(t){t.transition(r)}),n.dataset.transition(r).draw(),e.each(n.data,function(t){t.draw()})},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],r=t.custom||{},i=t._index,a=t._model;a.radius=r.hoverRadius?r.hoverRadius:e.getValueAtIndexOrDefault(n.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),a.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:e.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,i,e.getHoverColor(a.backgroundColor)),a.borderColor=r.hoverBorderColor?r.hoverBorderColor:e.getValueAtIndexOrDefault(n.pointHoverBorderColor,i,e.getHoverColor(a.borderColor)),a.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:e.getValueAtIndexOrDefault(n.pointHoverBorderWidth,i,a.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],r=t.custom||{},i=t._index,a=t._model,o=this.chart.options.elements.point;a.radius=r.radius?r.radius:e.getValueAtIndexOrDefault(n.radius,i,o.radius),a.backgroundColor=r.backgroundColor?r.backgroundColor:e.getValueAtIndexOrDefault(n.pointBackgroundColor,i,o.backgroundColor),a.borderColor=r.borderColor?r.borderColor:e.getValueAtIndexOrDefault(n.pointBorderColor,i,o.borderColor),a.borderWidth=r.borderWidth?r.borderWidth:e.getValueAtIndexOrDefault(n.pointBorderWidth,i,o.borderWidth)}})}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,r){var i=this;r||(t.animating=!0);for(var a=0;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var r=0;rt.animations[r].animationObject.numSteps&&(t.animations[r].animationObject.currentStep=t.animations[r].animationObject.numSteps),t.animations[r].animationObject.render(t.animations[r].chartInstance,t.animations[r].animationObject),t.animations[r].animationObject.onAnimationProgress&&t.animations[r].animationObject.onAnimationProgress.call&&t.animations[r].animationObject.onAnimationProgress.call(t.animations[r].chartInstance,t.animations[r]),t.animations[r].animationObject.currentStep===t.animations[r].animationObject.numSteps?(t.animations[r].animationObject.onAnimationComplete&&t.animations[r].animationObject.onAnimationComplete.call&&t.animations[r].animationObject.onAnimationComplete.call(t.animations[r].chartInstance,t.animations[r]),t.animations[r].chartInstance.animating=!1,t.animations.splice(r,1)):++r;var i=Date.now(),a=(i-e)/t.frameDuration;t.dropFrames+=a,t.animations.length>0&&t.requestAnimationFrame()}}}},function(t,e){"use strict";t.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(t,e,n,r,i){var a,o,s,u,l,d;if("object"==typeof e&&(a=e.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return void t.drawImage(e,r-e.width/2,i-e.height/2);if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(r,i,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),o=3*n/Math.sqrt(3),l=o*Math.sqrt(3)/2,t.moveTo(r-o/2,i+l/3),t.lineTo(r+o/2,i+l/3),t.lineTo(r,i-2*l/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(r-d,i-d,2*d,2*d),t.strokeRect(r-d,i-d,2*d,2*d);break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(r-d,i),t.lineTo(r,i+d),t.lineTo(r+d,i),t.lineTo(r,i-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(r,i+n),t.lineTo(r,i-n),t.moveTo(r-n,i),t.lineTo(r+n,i),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r-s,i+u),t.lineTo(r+s,i-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(r,i+n),t.lineTo(r,i-n),t.moveTo(r-n,i),t.lineTo(r+n,i),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r-s,i+u),t.lineTo(r+s,i-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(r-n,i),t.lineTo(r+n,i),t.closePath();break;case"dash":t.beginPath(),t.moveTo(r,i),t.lineTo(r+n,i),t.closePath()}t.stroke()}}}},function(t,e){"use strict";t.exports=function(t){function e(t,e){var n=o.getStyle(t,e),r=n&&n.match(/(\d+)px/);return r?Number(r[1]):void 0}function n(t,n){var r=t.style,i=t.getAttribute("height"),a=t.getAttribute("width");if(t._chartjs={initial:{height:i,width:a,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===a||""===a){var o=e(t,"width");void 0!==o&&(t.width=o)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(n.options.aspectRatio||2);else{var s=e(t,"height");void 0!==o&&(t.height=s)}return t}function r(t){if(t._chartjs){var e=t._chartjs.initial;["height","width"].forEach(function(n){var r=e[n];void 0===r||null===r?t.removeAttribute(n):t.setAttribute(n,r)}),o.each(e.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t._chartjs}}function i(t,e){if("string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t instanceof HTMLCanvasElement){var r=t.getContext&&t.getContext("2d");if(r instanceof CanvasRenderingContext2D)return n(t,e),r}return null}function a(e){e=e||{};var n=e.data=e.data||{};return n.datasets=n.datasets||[],n.labels=n.labels||[],e.options=o.configMerge(t.defaults.global,t.defaults[e.type],e.options||{}),e}var o=t.helpers;t.types={},t.instances={},t.controllers={},t.Controller=function(e,n,r){var s=this;n=a(n);var u=i(e,n),l=u&&u.canvas,d=l&&l.height,c=l&&l.width;return r.ctx=u,r.canvas=l,r.config=n,r.width=c,r.height=d,r.aspectRatio=d?c/d:null,s.id=o.uid(),s.chart=r,s.config=n,s.options=n.options,s._bufferedRender=!1,t.instances[s.id]=s,Object.defineProperty(s,"data",{get:function(){return s.config.data}}),u&&l?(o.retinaScale(r),s.options.responsive&&(o.addResizeListener(l.parentNode,function(){s.resize()}),s.resize(!0)),s.initialize(),s):s},o.extend(t.Controller.prototype,{initialize:function(){var e=this;return t.plugins.notify("beforeInit",[e]),e.bindEvents(),e.ensureScalesHaveIDs(),e.buildOrUpdateControllers(),e.buildScales(),e.updateLayout(),e.resetElements(),e.initToolTip(),e.update(),t.plugins.notify("afterInit",[e]),e},clear:function(){return o.clear(this.chart),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(e){var n=this,r=n.chart,i=n.options,a=r.canvas,s=i.maintainAspectRatio&&r.aspectRatio||null,u=Math.floor(o.getMaximumWidth(a)),l=Math.floor(s?u/s:o.getMaximumHeight(a));if(r.width!==u||r.height!==l){a.width=r.width=u,a.height=r.height=l,a.style.width=u+"px",a.style.height=l+"px",o.retinaScale(r);var d={width:u,height:l};t.plugins.notify("resize",[n,d]),n.options.onResize&&n.options.onResize(n,d),e||(n.stop(),n.update(n.options.responsiveAnimationDuration))}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;o.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),o.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,n=e.options,r=e.scales={},i=[];n.scales&&(i=i.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear"}}))),n.scale&&i.push({options:n.scale,dtype:"radialLinear",isDefault:!0}),o.each(i,function(n){var i=n.options,a=o.getValueOrDefault(i.type,n.dtype),s=t.scaleService.getScaleConstructor(a);if(s){var u=new s({id:i.id,options:i,ctx:e.chart.ctx,chart:e});r[u.id]=u,n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},updateLayout:function(){t.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var e=this,n=[],r=[];if(o.each(e.data.datasets,function(i,a){var o=e.getDatasetMeta(a);o.type||(o.type=i.type||e.config.type),n.push(o.type),o.controller?o.controller.updateIndex(a):(o.controller=new t.controllers[o.type](e,a),r.push(o.controller))},e),n.length>1)for(var i=1;i0||(i.forEach(function(e){delete t[e]}),delete t._chartjs)}}var r=t.helpers,i=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},r.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,r=n.getMeta(),i=n.getDataset().data||[],a=r.data;for(t=0,e=i.length;tr&&t.insertElements(r,i-r)},insertElements:function(t,e){for(var n=0;n=0;i--)e.call(n,t[i],i);else for(i=0;i=r[n].length||!r[n][i].type?r[n].push(a.configMerge(s,e)):e.type&&e.type!==r[n][i].type?r[n][i]=a.configMerge(r[n][i],s,e):r[n][i]=a.configMerge(r[n][i],e)}):(r[n]=[],a.each(e,function(e){var i=a.getValueOrDefault(e.type,"xAxes"===n?"category":"linear");r[n].push(a.configMerge(t.scaleService.getScaleDefaults(i),e))})):r.hasOwnProperty(n)&&"object"==typeof r[n]&&null!==r[n]&&"object"==typeof e?r[n]=a.configMerge(r[n],e):r[n]=e}),r},a.getValueAtIndexOrDefault=function(t,e,n){return void 0===t||null===t?n:a.isArray(t)?e=0;r--){var i=t[r];if(e(i))return i}},a.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=e.prototype,n.prototype=new r,n.extend=a.inherits,t&&a.extend(n.prototype,t),n.__super__=e.prototype,n},a.noop=function(){},a.uid=function(){var t=0;return function(){return t++}}(),a.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a.almostEquals=function(t,e,n){return Math.abs(t-e)0?1:-1},a.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},a.toRadians=function(t){return t*(Math.PI/180)},a.toDegrees=function(t){return t*(180/Math.PI)},a.getAngleFromPoint=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:i}},a.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.aliasPixel=function(t){return t%2===0?0:.5},a.splineCurve=function(t,e,n,r){var i=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),u=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),l=s/(s+u),d=u/(s+u);l=isNaN(l)?0:l,d=isNaN(d)?0:d;var c=r*l,f=r*d;return{previous:{x:a.x-c*(o.x-i.x),y:a.y-c*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}},a.EPSILON=Number.EPSILON||1e-14,a.splineCurveMonotone=function(t){var e,n,r,i,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,i=e0?o[e-1]:null,i=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},a.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},a.niceNum=function(t,e){var n,r=Math.floor(a.log10(t)),i=t/Math.pow(10,r);return n=e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,n*Math.pow(10,r)};var o=a.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===(t/=1)?1:(n||(n=.3),r0?(n=u[0].clientX,r=u[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(a.getStyle(o,"padding-left")),d=parseFloat(a.getStyle(o,"padding-top")),c=parseFloat(a.getStyle(o,"padding-right")),f=parseFloat(a.getStyle(o,"padding-bottom")),h=s.right-s.left-l-c,_=s.bottom-s.top-d-f;return n=Math.round((n-s.left-l)/h*o.width/e.currentDevicePixelRatio),r=Math.round((r-s.top-d)/_*o.height/e.currentDevicePixelRatio),{x:n,y:r}},a.addEvent=function(t,e,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},a.removeEvent=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=a.noop},a.bindEvents=function(t,e,n){var r=t.events=t.events||{};a.each(e,function(e){r[e]=function(){n.apply(t,arguments)},a.addEvent(t.chart.canvas,e,r[e])})},a.unbindEvents=function(t,e){var n=t.chart.canvas;a.each(e,function(t,e){a.removeEvent(n,e,t)})},a.getConstraintWidth=function(t){return i(t,"max-width","clientWidth")},a.getConstraintHeight=function(t){return i(t,"max-height","clientHeight")},a.getMaximumWidth=function(t){var e=t.parentNode,n=parseInt(a.getStyle(e,"padding-left"),10),r=parseInt(a.getStyle(e,"padding-right"),10),i=e.clientWidth-n-r,o=a.getConstraintWidth(t);return isNaN(o)?i:Math.min(i,o)},a.getMaximumHeight=function(t){var e=t.parentNode,n=parseInt(a.getStyle(e,"padding-top"),10),r=parseInt(a.getStyle(e,"padding-bottom"),10),i=e.clientHeight-n-r,o=a.getConstraintHeight(t);return isNaN(o)?i:Math.min(i,o)},a.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},a.retinaScale=function(t){var e=t.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==e){var n=t.canvas,r=t.height,i=t.width;n.height=r*e,n.width=i*e,t.ctx.scale(e,e),n.style.height=r+"px",n.style.width=i+"px"}},a.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},a.fontString=function(t,e,n){return e+" "+t+"px "+n},a.longestText=function(t,e,n,r){r=r||{};var i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.font=e;var s=0;a.each(n,function(e){void 0!==e&&null!==e&&a.isArray(e)!==!0?s=a.measureText(t,i,o,s,e):a.isArray(e)&&a.each(e,function(e){void 0===e||null===e||a.isArray(e)||(s=a.measureText(t,i,o,s,e))})});var u=o.length/2;if(u>n.length){for(var l=0;lr&&(r=a),r},a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t)&&t.length>e&&(e=t.length)}),e},a.drawRoundedRectangle=function(t,e,n,r,i,a){t.beginPath(),t.moveTo(e+a,n),t.lineTo(e+r-a,n),t.quadraticCurveTo(e+r,n,e+r,n+a),t.lineTo(e+r,n+i-a),t.quadraticCurveTo(e+r,n+i,e+r-a,n+i),t.lineTo(e+a,n+i),t.quadraticCurveTo(e,n+i,e,n+i-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+a,n),t.closePath()},a.color=function(e){return r?r(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):e},a.addResizeListener=function(t,e){var n=document.createElement("iframe");n.className="chartjs-hidden-iframe",n.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",n.tabIndex=-1;var r=t._chartjs={resizer:n,ticking:!1},i=function(){r.ticking||(r.ticking=!0,a.requestAnimFrame.call(window,function(){if(r.resizer)return r.ticking=!1,e()}))};a.addEvent(n,"load",function(){a.addEvent(n.contentWindow||n,"resize",i),i()}),t.insertBefore(n,t.firstChild)},a.removeResizeListener=function(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}},a.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},a.arrayEquals=function(t,e){var n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n0&&(s=t.getDatasetMeta(s[0]._datasetIndex).data),s},"x-axis":function(t,e){return i(t,e,!0)},point:function(t,e){var r=a.getRelativePosition(e,t.chart);return n(t,r)},nearest:function(t,e,n){var i=a.getRelativePosition(e,t.chart),o=r(t,i,n.intersect);return o.length>1&&o.sort(function(t,e){var n=t.getArea(),r=e.getArea(),i=n-r;return 0===i&&(i=t._datasetIndex-e._datasetIndex),i}),o.slice(0,1)},x:function(t,n,r){var i=a.getRelativePosition(n,t.chart),o=[],s=!1;return e(t,function(t){t.inXRange(i.x)&&o.push(t),t.inRange(i.x,i.y)&&(s=!0)}),r.intersect&&!s&&(o=[]),o},y:function(t,n,r){var i=a.getRelativePosition(n,t.chart),o=[],s=!1;return e(t,function(t){t.inYRange(i.y)&&o.push(t),t.inRange(i.x,i.y)&&(s=!0)}),r.intersect&&!s&&(o=[]),o}}}}},function(t,e){"use strict";t.exports=function(){var t=function(e,n){return this.controller=new t.Controller(e,n,this),this.controller};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0, +animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('
    ');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push("
"),e.join("")}}},t.Chart=t,t}},function(t,e){"use strict";t.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,n,r){function i(t){var e,n=t.isHorizontal();n?(e=t.update(t.options.fullWidth?y:Y,k),D-=e.height):(e=t.update(w,L),Y-=e.width),x.push({horizontal:n,minSize:e,box:t})}function a(t){var n=e.findNextWhere(x,function(e){return e.box===t});if(n)if(t.isHorizontal()){var r={left:T,right:S,top:0,bottom:0};t.update(t.options.fullWidth?y:Y,M/2,r)}else t.update(n.minSize.width,D)}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"},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/Movies.vue b/resources/assets/js/components/Movies.vue index 8ada7f5..d14abab 100644 --- a/resources/assets/js/components/Movies.vue +++ b/resources/assets/js/components/Movies.vue @@ -76,17 +76,15 @@ export default { }, created: function () { - this.loadingRoute() + if(this.movies.length == 0) { + this.loadingRoute() + } + this.clearGenresFilter() this.fetchData() }, watch: { - '$route': function () { - this.loadingRoute() - this.fetchData() - }, - 'links': function () { let self = this diff --git a/resources/assets/js/components/Settings.vue b/resources/assets/js/components/Settings.vue index 92d9e3e..560c9d0 100644 --- a/resources/assets/js/components/Settings.vue +++ b/resources/assets/js/components/Settings.vue @@ -74,15 +74,11 @@ export default { }, created: function () { - this.loadingRoute() - this.fetchData() - }, - - watch: { - '$route': function () { + if(!this.settings) { this.loadingRoute() - this.fetchData() } + + this.fetchData() }, methods: { diff --git a/resources/assets/js/components/Shows.vue b/resources/assets/js/components/Shows.vue index c6997e4..0ca1496 100644 --- a/resources/assets/js/components/Shows.vue +++ b/resources/assets/js/components/Shows.vue @@ -76,17 +76,15 @@ export default { }, created: function () { - this.loadingRoute() + if(this.shows.length == 0) { + this.loadingRoute() + } + this.clearGenresFilter() this.fetchData() }, watch: { - '$route': function () { - this.loadingRoute() - this.fetchData() - }, - 'links': function () { let self = this