mirror of https://github.com/FastGitORG/uptime
10 lines
240 KiB
JavaScript
10 lines
240 KiB
JavaScript
import{S as t,i as e,s as n,e as i,c as a,a as r,d as o,g as s,l,m as u,o as d,p as c,q as h,r as f,t as g,j as m,b as p,k as v,f as b,E as y,h as x,u as _,n as w,x as k,y as M,z as S,A as D,v as C,w as T,M as P,N as O,O as A,P as I,Q as F,R as N,D as R,T as L,U as Y,V as W}from"./client.f43faa63.js";import{h as E,L as z,c as V,a as H,b as B,d as j,e as U}from"./createOctokit.987de969.js";function $(t){let e,n,l,u,d,c,h,k,M,S,D,C,T,P,O,A,I,F,N,R=t[1].name+"",L=("up"===t[1].status?f.i18n.up:f.i18n.down)+"",Y=f.i18n.overallUptimeTitle+"",W=t[1].uptime+"",E=f.i18n.averageResponseTimeTitle+"",z=t[1].time+"",V=f.i18n.ms+"";return{c(){e=i("h1"),n=i("a"),l=g(R),d=m(),c=i("span"),h=g(L),M=m(),S=i("dl"),D=i("dt"),C=g(Y),T=i("dd"),P=g(W),O=i("dt"),A=g(E),I=i("dd"),F=g(z),N=g(V),this.h()},l(t){e=a(t,"H1",{});var i=r(e);n=a(i,"A",{class:!0,href:!0});var s=r(n);l=p(s,R),s.forEach(o),d=v(i),c=a(i,"SPAN",{class:!0});var u=r(c);h=p(u,L),u.forEach(o),i.forEach(o),M=v(t),S=a(t,"DL",{});var f=r(S);D=a(f,"DT",{});var g=r(D);C=p(g,Y),g.forEach(o),T=a(f,"DD",{});var m=r(T);P=p(m,W),m.forEach(o),O=a(f,"DT",{});var b=r(O);A=p(b,E),b.forEach(o),I=a(f,"DD",{});var y=r(I);F=p(y,z),N=p(y,V),y.forEach(o),f.forEach(o),this.h()},h(){b(n,"class","no-underline svelte-1d3m0a"),b(n,"href",u=t[1].url),b(c,"class",k=y(`tag ${t[1].status}`)+" svelte-1d3m0a")},m(t,i){s(t,e,i),x(e,n),x(n,l),x(e,d),x(e,c),x(c,h),s(t,M,i),s(t,S,i),x(S,D),x(D,C),x(S,T),x(T,P),x(S,O),x(O,A),x(S,I),x(I,F),x(I,N)},p(t,e){2&e&&R!==(R=t[1].name+"")&&_(l,R),2&e&&u!==(u=t[1].url)&&b(n,"href",u),2&e&&L!==(L=("up"===t[1].status?f.i18n.up:f.i18n.down)+"")&&_(h,L),2&e&&k!==(k=y(`tag ${t[1].status}`)+" svelte-1d3m0a")&&b(c,"class",k),2&e&&W!==(W=t[1].uptime+"")&&_(P,W),2&e&&z!==(z=t[1].time+"")&&_(F,z)},i:w,o:w,d(t){t&&o(e),t&&o(M),t&&o(S)}}}function G(t){let e,n;return e=new z({}),{c(){k(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,i){S(e,t,i),n=!0},p:w,i(t){n||(c(e.$$.fragment,t),n=!0)},o(t){u(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function q(t){let e,n,h,f;const g=[G,$],m=[];function p(t,e){return t[0]?0:t[1]?1:-1}return~(n=p(t))&&(h=m[n]=g[n](t)),{c(){e=i("section"),h&&h.c()},l(t){e=a(t,"SECTION",{});var n=r(e);h&&h.l(n),n.forEach(o)},m(t,i){s(t,e,i),~n&&m[n].m(e,null),f=!0},p(t,[i]){let a=n;n=p(t),n===a?~n&&m[n].p(t,i):(h&&(l(),u(m[a],1,1,(()=>{m[a]=null})),d()),~n?(h=m[n],h?h.p(t,i):(h=m[n]=g[n](t),h.c()),c(h,1),h.m(e,null)):h=null)},i(t){f||(c(h),f=!0)},o(t){u(h),f=!1},d(t){t&&o(e),~n&&m[n].d()}}}function Z(t,e,n){let{slug:i}=e,a=!0,{apiBaseUrl:r}=f["status-website"]||{};r||(r="https://api.github.com");const o=r.includes("api.github.com")?"https://raw.githubusercontent.com":r,s=f.owner,l=f.repo;let u=null;return h((async()=>{try{const t=await fetch(`${o}/${s}/${l}/master/history/summary.json`);n(1,u=(await t.json()).find((t=>t.slug===i)))}catch(t){E(t)}n(0,a=!1)})),t.$$set=t=>{"slug"in t&&n(2,i=t.slug)},[a,u,i]}class X extends t{constructor(t){super(),e(this,t,Z,q,n,{slug:2})}}function K(t,e,n){const i=t.slice();return i[6]=e[n],i}function J(t){let e,n,l,u,d=f.i18n.pastIncidents+"",c=t[1],h=[];for(let e=0;e<c.length;e+=1)h[e]=et(K(t,c,e));return{c(){e=i("h2"),n=g(d),l=m();for(let t=0;t<h.length;t+=1)h[t].c();u=C(),this.h()},l(t){e=a(t,"H2",{class:!0});var i=r(e);n=p(i,d),i.forEach(o),l=v(t);for(let e=0;e<h.length;e+=1)h[e].l(t);u=C(),this.h()},h(){b(e,"class","svelte-18y4uo2")},m(t,i){s(t,e,i),x(e,n),s(t,l,i);for(let e=0;e<h.length;e+=1)h[e].m(t,i);s(t,u,i)},p(t,e){if(2&e){let n;for(c=t[1],n=0;n<c.length;n+=1){const i=K(t,c,n);h[n]?h[n].p(i,e):(h[n]=et(i),h[n].c(),h[n].m(u.parentNode,u))}for(;n<h.length;n+=1)h[n].d(1);h.length=c.length}},i:w,o:w,d(t){t&&o(e),t&&o(l),T(h,t),t&&o(u)}}}function Q(t){let e,n;return e=new z({}),{c(){k(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,i){S(e,t,i),n=!0},p:w,i(t){n||(c(e.$$.fragment,t),n=!0)},o(t){u(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function tt(t){let e,n,l=new Date(t[6].created_at).toLocaleDateString()+"";return{c(){e=i("h3"),n=g(l)},l(t){e=a(t,"H3",{});var i=r(e);n=p(i,l),i.forEach(o)},m(t,i){s(t,e,i),x(e,n)},p(t,e){2&e&&l!==(l=new Date(t[6].created_at).toLocaleDateString()+"")&&_(n,l)},d(t){t&&o(e)}}}function et(t){let e,n,l,u,d,c,h,y,w,k,M,S,D,C,T,P=t[6].title.replace("🛑","").replace("⚠️","").trim()+"",O=f.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(t[6].closed_at).getTime()-new Date(t[6].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,t[6].comments)+"",A=f.i18n.incidentReport.replace(/\$NUMBER/g,t[6].number)+"",I=t[6].showHeading&&tt(t);return{c(){I&&I.c(),e=m(),n=i("article"),l=i("div"),u=i("div"),d=i("h4"),c=g(P),h=m(),y=i("div"),w=m(),k=i("div"),M=i("a"),S=g(A),C=m(),this.h()},l(t){I&&I.l(t),e=v(t),n=a(t,"ARTICLE",{class:!0});var i=r(n);l=a(i,"DIV",{class:!0});var s=r(l);u=a(s,"DIV",{});var f=r(u);d=a(f,"H4",{});var g=r(d);c=p(g,P),g.forEach(o),h=v(f),y=a(f,"DIV",{}),r(y).forEach(o),f.forEach(o),w=v(s),k=a(s,"DIV",{class:!0});var m=r(k);M=a(m,"A",{href:!0});var b=r(M);S=p(b,A),b.forEach(o),m.forEach(o),s.forEach(o),C=v(i),i.forEach(o),this.h()},h(){b(M,"href",D=`${f.path}/incident/${t[6].number}`),b(k,"class","f r"),b(l,"class","f"),b(n,"class",T="down link "+(t[6].title.includes("degraded")?"degraded":""))},m(t,i){I&&I.m(t,i),s(t,e,i),s(t,n,i),x(n,l),x(l,u),x(u,d),x(d,c),x(u,h),x(u,y),y.innerHTML=O,x(l,w),x(l,k),x(k,M),x(M,S),x(n,C)},p(t,i){t[6].showHeading?I?I.p(t,i):(I=tt(t),I.c(),I.m(e.parentNode,e)):I&&(I.d(1),I=null),2&i&&P!==(P=t[6].title.replace("🛑","").replace("⚠️","").trim()+"")&&_(c,P),2&i&&O!==(O=f.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(t[6].closed_at).getTime()-new Date(t[6].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,t[6].comments)+"")&&(y.innerHTML=O),2&i&&A!==(A=f.i18n.incidentReport.replace(/\$NUMBER/g,t[6].number)+"")&&_(S,A),2&i&&D!==(D=`${f.path}/incident/${t[6].number}`)&&b(M,"href",D),2&i&&T!==(T="down link "+(t[6].title.includes("degraded")?"degraded":""))&&b(n,"class",T)},d(t){I&&I.d(t),t&&o(e),t&&o(n)}}}function nt(t){let e,n,h,f;const g=[Q,J],m=[];function p(t,e){return t[0]?0:t[1].length?1:-1}return~(n=p(t))&&(h=m[n]=g[n](t)),{c(){e=i("section"),h&&h.c()},l(t){e=a(t,"SECTION",{});var n=r(e);h&&h.l(n),n.forEach(o)},m(t,i){s(t,e,i),~n&&m[n].m(e,null),f=!0},p(t,[i]){let a=n;n=p(t),n===a?~n&&m[n].p(t,i):(h&&(l(),u(m[a],1,1,(()=>{m[a]=null})),d()),~n?(h=m[n],h?h.p(t,i):(h=m[n]=g[n](t),h.c()),c(h,1),h.m(e,null)):h=null)},i(t){f||(c(h),f=!0)},o(t){u(h),f=!1},d(t){t&&o(e),~n&&m[n].d()}}}function it(t,e,n){let{slug:i}=e,a=!0;const r=V(),o=f.owner,s=f.repo;let l=[];return h((async()=>{try{n(1,l=(await H(`closed-issues-${o}-${s}-${i}`,(()=>r.issues.listForRepo({owner:o,repo:s,state:"closed",filter:"all",sort:"created",direction:"desc",labels:`status,${i}`})))).data)}catch(t){E(t)}n(1,l=l.map(((t,e)=>(t.showHeading=0===e||new Date(l[e-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t)))),n(0,a=!1)})),t.$$set=t=>{"slug"in t&&n(2,i=t.slug)},[a,l,i]}class at extends t{constructor(t){super(),e(this,t,it,nt,n,{slug:2})}}var rt=B((function(t,e){t.exports=function(){var e,n;function i(){return e.apply(null,arguments)}function a(t){e=t}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(s(t,e))return!1;return!0}function u(t){return void 0===t}function d(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function f(t,e){for(var n in e)s(e,n)&&(t[n]=e[n]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function g(t,e,n,i){return qn(t,e,n,i,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(t){return null==t._pf&&(t._pf=m()),t._pf}function v(t){if(null==t._isValid){var e=p(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),a=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(a=a&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return a;t._isValid=a}return t._isValid}function b(t){var e=g(NaN);return null!=t?f(p(e),t):p(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var y=i.momentProperties=[],x=!1;function _(t,e){var n,i,a;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=p(e)),u(e._locale)||(t._locale=e._locale),y.length>0)for(n=0;n<y.length;n++)u(a=e[i=y[n]])||(t[i]=a);return t}function w(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,i.updateOffset(this),x=!1)}function k(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function M(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,e){var n=!0;return f((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var a,r,o,l=[];for(r=0;r<arguments.length;r++){if(a="","object"==typeof arguments[r]){for(o in a+="\n["+r+"] ",arguments[0])s(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[r];l.push(a)}M(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var D,C={};function T(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),C[t]||(M(e),C[t]=!0)}function P(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function O(t){var e,n;for(n in t)s(t,n)&&(P(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(t,e){var n,i=f({},t);for(n in e)s(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},f(i[n],t[n]),f(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)s(t,n)&&!s(e,n)&&o(t[n])&&(i[n]=f({},i[n]));return i}function I(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)s(t,e)&&n.push(e);return n};var F={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return P(i)?i.call(e,n):i}function R(t,e,n){var i=""+Math.abs(t),a=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var L=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},E={};function z(t,e,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),t&&(E[t]=a),e&&(E[e[0]]=function(){return R(a.apply(this,arguments),e[1],e[2])}),n&&(E[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function V(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function H(t){var e,n,i=t.match(L);for(e=0,n=i.length;e<n;e++)E[i[e]]?i[e]=E[i[e]]:i[e]=V(i[e]);return function(e){var a,r="";for(a=0;a<n;a++)r+=P(i[a])?i[a].call(e,t):i[a];return r}}function B(t,e){return t.isValid()?(e=j(e,t.localeData()),W[e]=W[e]||H(e),W[e](t)):t.localeData().invalidDate()}function j(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(Y.lastIndex=0;n>=0&&Y.test(t);)t=t.replace(Y,i),Y.lastIndex=0,n-=1;return t}var $={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(L).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var q="Invalid date";function Z(){return this._invalidDate}var X="%d",K=/\d{1,2}/;function J(t){return this._ordinal.replace("%d",t)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tt(t,e,n,i){var a=this._relativeTime[n];return P(a)?a(t,e,n,i):a.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return P(n)?n(e):n.replace(/%s/i,e)}var nt={};function it(t,e){var n=t.toLowerCase();nt[n]=nt[n+"s"]=nt[e]=t}function at(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function rt(t){var e,n,i={};for(n in t)s(t,n)&&(e=at(n))&&(i[e]=t[n]);return i}var ot={};function st(t,e){ot[t]=e}function lt(t){var e,n=[];for(e in t)s(t,e)&&n.push({unit:e,priority:ot[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function ut(t){return t%4==0&&t%100!=0||t%400==0}function dt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ct(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=dt(e)),n}function ht(t,e){return function(n){return null!=n?(gt(this,t,n),i.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function gt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(n=ct(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),te(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function mt(t){return P(this[t=at(t)])?this[t]():this}function pt(t,e){if("object"==typeof t){var n,i=lt(t=rt(t));for(n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit])}else if(P(this[t=at(t)]))return this[t](e);return this}var vt,bt=/\d/,yt=/\d\d/,xt=/\d{3}/,_t=/\d{4}/,wt=/[+-]?\d{6}/,kt=/\d\d?/,Mt=/\d\d\d\d?/,St=/\d\d\d\d\d\d?/,Dt=/\d{1,3}/,Ct=/\d{1,4}/,Tt=/[+-]?\d{1,6}/,Pt=/\d+/,Ot=/[+-]?\d+/,At=/Z|[+-]\d\d:?\d\d/gi,It=/Z|[+-]\d\d(?::?\d\d)?/gi,Ft=/[+-]?\d+(\.\d{1,3})?/,Nt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Rt(t,e,n){vt[t]=P(e)?e:function(t,i){return t&&n?n:e}}function Lt(t,e){return s(vt,t)?vt[t](e._strict,e._locale):new RegExp(Yt(t))}function Yt(t){return Wt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,a){return e||n||i||a})))}function Wt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}vt={};var Et={};function zt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),d(e)&&(i=function(t,n){n[e]=ct(t)}),n=0;n<t.length;n++)Et[t[n]]=i}function Vt(t,e){zt(t,(function(t,n,i,a){i._w=i._w||{},e(t,i._w,i,a)}))}function Ht(t,e,n){null!=e&&s(Et,t)&&Et[t](e,n._a,n,t)}var Bt,jt=0,Ut=1,$t=2,Gt=3,qt=4,Zt=5,Xt=6,Kt=7,Jt=8;function Qt(t,e){return(t%e+e)%e}function te(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Qt(e,12);return t+=(e-n)/12,1===n?ut(t)?29:28:31-n%7%2}Bt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),z("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),it("month","M"),st("month",8),Rt("M",kt),Rt("MM",kt,yt),Rt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Rt("MMMM",(function(t,e){return e.monthsRegex(t)})),zt(["M","MM"],(function(t,e){e[Ut]=ct(t)-1})),zt(["MMM","MMMM"],(function(t,e,n,i){var a=n._locale.monthsParse(t,i,n._strict);null!=a?e[Ut]=a:p(n).invalidMonth=t}));var ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ae=Nt,re=Nt;function oe(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ie).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone}function se(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ie.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(t,e,n){var i,a,r,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=g([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=Bt.call(this._shortMonthsParse,o))?a:null:-1!==(a=Bt.call(this._longMonthsParse,o))?a:null:"MMM"===e?-1!==(a=Bt.call(this._shortMonthsParse,o))||-1!==(a=Bt.call(this._longMonthsParse,o))?a:null:-1!==(a=Bt.call(this._longMonthsParse,o))||-1!==(a=Bt.call(this._shortMonthsParse,o))?a:null}function ue(t,e,n){var i,a,r;if(this._monthsParseExact)return le.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=g([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function de(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=ct(e);else if(!d(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),te(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function ce(t){return null!=t?(de(this,t),i.updateOffset(this,!0),this):ft(this,"Month")}function he(){return te(this.year(),this.month())}function fe(t){return this._monthsParseExact?(s(this,"_monthsRegex")||me.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=ae),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ge(t){return this._monthsParseExact?(s(this,"_monthsRegex")||me.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=re),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function me(){function t(t,e){return e.length-t.length}var e,n,i=[],a=[],r=[];for(e=0;e<12;e++)n=g([2e3,e]),i.push(this.monthsShort(n,"")),a.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),a.sort(t),r.sort(t),e=0;e<12;e++)i[e]=Wt(i[e]),a[e]=Wt(a[e]);for(e=0;e<24;e++)r[e]=Wt(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function pe(t){return ut(t)?366:365}z("Y",0,0,(function(){var t=this.year();return t<=9999?R(t,4):"+"+t})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),it("year","y"),st("year",1),Rt("Y",Ot),Rt("YY",kt,yt),Rt("YYYY",Ct,_t),Rt("YYYYY",Tt,wt),Rt("YYYYYY",Tt,wt),zt(["YYYYY","YYYYYY"],jt),zt("YYYY",(function(t,e){e[jt]=2===t.length?i.parseTwoDigitYear(t):ct(t)})),zt("YY",(function(t,e){e[jt]=i.parseTwoDigitYear(t)})),zt("Y",(function(t,e){e[jt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return ct(t)+(ct(t)>68?1900:2e3)};var ve=ht("FullYear",!0);function be(){return ut(this.year())}function ye(t,e,n,i,a,r,o){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,a,r,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,a,r,o),s}function xe(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function _e(t,e,n){var i=7+e-n;return-(7+xe(t,0,i).getUTCDay()-e)%7+i-1}function we(t,e,n,i,a){var r,o,s=1+7*(e-1)+(7+n-i)%7+_e(t,i,a);return s<=0?o=pe(r=t-1)+s:s>pe(t)?(r=t+1,o=s-pe(t)):(r=t,o=s),{year:r,dayOfYear:o}}function ke(t,e,n){var i,a,r=_e(t.year(),e,n),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?i=o+Me(a=t.year()-1,e,n):o>Me(t.year(),e,n)?(i=o-Me(t.year(),e,n),a=t.year()+1):(a=t.year(),i=o),{week:i,year:a}}function Me(t,e,n){var i=_e(t,e,n),a=_e(t+1,e,n);return(pe(t)-i+a)/7}function Se(t){return ke(t,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),it("week","w"),it("isoWeek","W"),st("week",5),st("isoWeek",5),Rt("w",kt),Rt("ww",kt,yt),Rt("W",kt),Rt("WW",kt,yt),Vt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=ct(t)}));var De={dow:0,doy:6};function Ce(){return this._week.dow}function Te(){return this._week.doy}function Pe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Oe(t){var e=ke(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ie(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Fe(t,e){return t.slice(e,7).concat(t.slice(0,e))}z("d",0,"do","day"),z("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),z("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),z("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),it("day","d"),it("weekday","e"),it("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Rt("d",kt),Rt("e",kt),Rt("E",kt),Rt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Rt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Rt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Vt(["dd","ddd","dddd"],(function(t,e,n,i){var a=n._locale.weekdaysParse(t,i,n._strict);null!=a?e.d=a:p(n).invalidWeekday=t})),Vt(["d","e","E"],(function(t,e,n,i){e[i]=ct(t)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Le="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ye=Nt,We=Nt,Ee=Nt;function ze(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Fe(n,this._week.dow):t?n[t.day()]:n}function Ve(t){return!0===t?Fe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function He(t){return!0===t?Fe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Be(t,e,n){var i,a,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=g([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=Bt.call(this._weekdaysParse,o))?a:null:"ddd"===e?-1!==(a=Bt.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=Bt.call(this._minWeekdaysParse,o))?a:null:"dddd"===e?-1!==(a=Bt.call(this._weekdaysParse,o))||-1!==(a=Bt.call(this._shortWeekdaysParse,o))||-1!==(a=Bt.call(this._minWeekdaysParse,o))?a:null:"ddd"===e?-1!==(a=Bt.call(this._shortWeekdaysParse,o))||-1!==(a=Bt.call(this._weekdaysParse,o))||-1!==(a=Bt.call(this._minWeekdaysParse,o))?a:null:-1!==(a=Bt.call(this._minWeekdaysParse,o))||-1!==(a=Bt.call(this._weekdaysParse,o))||-1!==(a=Bt.call(this._shortWeekdaysParse,o))?a:null}function je(t,e,n){var i,a,r;if(this._weekdaysParseExact)return Be.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=g([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Ue(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function $e(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ge(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ie(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function qe(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ye),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=We),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xe(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ke(){function t(t,e){return e.length-t.length}var e,n,i,a,r,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=g([2e3,1]).day(e),i=Wt(this.weekdaysMin(n,"")),a=Wt(this.weekdaysShort(n,"")),r=Wt(this.weekdays(n,"")),o.push(i),s.push(a),l.push(r),u.push(i),u.push(a),u.push(r);o.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Je),z("k",["kk",2],0,Qe),z("hmm",0,0,(function(){return""+Je.apply(this)+R(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Je.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),tn("a",!0),tn("A",!1),it("hour","h"),st("hour",13),Rt("a",en),Rt("A",en),Rt("H",kt),Rt("h",kt),Rt("k",kt),Rt("HH",kt,yt),Rt("hh",kt,yt),Rt("kk",kt,yt),Rt("hmm",Mt),Rt("hmmss",St),Rt("Hmm",Mt),Rt("Hmmss",St),zt(["H","HH"],Gt),zt(["k","kk"],(function(t,e,n){var i=ct(t);e[Gt]=24===i?0:i})),zt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),zt(["h","hh"],(function(t,e,n){e[Gt]=ct(t),p(n).bigHour=!0})),zt("hmm",(function(t,e,n){var i=t.length-2;e[Gt]=ct(t.substr(0,i)),e[qt]=ct(t.substr(i)),p(n).bigHour=!0})),zt("hmmss",(function(t,e,n){var i=t.length-4,a=t.length-2;e[Gt]=ct(t.substr(0,i)),e[qt]=ct(t.substr(i,2)),e[Zt]=ct(t.substr(a)),p(n).bigHour=!0})),zt("Hmm",(function(t,e,n){var i=t.length-2;e[Gt]=ct(t.substr(0,i)),e[qt]=ct(t.substr(i))})),zt("Hmmss",(function(t,e,n){var i=t.length-4,a=t.length-2;e[Gt]=ct(t.substr(0,i)),e[qt]=ct(t.substr(i,2)),e[Zt]=ct(t.substr(a))}));var an=/[ap]\.?m?\.?/i,rn=ht("Hours",!0);function on(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:F,longDateFormat:$,invalidDate:q,ordinal:X,dayOfMonthOrdinalParse:K,relativeTime:Q,months:ee,monthsShort:ne,week:De,weekdays:Ne,weekdaysMin:Le,weekdaysShort:Re,meridiemParse:an},un={},dn={};function cn(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function hn(t){return t?t.toLowerCase().replace("_","-"):t}function fn(t){for(var e,n,i,a,r=0;r<t.length;){for(e=(a=hn(t[r]).split("-")).length,n=(n=hn(t[r+1]))?n.split("-"):null;e>0;){if(i=gn(a.slice(0,e).join("-")))return i;if(n&&n.length>=e&&cn(a,n)>=e-1)break;e--}r++}return sn}function gn(e){var n=null;if(void 0===un[e]&&t&&t.exports)try{n=sn._abbr,U("./locale/"+e),mn(n)}catch(t){un[e]=null}return un[e]}function mn(t,e){var n;return t&&((n=u(e)?bn(t):pn(t,e))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),sn._abbr}function pn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=un[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])i=un[e.parentLocale]._config;else{if(null==(n=gn(e.parentLocale)))return dn[e.parentLocale]||(dn[e.parentLocale]=[]),dn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return un[t]=new I(A(i,e)),dn[t]&&dn[t].forEach((function(t){pn(t.name,t.config)})),mn(t),un[t]}return delete un[t],null}function vn(t,e){if(null!=e){var n,i,a=ln;null!=un[t]&&null!=un[t].parentLocale?un[t].set(A(un[t]._config,e)):(null!=(i=gn(t))&&(a=i._config),e=A(a,e),null==i&&(e.abbr=t),(n=new I(e)).parentLocale=un[t],un[t]=n),mn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===mn()&&mn(t)):null!=un[t]&&delete un[t]);return un[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return sn;if(!r(t)){if(e=gn(t))return e;t=[t]}return fn(t)}function yn(){return D(un)}function xn(t){var e,n=t._a;return n&&-2===p(t).overflow&&(e=n[Ut]<0||n[Ut]>11?Ut:n[$t]<1||n[$t]>te(n[jt],n[Ut])?$t:n[Gt]<0||n[Gt]>24||24===n[Gt]&&(0!==n[qt]||0!==n[Zt]||0!==n[Xt])?Gt:n[qt]<0||n[qt]>59?qt:n[Zt]<0||n[Zt]>59?Zt:n[Xt]<0||n[Xt]>999?Xt:-1,p(t)._overflowDayOfYear&&(e<jt||e>$t)&&(e=$t),p(t)._overflowWeeks&&-1===e&&(e=Kt),p(t)._overflowWeekday&&-1===e&&(e=Jt),p(t).overflow=e),t}var _n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(t){var e,n,i,a,r,o,s=t._i,l=_n.exec(s)||wn.exec(s);if(l){for(p(t).iso=!0,e=0,n=Mn.length;e<n;e++)if(Mn[e][1].exec(l[1])){a=Mn[e][0],i=!1!==Mn[e][2];break}if(null==a)return void(t._isValid=!1);if(l[3]){for(e=0,n=Sn.length;e<n;e++)if(Sn[e][1].exec(l[3])){r=(l[2]||" ")+Sn[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!kn.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=a+(r||"")+(o||""),Vn(t)}else t._isValid=!1}function On(t,e,n,i,a,r){var o=[An(t),ne.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return r&&o.push(parseInt(r,10)),o}function An(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function In(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Fn(t,e,n){return!t||Re.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(t,e,n){if(t)return Tn[t];if(e)return 0;var i=parseInt(n,10),a=i%100;return(i-a)/100*60+a}function Rn(t){var e,n=Cn.exec(In(t._i));if(n){if(e=On(n[4],n[3],n[2],n[5],n[6],n[7]),!Fn(n[1],e,t))return;t._a=e,t._tzm=Nn(n[8],n[9],n[10]),t._d=xe.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function Ln(t){var e=Dn.exec(t._i);null===e?(Pn(t),!1===t._isValid&&(delete t._isValid,Rn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Yn(t,e,n){return null!=t?t:null!=e?e:n}function Wn(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function En(t){var e,n,i,a,r,o=[];if(!t._d){for(i=Wn(t),t._w&&null==t._a[$t]&&null==t._a[Ut]&&zn(t),null!=t._dayOfYear&&(r=Yn(t._a[jt],i[jt]),(t._dayOfYear>pe(r)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=xe(r,0,t._dayOfYear),t._a[Ut]=n.getUTCMonth(),t._a[$t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=i[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[qt]&&0===t._a[Zt]&&0===t._a[Xt]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?xe:ye).apply(null,o),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Gt]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(p(t).weekdayMismatch=!0)}}function zn(t){var e,n,i,a,r,o,s,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(r=1,o=4,n=Yn(e.GG,t._a[jt],ke(Zn(),1,4).year),i=Yn(e.W,1),((a=Yn(e.E,1))<1||a>7)&&(l=!0)):(r=t._locale._week.dow,o=t._locale._week.doy,u=ke(Zn(),r,o),n=Yn(e.gg,t._a[jt],u.year),i=Yn(e.w,u.week),null!=e.d?((a=e.d)<0||a>6)&&(l=!0):null!=e.e?(a=e.e+r,(e.e<0||e.e>6)&&(l=!0)):a=r),i<1||i>Me(n,r,o)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(s=we(n,i,a,r,o),t._a[jt]=s.year,t._dayOfYear=s.dayOfYear)}function Vn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],p(t).empty=!0;var e,n,a,r,o,s,l=""+t._i,u=l.length,d=0;for(a=j(t._f,t._locale).match(L)||[],e=0;e<a.length;e++)r=a[e],(n=(l.match(Lt(r,t))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&p(t).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),d+=n.length),E[r]?(n?p(t).empty=!1:p(t).unusedTokens.push(r),Ht(r,n,t)):t._strict&&!n&&p(t).unusedTokens.push(r);p(t).charsLeftOver=u-d,l.length>0&&p(t).unusedInput.push(l),t._a[Gt]<=12&&!0===p(t).bigHour&&t._a[Gt]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[Gt]=Hn(t._locale,t._a[Gt],t._meridiem),null!==(s=p(t).era)&&(t._a[jt]=t._locale.erasConvertYear(s,t._a[jt])),En(t),xn(t)}else Rn(t);else Pn(t)}function Hn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Bn(t){var e,n,i,a,r,o,s=!1;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(a=0;a<t._f.length;a++)r=0,o=!1,e=_({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],Vn(e),v(e)&&(o=!0),r+=p(e).charsLeftOver,r+=10*p(e).unusedTokens.length,p(e).score=r,s?r<i&&(i=r,n=e):(null==i||r<i||o)&&(i=r,n=e,o&&(s=!0));f(t,n||e)}function jn(t){if(!t._d){var e=rt(t._i),n=void 0===e.day?e.date:e.day;t._a=h([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),En(t)}}function Un(t){var e=new w(xn($n(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function $n(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?b({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),k(e)?new w(xn(e)):(c(e)?t._d=e:r(n)?Bn(t):n?Vn(t):Gn(t),v(t)||(t._d=null),t))}function Gn(t){var e=t._i;u(e)?t._d=new Date(i.now()):c(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Ln(t):r(e)?(t._a=h(e.slice(0),(function(t){return parseInt(t,10)})),En(t)):o(e)?jn(t):d(e)?t._d=new Date(e):i.createFromInputFallback(t)}function qn(t,e,n,i,a){var s={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&l(t)||r(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=t,s._f=e,s._strict=i,Un(s)}function Zn(t,e,n,i){return qn(t,e,n,i,!1)}i.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Xn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Zn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()})),Kn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Zn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()}));function Jn(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Zn();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function Qn(){return Jn("isBefore",[].slice.call(arguments,0))}function ti(){return Jn("isAfter",[].slice.call(arguments,0))}var ei=function(){return Date.now?Date.now():+new Date},ni=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ii(t){var e,n,i=!1;for(e in t)if(s(t,e)&&(-1===Bt.call(ni,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<ni.length;++n)if(t[ni[n]]){if(i)return!1;parseFloat(t[ni[n]])!==ct(t[ni[n]])&&(i=!0)}return!0}function ai(){return this._isValid}function ri(){return Ti(NaN)}function oi(t){var e=rt(t),n=e.year||0,i=e.quarter||0,a=e.month||0,r=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=ii(e),this._milliseconds=+d+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=bn(),this._bubble()}function si(t){return t instanceof oi}function li(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ui(t,e,n){var i,a=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(i=0;i<a;i++)(n&&t[i]!==e[i]||!n&&ct(t[i])!==ct(e[i]))&&o++;return o+r}function di(t,e){z(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+R(~~(t/60),2)+e+R(~~t%60,2)}))}di("Z",":"),di("ZZ",""),Rt("Z",It),Rt("ZZ",It),zt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=hi(It,t)}));var ci=/([\+\-]|\d\d)/gi;function hi(t,e){var n,i,a=(e||"").match(t);return null===a?null:0===(i=60*(n=((a[a.length-1]||[])+"").match(ci)||["-",0,0])[1]+ct(n[2]))?0:"+"===n[0]?i:-i}function fi(t,e){var n,a;return e._isUTC?(n=e.clone(),a=(k(t)||c(t)?t.valueOf():Zn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),i.updateOffset(n,!1),n):Zn(t).local()}function gi(t){return-Math.round(t._d.getTimezoneOffset())}function mi(t,e,n){var a,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=hi(It,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(a=gi(this)),this._offset=t,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==t&&(!e||this._changeInProgress?Fi(this,Ti(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:gi(this)}function pi(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function vi(t){return this.utcOffset(0,t)}function bi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(gi(this),"m")),this}function yi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=hi(At,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function xi(t){return!!this.isValid()&&(t=t?Zn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function _i(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wi(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=$n(e))._a?(t=e._isUTC?g(e._a):Zn(e._a),this._isDSTShifted=this.isValid()&&ui(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ki(){return!!this.isValid()&&!this._isUTC}function Mi(){return!!this.isValid()&&this._isUTC}function Si(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Di=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ci=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ti(t,e){var n,i,a,r=t,o=null;return si(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:d(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(o=Di.exec(t))?(n="-"===o[1]?-1:1,r={y:0,d:ct(o[$t])*n,h:ct(o[Gt])*n,m:ct(o[qt])*n,s:ct(o[Zt])*n,ms:ct(li(1e3*o[Xt]))*n}):(o=Ci.exec(t))?(n="-"===o[1]?-1:1,r={y:Pi(o[2],n),M:Pi(o[3],n),w:Pi(o[4],n),d:Pi(o[5],n),h:Pi(o[6],n),m:Pi(o[7],n),s:Pi(o[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(a=Ai(Zn(r.from),Zn(r.to)),(r={}).ms=a.milliseconds,r.M=a.months),i=new oi(r),si(t)&&s(t,"_locale")&&(i._locale=t._locale),si(t)&&s(t,"_isValid")&&(i._isValid=t._isValid),i}function Pi(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Oi(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ai(t,e){var n;return t.isValid()&&e.isValid()?(e=fi(e,t),t.isBefore(e)?n=Oi(t,e):((n=Oi(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ii(t,e){return function(n,i){var a;return null===i||isNaN(+i)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=i,i=a),Fi(this,Ti(n,i),t),this}}function Fi(t,e,n,a){var r=e._milliseconds,o=li(e._days),s=li(e._months);t.isValid()&&(a=null==a||a,s&&de(t,ft(t,"Month")+s*n),o&>(t,"Date",ft(t,"Date")+o*n),r&&t._d.setTime(t._d.valueOf()+r*n),a&&i.updateOffset(t,o||s))}Ti.fn=oi.prototype,Ti.invalid=ri;var Ni=Ii(1,"add"),Ri=Ii(-1,"subtract");function Li(t){return"string"==typeof t||t instanceof String}function Yi(t){return k(t)||c(t)||Li(t)||d(t)||Ei(t)||Wi(t)||null==t}function Wi(t){var e,n,i=o(t)&&!l(t),a=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;e<r.length;e+=1)n=r[e],a=a||s(t,n);return i&&a}function Ei(t){var e=r(t),n=!1;return e&&(n=0===t.filter((function(e){return!d(e)&&Li(t)})).length),e&&n}function zi(t){var e,n,i=o(t)&&!l(t),a=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=r[e],a=a||s(t,n);return i&&a}function Vi(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hi(t,e){1===arguments.length&&(arguments[0]?Yi(arguments[0])?(t=arguments[0],e=void 0):zi(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Zn(),a=fi(n,this).startOf("day"),r=i.calendarFormat(this,a)||"sameElse",o=e&&(P(e[r])?e[r].call(this,n):e[r]);return this.format(o||this.localeData().calendar(r,this,Zn(n)))}function Bi(){return new w(this)}function ji(t,e){var n=k(t)?t:Zn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=at(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function Ui(t,e){var n=k(t)?t:Zn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=at(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function $i(t,e,n,i){var a=k(t)?t:Zn(t),r=k(e)?e:Zn(e);return!!(this.isValid()&&a.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===i[1]?this.isBefore(r,n):!this.isAfter(r,n))}function Gi(t,e){var n,i=k(t)?t:Zn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=at(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function qi(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Zi(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Xi(t,e,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=fi(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=at(e)){case"year":r=Ki(this,i)/12;break;case"month":r=Ki(this,i);break;case"quarter":r=Ki(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:dt(r)}function Ki(t,e){if(t.date()<e.date())return-Ki(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function Ji(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qi(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ta(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i,a="moment",r="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+a+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=r+'[")]',this.format(t+e+n+i)}function ea(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=B(this,t);return this.localeData().postformat(e)}function na(t,e){return this.isValid()&&(k(t)&&t.isValid()||Zn(t).isValid())?Ti({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ia(t){return this.from(Zn(),t)}function aa(t,e){return this.isValid()&&(k(t)&&t.isValid()||Zn(t).isValid())?Ti({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ra(t){return this.to(Zn(),t)}function oa(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sa=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function la(){return this._locale}var ua=1e3,da=60*ua,ca=60*da,ha=3506328*ca;function fa(t,e){return(t%e+e)%e}function ga(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ha:new Date(t,e,n).valueOf()}function ma(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ha:Date.UTC(t,e,n)}function pa(t){var e,n;if(void 0===(t=at(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?ma:ga,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fa(e+(this._isUTC?0:this.utcOffset()*da),ca);break;case"minute":e=this._d.valueOf(),e-=fa(e,da);break;case"second":e=this._d.valueOf(),e-=fa(e,ua)}return this._d.setTime(e),i.updateOffset(this,!0),this}function va(t){var e,n;if(void 0===(t=at(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?ma:ga,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ca-fa(e+(this._isUTC?0:this.utcOffset()*da),ca)-1;break;case"minute":e=this._d.valueOf(),e+=da-fa(e,da)-1;break;case"second":e=this._d.valueOf(),e+=ua-fa(e,ua)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function ba(){return this._d.valueOf()-6e4*(this._offset||0)}function ya(){return Math.floor(this.valueOf()/1e3)}function xa(){return new Date(this.valueOf())}function _a(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function wa(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function ka(){return this.isValid()?this.toISOString():null}function Ma(){return v(this)}function Sa(){return f({},p(this))}function Da(){return p(this).overflow}function Ca(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ta(t,e){var n,a,r,o=this._eras||bn("en")._eras;for(n=0,a=o.length;n<a;++n){switch(typeof o[n].since){case"string":r=i(o[n].since).startOf("day"),o[n].since=r.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":r=i(o[n].until).startOf("day").valueOf(),o[n].until=r.valueOf()}}return o}function Pa(t,e,n){var i,a,r,o,s,l=this.eras();for(t=t.toUpperCase(),i=0,a=l.length;i<a;++i)if(r=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return l[i];break;case"NNNN":if(r===t)return l[i];break;case"NNNNN":if(s===t)return l[i]}else if([r,o,s].indexOf(t)>=0)return l[i]}function Oa(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n}function Aa(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""}function Ia(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""}function Fa(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""}function Na(){var t,e,n,a,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=r[t].since<=r[t].until?1:-1,a=this.clone().startOf("day").valueOf(),r[t].since<=a&&a<=r[t].until||r[t].until<=a&&a<=r[t].since)return(this.year()-i(r[t].since).year())*n+r[t].offset;return this.year()}function Ra(t){return s(this,"_erasNameRegex")||Ha.call(this),t?this._erasNameRegex:this._erasRegex}function La(t){return s(this,"_erasAbbrRegex")||Ha.call(this),t?this._erasAbbrRegex:this._erasRegex}function Ya(t){return s(this,"_erasNarrowRegex")||Ha.call(this),t?this._erasNarrowRegex:this._erasRegex}function Wa(t,e){return e.erasAbbrRegex(t)}function Ea(t,e){return e.erasNameRegex(t)}function za(t,e){return e.erasNarrowRegex(t)}function Va(t,e){return e._eraYearOrdinalRegex||Pt}function Ha(){var t,e,n=[],i=[],a=[],r=[],o=this.eras();for(t=0,e=o.length;t<e;++t)i.push(Wt(o[t].name)),n.push(Wt(o[t].abbr)),a.push(Wt(o[t].narrow)),r.push(Wt(o[t].name)),r.push(Wt(o[t].abbr)),r.push(Wt(o[t].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Ba(t,e){z(0,[t,t.length],0,e)}function ja(t){return Xa.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ua(t){return Xa.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function $a(){return Me(this.year(),1,4)}function Ga(){return Me(this.isoWeekYear(),1,4)}function qa(){var t=this.localeData()._week;return Me(this.year(),t.dow,t.doy)}function Za(){var t=this.localeData()._week;return Me(this.weekYear(),t.dow,t.doy)}function Xa(t,e,n,i,a){var r;return null==t?ke(this,i,a).year:(e>(r=Me(t,i,a))&&(e=r),Ka.call(this,t,e,n,i,a))}function Ka(t,e,n,i,a){var r=we(t,e,n,i,a),o=xe(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Ja(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Rt("N",Wa),Rt("NN",Wa),Rt("NNN",Wa),Rt("NNNN",Ea),Rt("NNNNN",za),zt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var a=n._locale.erasParse(t,i,n._strict);a?p(n).era=a:p(n).invalidEra=t})),Rt("y",Pt),Rt("yy",Pt),Rt("yyy",Pt),Rt("yyyy",Pt),Rt("yo",Va),zt(["y","yy","yyy","yyyy"],jt),zt(["yo"],(function(t,e,n,i){var a;n._locale._eraYearOrdinalRegex&&(a=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[jt]=n._locale.eraYearOrdinalParse(t,a):e[jt]=parseInt(t,10)})),z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ba("gggg","weekYear"),Ba("ggggg","weekYear"),Ba("GGGG","isoWeekYear"),Ba("GGGGG","isoWeekYear"),it("weekYear","gg"),it("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Rt("G",Ot),Rt("g",Ot),Rt("GG",kt,yt),Rt("gg",kt,yt),Rt("GGGG",Ct,_t),Rt("gggg",Ct,_t),Rt("GGGGG",Tt,wt),Rt("ggggg",Tt,wt),Vt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=ct(t)})),Vt(["gg","GG"],(function(t,e,n,a){e[a]=i.parseTwoDigitYear(t)})),z("Q",0,"Qo","quarter"),it("quarter","Q"),st("quarter",7),Rt("Q",bt),zt("Q",(function(t,e){e[Ut]=3*(ct(t)-1)})),z("D",["DD",2],"Do","date"),it("date","D"),st("date",9),Rt("D",kt),Rt("DD",kt,yt),Rt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),zt(["D","DD"],$t),zt("Do",(function(t,e){e[$t]=ct(t.match(kt)[0])}));var Qa=ht("Date",!0);function tr(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),it("dayOfYear","DDD"),st("dayOfYear",4),Rt("DDD",Dt),Rt("DDDD",xt),zt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ct(t)})),z("m",["mm",2],0,"minute"),it("minute","m"),st("minute",14),Rt("m",kt),Rt("mm",kt,yt),zt(["m","mm"],qt);var er=ht("Minutes",!1);z("s",["ss",2],0,"second"),it("second","s"),st("second",15),Rt("s",kt),Rt("ss",kt,yt),zt(["s","ss"],Zt);var nr,ir,ar=ht("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),it("millisecond","ms"),st("millisecond",16),Rt("S",Dt,bt),Rt("SS",Dt,yt),Rt("SSS",Dt,xt),nr="SSSS";nr.length<=9;nr+="S")Rt(nr,Pt);function rr(t,e){e[Xt]=ct(1e3*("0."+t))}for(nr="S";nr.length<=9;nr+="S")zt(nr,rr);function or(){return this._isUTC?"UTC":""}function sr(){return this._isUTC?"Coordinated Universal Time":""}ir=ht("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var lr=w.prototype;function ur(t){return Zn(1e3*t)}function dr(){return Zn.apply(null,arguments).parseZone()}function cr(t){return t}lr.add=Ni,lr.calendar=Hi,lr.clone=Bi,lr.diff=Xi,lr.endOf=va,lr.format=ea,lr.from=na,lr.fromNow=ia,lr.to=aa,lr.toNow=ra,lr.get=mt,lr.invalidAt=Da,lr.isAfter=ji,lr.isBefore=Ui,lr.isBetween=$i,lr.isSame=Gi,lr.isSameOrAfter=qi,lr.isSameOrBefore=Zi,lr.isValid=Ma,lr.lang=sa,lr.locale=oa,lr.localeData=la,lr.max=Kn,lr.min=Xn,lr.parsingFlags=Sa,lr.set=pt,lr.startOf=pa,lr.subtract=Ri,lr.toArray=_a,lr.toObject=wa,lr.toDate=xa,lr.toISOString=Qi,lr.inspect=ta,"undefined"!=typeof Symbol&&null!=Symbol.for&&(lr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lr.toJSON=ka,lr.toString=Ji,lr.unix=ya,lr.valueOf=ba,lr.creationData=Ca,lr.eraName=Aa,lr.eraNarrow=Ia,lr.eraAbbr=Fa,lr.eraYear=Na,lr.year=ve,lr.isLeapYear=be,lr.weekYear=ja,lr.isoWeekYear=Ua,lr.quarter=lr.quarters=Ja,lr.month=ce,lr.daysInMonth=he,lr.week=lr.weeks=Pe,lr.isoWeek=lr.isoWeeks=Oe,lr.weeksInYear=qa,lr.weeksInWeekYear=Za,lr.isoWeeksInYear=$a,lr.isoWeeksInISOWeekYear=Ga,lr.date=Qa,lr.day=lr.days=Ue,lr.weekday=$e,lr.isoWeekday=Ge,lr.dayOfYear=tr,lr.hour=lr.hours=rn,lr.minute=lr.minutes=er,lr.second=lr.seconds=ar,lr.millisecond=lr.milliseconds=ir,lr.utcOffset=mi,lr.utc=vi,lr.local=bi,lr.parseZone=yi,lr.hasAlignedHourOffset=xi,lr.isDST=_i,lr.isLocal=ki,lr.isUtcOffset=Mi,lr.isUtc=Si,lr.isUTC=Si,lr.zoneAbbr=or,lr.zoneName=sr,lr.dates=S("dates accessor is deprecated. Use date instead.",Qa),lr.months=S("months accessor is deprecated. Use month instead",ce),lr.years=S("years accessor is deprecated. Use year instead",ve),lr.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pi),lr.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wi);var hr=I.prototype;function fr(t,e,n,i){var a=bn(),r=g().set(i,e);return a[n](r,t)}function gr(t,e,n){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return fr(t,e,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=fr(t,i,n,"month");return a}function mr(t,e,n,i){"boolean"==typeof t?(d(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,d(e)&&(n=e,e=void 0),e=e||"");var a,r=bn(),o=t?r._week.dow:0,s=[];if(null!=n)return fr(e,(n+o)%7,i,"day");for(a=0;a<7;a++)s[a]=fr(e,(a+o)%7,i,"day");return s}function pr(t,e){return gr(t,e,"months")}function vr(t,e){return gr(t,e,"monthsShort")}function br(t,e,n){return mr(t,e,n,"weekdays")}function yr(t,e,n){return mr(t,e,n,"weekdaysShort")}function xr(t,e,n){return mr(t,e,n,"weekdaysMin")}hr.calendar=N,hr.longDateFormat=G,hr.invalidDate=Z,hr.ordinal=J,hr.preparse=cr,hr.postformat=cr,hr.relativeTime=tt,hr.pastFuture=et,hr.set=O,hr.eras=Ta,hr.erasParse=Pa,hr.erasConvertYear=Oa,hr.erasAbbrRegex=La,hr.erasNameRegex=Ra,hr.erasNarrowRegex=Ya,hr.months=oe,hr.monthsShort=se,hr.monthsParse=ue,hr.monthsRegex=ge,hr.monthsShortRegex=fe,hr.week=Se,hr.firstDayOfYear=Te,hr.firstDayOfWeek=Ce,hr.weekdays=ze,hr.weekdaysMin=He,hr.weekdaysShort=Ve,hr.weekdaysParse=je,hr.weekdaysRegex=qe,hr.weekdaysShortRegex=Ze,hr.weekdaysMinRegex=Xe,hr.isPM=nn,hr.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===ct(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",mn),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",bn);var _r=Math.abs;function wr(){var t=this._data;return this._milliseconds=_r(this._milliseconds),this._days=_r(this._days),this._months=_r(this._months),t.milliseconds=_r(t.milliseconds),t.seconds=_r(t.seconds),t.minutes=_r(t.minutes),t.hours=_r(t.hours),t.months=_r(t.months),t.years=_r(t.years),this}function kr(t,e,n,i){var a=Ti(e,n);return t._milliseconds+=i*a._milliseconds,t._days+=i*a._days,t._months+=i*a._months,t._bubble()}function Mr(t,e){return kr(this,t,e,1)}function Sr(t,e){return kr(this,t,e,-1)}function Dr(t){return t<0?Math.floor(t):Math.ceil(t)}function Cr(){var t,e,n,i,a,r=this._milliseconds,o=this._days,s=this._months,l=this._data;return r>=0&&o>=0&&s>=0||r<=0&&o<=0&&s<=0||(r+=864e5*Dr(Pr(s)+o),o=0,s=0),l.milliseconds=r%1e3,t=dt(r/1e3),l.seconds=t%60,e=dt(t/60),l.minutes=e%60,n=dt(e/60),l.hours=n%24,o+=dt(n/24),s+=a=dt(Tr(o)),o-=Dr(Pr(a)),i=dt(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function Tr(t){return 4800*t/146097}function Pr(t){return 146097*t/4800}function Or(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=at(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Tr(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Pr(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function Ar(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ct(this._months/12):NaN}function Ir(t){return function(){return this.as(t)}}var Fr=Ir("ms"),Nr=Ir("s"),Rr=Ir("m"),Lr=Ir("h"),Yr=Ir("d"),Wr=Ir("w"),Er=Ir("M"),zr=Ir("Q"),Vr=Ir("y");function Hr(){return Ti(this)}function Br(t){return t=at(t),this.isValid()?this[t+"s"]():NaN}function jr(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ur=jr("milliseconds"),$r=jr("seconds"),Gr=jr("minutes"),qr=jr("hours"),Zr=jr("days"),Xr=jr("months"),Kr=jr("years");function Jr(){return dt(this.days()/7)}var Qr=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eo(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}function no(t,e,n,i){var a=Ti(t).abs(),r=Qr(a.as("s")),o=Qr(a.as("m")),s=Qr(a.as("h")),l=Qr(a.as("d")),u=Qr(a.as("M")),d=Qr(a.as("w")),c=Qr(a.as("y")),h=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||c<=1&&["y"]||["yy",c])[2]=e,h[3]=+t>0,h[4]=i,eo.apply(null,h)}function io(t){return void 0===t?Qr:"function"==typeof t&&(Qr=t,!0)}function ao(t,e){return void 0!==to[t]&&(void 0===e?to[t]:(to[t]=e,"s"===t&&(to.ss=e-1),!0))}function ro(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,a=!1,r=to;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(a=t),"object"==typeof e&&(r=Object.assign({},to,e),null!=e.s&&null==e.ss&&(r.ss=e.s-1)),i=no(this,!a,r,n=this.localeData()),a&&(i=n.pastFuture(+this,i)),n.postformat(i)}var oo=Math.abs;function so(t){return(t>0)-(t<0)||+t}function lo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,a,r,o,s,l=oo(this._milliseconds)/1e3,u=oo(this._days),d=oo(this._months),c=this.asSeconds();return c?(t=dt(l/60),e=dt(t/60),l%=60,t%=60,n=dt(d/12),d%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=c<0?"-":"",r=so(this._months)!==so(c)?"-":"",o=so(this._days)!==so(c)?"-":"",s=so(this._milliseconds)!==so(c)?"-":"",a+"P"+(n?r+n+"Y":"")+(d?r+d+"M":"")+(u?o+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+i+"S":"")):"P0D"}var uo=oi.prototype;return uo.isValid=ai,uo.abs=wr,uo.add=Mr,uo.subtract=Sr,uo.as=Or,uo.asMilliseconds=Fr,uo.asSeconds=Nr,uo.asMinutes=Rr,uo.asHours=Lr,uo.asDays=Yr,uo.asWeeks=Wr,uo.asMonths=Er,uo.asQuarters=zr,uo.asYears=Vr,uo.valueOf=Ar,uo._bubble=Cr,uo.clone=Hr,uo.get=Br,uo.milliseconds=Ur,uo.seconds=$r,uo.minutes=Gr,uo.hours=qr,uo.days=Zr,uo.weeks=Jr,uo.months=Xr,uo.years=Kr,uo.humanize=ro,uo.toISOString=lo,uo.toString=lo,uo.toJSON=lo,uo.locale=oa,uo.localeData=la,uo.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),uo.lang=sa,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Rt("x",Ot),Rt("X",Ft),zt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),zt("x",(function(t,e,n){n._d=new Date(ct(t))})),
|
|
//! moment.js
|
|
i.version="2.29.1",a(Zn),i.fn=lr,i.min=Qn,i.max=ti,i.now=ei,i.utc=g,i.unix=ur,i.months=pr,i.isDate=c,i.locale=mn,i.invalid=b,i.duration=Ti,i.isMoment=k,i.weekdays=br,i.parseZone=dr,i.localeData=bn,i.isDuration=si,i.monthsShort=vr,i.weekdaysMin=xr,i.defineLocale=pn,i.updateLocale=vn,i.locales=yn,i.weekdaysShort=yr,i.normalizeUnits=at,i.relativeTimeRounding=io,i.relativeTimeThreshold=ao,i.calendarFormat=Vi,i.prototype=lr,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()})),ot=B((function(t,e){t.exports=function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}function n(t){return t&&t.default||t}t=t&&t.hasOwnProperty("default")?t.default:t;var i={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]},a=e((function(t){var e={};for(var n in i)i.hasOwnProperty(n)&&(e[i[n]]=n);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var r in a)if(a.hasOwnProperty(r)){if(!("channels"in a[r]))throw new Error("missing channels property: "+r);if(!("labels"in a[r]))throw new Error("missing channel labels property: "+r);if(a[r].labels.length!==a[r].channels)throw new Error("channel and label counts mismatch: "+r);var o=a[r].channels,s=a[r].labels;delete a[r].channels,delete a[r].labels,Object.defineProperty(a[r],"channels",{value:o}),Object.defineProperty(a[r],"labels",{value:s})}function l(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}a.rgb.hsl=function(t){var e,n,i=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(i,a,r),s=Math.max(i,a,r),l=s-o;return s===o?e=0:i===s?e=(a-r)/l:a===s?e=2+(r-i)/l:r===s&&(e=4+(i-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(o+s)/2,[e,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},a.rgb.hsv=function(t){var e,n,i,a,r,o=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(o,s,l),d=u-Math.min(o,s,l),c=function(t){return(u-t)/6/d+.5};return 0===d?a=r=0:(r=d/u,e=c(o),n=c(s),i=c(l),o===u?a=i-n:s===u?a=1/3+e-i:l===u&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[360*a,100*r,100*u]},a.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2];return[a.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(n,i))*100,100*(i=1-1/255*Math.max(e,Math.max(n,i)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-a)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var n=e[t];if(n)return n;var a,r=1/0;for(var o in i)if(i.hasOwnProperty(o)){var s=l(t,i[o]);s<r&&(r=s,a=o)}return a},a.keyword.rgb=function(t){return i[t]},a.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],i=e[1],r=e[2];return i/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.hsl.rgb=function(t){var e,n,i,a,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[r=255*l,r,r];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(i=o+1/3*-(u-1))<0&&i++,i>1&&i--,r=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,a[u]=255*r;return a},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,r=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,a*=r<=1?r:2-r,[e,100*(0===i?2*a/(r+a):2*n/(i+n)),(i+n)/2*100]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,a){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}},a.hsv.hsl=function(t){var e,n,i,a=t[0],r=t[1]/100,o=t[2]/100,s=Math.max(o,.01);return i=(2-r)*o,n=r*s,[a,100*(n=(n/=(e=(2-r)*s)<=1?e:2-e)||0),100*(i/=2)]},a.hwb.rgb=function(t){var e,n,i,a,r,o,s,l=t[0]/360,u=t[1]/100,d=t[2]/100,c=u+d;switch(c>1&&(u/=c,d/=c),i=6*l-(e=Math.floor(6*l)),0!=(1&e)&&(i=1-i),a=u+i*((n=1-d)-u),e){default:case 6:case 0:r=n,o=a,s=u;break;case 1:r=a,o=n,s=u;break;case 2:r=u,o=n,s=a;break;case 3:r=u,o=a,s=n;break;case 4:r=a,o=u,s=n;break;case 5:r=n,o=u,s=a}return[255*r,255*o,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a))]},a.xyz.rgb=function(t){var e,n,i,a=t[0]/100,r=t[1]/100,o=t[2]/100;return n=-.9689*a+1.8758*r+.0415*o,i=.0557*a+-.204*r+1.057*o,e=(e=3.2406*a+-1.5372*r+-.4986*o)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.lab.xyz=function(t){var e,n,i,a=t[0];e=t[1]/500+(n=(a+16)/116),i=n-t[2]/200;var r=Math.pow(n,3),o=Math.pow(e,3),s=Math.pow(i,3);return n=r>.008856?r:(n-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[e*=95.047,n*=100,i*=108.883]},a.lab.lch=function(t){var e,n=t[0],i=t[1],a=t[2];return(e=360*Math.atan2(a,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+a*a),e]},a.lch.lab=function(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],r=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(r=Math.round(r/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===r&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];return e===n&&n===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255,r=Math.max(Math.max(n,i),a),o=Math.min(Math.min(n,i),a),s=r-o;return e=s<=0?0:r===n?(i-a)/s%6:r===i?2+(a-n)/s:4+(n-i)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?o/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return(i=n<.5?2*e*n:2*e*(1-n))<1&&(a=(n-.5*i)/(1-i)),[t[0],100*i,100*a]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],100*i,100*a]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];var a=[0,0,0],r=e%1*6,o=r%1,s=1-o,l=0;switch(Math.floor(r)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return l=(1-n)*i,[255*(n*a[0]+l),255*(n*a[1]+l),255*(n*a[2]+l)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,i=n-e,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],100*i,100*a]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}));function r(){for(var t={},e=Object.keys(a),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function o(t){var e=r(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(a[i]),s=o.length,l=0;l<s;l++){var u=o[l],d=e[u];-1===d.distance&&(d.distance=e[i].distance+1,d.parent=i,n.unshift(u))}return e}function s(t,e){return function(n){return e(t(n))}}function l(t,e){for(var n=[e[t].parent,t],i=a[e[t].parent][t],r=e[t].parent;e[r].parent;)n.unshift(e[r].parent),i=s(a[e[r].parent][r],i),r=e[r].parent;return i.conversion=n,i}a.rgb,a.hsl,a.hsv,a.hwb,a.cmyk,a.xyz,a.lab,a.lch,a.hex,a.keyword,a.ansi16,a.ansi256,a.hcg,a.apple,a.gray;var u=function(t){for(var e=o(t),n={},i=Object.keys(e),a=i.length,r=0;r<a;r++){var s=i[r];null!==e[s].parent&&(n[s]=l(s,e))}return n},d={};function c(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function h(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var i=n.length,a=0;a<i;a++)n[a]=Math.round(n[a]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}Object.keys(a).forEach((function(t){d[t]={},Object.defineProperty(d[t],"channels",{value:a[t].channels}),Object.defineProperty(d[t],"labels",{value:a[t].labels});var e=u(t);Object.keys(e).forEach((function(n){var i=e[n];d[t][n]=h(i),d[t][n].raw=c(i)}))}));var f=d,g={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]},m={getRgba:p,getHsla:v,getRgb:y,getHsl:x,getHwb:b,getAlpha:_,hexString:w,rgbString:k,rgbaString:M,percentString:S,percentaString:D,hslString:C,hslaString:T,hwbString:P,keyword:O};function p(t){if(t){var e=/^#([a-fA-F0-9]{3,4})$/i,n=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,i=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,r=/(\w+)/,o=[0,0,0],s=1,l=t.match(e),u="";if(l){u=(l=l[1])[3];for(var d=0;d<o.length;d++)o[d]=parseInt(l[d]+l[d],16);u&&(s=Math.round(parseInt(u+u,16)/255*100)/100)}else if(l=t.match(n)){for(u=l[2],l=l[1],d=0;d<o.length;d++)o[d]=parseInt(l.slice(2*d,2*d+2),16);u&&(s=Math.round(parseInt(u,16)/255*100)/100)}else if(l=t.match(i)){for(d=0;d<o.length;d++)o[d]=parseInt(l[d+1]);s=parseFloat(l[4])}else if(l=t.match(a)){for(d=0;d<o.length;d++)o[d]=Math.round(2.55*parseFloat(l[d+1]));s=parseFloat(l[4])}else if(l=t.match(r)){if("transparent"==l[1])return[0,0,0,0];if(!(o=g[l[1]]))return}for(d=0;d<o.length;d++)o[d]=A(o[d],0,255);return s=s||0==s?A(s,0,1):1,o[3]=s,o}}function v(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=t.match(e);if(n){var i=parseFloat(n[4]);return[A(parseInt(n[1]),0,360),A(parseFloat(n[2]),0,100),A(parseFloat(n[3]),0,100),A(isNaN(i)?1:i,0,1)]}}}function b(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=t.match(e);if(n){var i=parseFloat(n[4]);return[A(parseInt(n[1]),0,360),A(parseFloat(n[2]),0,100),A(parseFloat(n[3]),0,100),A(isNaN(i)?1:i,0,1)]}}}function y(t){var e=p(t);return e&&e.slice(0,3)}function x(t){var e=v(t);return e&&e.slice(0,3)}function _(t){var e=p(t);return e||(e=v(t))||(e=b(t))?e[3]:void 0}function w(t,e){return e=void 0!==e&&3===t.length?e:t[3],"#"+I(t[0])+I(t[1])+I(t[2])+(e>=0&&e<1?I(Math.round(255*e)):"")}function k(t,e){return e<1||t[3]&&t[3]<1?M(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function M(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function S(t,e){return e<1||t[3]&&t[3]<1?D(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"}function D(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function C(t,e){return e<1||t[3]&&t[3]<1?T(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function T(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function P(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function O(t){return F[t.slice(0,3)]}function A(t,e,n){return Math.min(Math.max(e,t),n)}function I(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var F={};for(var N in g)F[g[N]]=N;var R=function(t){return t instanceof R?t:this instanceof R?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=m.getRgba(t))?this.setValues("rgb",e):(e=m.getHsla(t))?this.setValues("hsl",e):(e=m.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new R(t);var e};R.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return m.hexString(this.values.rgb)},rgbString:function(){return m.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return m.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return m.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return m.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return m.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return m.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return m.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(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;return(299*t[0]+587*t[1]+114*t[2])/1e3<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,i=t,a=void 0===e?.5:e,r=2*a-1,o=n.alpha()-i.alpha(),s=((r*o==-1?r:(r+o)/(1+r*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*a+i.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new R,i=this.values,a=n.values;for(var r in i)i.hasOwnProperty(r)&&(t=i[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},R.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},R.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},R.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},R.prototype.setValues=function(t,e){var n,i,a=this.values,r=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)a[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)a[t][n]=e[t.charAt(n)];s=e.a}else if(void 0!==e[r[t][0]]){var l=r[t];for(n=0;n<t.length;n++)a[t][n]=e[l[n]];s=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===t)return!1;for(n=0;n<t.length;n++)i=Math.max(0,Math.min(o[t][n],a[t][n])),a[t][n]=Math.round(i);for(var u in r)u!==t&&(a[u]=f[t][u](a[t]));return!0},R.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},R.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:(n===i[e]||(i[e]=n,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=R);var L=R;function Y(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}var W,E={noop:function(){},uid:(W=0,function(){return W++}),isNullOrUndef:function(t){return null==t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){return("number"==typeof t||t instanceof Number)&&isFinite(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return E.valueOrDefault(E.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,r,o;if(E.isArray(t))if(r=t.length,i)for(a=r-1;a>=0;a--)e.call(n,t[a],a);else for(a=0;a<r;a++)e.call(n,t[a],a);else if(E.isObject(t))for(r=(o=Object.keys(t)).length,a=0;a<r;a++)e.call(n,t[o[a]],o[a])},arrayEquals:function(t,e){var n,i,a,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],r=e[n],a instanceof Array&&r instanceof Array){if(!E.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},clone:function(t){if(E.isArray(t))return t.map(E.clone);if(E.isObject(t)){for(var e=Object.create(t),n=Object.keys(t),i=n.length,a=0;a<i;++a)e[n[a]]=E.clone(t[n[a]]);return e}return t},_merger:function(t,e,n,i){if(Y(t)){var a=e[t],r=n[t];E.isObject(a)&&E.isObject(r)?E.merge(a,r,i):e[t]=E.clone(r)}},_mergerIf:function(t,e,n){if(Y(t)){var i=e[t],a=n[t];E.isObject(i)&&E.isObject(a)?E.mergeIf(i,a):e.hasOwnProperty(t)||(e[t]=E.clone(a))}},merge:function(t,e,n){var i,a,r,o,s,l=E.isArray(e)?e:[e],u=l.length;if(!E.isObject(t))return t;for(i=(n=n||{}).merger||E._merger,a=0;a<u;++a)if(e=l[a],E.isObject(e))for(s=0,o=(r=Object.keys(e)).length;s<o;++s)i(r[s],t,e,n);return t},mergeIf:function(t,e){return E.merge(t,e,{merger:E._mergerIf})},extend:Object.assign||function(t){return E.merge(t,[].slice.call(arguments,1),{merger:function(t,e,n){e[t]=n[t]}})},inherits:function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,n.extend=E.inherits,t&&E.extend(n.prototype,t),n.__super__=e.prototype,n},_deprecated:function(t,e,n,i){void 0!==e&&console.warn(t+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},z=E;E.callCallback=E.callback,E.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},E.getValueOrDefault=E.valueOrDefault,E.getValueAtIndexOrDefault=E.valueAtIndexOrDefault;var V={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-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(t-=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-((t-=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 t*t*t*t*t},easeOutQuint:function(t){return(t-=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*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=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,i=1;return 0===t?0:1===t?1:(n||(n=.3),e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-V.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*V.easeInBounce(2*t):.5*V.easeOutBounce(2*t-1)+.5}},H={effects:V};z.easingEffects=V;var B=Math.PI,j=B/180,U=2*B,$=B/2,G=B/4,q=2*B/3,Z={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){if(r){var o=Math.min(r,a/2,i/2),s=e+o,l=n+o,u=e+i-o,d=n+a-o;t.moveTo(e,l),s<u&&l<d?(t.arc(s,l,o,-B,-$),t.arc(u,l,o,-$,0),t.arc(u,d,o,0,$),t.arc(s,d,o,$,B)):s<u?(t.moveTo(s,n),t.arc(u,l,o,-$,$),t.arc(s,l,o,$,B+$)):l<d?(t.arc(s,l,o,-B,0),t.arc(s,d,o,0,B)):t.arc(s,l,o,-B,B),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a,r){var o,s,l,u,d,c=(r||0)*j;if(e&&"object"==typeof e&&("[object HTMLImageElement]"===(o=e.toString())||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,a),t.rotate(c),t.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),void t.restore();if(!(isNaN(n)||n<=0)){switch(t.beginPath(),e){default:t.arc(i,a,n,0,U),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(c)*n,a-Math.cos(c)*n),c+=q,t.lineTo(i+Math.sin(c)*n,a-Math.cos(c)*n),c+=q,t.lineTo(i+Math.sin(c)*n,a-Math.cos(c)*n),t.closePath();break;case"rectRounded":u=n-(d=.516*n),s=Math.cos(c+G)*u,l=Math.sin(c+G)*u,t.arc(i-s,a-l,d,c-B,c-$),t.arc(i+l,a-s,d,c-$,c),t.arc(i+s,a+l,d,c,c+$),t.arc(i-l,a+s,d,c+$,c+B),t.closePath();break;case"rect":if(!r){u=Math.SQRT1_2*n,t.rect(i-u,a-u,2*u,2*u);break}c+=G;case"rectRot":s=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-s,a-l),t.lineTo(i+l,a-s),t.lineTo(i+s,a+l),t.lineTo(i-l,a+s),t.closePath();break;case"crossRot":c+=G;case"cross":s=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i+l,a-s),t.lineTo(i-l,a+s);break;case"star":s=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i+l,a-s),t.lineTo(i-l,a+s),c+=G,s=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i+l,a-s),t.lineTo(i-l,a+s);break;case"line":s=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l);break;case"dash":t.moveTo(i,a),t.lineTo(i+Math.cos(c)*n,a+Math.sin(c)*n)}t.fill(),t.stroke()}},_isPointInArea:function(t,e){var n=1e-6;return t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){var a=n.steppedLine;if(a){if("middle"===a){var r=(e.x+n.x)/2;t.lineTo(r,i?n.y:e.y),t.lineTo(r,i?e.y:n.y)}else"after"===a&&!i||"after"!==a&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}else n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},X=Z;z.clear=Z.clear,z.drawRoundedRectangle=function(t){t.beginPath(),Z.roundedRect.apply(Z,arguments)};var K={_set:function(t,e){return z.merge(this[t]||(this[t]={}),e)}};K._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var J=K,Q=z.valueOrDefault;function tt(t){return!t||z.isNullOrUndef(t.size)||z.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}var et={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,i,a;return z.isObject(t)?(e=+t.top||0,n=+t.right||0,i=+t.bottom||0,a=+t.left||0):e=n=i=a=+t||0,{top:e,right:n,bottom:i,left:a,height:e+i,width:a+n}},_parseFont:function(t){var e=J.global,n=Q(t.fontSize,e.defaultFontSize),i={family:Q(t.fontFamily,e.defaultFontFamily),lineHeight:z.options.toLineHeight(Q(t.lineHeight,e.defaultLineHeight),n),size:n,style:Q(t.fontStyle,e.defaultFontStyle),weight:null,string:""};return i.string=tt(i),i},resolve:function(t,e,n,i){var a,r,o,s=!0;for(a=0,r=t.length;a<r;++a)if(void 0!==(o=t[a])&&(void 0!==e&&"function"==typeof o&&(o=o(e),s=!1),void 0!==n&&z.isArray(o)&&(o=o[n],s=!1),void 0!==o))return i&&!s&&(i.cacheable=!1),o}},nt={_factorize:function(t){var e,n=[],i=Math.sqrt(t);for(e=1;e<i;e++)t%e==0&&(n.push(e),n.push(t/e));return i===(0|i)&&n.push(i),n.sort((function(t,e){return t-e})).pop(),n},log10:Math.log10||function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e}},it=nt;z.log10=nt.log10;var at=function(t,e){return{x:function(n){return t+t+e-n},setWidth:function(t){e=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}},rt=function(){return{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}},ot=z,st=H,lt=X,ut=et,dt=it,ct={getRtlAdapter:function(t,e,n){return t?at(e,n):rt()},overrideTextDirection:function(t,e){var n,i;"ltr"!==e&&"rtl"!==e||(i=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)},restoreTextDirection:function(t){var e=t.prevTextDirection;void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}};function ht(t,e,n,i){var a,r,o,s,l,u,d,c,h,f=Object.keys(n);for(a=0,r=f.length;a<r;++a)if(u=n[o=f[a]],e.hasOwnProperty(o)||(e[o]=u),(s=e[o])!==u&&"_"!==o[0]){if(t.hasOwnProperty(o)||(t[o]=s),(d=typeof u)==typeof(l=t[o]))if("string"===d){if((c=L(l)).valid&&(h=L(u)).valid){e[o]=h.mix(c,i).rgbString();continue}}else if(ot.isFinite(l)&&ot.isFinite(u)){e[o]=l+(u-l)*i;continue}e[o]=u}}ot.easing=st,ot.canvas=lt,ot.options=ut,ot.math=dt,ot.rtl=ct;var ft=function(t){ot.extend(this,t),this.initialize.apply(this,arguments)};ot.extend(ft.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=ot.extend({},t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,i=e._start,a=e._view;return n&&1!==t?(a||(a=e._view={}),i||(i=e._start={}),ht(i,a,n,t),e):(e._view=ot.extend({},n),e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ot.isNumber(this._model.x)&&ot.isNumber(this._model.y)}}),ft.extend=ot.inherits;var gt=ft,mt=gt.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),pt=mt;Object.defineProperty(mt.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(mt.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),J._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ot.noop,onComplete:ot.noop}});var vt={animations:[],request:null,addAnimation:function(t,e,n,i){var a,r,o=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=n,i||(t.animating=!0),a=0,r=o.length;a<r;++a)if(o[a].chart===t)return void(o[a]=e);o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=ot.findIndex(this.animations,(function(e){return e.chart===t}));-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=ot.requestAnimFrame.call(window,(function(){t.request=null,t.startDigest()})))},startDigest:function(){var t=this;t.advance(),t.animations.length>0&&t.requestAnimationFrame()},advance:function(){for(var t,e,n,i,a=this.animations,r=0;r<a.length;)e=(t=a[r]).chart,n=t.numSteps,i=Math.floor((Date.now()-t.startTime)/t.duration*n)+1,t.currentStep=Math.min(i,n),ot.callback(t.render,[e,t],e),ot.callback(t.onAnimationProgress,[t],e),t.currentStep>=n?(ot.callback(t.onAnimationComplete,[t],e),e.animating=!1,a.splice(r,1)):++r}},bt=ot.options.resolve,yt=["push","pop","shift","splice","unshift"];function xt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),yt.forEach((function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),a=i.apply(this,e);return ot.each(t._chartjs.listeners,(function(t){"function"==typeof t[n]&&t[n].apply(t,e)})),a}})})))}function _t(t,e){var n=t._chartjs;if(n){var i=n.listeners,a=i.indexOf(e);-1!==a&&i.splice(a,1),i.length>0||(yt.forEach((function(e){delete t[e]})),delete t._chartjs)}}var wt=function(t,e){this.initialize(t,e)};ot.extend(wt.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.chart,i=n.scales,a=t.getDataset(),r=n.options.scales;null!==e.xAxisID&&e.xAxisID in i&&!a.xAxisID||(e.xAxisID=a.xAxisID||r.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in i&&!a.yAxisID||(e.yAxisID=a.yAxisID||r.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]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&_t(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),a=n.getDataset().data||[],r=i.data;for(t=0,e=a.length;t<e;++t)r[t]=r[t]||n.createMetaData(t);i.dataset=i.dataset||n.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t=this,e=t.getDataset(),n=e.data||(e.data=[]);t._data!==n&&(t._data&&_t(t._data,t),n&&Object.isExtensible(n)&&xt(n,t),t._data=n),t.resyncElements()},_configure:function(){var t=this;t._config=ot.merge(Object.create(null),[t.chart.options.datasets[t._type],t.getDataset()],{merger:function(t,e,n){"_meta"!==t&&"data"!==t&&ot._merger(t,e,n)}})},_update:function(t){var e=this;e._configure(),e._cachedDataOpts=null,e.update(t)},update:ot.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},getStyle:function(t){var e,n=this,i=n.getMeta(),a=i.dataset;return n._configure(),a&&void 0===t?e=n._resolveDatasetElementOptions(a||{}):(t=t||0,e=n._resolveDataElementOptions(i.data[t]||{},t)),!1!==e.fill&&null!==e.fill||(e.backgroundColor=e.borderColor),e},_resolveDatasetElementOptions:function(t,e){var n,i,a,r,o=this,s=o.chart,l=o._config,u=t.custom||{},d=s.options.elements[o.datasetElementType.prototype._type]||{},c=o._datasetElementOptions,h={},f={chart:s,dataset:o.getDataset(),datasetIndex:o.index,hover:e};for(n=0,i=c.length;n<i;++n)a=c[n],r=e?"hover"+a.charAt(0).toUpperCase()+a.slice(1):a,h[a]=bt([u[r],l[r],d[r]],f);return h},_resolveDataElementOptions:function(t,e){var n=this,i=t&&t.custom,a=n._cachedDataOpts;if(a&&!i)return a;var r,o,s,l,u=n.chart,d=n._config,c=u.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},g={chart:u,dataIndex:e,dataset:n.getDataset(),datasetIndex:n.index},m={cacheable:!i};if(i=i||{},ot.isArray(h))for(o=0,s=h.length;o<s;++o)f[l=h[o]]=bt([i[l],d[l],c[l]],g,e,m);else for(o=0,s=(r=Object.keys(h)).length;o<s;++o)f[l=r[o]]=bt([i[l],d[h[l]],d[l],c[l]],g,e,m);return m.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(t){ot.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=t._model,r=ot.getHoverColor;t.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=bt([i.hoverBackgroundColor,e.hoverBackgroundColor,r(a.backgroundColor)],void 0,n),a.borderColor=bt([i.hoverBorderColor,e.hoverBorderColor,r(a.borderColor)],void 0,n),a.borderWidth=bt([i.hoverBorderWidth,e.hoverBorderWidth,a.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var t=this.getMeta().dataset;t&&this.removeHoverStyle(t)},_setDatasetHoverStyle:function(){var t,e,n,i,a,r,o=this.getMeta().dataset,s={};if(o){for(r=o._model,a=this._resolveDatasetElementOptions(o,!0),t=0,e=(i=Object.keys(a)).length;t<e;++t)s[n=i[t]]=r[n],r[n]=a[n];o.$previousStyle=s}},resyncElements:function(){var t=this,e=t.getMeta(),n=t.getDataset().data,i=e.data.length,a=n.length;a<i?e.data.splice(a,i-a):a>i&&t.insertElements(i,a-i)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),wt.extend=ot.inherits;var kt=wt,Mt=2*Math.PI;function St(t,e){var n=e.startAngle,i=e.endAngle,a=e.pixelMargin,r=a/e.outerRadius,o=e.x,s=e.y;t.beginPath(),t.arc(o,s,e.outerRadius,n-r,i+r),e.innerRadius>a?(r=a/e.innerRadius,t.arc(o,s,e.innerRadius-a,i+r,n-r,!0)):t.arc(o,s,a,i+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}function Dt(t,e,n,i){var a,r=n.endAngle;for(i&&(n.endAngle=n.startAngle+Mt,St(t,n),n.endAngle=r,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=Mt,n.fullCircles--)),t.beginPath(),t.arc(n.x,n.y,n.innerRadius,n.startAngle+Mt,n.startAngle,!0),a=0;a<n.fullCircles;++a)t.stroke();for(t.beginPath(),t.arc(n.x,n.y,e.outerRadius,n.startAngle,n.startAngle+Mt),a=0;a<n.fullCircles;++a)t.stroke()}function Ct(t,e,n){var i="inner"===e.borderAlign;i?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),n.fullCircles&&Dt(t,e,n,i),i&&St(t,n),t.beginPath(),t.arc(n.x,n.y,e.outerRadius,n.startAngle,n.endAngle),t.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),t.closePath(),t.stroke()}J._set("global",{elements:{arc:{backgroundColor:J.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Tt=gt.extend({_type:"arc",inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var i=ot.getAngleFromPoint(n,{x:t,y:e}),a=i.angle,r=i.distance,o=n.startAngle,s=n.endAngle;s<o;)s+=Mt;for(;a>s;)a-=Mt;for(;a<o;)a+=Mt;var l=a>=o&&a<=s,u=r>=n.innerRadius&&r<=n.outerRadius;return l&&u}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,e=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,a={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/Mt)};if(e.save(),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+Mt,e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),t=0;t<a.fullCircles;++t)e.fill();a.endAngle=a.startAngle+n.circumference%Mt}e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),e.fill(),n.borderWidth&&Ct(e,n,a),e.restore()}}),Pt=ot.valueOrDefault,Ot=J.global.defaultColor;J._set("global",{elements:{line:{tension:.4,backgroundColor:Ot,borderWidth:3,borderColor:Ot,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var At=gt.extend({_type:"line",draw:function(){var t,e,n,i=this,a=i._view,r=i._chart.ctx,o=a.spanGaps,s=i._children.slice(),l=J.global,u=l.elements.line,d=-1,c=i._loop;if(s.length){if(i._loop){for(t=0;t<s.length;++t)if(e=ot.previousItem(s,t),!s[t]._view.skip&&e._view.skip){s=s.slice(t).concat(s.slice(0,t)),c=o;break}c&&s.push(s[0])}for(r.save(),r.lineCap=a.borderCapStyle||u.borderCapStyle,r.setLineDash&&r.setLineDash(a.borderDash||u.borderDash),r.lineDashOffset=Pt(a.borderDashOffset,u.borderDashOffset),r.lineJoin=a.borderJoinStyle||u.borderJoinStyle,r.lineWidth=Pt(a.borderWidth,u.borderWidth),r.strokeStyle=a.borderColor||l.defaultColor,r.beginPath(),(n=s[0]._view).skip||(r.moveTo(n.x,n.y),d=0),t=1;t<s.length;++t)n=s[t]._view,e=-1===d?ot.previousItem(s,t):s[d],n.skip||(d!==t-1&&!o||-1===d?r.moveTo(n.x,n.y):ot.canvas.lineTo(r,e._view,n),d=t);c&&r.closePath(),r.stroke(),r.restore()}}}),It=ot.valueOrDefault,Ft=J.global.defaultColor;function Nt(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}function Rt(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius}J._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Ft,borderColor:Ft,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Lt=gt.extend({_type:"point",inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:Nt,inXRange:Nt,inYRange:Rt,getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._chart.ctx,i=e.pointStyle,a=e.rotation,r=e.radius,o=e.x,s=e.y,l=J.global,u=l.defaultColor;e.skip||(void 0===t||ot.canvas._isPointInArea(e,t))&&(n.strokeStyle=e.borderColor||u,n.lineWidth=It(e.borderWidth,l.elements.point.borderWidth),n.fillStyle=e.backgroundColor||u,ot.canvas.drawPoint(n,i,r,o,s,a))}}),Yt=J.global.defaultColor;function Wt(t){return t&&void 0!==t.width}function Et(t){var e,n,i,a,r;return Wt(t)?(r=t.width/2,e=t.x-r,n=t.x+r,i=Math.min(t.y,t.base),a=Math.max(t.y,t.base)):(r=t.height/2,e=Math.min(t.x,t.base),n=Math.max(t.x,t.base),i=t.y-r,a=t.y+r),{left:e,top:i,right:n,bottom:a}}function zt(t,e,n){return t===e?n:t===n?e:t}function Vt(t){var e=t.borderSkipped,n={};return e?(t.horizontal?t.base>t.x&&(e=zt(e,"left","right")):t.base<t.y&&(e=zt(e,"bottom","top")),n[e]=!0,n):n}function Ht(t,e,n){var i,a,r,o,s=t.borderWidth,l=Vt(t);return ot.isObject(s)?(i=+s.top||0,a=+s.right||0,r=+s.bottom||0,o=+s.left||0):i=a=r=o=+s||0,{t:l.top||i<0?0:i>n?n:i,r:l.right||a<0?0:a>e?e:a,b:l.bottom||r<0?0:r>n?n:r,l:l.left||o<0?0:o>e?e:o}}function Bt(t){var e=Et(t),n=e.right-e.left,i=e.bottom-e.top,a=Ht(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i},inner:{x:e.left+a.l,y:e.top+a.t,w:n-a.l-a.r,h:i-a.t-a.b}}}function jt(t,e,n){var i=null===e,a=null===n,r=!(!t||i&&a)&&Et(t);return r&&(i||e>=r.left&&e<=r.right)&&(a||n>=r.top&&n<=r.bottom)}J._set("global",{elements:{rectangle:{backgroundColor:Yt,borderColor:Yt,borderSkipped:"bottom",borderWidth:0}}});var Ut=gt.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,n=Bt(e),i=n.outer,a=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(i.x,i.y,i.w,i.h),i.w===a.w&&i.h===a.h||(t.save(),t.beginPath(),t.rect(i.x,i.y,i.w,i.h),t.clip(),t.fillStyle=e.borderColor,t.rect(a.x,a.y,a.w,a.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return jt(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return Wt(n)?jt(n,t,null):jt(n,null,e)},inXRange:function(t){return jt(this._view,t,null)},inYRange:function(t){return jt(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return Wt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return Wt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),$t={},Gt=Tt,qt=At,Zt=Lt,Xt=Ut;$t.Arc=Gt,$t.Line=qt,$t.Point=Zt,$t.Rectangle=Xt;var Kt=ot._deprecated,Jt=ot.valueOrDefault;function Qt(t,e){var n,i,a,r,o=t._length;for(a=1,r=e.length;a<r;++a)o=Math.min(o,Math.abs(e[a]-e[a-1]));for(a=0,r=t.getTicks().length;a<r;++a)i=t.getPixelForTick(a),o=a>0?Math.min(o,Math.abs(i-n)):o,n=i;return o}function te(t,e,n){var i,a,r=n.barThickness,o=e.stackCount,s=e.pixels[t],l=ot.isNullOrUndef(r)?Qt(e.scale,e.pixels):-1;return ot.isNullOrUndef(r)?(i=l*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:s-i/2}}function ee(t,e,n){var i,a=e.pixels,r=a[t],o=t>0?a[t-1]:null,s=t<a.length-1?a[t+1]:null,l=n.categoryPercentage;return null===o&&(o=r-(null===s?e.end-e.start:s-r)),null===s&&(s=r+r-o),i=r-(r-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/e.stackCount,ratio:n.barPercentage,start:i}}J._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),J._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var ne=kt.extend({dataElementType:$t.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e,n=this;kt.prototype.initialize.apply(n,arguments),(t=n.getMeta()).stack=n.getDataset().stack,t.bar=!0,e=n._getIndexScale().options,Kt("bar chart",e.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Kt("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Kt("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Kt("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Kt("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,n,i=this,a=i.getMeta().data;for(i._ruler=i.getRuler(),e=0,n=a.length;e<n;++e)i.updateElement(a[e],e,t)},updateElement:function(t,e,n){var i=this,a=i.getMeta(),r=i.getDataset(),o=i._resolveDataElementOptions(t,e);t._xScale=i.getScaleForId(a.xAxisID),t._yScale=i.getScaleForId(a.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:r.label,label:i.chart.data.labels[e]},ot.isArray(r.data[e])&&(t._model.borderSkipped=null),i._updateElementGeometry(t,e,n,o),t.pivot()},_updateElementGeometry:function(t,e,n,i){var a=this,r=t._model,o=a._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),u=a._ruler||a.getRuler(),d=a.calculateBarValuePixels(a.index,e,i),c=a.calculateBarIndexPixels(a.index,e,u,i);r.horizontal=l,r.base=n?s:d.base,r.x=l?n?s:d.head:c.center,r.y=l?c.center:n?s:d.head,r.height=l?c.size:void 0,r.width=l?void 0:c.size},_getStacks:function(t){var e,n,i=this,a=i._getIndexScale(),r=a._getMatchingVisibleMetas(i._type),o=a.options.stacked,s=r.length,l=[];for(e=0;e<s&&(n=r[e],(!1===o||-1===l.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&l.push(n.stack),n.index!==t);++e);return l},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var n=this._getStacks(t),i=void 0!==e?n.indexOf(e):-1;return-1===i?n.length-1:i},getRuler:function(){var t,e,n=this,i=n._getIndexScale(),a=[];for(t=0,e=n.getMeta().data.length;t<e;++t)a.push(i.getPixelForValue(null,t,n.index));return{pixels:a,start:i._startPixel,end:i._endPixel,stackCount:n.getStackCount(),scale:i}},calculateBarValuePixels:function(t,e,n){var i,a,r,o,s,l,u,d=this,c=d.chart,h=d._getValueScale(),f=h.isHorizontal(),g=c.data.datasets,m=h._getMatchingVisibleMetas(d._type),p=h._parseValue(g[t].data[e]),v=n.minBarLength,b=h.options.stacked,y=d.getMeta().stack,x=void 0===p.start?0:p.max>=0&&p.min>=0?p.min:p.max,_=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,w=m.length;if(b||void 0===b&&void 0!==y)for(i=0;i<w&&(a=m[i]).index!==t;++i)a.stack===y&&(r=void 0===(u=h._parseValue(g[a.index].data[e])).start?u.end:u.min>=0&&u.max>=0?u.max:u.min,(p.min<0&&r<0||p.max>=0&&r>0)&&(x+=r));return o=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+_))-o,void 0!==v&&Math.abs(l)<v&&(l=v,s=_>=0&&!f||_<0&&f?o-v:o+v),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(t,e,n,i){var a=this,r="flex"===i.barThickness?ee(e,n,i):te(e,n,i),o=a.getStackIndex(t,a.getMeta().stack),s=r.start+r.chunk*o+r.chunk/2,l=Math.min(Jt(i.maxBarThickness,1/0),r.chunk*r.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var t=this,e=t.chart,n=t._getValueScale(),i=t.getMeta().data,a=t.getDataset(),r=i.length,o=0;for(ot.canvas.clipArea(e.ctx,e.chartArea);o<r;++o){var s=n._parseValue(a.data[o]);isNaN(s.min)||isNaN(s.max)||i[o].draw()}ot.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var t=this,e=ot.extend({},kt.prototype._resolveDataElementOptions.apply(t,arguments)),n=t._getIndexScale().options,i=t._getValueScale().options;return e.barPercentage=Jt(n.barPercentage,e.barPercentage),e.barThickness=Jt(n.barThickness,e.barThickness),e.categoryPercentage=Jt(n.categoryPercentage,e.categoryPercentage),e.maxBarThickness=Jt(n.maxBarThickness,e.maxBarThickness),e.minBarLength=Jt(i.minBarLength,e.minBarLength),e}}),ie=ot.valueOrDefault,ae=ot.options.resolve;J._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",i=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+i.r+")"}}}});var re=kt.extend({dataElementType:$t.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(t){var e=this,n=e.getMeta().data;ot.each(n,(function(n,i){e.updateElement(n,i,t)}))},updateElement:function(t,e,n){var i=this,a=i.getMeta(),r=t.custom||{},o=i.getScaleForId(a.xAxisID),s=i.getScaleForId(a.yAxisID),l=i._resolveDataElementOptions(t,e),u=i.getDataset().data[e],d=i.index,c=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,e,d),h=n?s.getBasePixel():s.getPixelForValue(u,e,d);t._xScale=o,t._yScale=s,t._options=l,t._datasetIndex=d,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:r.skip||isNaN(c)||isNaN(h),x:c,y:h},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options,i=ot.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=ie(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=ie(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=ie(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(t,e){var n=this,i=n.chart,a=n.getDataset(),r=t.custom||{},o=a.data[e]||{},s=kt.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:i,dataIndex:e,dataset:a,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=ot.extend({},s)),s.radius=ae([r.radius,o.r,n._config.radius,i.options.elements.point.radius],l,e),s}}),oe=ot.valueOrDefault,se=Math.PI,le=2*se,ue=se/2;J._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e,n,i,a=document.createElement("ul"),r=t.data,o=r.datasets,s=r.labels;if(a.setAttribute("class",t.id+"-legend"),o.length)for(e=0,n=o[0].data.length;e<n;++e)(i=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[e],s[e]&&i.appendChild(document.createTextNode(s[e]));return a.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,i){var a=t.getDatasetMeta(0),r=a.controller.getStyle(i);return{text:n,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,hidden:isNaN(e.datasets[0].data[i])||a.data[i].hidden,index:i}})):[]}},onClick:function(t,e){var n,i,a,r=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(a=o.getDatasetMeta(n)).data[r]&&(a.data[r].hidden=!a.data[r].hidden);o.update()}},cutoutPercentage:50,rotation:-ue,circumference:le,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],i=": "+e.datasets[t.datasetIndex].data[t.index];return ot.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var de=kt.extend({dataElementType:$t.Arc,linkScales:ot.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var e,n,i,a,r=this,o=r.chart,s=o.chartArea,l=o.options,u=1,d=1,c=0,h=0,f=r.getMeta(),g=f.data,m=l.cutoutPercentage/100||0,p=l.circumference,v=r._getRingWeight(r.index);if(p<le){var b=l.rotation%le,y=(b+=b>=se?-le:b<-se?le:0)+p,x=Math.cos(b),_=Math.sin(b),w=Math.cos(y),k=Math.sin(y),M=b<=0&&y>=0||y>=le,S=b<=ue&&y>=ue||y>=le+ue,D=b<=-ue&&y>=-ue||y>=se+ue,C=b===-se||y>=se?-1:Math.min(x,x*m,w,w*m),T=D?-1:Math.min(_,_*m,k,k*m),P=M?1:Math.max(x,x*m,w,w*m),O=S?1:Math.max(_,_*m,k,k*m);u=(P-C)/2,d=(O-T)/2,c=-(P+C)/2,h=-(O+T)/2}for(i=0,a=g.length;i<a;++i)g[i]._options=r._resolveDataElementOptions(g[i],i);for(o.borderWidth=r.getMaxBorderWidth(),e=(s.right-s.left-o.borderWidth)/u,n=(s.bottom-s.top-o.borderWidth)/d,o.outerRadius=Math.max(Math.min(e,n)/2,0),o.innerRadius=Math.max(o.outerRadius*m,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(r._getVisibleDatasetWeightTotal()||1),o.offsetX=c*o.outerRadius,o.offsetY=h*o.outerRadius,f.total=r.calculateTotal(),r.outerRadius=o.outerRadius-o.radiusLength*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-o.radiusLength*v,0),i=0,a=g.length;i<a;++i)r.updateElement(g[i],i,t)},updateElement:function(t,e,n){var i=this,a=i.chart,r=a.chartArea,o=a.options,s=o.animation,l=(r.left+r.right)/2,u=(r.top+r.bottom)/2,d=o.rotation,c=o.rotation,h=i.getDataset(),f=n&&s.animateRotate||t.hidden?0:i.calculateCircumference(h.data[e])*(o.circumference/le),g=n&&s.animateScale?0:i.innerRadius,m=n&&s.animateScale?0:i.outerRadius,p=t._options||{};ot.extend(t,{_datasetIndex:i.index,_index:e,_model:{backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,borderAlign:p.borderAlign,x:l+a.offsetX,y:u+a.offsetY,startAngle:d,endAngle:c,circumference:f,outerRadius:m,innerRadius:g,label:ot.valueAtIndexOrDefault(h.label,e,a.data.labels[e])}});var v=t._model;n&&s.animateRotate||(v.startAngle=0===e?o.rotation:i.getMeta().data[e-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return ot.each(n.data,(function(n,a){t=e.data[a],isNaN(t)||n.hidden||(i+=Math.abs(t))})),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?le*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,i,a,r,o,s,l,u=this,d=0,c=u.chart;if(!t)for(e=0,n=c.data.datasets.length;e<n;++e)if(c.isDatasetVisible(e)){t=(i=c.getDatasetMeta(e)).data,e!==u.index&&(r=i.controller);break}if(!t)return 0;for(e=0,n=t.length;e<n;++e)a=t[e],r?(r._configure(),o=r._resolveDataElementOptions(a,e)):o=a._options,"inner"!==o.borderAlign&&(s=o.borderWidth,d=(l=o.hoverBorderWidth)>(d=s>d?s:d)?l:d);return d},setHoverStyle:function(t){var e=t._model,n=t._options,i=ot.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=oe(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=oe(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=oe(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e},_getRingWeight:function(t){return Math.max(oe(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});J._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),J._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var ce=ne.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),he=ot.valueOrDefault,fe=ot.options.resolve,ge=ot.canvas._isPointInArea;function me(t,e){var n=t&&t.options.ticks||{},i=n.reverse,a=void 0===n.min?e:0,r=void 0===n.max?e:0;return{start:i?r:a,end:i?a:r}}function pe(t,e,n){var i=n/2,a=me(t,i),r=me(e,i);return{top:r.end,right:a.end,bottom:r.start,left:a.start}}function ve(t){var e,n,i,a;return ot.isObject(t)?(e=t.top,n=t.right,i=t.bottom,a=t.left):e=n=i=a=t,{top:e,right:n,bottom:i,left:a}}J._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var be=kt.extend({datasetElementType:$t.Line,dataElementType:$t.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(t){var e,n,i=this,a=i.getMeta(),r=a.dataset,o=a.data||[],s=i.chart.options,l=i._config,u=i._showLine=he(l.showLine,s.showLines);for(i._xScale=i.getScaleForId(a.xAxisID),i._yScale=i.getScaleForId(a.yAxisID),u&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),r._scale=i._yScale,r._datasetIndex=i.index,r._children=o,r._model=i._resolveDatasetElementOptions(r),r.pivot()),e=0,n=o.length;e<n;++e)i.updateElement(o[e],e,t);for(u&&0!==r._model.tension&&i.updateBezierControlPoints(),e=0,n=o.length;e<n;++e)o[e].pivot()},updateElement:function(t,e,n){var i,a,r=this,o=r.getMeta(),s=t.custom||{},l=r.getDataset(),u=r.index,d=l.data[e],c=r._xScale,h=r._yScale,f=o.dataset._model,g=r._resolveDataElementOptions(t,e);i=c.getPixelForValue("object"==typeof d?d:NaN,e,u),a=n?h.getBasePixel():r.calculatePointY(d,e,u),t._xScale=c,t._yScale=h,t._options=g,t._datasetIndex=u,t._index=e,t._model={x:i,y:a,skip:s.skip||isNaN(i)||isNaN(a),radius:g.radius,pointStyle:g.pointStyle,rotation:g.rotation,backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,tension:he(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:g.hitRadius}},_resolveDatasetElementOptions:function(t){var e=this,n=e._config,i=t.custom||{},a=e.chart.options,r=a.elements.line,o=kt.prototype._resolveDatasetElementOptions.apply(e,arguments);return o.spanGaps=he(n.spanGaps,a.spanGaps),o.tension=he(n.lineTension,r.tension),o.steppedLine=fe([i.steppedLine,n.steppedLine,r.stepped]),o.clip=ve(he(n.clip,pe(e._xScale,e._yScale,o.borderWidth))),o},calculatePointY:function(t,e,n){var i,a,r,o,s,l,u,d=this,c=d.chart,h=d._yScale,f=0,g=0;if(h.options.stacked){for(s=+h.getRightValue(t),u=(l=c._getSortedVisibleDatasetMetas()).length,i=0;i<u&&(r=l[i]).index!==n;++i)a=c.data.datasets[r.index],"line"===r.type&&r.yAxisID===h.id&&((o=+h.getRightValue(a.data[e]))<0?g+=o||0:f+=o||0);return s<0?h.getPixelForValue(g+s):h.getPixelForValue(f+s)}return h.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this,r=a.chart,o=a.getMeta(),s=o.dataset._model,l=r.chartArea,u=o.data||[];function d(t,e,n){return Math.max(Math.min(t,n),e)}if(s.spanGaps&&(u=u.filter((function(t){return!t._model.skip}))),"monotone"===s.cubicInterpolationMode)ot.splineCurveMonotone(u);else for(t=0,e=u.length;t<e;++t)n=u[t]._model,i=ot.splineCurve(ot.previousItem(u,t)._model,n,ot.nextItem(u,t)._model,s.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(r.options.elements.line.capBezierPoints)for(t=0,e=u.length;t<e;++t)n=u[t]._model,ge(n,l)&&(t>0&&ge(u[t-1]._model,l)&&(n.controlPointPreviousX=d(n.controlPointPreviousX,l.left,l.right),n.controlPointPreviousY=d(n.controlPointPreviousY,l.top,l.bottom)),t<u.length-1&&ge(u[t+1]._model,l)&&(n.controlPointNextX=d(n.controlPointNextX,l.left,l.right),n.controlPointNextY=d(n.controlPointNextY,l.top,l.bottom)))},draw:function(){var t,e=this,n=e.chart,i=e.getMeta(),a=i.data||[],r=n.chartArea,o=n.canvas,s=0,l=a.length;for(e._showLine&&(t=i.dataset._model.clip,ot.canvas.clipArea(n.ctx,{left:!1===t.left?0:r.left-t.left,right:!1===t.right?o.width:r.right+t.right,top:!1===t.top?0:r.top-t.top,bottom:!1===t.bottom?o.height:r.bottom+t.bottom}),i.dataset.draw(),ot.canvas.unclipArea(n.ctx));s<l;++s)a[s].draw(r)},setHoverStyle:function(t){var e=t._model,n=t._options,i=ot.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=he(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=he(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=he(n.hoverBorderWidth,n.borderWidth),e.radius=he(n.hoverRadius,n.radius)}}),ye=ot.options.resolve;J._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e,n,i,a=document.createElement("ul"),r=t.data,o=r.datasets,s=r.labels;if(a.setAttribute("class",t.id+"-legend"),o.length)for(e=0,n=o[0].data.length;e<n;++e)(i=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[e],s[e]&&i.appendChild(document.createTextNode(s[e]));return a.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,i){var a=t.getDatasetMeta(0),r=a.controller.getStyle(i);return{text:n,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,hidden:isNaN(e.datasets[0].data[i])||a.data[i].hidden,index:i}})):[]}},onClick:function(t,e){var n,i,a,r=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(a=o.getDatasetMeta(n)).data[r].hidden=!a.data[r].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var xe=kt.extend({dataElementType:$t.Arc,linkScales:ot.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,n,i,a=this,r=a.getDataset(),o=a.getMeta(),s=a.chart.options.startAngle||0,l=a._starts=[],u=a._angles=[],d=o.data;for(a._updateRadius(),o.count=a.countVisibleElements(),e=0,n=r.data.length;e<n;e++)l[e]=s,i=a._computeAngle(e),u[e]=i,s+=i;for(e=0,n=d.length;e<n;++e)d[e]._options=a._resolveDataElementOptions(d[e],e),a.updateElement(d[e],e,t)},_updateRadius:function(){var t=this,e=t.chart,n=e.chartArea,i=e.options,a=Math.min(n.right-n.left,n.bottom-n.top);e.outerRadius=Math.max(a/2,0),e.innerRadius=Math.max(i.cutoutPercentage?e.outerRadius/100*i.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,n){var i=this,a=i.chart,r=i.getDataset(),o=a.options,s=o.animation,l=a.scale,u=a.data.labels,d=l.xCenter,c=l.yCenter,h=o.startAngle,f=t.hidden?0:l.getDistanceFromCenterForValue(r.data[e]),g=i._starts[e],m=g+(t.hidden?0:i._angles[e]),p=s.animateScale?0:l.getDistanceFromCenterForValue(r.data[e]),v=t._options||{};ot.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:d,y:c,innerRadius:0,outerRadius:n?p:f,startAngle:n&&s.animateRotate?h:g,endAngle:n&&s.animateRotate?h:m,label:ot.valueAtIndexOrDefault(u,e,u[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),n=0;return ot.each(e.data,(function(e,i){isNaN(t.data[i])||e.hidden||n++})),n},setHoverStyle:function(t){var e=t._model,n=t._options,i=ot.getHoverColor,a=ot.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=a(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=a(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=a(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(t){var e=this,n=this.getMeta().count,i=e.getDataset(),a=e.getMeta();if(isNaN(i.data[t])||a.data[t].hidden)return 0;var r={chart:e.chart,dataIndex:t,dataset:i,datasetIndex:e.index};return ye([e.chart.options.elements.arc.angle,2*Math.PI/n],r,t)}});J._set("pie",ot.clone(J.doughnut)),J._set("pie",{cutoutPercentage:0});var _e=de,we=ot.valueOrDefault;J._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var ke=kt.extend({datasetElementType:$t.Line,dataElementType:$t.Point,linkScales:ot.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,n,i=this,a=i.getMeta(),r=a.dataset,o=a.data||[],s=i.chart.scale,l=i._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),r._scale=s,r._datasetIndex=i.index,r._children=o,r._loop=!0,r._model=i._resolveDatasetElementOptions(r),r.pivot(),e=0,n=o.length;e<n;++e)i.updateElement(o[e],e,t);for(i.updateBezierControlPoints(),e=0,n=o.length;e<n;++e)o[e].pivot()},updateElement:function(t,e,n){var i=this,a=t.custom||{},r=i.getDataset(),o=i.chart.scale,s=o.getPointPositionForValue(e,r.data[e]),l=i._resolveDataElementOptions(t,e),u=i.getMeta().dataset._model,d=n?o.xCenter:s.x,c=n?o.yCenter:s.y;t._scale=o,t._options=l,t._datasetIndex=i.index,t._index=e,t._model={x:d,y:c,skip:a.skip||isNaN(d)||isNaN(c),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:we(a.tension,u?u.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var t=this,e=t._config,n=t.chart.options,i=kt.prototype._resolveDatasetElementOptions.apply(t,arguments);return i.spanGaps=we(e.spanGaps,n.spanGaps),i.tension=we(e.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){var t,e,n,i,a=this,r=a.getMeta(),o=a.chart.chartArea,s=r.data||[];function l(t,e,n){return Math.max(Math.min(t,n),e)}for(r.dataset._model.spanGaps&&(s=s.filter((function(t){return!t._model.skip}))),t=0,e=s.length;t<e;++t)n=s[t]._model,i=ot.splineCurve(ot.previousItem(s,t,!0)._model,n,ot.nextItem(s,t,!0)._model,n.tension),n.controlPointPreviousX=l(i.previous.x,o.left,o.right),n.controlPointPreviousY=l(i.previous.y,o.top,o.bottom),n.controlPointNextX=l(i.next.x,o.left,o.right),n.controlPointNextY=l(i.next.y,o.top,o.bottom)},setHoverStyle:function(t){var e=t._model,n=t._options,i=ot.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=we(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=we(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=we(n.hoverBorderWidth,n.borderWidth),e.radius=we(n.hoverRadius,n.radius)}});J._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),J._set("global",{datasets:{scatter:{showLine:!1}}});var Me={bar:ne,bubble:re,doughnut:de,horizontalBar:ce,line:be,polarArea:xe,pie:_e,radar:ke,scatter:be};function Se(t,e){return t.native?{x:t.x,y:t.y}:ot.getRelativePosition(t,e)}function De(t,e){var n,i,a,r,o,s,l=t._getSortedVisibleDatasetMetas();for(i=0,r=l.length;i<r;++i)for(a=0,o=(n=l[i].data).length;a<o;++a)(s=n[a])._view.skip||e(s)}function Ce(t,e){var n=[];return De(t,(function(t){t.inRange(e.x,e.y)&&n.push(t)})),n}function Te(t,e,n,i){var a=Number.POSITIVE_INFINITY,r=[];return De(t,(function(t){if(!n||t.inRange(e.x,e.y)){var o=t.getCenterPoint(),s=i(e,o);s<a?(r=[t],a=s):s===a&&r.push(t)}})),r}function Pe(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){var a=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(r,2))}}function Oe(t,e,n){var i=Se(e,t);n.axis=n.axis||"x";var a=Pe(n.axis),r=n.intersect?Ce(t,i):Te(t,i,!1,a),o=[];return r.length?(t._getSortedVisibleDatasetMetas().forEach((function(t){var e=t.data[r[0]._index];e&&!e._view.skip&&o.push(e)})),o):[]}var Ae={modes:{single:function(t,e){var n=Se(e,t),i=[];return De(t,(function(t){if(t.inRange(n.x,n.y))return i.push(t),i})),i.slice(0,1)},label:Oe,index:Oe,dataset:function(t,e,n){var i=Se(e,t);n.axis=n.axis||"xy";var a=Pe(n.axis),r=n.intersect?Ce(t,i):Te(t,i,!1,a);return r.length>0&&(r=t.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(t,e){return Oe(t,e,{intersect:!1})},point:function(t,e){return Ce(t,Se(e,t))},nearest:function(t,e,n){var i=Se(e,t);n.axis=n.axis||"xy";var a=Pe(n.axis);return Te(t,i,n.intersect,a)},x:function(t,e,n){var i=Se(e,t),a=[],r=!1;return De(t,(function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)})),n.intersect&&!r&&(a=[]),a},y:function(t,e,n){var i=Se(e,t),a=[],r=!1;return De(t,(function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)})),n.intersect&&!r&&(a=[]),a}}},Ie=ot.extend;function Fe(t,e){return ot.where(t,(function(t){return t.pos===e}))}function Ne(t,e){return t.sort((function(t,n){var i=e?n:t,a=e?t:n;return i.weight===a.weight?i.index-a.index:i.weight-a.weight}))}function Re(t){var e,n,i,a=[];for(e=0,n=(t||[]).length;e<n;++e)i=t[e],a.push({index:e,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return a}function Le(t,e){var n,i,a;for(n=0,i=t.length;n<i;++n)(a=t[n]).width=a.horizontal?a.box.fullWidth&&e.availableWidth:e.vBoxMaxWidth,a.height=a.horizontal&&e.hBoxMaxHeight}function Ye(t){var e=Re(t),n=Ne(Fe(e,"left"),!0),i=Ne(Fe(e,"right")),a=Ne(Fe(e,"top"),!0),r=Ne(Fe(e,"bottom"));return{leftAndTop:n.concat(a),rightAndBottom:i.concat(r),chartArea:Fe(e,"chartArea"),vertical:n.concat(i),horizontal:a.concat(r)}}function We(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Ee(t,e,n){var i,a,r=n.box,o=t.maxPadding;if(n.size&&(t[n.pos]-=n.size),n.size=n.horizontal?r.height:r.width,t[n.pos]+=n.size,r.getPadding){var s=r.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(i=e.outerWidth-We(o,t,"left","right"),a=e.outerHeight-We(o,t,"top","bottom"),i!==t.w||a!==t.h){t.w=i,t.h=a;var l=n.horizontal?[i,t.w]:[a,t.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function ze(t){var e=t.maxPadding;function n(n){var i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Ve(t,e){var n=e.maxPadding;function i(t){var i={left:0,top:0,right:0,bottom:0};return t.forEach((function(t){i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function He(t,e,n){var i,a,r,o,s,l,u=[];for(i=0,a=t.length;i<a;++i)(o=(r=t[i]).box).update(r.width||e.w,r.height||e.h,Ve(r.horizontal,e)),Ee(e,n,r)&&(l=!0,u.length&&(s=!0)),o.fullWidth||u.push(r);return s&&He(u,e,n)||l}function Be(t,e,n){var i,a,r,o,s=n.padding,l=e.x,u=e.y;for(i=0,a=t.length;i<a;++i)o=(r=t[i]).box,r.horizontal?(o.left=o.fullWidth?s.left:e.left,o.right=o.fullWidth?n.outerWidth-s.right:e.left+e.w,o.top=u,o.bottom=u+o.height,o.width=o.right-o.left,u=o.bottom):(o.left=l,o.right=l+o.width,o.top=e.top,o.bottom=e.top+e.h,o.height=o.bottom-o.top,l=o.right);e.x=l,e.y=u}J._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var je={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw:function(){e.draw.apply(e,arguments)}}]},t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],r=a.length,o=0;o<r;++o)i=a[o],n.hasOwnProperty(i)&&(e[i]=n[i])},update:function(t,e,n){if(t){var i=t.options.layout||{},a=ot.options.toPadding(i.padding),r=e-a.width,o=n-a.height,s=Ye(t.boxes),l=s.vertical,u=s.horizontal,d=Object.freeze({outerWidth:e,outerHeight:n,padding:a,availableWidth:r,vBoxMaxWidth:r/2/l.length,hBoxMaxHeight:o/2}),c=Ie({maxPadding:Ie({},a),w:r,h:o,x:a.left,y:a.top},a);Le(l.concat(u),d),He(l,c,d),He(u,c,d)&&He(l,c,d),ze(c),Be(s.leftAndTop,c,d),c.x+=c.w,c.y+=c.h,Be(s.rightAndBottom,c,d),t.chartArea={left:c.left,top:c.top,right:c.left+c.w,bottom:c.top+c.h},ot.each(s.chartArea,(function(e){var n=e.box;Ie(n,t.chartArea),n.update(c.w,c.h)}))}}},Ue={acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},$e="/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Ge=n(Object.freeze({__proto__:null,default:$e})),qe="$chartjs",Ze="chartjs-",Xe=Ze+"size-monitor",Ke=Ze+"render-monitor",Je=Ze+"render-animation",Qe=["animationstart","webkitAnimationStart"],tn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function en(t,e){var n=ot.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}function nn(t,e){var n=t.style,i=t.getAttribute("height"),a=t.getAttribute("width");if(t[qe]={initial:{height:i,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===a||""===a){var r=en(t,"width");void 0!==r&&(t.width=r)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var o=en(t,"height");void 0!==r&&(t.height=o)}return t}var an=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function rn(t,e,n){t.addEventListener(e,n,an)}function on(t,e,n){t.removeEventListener(e,n,an)}function sn(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function ln(t,e){var n=tn[t.type]||t.type,i=ot.getRelativePosition(t,e);return sn(n,e,i.x,i.y,t)}function un(t,e){var n=!1,i=[];return function(){i=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,ot.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,i)})))}}function dn(t){var e=document.createElement("div");return e.className=t||"",e}function cn(t){var e=1e6,n=dn(Xe),i=dn(Xe+"-expand"),a=dn(Xe+"-shrink");i.appendChild(dn()),a.appendChild(dn()),n.appendChild(i),n.appendChild(a),n._reset=function(){i.scrollLeft=e,i.scrollTop=e,a.scrollLeft=e,a.scrollTop=e};var r=function(){n._reset(),t()};return rn(i,"scroll",r.bind(i,"expand")),rn(a,"scroll",r.bind(a,"shrink")),n}function hn(t,e){var n=t[qe]||(t[qe]={}),i=n.renderProxy=function(t){t.animationName===Je&&e()};ot.each(Qe,(function(e){rn(t,e,i)})),n.reflow=!!t.offsetParent,t.classList.add(Ke)}function fn(t){var e=t[qe]||{},n=e.renderProxy;n&&(ot.each(Qe,(function(e){on(t,e,n)})),delete e.renderProxy),t.classList.remove(Ke)}function gn(t,e,n){var i=t[qe]||(t[qe]={}),a=i.resizer=cn(un((function(){if(i.resizer){var a=n.options.maintainAspectRatio&&t.parentNode,r=a?a.clientWidth:0;e(sn("resize",n)),a&&a.clientWidth<r&&n.canvas&&e(sn("resize",n))}})));hn(t,(function(){if(i.resizer){var e=t.parentNode;e&&e!==a.parentNode&&e.insertBefore(a,e.firstChild),a._reset()}}))}function mn(t){var e=t[qe]||{},n=e.resizer;delete e.resizer,fn(t),n&&n.parentNode&&n.parentNode.removeChild(n)}function pn(t,e){var n=t[qe]||(t[qe]={});if(!n.containsStyles){n.containsStyles=!0,e="/* Chart.js */\n"+e;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(e)),t.appendChild(i)}}var vn={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(t){if(!this.disableCSSInjection){var e=t.getRootNode?t.getRootNode():document;pn(e.host?e:document.head,Ge)}},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(this._ensureLoaded(t),nn(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[qe]){var n=e[qe].initial;["height","width"].forEach((function(t){var i=n[t];ot.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)})),ot.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[qe]}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var a=n[qe]||(n[qe]={});rn(i,e,(a.proxies||(a.proxies={}))[t.id+"_"+e]=function(e){n(ln(e,t))})}else gn(i,n,t)},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var a=((n[qe]||{}).proxies||{})[t.id+"_"+e];a&&on(i,e,a)}else mn(i)}};ot.addEvent=rn,ot.removeEvent=on;var bn=vn._enabled?vn:Ue,yn=ot.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},bn);J._set("global",{plugins:{}});var xn={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach((function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var i,a,r,o,s,l=this.descriptors(t),u=l.length;for(i=0;i<u;++i)if("function"==typeof(s=(r=(a=l[i]).plugin)[e])&&((o=[t].concat(n||[])).push(a.options),!1===s.apply(r,o)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],i=[],a=t&&t.config||{},r=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach((function(t){if(-1===n.indexOf(t)){var e=t.id,a=r[e];!1!==a&&(!0===a&&(a=ot.clone(J.global.plugins[e])),n.push(t),i.push({plugin:t,options:a||{}}))}})),e.descriptors=i,e.id=this._cacheId,i},_invalidate:function(t){delete t.$plugins}},_n={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=ot.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?ot.merge(Object.create(null),[J.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){var n=this;n.defaults.hasOwnProperty(t)&&(n.defaults[t]=ot.extend(n.defaults[t],e))},addScalesToLayout:function(t){ot.each(t.scales,(function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,je.addBox(t,e)}))}},wn=ot.valueOrDefault,kn=ot.rtl.getRtlAdapter;J._set("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,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:ot.noop,title:function(t,e){var n="",i=e.labels,a=i?i.length:0;if(t.length>0){var r=t[0];r.label?n=r.label:r.xLabel?n=r.xLabel:a>0&&r.index<a&&(n=i[r.index])}return n},afterTitle:ot.noop,beforeBody:ot.noop,beforeLabel:ot.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),ot.isNullOrUndef(t.value)?n+=t.yLabel:n+=t.value,n},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ot.noop,afterBody:ot.noop,beforeFooter:ot.noop,footer:ot.noop,afterFooter:ot.noop}}});var Mn={average:function(t){if(!t.length)return!1;var e,n,i=0,a=0,r=0;for(e=0,n=t.length;e<n;++e){var o=t[e];if(o&&o.hasValue()){var s=o.tooltipPosition();i+=s.x,a+=s.y,++r}}return{x:i/r,y:a/r}},nearest:function(t,e){var n,i,a,r=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){var l=t[n];if(l&&l.hasValue()){var u=l.getCenterPoint(),d=ot.distanceBetweenPoints(e,u);d<s&&(s=d,a=l)}}if(a){var c=a.tooltipPosition();r=c.x,o=c.y}return{x:r,y:o}}};function Sn(t,e){return e&&(ot.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Dn(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Cn(t){var e=t._xScale,n=t._yScale||t._scale,i=t._index,a=t._datasetIndex,r=t._chart.getDatasetMeta(a).controller,o=r._getIndexScale(),s=r._getValueScale();return{xLabel:e?e.getLabelForIndex(i,a):"",yLabel:n?n.getLabelForIndex(i,a):"",label:o?""+o.getLabelForIndex(i,a):"",value:s?""+s.getLabelForIndex(i,a):"",index:i,datasetIndex:a,x:t._model.x,y:t._model.y}}function Tn(t){var e=J.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:wn(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:wn(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:wn(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:wn(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:wn(t.titleFontStyle,e.defaultFontStyle),titleFontSize:wn(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:wn(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:wn(t.footerFontStyle,e.defaultFontStyle),footerFontSize:wn(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Pn(t,e){var n=t._chart.ctx,i=2*e.yPadding,a=0,r=e.body,o=r.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,u=e.titleFontSize,d=e.bodyFontSize,c=e.footerFontSize;i+=s*u,i+=s?(s-1)*e.titleSpacing:0,i+=s?e.titleMarginBottom:0,i+=o*d,i+=o?(o-1)*e.bodySpacing:0,i+=l?e.footerMarginTop:0,i+=l*c,i+=l?(l-1)*e.footerSpacing:0;var h=0,f=function(t){a=Math.max(a,n.measureText(t).width+h)};return n.font=ot.fontString(u,e._titleFontStyle,e._titleFontFamily),ot.each(e.title,f),n.font=ot.fontString(d,e._bodyFontStyle,e._bodyFontFamily),ot.each(e.beforeBody.concat(e.afterBody),f),h=e.displayColors?d+2:0,ot.each(r,(function(t){ot.each(t.before,f),ot.each(t.lines,f),ot.each(t.after,f)})),h=0,n.font=ot.fontString(c,e._footerFontStyle,e._footerFontFamily),ot.each(e.footer,f),{width:a+=2*e.xPadding,height:i}}function On(t,e){var n,i,a,r,o,s=t._model,l=t._chart,u=t._chart.chartArea,d="center",c="center";s.y<e.height?c="top":s.y>l.height-e.height&&(c="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===c?(n=function(t){return t<=h},i=function(t){return t>h}):(n=function(t){return t<=e.width/2},i=function(t){return t>=l.width-e.width/2}),a=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},r=function(t){return t-e.width-s.caretSize-s.caretPadding<0},o=function(t){return t<=f?"top":"bottom"},n(s.x)?(d="left",a(s.x)&&(d="center",c=o(s.y))):i(s.x)&&(d="right",r(s.x)&&(d="center",c=o(s.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:d,yAlign:g.yAlign?g.yAlign:c}}function An(t,e,n,i){var a=t.x,r=t.y,o=t.caretSize,s=t.caretPadding,l=t.cornerRadius,u=n.xAlign,d=n.yAlign,c=o+s,h=l+s;return"right"===u?a-=e.width:"center"===u&&((a-=e.width/2)+e.width>i.width&&(a=i.width-e.width),a<0&&(a=0)),"top"===d?r+=c:r-="bottom"===d?e.height+c:e.height/2,"center"===d?"left"===u?a+=c:"right"===u&&(a-=c):"left"===u?a-=h:"right"===u&&(a+=h),{x:a,y:r}}function In(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function Fn(t){return Sn([],Dn(t))}var Nn=gt.extend({initialize:function(){this._model=Tn(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options.callbacks,n=e.beforeTitle.apply(t,arguments),i=e.title.apply(t,arguments),a=e.afterTitle.apply(t,arguments),r=[];return r=Sn(r,Dn(n)),r=Sn(r,Dn(i)),r=Sn(r,Dn(a))},getBeforeBody:function(){return Fn(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,i=n._options.callbacks,a=[];return ot.each(t,(function(t){var r={before:[],lines:[],after:[]};Sn(r.before,Dn(i.beforeLabel.call(n,t,e))),Sn(r.lines,i.label.call(n,t,e)),Sn(r.after,Dn(i.afterLabel.call(n,t,e))),a.push(r)})),a},getAfterBody:function(){return Fn(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),i=e.footer.apply(t,arguments),a=e.afterFooter.apply(t,arguments),r=[];return r=Sn(r,Dn(n)),r=Sn(r,Dn(i)),r=Sn(r,Dn(a))},update:function(t){var e,n,i=this,a=i._options,r=i._model,o=i._model=Tn(a),s=i._active,l=i._data,u={xAlign:r.xAlign,yAlign:r.yAlign},d={x:r.x,y:r.y},c={width:r.width,height:r.height},h={x:r.caretX,y:r.caretY};if(s.length){o.opacity=1;var f=[],g=[];h=Mn[a.position].call(i,s,i._eventPosition);var m=[];for(e=0,n=s.length;e<n;++e)m.push(Cn(s[e]));a.filter&&(m=m.filter((function(t){return a.filter(t,l)}))),a.itemSort&&(m=m.sort((function(t,e){return a.itemSort(t,e,l)}))),ot.each(m,(function(t){f.push(a.callbacks.labelColor.call(i,t,i._chart)),g.push(a.callbacks.labelTextColor.call(i,t,i._chart))})),o.title=i.getTitle(m,l),o.beforeBody=i.getBeforeBody(m,l),o.body=i.getBody(m,l),o.afterBody=i.getAfterBody(m,l),o.footer=i.getFooter(m,l),o.x=h.x,o.y=h.y,o.caretPadding=a.caretPadding,o.labelColors=f,o.labelTextColors=g,o.dataPoints=m,d=An(o,c=Pn(this,o),u=On(this,c),i._chart)}else o.opacity=0;return o.xAlign=u.xAlign,o.yAlign=u.yAlign,o.x=d.x,o.y=d.y,o.width=c.width,o.height=c.height,o.caretX=h.x,o.caretY=h.y,i._model=o,t&&a.custom&&a.custom.call(i,o),i},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,a=this.getCaretPosition(t,e,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,c=n.xAlign,h=n.yAlign,f=t.x,g=t.y,m=e.width,p=e.height;if("center"===h)s=g+p/2,"left"===c?(a=(i=f)-u,r=i,o=s+u,l=s-u):(a=(i=f+m)+u,r=i,o=s-u,l=s+u);else if("left"===c?(i=(a=f+d+u)-u,r=a+u):"right"===c?(i=(a=f+m-d-u)-u,r=a+u):(i=(a=n.caretX)-u,r=a+u),"top"===h)s=(o=g)-u,l=o;else{s=(o=g+p)+u,l=o;var v=r;r=i,i=v}return{x1:i,x2:a,x3:r,y1:o,y2:s,y3:l}},drawTitle:function(t,e,n){var i,a,r,o=e.title,s=o.length;if(s){var l=kn(e.rtl,e.x,e.width);for(t.x=In(e,e._titleAlign),n.textAlign=l.textAlign(e._titleAlign),n.textBaseline="middle",i=e.titleFontSize,a=e.titleSpacing,n.fillStyle=e.titleFontColor,n.font=ot.fontString(i,e._titleFontStyle,e._titleFontFamily),r=0;r<s;++r)n.fillText(o[r],l.x(t.x),t.y+i/2),t.y+=i+a,r+1===s&&(t.y+=e.titleMarginBottom-a)}},drawBody:function(t,e,n){var i,a,r,o,s,l,u,d,c=e.bodyFontSize,h=e.bodySpacing,f=e._bodyAlign,g=e.body,m=e.displayColors,p=0,v=m?In(e,"left"):0,b=kn(e.rtl,e.x,e.width),y=function(e){n.fillText(e,b.x(t.x+p),t.y+c/2),t.y+=c+h},x=b.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=ot.fontString(c,e._bodyFontStyle,e._bodyFontFamily),t.x=In(e,x),n.fillStyle=e.bodyFontColor,ot.each(e.beforeBody,y),p=m&&"right"!==x?"center"===f?c/2+1:c+2:0,s=0,u=g.length;s<u;++s){for(i=g[s],a=e.labelTextColors[s],r=e.labelColors[s],n.fillStyle=a,ot.each(i.before,y),l=0,d=(o=i.lines).length;l<d;++l){if(m){var _=b.x(v);n.fillStyle=e.legendColorBackground,n.fillRect(b.leftForLtr(_,c),t.y,c,c),n.lineWidth=1,n.strokeStyle=r.borderColor,n.strokeRect(b.leftForLtr(_,c),t.y,c,c),n.fillStyle=r.backgroundColor,n.fillRect(b.leftForLtr(b.xPlus(_,1),c-2),t.y+1,c-2,c-2),n.fillStyle=a}y(o[l])}ot.each(i.after,y)}p=0,ot.each(e.afterBody,y),t.y-=h},drawFooter:function(t,e,n){var i,a,r=e.footer,o=r.length;if(o){var s=kn(e.rtl,e.x,e.width);for(t.x=In(e,e._footerAlign),t.y+=e.footerMarginTop,n.textAlign=s.textAlign(e._footerAlign),n.textBaseline="middle",i=e.footerFontSize,n.fillStyle=e.footerFontColor,n.font=ot.fontString(i,e._footerFontStyle,e._footerFontFamily),a=0;a<o;++a)n.fillText(r[a],s.x(t.x),t.y+i/2),t.y+=i+e.footerSpacing}},drawBackground:function(t,e,n,i){n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,n.lineWidth=e.borderWidth;var a=e.xAlign,r=e.yAlign,o=t.x,s=t.y,l=i.width,u=i.height,d=e.cornerRadius;n.beginPath(),n.moveTo(o+d,s),"top"===r&&this.drawCaret(t,i),n.lineTo(o+l-d,s),n.quadraticCurveTo(o+l,s,o+l,s+d),"center"===r&&"right"===a&&this.drawCaret(t,i),n.lineTo(o+l,s+u-d),n.quadraticCurveTo(o+l,s+u,o+l-d,s+u),"bottom"===r&&this.drawCaret(t,i),n.lineTo(o+d,s+u),n.quadraticCurveTo(o,s+u,o,s+u-d),"center"===r&&"left"===a&&this.drawCaret(t,i),n.lineTo(o,s+d),n.quadraticCurveTo(o,s,o+d,s),n.closePath(),n.fill(),e.borderWidth>0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(t.save(),t.globalAlpha=a,this.drawBackground(i,e,t,n),i.y+=e.yPadding,ot.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),ot.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e=this,n=e._options,i=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:(e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),n.reverse&&e._active.reverse()),(i=!ot.arrayEquals(e._active,e._lastActive))&&(e._lastActive=e._active,(n.enabled||n.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),i}}),Rn=Mn,Ln=Nn;Ln.positioners=Rn;var Yn=ot.valueOrDefault;function Wn(){return ot.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,r,o,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)o=n[t][a],r=Yn(o.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?ot.merge(e[t][a],[_n.getScaleDefaults(r),o]):ot.merge(e[t][a],o)}else ot._merger(t,e,n,i)}})}function En(){return ot.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,i){var a=e[t]||Object.create(null),r=n[t];"scales"===t?e[t]=Wn(a,r):"scale"===t?e[t]=ot.merge(a,[_n.getScaleDefaults(r.type),r]):ot._merger(t,e,n,i)}})}function zn(t){var e=(t=t||Object.create(null)).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=En(J.global,J[t.type],t.options||{}),t}function Vn(t){var e=t.options;ot.each(t.scales,(function(e){je.removeBox(t,e)})),e=En(J.global,J[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function Hn(t,e,n){var i,a=function(t){return t.id===i};do{i=e+n++}while(ot.findIndex(t,a)>=0);return i}function Bn(t){return"top"===t||"bottom"===t}function jn(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}J._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Un=function(t,e){return this.construct(t,e),this};ot.extend(Un.prototype,{construct:function(t,e){var n=this;e=zn(e);var i=yn.acquireContext(t,e),a=i&&i.canvas,r=a&&a.height,o=a&&a.width;n.id=ot.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=o,n.height=r,n.aspectRatio=r?o/r:null,n.options=e.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Un.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return xn.notify(t,"beforeInit"),ot.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),xn.notify(t,"afterInit"),t},clear:function(){return ot.canvas.clear(this),this},stop:function(){return vt.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(ot.getMaximumWidth(i))),o=Math.max(0,Math.floor(a?r/a:ot.getMaximumHeight(i)));if((e.width!==r||e.height!==o)&&(i.width=e.width=r,i.height=e.height=o,i.style.width=r+"px",i.style.height=o+"px",ot.retinaScale(e,n.devicePixelRatio),!t)){var s={width:r,height:o};xn.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;ot.each(e.xAxes,(function(t,n){t.id||(t.id=Hn(e.xAxes,"x-axis-",n))})),ot.each(e.yAxes,(function(t,n){t.id||(t.id=Hn(e.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},i=[],a=Object.keys(n).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(i=i.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&i.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ot.each(i,(function(e){var i=e.options,r=i.id,o=Yn(i.type,e.dtype);Bn(i.position)!==Bn(e.dposition)&&(i.position=e.dposition),a[r]=!0;var s=null;if(r in n&&n[r].type===o)(s=n[r]).options=i,s.ctx=t.ctx,s.chart=t;else{var l=_n.getScaleConstructor(o);if(!l)return;s=new l({id:r,type:o,options:i,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),ot.each(a,(function(t,e){t||delete n[e]})),t.scales=n,_n.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=this,i=[],a=n.data.datasets;for(t=0,e=a.length;t<e;t++){var r=a[t],o=n.getDatasetMeta(t),s=r.type||n.config.type;if(o.type&&o.type!==s&&(n.destroyDatasetMeta(t),o=n.getDatasetMeta(t)),o.type=s,o.order=r.order||0,o.index=t,o.controller)o.controller.updateIndex(t),o.controller.linkScales();else{var l=Me[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(n,t),i.push(o.controller)}}return i},resetElements:function(){var t=this;ot.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),Vn(i),xn._invalidate(i),!1!==xn.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var a=i.buildOrUpdateControllers();for(e=0,n=i.data.datasets.length;e<n;e++)i.getDatasetMeta(e).controller.buildOrUpdateElements();i.updateLayout(),i.options.animation&&i.options.animation.duration&&ot.each(a,(function(t){t.reset()})),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],xn.notify(i,"afterUpdate"),i._layers.sort(jn("z","_idx")),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t)}},updateLayout:function(){var t=this;!1!==xn.notify(t,"beforeLayout")&&(je.update(this,this.width,this.height),t._layers=[],ot.each(t.boxes,(function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())}),t),t._layers.forEach((function(t,e){t._idx=e})),xn.notify(t,"afterScaleUpdate"),xn.notify(t,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==xn.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e<n;++e)t.updateDataset(e);xn.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,n=e.getDatasetMeta(t),i={meta:n,index:t};!1!==xn.notify(e,"beforeDatasetUpdate",[i])&&(n.controller._update(),xn.notify(e,"afterDatasetUpdate",[i]))},render:function(t){var e=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var n=e.options.animation,i=Yn(t.duration,n&&n.duration),a=t.lazy;if(!1!==xn.notify(e,"beforeRender")){var r=function(t){xn.notify(e,"afterRender"),ot.callback(n&&n.onComplete,[t],e)};if(n&&i){var o=new pt({numSteps:i/16.66,easing:t.easing||n.easing,render:function(t,e){var n=ot.easing.effects[e.easing],i=e.currentStep,a=i/e.numSteps;t.draw(n(a),a,i)},onAnimationProgress:n.onProgress,onAnimationComplete:r});vt.addAnimation(e,o,i,a)}else e.draw(),r(new pt({numSteps:0,chart:e}));return e}},draw:function(t){var e,n,i=this;if(i.clear(),ot.isNullOrUndef(t)&&(t=1),i.transition(t),!(i.width<=0||i.height<=0)&&!1!==xn.notify(i,"beforeDraw",[t])){for(n=i._layers,e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(i.chartArea);for(i.drawDatasets(t);e<n.length;++e)n[e].draw(i.chartArea);i._drawTooltip(t),xn.notify(i,"afterDraw",[t])}},transition:function(t){for(var e=this,n=0,i=(e.data.datasets||[]).length;n<i;++n)e.isDatasetVisible(n)&&e.getDatasetMeta(n).controller.transition(t);e.tooltip.transition(t)},_getSortedDatasetMetas:function(t){var e,n,i=this,a=[];for(e=0,n=(i.data.datasets||[]).length;e<n;++e)t&&!i.isDatasetVisible(e)||a.push(i.getDatasetMeta(e));return a.sort(jn("order","index")),a},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(t){var e,n,i=this;if(!1!==xn.notify(i,"beforeDatasetsDraw",[t])){for(n=(e=i._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)i.drawDataset(e[n],t);xn.notify(i,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,i={meta:t,index:t.index,easingValue:e};!1!==xn.notify(n,"beforeDatasetDraw",[i])&&(t.controller.draw(e),xn.notify(n,"afterDatasetDraw",[i]))},_drawTooltip:function(t){var e=this,n=e.tooltip,i={tooltip:n,easingValue:t};!1!==xn.notify(e,"beforeTooltipDraw",[i])&&(n.draw(),xn.notify(e,"afterTooltipDraw",[i]))},getElementAtEvent:function(t){return Ae.modes.single(this,t)},getElementsAtEvent:function(t){return Ae.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return Ae.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=Ae.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return Ae.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:t}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],i=n._meta&&n._meta[e];i&&(i.controller.destroy(),delete n._meta[e])},destroy:function(){var t,e,n=this,i=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);i&&(n.unbindEvents(),ot.canvas.clear(n),yn.releaseContext(n.ctx),n.canvas=null,n.ctx=null),xn.notify(n,"destroy"),delete Un.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new Ln({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},n=function(){t.eventHandler.apply(t,arguments)};ot.each(t.options.events,(function(i){yn.addEventListener(t,i,n),e[i]=n})),t.options.responsive&&(n=function(){t.resize()},yn.addEventListener(t,"resize",n),e.resize=n)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,ot.each(e,(function(e,n){yn.removeEventListener(t,n,e)})))},updateHoverStyle:function(t,e,n){var i,a,r,o=n?"set":"remove";for(a=0,r=t.length;a<r;++a)(i=t[a])&&this.getDatasetMeta(i._datasetIndex).controller[o+"HoverStyle"](i);"dataset"===e&&this.getDatasetMeta(t[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==xn.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);n&&(i=n._start?n.handleEvent(t):i|n.handleEvent(t)),xn.notify(e,"afterEvent",[t]);var a=e._bufferedRequest;return a?e.render(a):i&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e=this,n=e.options||{},i=n.hover,a=!1;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,i.mode,i),ot.callback(n.onHover||n.hover.onHover,[t.native,e.active],e),"mouseup"!==t.type&&"click"!==t.type||n.onClick&&n.onClick.call(e,t.native,e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,i.mode,!1),e.active.length&&i.mode&&e.updateHoverStyle(e.active,i.mode,!0),a=!ot.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,a}}),Un.instances={};var $n=Un;Un.Controller=Un,Un.types={},ot.configMerge=En,ot.scaleMerge=Wn;var Gn=function(){function t(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function e(t){return null!=t&&"none"!==t}function n(n,i,a){var r=document.defaultView,o=ot._getParentNode(n),s=r.getComputedStyle(n)[i],l=r.getComputedStyle(o)[i],u=e(s),d=e(l),c=Number.POSITIVE_INFINITY;return u||d?Math.min(u?t(s,n,a):c,d?t(l,o,a):c):"none"}ot.where=function(t,e){if(ot.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return ot.each(t,(function(t){e(t)&&n.push(t)})),n},ot.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},ot.findNextWhere=function(t,e,n){ot.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<t.length;i++){var a=t[i];if(e(a))return a}},ot.findPreviousWhere=function(t,e,n){ot.isNullOrUndef(n)&&(n=t.length);for(var i=n-1;i>=0;i--){var a=t[i];if(e(a))return a}},ot.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ot.almostEquals=function(t,e,n){return Math.abs(t-e)<n},ot.almostWhole=function(t,e){var n=Math.round(t);return n-e<=t&&n+e>=t},ot.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},ot.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},ot.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},ot.toRadians=function(t){return t*(Math.PI/180)},ot.toDegrees=function(t){return t*(180/Math.PI)},ot._decimalPlaces=function(t){if(ot.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},ot.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:a}},ot.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ot.aliasPixel=function(t){return t%2==0?0:.5},ot._alignPixel=function(t,e,n){var i=t.currentDevicePixelRatio,a=n/2;return Math.round((e-a)*i)/i+a},ot.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),u=s/(s+l),d=l/(s+l),c=i*(u=isNaN(u)?0:u),h=i*(d=isNaN(d)?0:d);return{previous:{x:r.x-c*(o.x-a.x),y:r.y-c*(o.y-a.y)},next:{x:r.x+h*(o.x-a.x),y:r.y+h*(o.y-a.y)}}},ot.EPSILON=Number.EPSILON||1e-14,ot.splineCurveMonotone=function(t){var e,n,i,a,r,o,s,l,u,d=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),c=d.length;for(e=0;e<c;++e)if(!(i=d[e]).model.skip){if(n=e>0?d[e-1]:null,(a=e<c-1?d[e+1]:null)&&!a.model.skip){var h=a.model.x-i.model.x;i.deltaK=0!==h?(a.model.y-i.model.y)/h:0}!n||n.model.skip?i.mK=i.deltaK:!a||a.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(e=0;e<c-1;++e)i=d[e],a=d[e+1],i.model.skip||a.model.skip||(ot.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=a.mK=0:(r=i.mK/i.deltaK,o=a.mK/i.deltaK,(l=Math.pow(r,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),i.mK=r*s*i.deltaK,a.mK=o*s*i.deltaK)));for(e=0;e<c;++e)(i=d[e]).model.skip||(n=e>0?d[e-1]:null,a=e<c-1?d[e+1]:null,n&&!n.model.skip&&(u=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-u,i.model.controlPointPreviousY=i.model.y-u*i.mK),a&&!a.model.skip&&(u=(a.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+u,i.model.controlPointNextY=i.model.y+u*i.mK))},ot.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},ot.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},ot.niceNum=function(t,e){var n=Math.floor(ot.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},ot.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},ot.getRelativePosition=function(t,e){var n,i,a=t.originalEvent||t,r=t.target||t.srcElement,o=r.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=a.clientX,i=a.clientY);var l=parseFloat(ot.getStyle(r,"padding-left")),u=parseFloat(ot.getStyle(r,"padding-top")),d=parseFloat(ot.getStyle(r,"padding-right")),c=parseFloat(ot.getStyle(r,"padding-bottom")),h=o.right-o.left-l-d,f=o.bottom-o.top-u-c;return{x:n=Math.round((n-o.left-l)/h*r.width/e.currentDevicePixelRatio),y:i=Math.round((i-o.top-u)/f*r.height/e.currentDevicePixelRatio)}},ot.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},ot.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},ot._calculatePadding=function(t,e,n){return(e=ot.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},ot._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},ot.getMaximumWidth=function(t){var e=ot._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,i=n-ot._calculatePadding(e,"padding-left",n)-ot._calculatePadding(e,"padding-right",n),a=ot.getConstraintWidth(t);return isNaN(a)?i:Math.min(i,a)},ot.getMaximumHeight=function(t){var e=ot._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,i=n-ot._calculatePadding(e,"padding-top",n)-ot._calculatePadding(e,"padding-bottom",n),a=ot.getConstraintHeight(t);return isNaN(a)?i:Math.min(i,a)},ot.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},ot.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=t.canvas,a=t.height,r=t.width;i.height=a*n,i.width=r*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=a+"px",i.style.width=r+"px")}},ot.fontString=function(t,e,n){return e+" "+t+"px "+n},ot.longestText=function(t,e,n,i){var a=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(a=i.data={},r=i.garbageCollect=[],i.font=e),t.font=e;var o,s,l,u,d,c=0,h=n.length;for(o=0;o<h;o++)if(null!=(u=n[o])&&!0!==ot.isArray(u))c=ot.measureText(t,a,r,c,u);else if(ot.isArray(u))for(s=0,l=u.length;s<l;s++)null==(d=u[s])||ot.isArray(d)||(c=ot.measureText(t,a,r,c,d));var f=r.length/2;if(f>n.length){for(o=0;o<f;o++)delete a[r[o]];r.splice(0,f)}return c},ot.measureText=function(t,e,n,i,a){var r=e[a];return r||(r=e[a]=t.measureText(a).width,n.push(a)),r>i&&(i=r),i},ot.numberOfLabelLines=function(t){var e=1;return ot.each(t,(function(t){ot.isArray(t)&&t.length>e&&(e=t.length)})),e},ot.color=L?function(t){return t instanceof CanvasGradient&&(t=J.global.defaultColor),L(t)}:function(t){return console.error("Color.js not found!"),t},ot.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:ot.color(t).saturate(.5).darken(.1).rgbString()}};function qn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Zn(t){this.options=t||{}}ot.extend(Zn.prototype,{formats:qn,parse:qn,format:qn,add:qn,diff:qn,startOf:qn,endOf:qn,_create:function(t){return t}}),Zn.override=function(t){ot.extend(Zn.prototype,t)};var Xn={_date:Zn},Kn={formatters:{values:function(t){return ot.isArray(t)?t:""+t},linear:function(t,e,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var a=ot.log10(Math.abs(i)),r="";if(0!==t)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=ot.log10(Math.abs(t)),s=Math.floor(o)-Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toExponential(s)}else{var l=-1*Math.floor(a);l=Math.max(Math.min(l,20),0),r=t.toFixed(l)}else r="0";return r},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(ot.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===e||e===n.length-1?t.toExponential():""}}},Jn=ot.isArray,Qn=ot.isNullOrUndef,ti=ot.valueOrDefault,ei=ot.valueAtIndexOrDefault;function ni(t,e){for(var n=[],i=t.length/e,a=0,r=t.length;a<r;a+=i)n.push(t[Math.floor(a)]);return n}function ii(t,e,n){var i,a=t.getTicks().length,r=Math.min(e,a-1),o=t.getPixelForTick(r),s=t._startPixel,l=t._endPixel,u=1e-6;if(!(n&&(i=1===a?Math.max(o-s,l-o):0===e?(t.getPixelForTick(1)-o)/2:(o-t.getPixelForTick(r-1))/2,(o+=r<e?i:-i)<s-u||o>l+u)))return o}function ai(t,e){ot.each(t,(function(t){var n,i=t.gc,a=i.length/2;if(a>e){for(n=0;n<a;++n)delete t.data[i[n]];i.splice(0,a)}}))}function ri(t,e,n,i){var a,r,o,s,l,u,d,c,h,f,g,m,p,v=n.length,b=[],y=[],x=[],_=0,w=0;for(a=0;a<v;++a){if(s=n[a].label,l=n[a].major?e.major:e.minor,t.font=u=l.string,d=i[u]=i[u]||{data:{},gc:[]},c=l.lineHeight,h=f=0,Qn(s)||Jn(s)){if(Jn(s))for(r=0,o=s.length;r<o;++r)g=s[r],Qn(g)||Jn(g)||(h=ot.measureText(t,d.data,d.gc,h,g),f+=c)}else h=ot.measureText(t,d.data,d.gc,h,s),f=c;b.push(h),y.push(f),x.push(c/2),_=Math.max(h,_),w=Math.max(f,w)}function k(t){return{width:b[t]||0,height:y[t]||0,offset:x[t]||0}}return ai(i,v),m=b.indexOf(_),p=y.indexOf(w),{first:k(0),last:k(v-1),widest:k(m),highest:k(p)}}function oi(t){return t.drawTicks?t.tickMarkLength:0}function si(t){var e,n;return t.display?(e=ot.options._parseFont(t),n=ot.options.toPadding(t.padding),e.lineHeight+n.height):0}function li(t,e){return ot.extend(ot.options._parseFont({fontFamily:ti(e.fontFamily,t.fontFamily),fontSize:ti(e.fontSize,t.fontSize),fontStyle:ti(e.fontStyle,t.fontStyle),lineHeight:ti(e.lineHeight,t.lineHeight)}),{color:ot.options.resolve([e.fontColor,t.fontColor,J.global.defaultFontColor])})}function ui(t){var e=li(t,t.minor);return{minor:e,major:t.major.enabled?li(t,t.major):e}}function di(t){var e,n,i,a=[];for(n=0,i=t.length;n<i;++n)void 0!==(e=t[n])._index&&a.push(e);return a}function ci(t){var e,n,i=t.length;if(i<2)return!1;for(n=t[0],e=1;e<i;++e)if(t[e]-t[e-1]!==n)return!1;return n}function hi(t,e,n,i){var a,r,o,s,l=ci(t),u=(e.length-1)/i;if(!l)return Math.max(u,1);for(o=0,s=(a=ot.math._factorize(l)).length-1;o<s;o++)if((r=a[o])>u)return r;return Math.max(u,1)}function fi(t){var e,n,i=[];for(e=0,n=t.length;e<n;e++)t[e].major&&i.push(e);return i}function gi(t,e,n){var i,a,r=0,o=e[0];for(n=Math.ceil(n),i=0;i<t.length;i++)a=t[i],i===o?(a._index=i,o=e[++r*n]):delete a.label}function mi(t,e,n,i){var a,r,o,s,l=ti(n,0),u=Math.min(ti(i,t.length),t.length),d=0;for(e=Math.ceil(e),i&&(e=(a=i-n)/Math.floor(a/e)),s=l;s<0;)d++,s=Math.round(l+d*e);for(r=Math.max(l,0);r<u;r++)o=t[r],r===s?(o._index=r,d++,s=Math.round(l+d*e)):delete o.label}J._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Kn.formatters.values,minor:{},major:{}}});var pi=gt.extend({zeroLineIndex:0,getPadding:function(){var t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){ot.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,r,o,s,l=this,u=l.options.ticks,d=u.sampleSize;if(l.beforeUpdate(),l.maxWidth=t,l.maxHeight=e,l.margins=ot.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(o=[],i=0,a=l.ticks.length;i<a;++i)o.push({value:l.ticks[i],major:!1});return l._ticks=o,s=d<o.length,r=l._convertTicksToLabels(s?ni(o,d):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=u.display&&(u.autoSkip||"auto"===u.source)?l._autoSkip(o):o,s&&(r=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=r,l.afterUpdate(),l.minSize},_configure:function(){var t,e,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(t=n.left,e=n.right):(t=n.top,e=n.bottom,i=!i),n._startPixel=t,n._endPixel=e,n._reversePixels=i,n._length=e-t},afterUpdate:function(){ot.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ot.callback(this.options.beforeSetDimensions,[this])},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},afterSetDimensions:function(){ot.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ot.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ot.noop,afterDataLimits:function(){ot.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ot.callback(this.options.beforeBuildTicks,[this])},buildTicks:ot.noop,afterBuildTicks:function(t){var e=this;return Jn(t)&&t.length?ot.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=ot.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){ot.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){ot.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ot.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t,e,n,i,a,r,o,s=this,l=s.options,u=l.ticks,d=s.getTicks().length,c=u.minRotation||0,h=u.maxRotation,f=c;!s._isVisible()||!u.display||c>=h||d<=1||!s.isHorizontal()?s.labelRotation=c:(e=(t=s._getLabelSizes()).widest.width,n=t.highest.height-t.highest.offset,i=Math.min(s.maxWidth,s.chart.width-e),e+6>(a=l.offset?s.maxWidth/d:i/(d-1))&&(a=i/(d-(l.offset?.5:1)),r=s.maxHeight-oi(l.gridLines)-u.padding-si(l.scaleLabel),o=Math.sqrt(e*e+n*n),f=ot.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/a,1)),Math.asin(Math.min(r/o,1))-Math.asin(n/o))),f=Math.max(c,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){ot.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ot.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,i=t.options,a=i.ticks,r=i.scaleLabel,o=i.gridLines,s=t._isVisible(),l="bottom"===i.position,u=t.isHorizontal();if(u?e.width=t.maxWidth:s&&(e.width=oi(o)+si(r)),u?s&&(e.height=oi(o)+si(r)):e.height=t.maxHeight,a.display&&s){var d=ui(a),c=t._getLabelSizes(),h=c.first,f=c.last,g=c.widest,m=c.highest,p=.4*d.minor.lineHeight,v=a.padding;if(u){var b=0!==t.labelRotation,y=ot.toRadians(t.labelRotation),x=Math.cos(y),_=Math.sin(y),w=_*g.width+x*(m.height-(b?m.offset:0))+(b?0:p);e.height=Math.min(t.maxHeight,e.height+w+v);var k,M,S=t.getPixelForTick(0)-t.left,D=t.right-t.getPixelForTick(t.getTicks().length-1);b?(k=l?x*h.width+_*h.offset:_*(h.height-h.offset),M=l?_*(f.height-f.offset):x*f.width+_*f.offset):(k=h.width/2,M=f.width/2),t.paddingLeft=Math.max((k-S)*t.width/(t.width-S),0)+3,t.paddingRight=Math.max((M-D)*t.width/(t.width-D),0)+3}else{var C=a.mirror?0:g.width+v+p;e.width=Math.min(t.maxWidth,e.width+C),t.paddingTop=h.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),u?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){ot.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(Qn(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,n,i,a=this;for(a.ticks=t.map((function(t){return t.value})),a.beforeTickToLabelConversion(),e=a.convertTicksToLabels(t)||a.ticks,a.afterTickToLabelConversion(),n=0,i=t.length;n<i;++n)t[n].label=e[n];return e},_getLabelSizes:function(){var t=this,e=t._labelSizes;return e||(t._labelSizes=e=ri(t.ctx,ui(t.options.ticks),t.getTicks(),t.longestTextCache),t.longestLabelWidth=e.widest.width),e},_parseValue:function(t){var e,n,i,a;return Jn(t)?(e=+this.getRightValue(t[0]),n=+this.getRightValue(t[1]),i=Math.min(e,n),a=Math.max(e,n)):(e=void 0,n=t=+this.getRightValue(t),i=t,a=t),{min:i,max:a,start:e,end:n}},_getScaleLabel:function(t){var e=this._parseValue(t);return void 0!==e.start?"["+e.start+", "+e.end+"]":+this.getRightValue(t)},getLabelForIndex:ot.noop,getPixelForValue:ot.noop,getValueForPixel:ot.noop,getPixelForTick:function(t){var e=this,n=e.options.offset,i=e._ticks.length,a=1/Math.max(i-(n?0:1),1);return t<0||t>i-1?null:e.getPixelForDecimal(t*a+(n?a/2:0))},getPixelForDecimal:function(t){var e=this;return e._reversePixels&&(t=1-t),e._startPixel+t*e._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,i,a,r=this,o=r.options.ticks,s=r._length,l=o.maxTicksLimit||s/r._tickSize()+1,u=o.major.enabled?fi(t):[],d=u.length,c=u[0],h=u[d-1];if(d>l)return gi(t,u,d/l),di(t);if(i=hi(u,t,s,l),d>0){for(e=0,n=d-1;e<n;e++)mi(t,i,u[e],u[e+1]);return a=d>1?(h-c)/(d-1):null,mi(t,i,ot.isNullOrUndef(a)?0:c-a,c),mi(t,i,h,ot.isNullOrUndef(a)?t.length:h+a),di(t)}return mi(t,i),di(t)},_tickSize:function(){var t=this,e=t.options.ticks,n=ot.toRadians(t.labelRotation),i=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),r=t._getLabelSizes(),o=e.autoSkipPadding||0,s=r?r.widest.width+o:0,l=r?r.highest.height+o:0;return t.isHorizontal()?l*i>s*a?s/i:l/a:l*a<s*i?l/i:s/a},_isVisible:function(){var t,e,n,i=this,a=i.chart,r=i.options.display;if("auto"!==r)return!!r;for(t=0,e=a.data.datasets.length;t<e;++t)if(a.isDatasetVisible(t)&&((n=a.getDatasetMeta(t)).xAxisID===i.id||n.yAxisID===i.id))return!0;return!1},_computeGridLineItems:function(t){var e,n,i,a,r,o,s,l,u,d,c,h,f,g,m,p,v,b=this,y=b.chart,x=b.options,_=x.gridLines,w=x.position,k=_.offsetGridLines,M=b.isHorizontal(),S=b._ticksToDraw,D=S.length+(k?1:0),C=oi(_),T=[],P=_.drawBorder?ei(_.lineWidth,0,0):0,O=P/2,A=ot._alignPixel,I=function(t){return A(y,t,P)};for("top"===w?(e=I(b.bottom),s=b.bottom-C,u=e-O,c=I(t.top)+O,f=t.bottom):"bottom"===w?(e=I(b.top),c=t.top,f=I(t.bottom)-O,s=e+O,u=b.top+C):"left"===w?(e=I(b.right),o=b.right-C,l=e-O,d=I(t.left)+O,h=t.right):(e=I(b.left),d=t.left,h=I(t.right)-O,o=e+O,l=b.left+C),n=0;n<D;++n)i=S[n]||{},Qn(i.label)&&n<S.length||(n===b.zeroLineIndex&&x.offset===k?(g=_.zeroLineWidth,m=_.zeroLineColor,p=_.zeroLineBorderDash||[],v=_.zeroLineBorderDashOffset||0):(g=ei(_.lineWidth,n,1),m=ei(_.color,n,"rgba(0,0,0,0.1)"),p=_.borderDash||[],v=_.borderDashOffset||0),void 0!==(a=ii(b,i._index||n,k))&&(r=A(y,a,g),M?o=l=d=h=r:s=u=c=f=r,T.push({tx1:o,ty1:s,tx2:l,ty2:u,x1:d,y1:c,x2:h,y2:f,width:g,color:m,borderDash:p,borderDashOffset:v})));return T.ticksLength=D,T.borderValue=e,T},_computeLabelItems:function(){var t,e,n,i,a,r,o,s,l,u,d,c,h=this,f=h.options,g=f.ticks,m=f.position,p=g.mirror,v=h.isHorizontal(),b=h._ticksToDraw,y=ui(g),x=g.padding,_=oi(f.gridLines),w=-ot.toRadians(h.labelRotation),k=[];for("top"===m?(r=h.bottom-_-x,o=w?"left":"center"):"bottom"===m?(r=h.top+_+x,o=w?"right":"center"):"left"===m?(a=h.right-(p?0:_)-x,o=p?"left":"right"):(a=h.left+(p?0:_)+x,o=p?"right":"left"),t=0,e=b.length;t<e;++t)i=(n=b[t]).label,Qn(i)||(s=h.getPixelForTick(n._index||t)+g.labelOffset,u=(l=n.major?y.major:y.minor).lineHeight,d=Jn(i)?i.length:1,v?(a=s,c="top"===m?((w?1:.5)-d)*u:(w?0:.5)*u):(r=s,c=(1-d)*u/2),k.push({x:a,y:r,rotation:w,label:i,font:l,textOffset:c,textAlign:o}));return k},_drawGrid:function(t){var e=this,n=e.options.gridLines;if(n.display){var i,a,r,o,s,l=e.ctx,u=e.chart,d=ot._alignPixel,c=n.drawBorder?ei(n.lineWidth,0,0):0,h=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));for(r=0,o=h.length;r<o;++r)i=(s=h[r]).width,a=s.color,i&&a&&(l.save(),l.lineWidth=i,l.strokeStyle=a,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(c){var f,g,m,p,v=c,b=ei(n.lineWidth,h.ticksLength-1,1),y=h.borderValue;e.isHorizontal()?(f=d(u,e.left,v)-v/2,g=d(u,e.right,b)+b/2,m=p=y):(m=d(u,e.top,v)-v/2,p=d(u,e.bottom,b)+b/2,f=g=y),l.lineWidth=c,l.strokeStyle=ei(n.color,0),l.beginPath(),l.moveTo(f,m),l.lineTo(g,p),l.stroke()}}},_drawLabels:function(){var t=this;if(t.options.ticks.display){var e,n,i,a,r,o,s,l,u=t.ctx,d=t._labelItems||(t._labelItems=t._computeLabelItems());for(e=0,i=d.length;e<i;++e){if(o=(r=d[e]).font,u.save(),u.translate(r.x,r.y),u.rotate(r.rotation),u.font=o.string,u.fillStyle=o.color,u.textBaseline="middle",u.textAlign=r.textAlign,s=r.label,l=r.textOffset,Jn(s))for(n=0,a=s.length;n<a;++n)u.fillText(""+s[n],0,l),l+=o.lineHeight;else u.fillText(s,0,l);u.restore()}}},_drawTitle:function(){var t=this,e=t.ctx,n=t.options,i=n.scaleLabel;if(i.display){var a,r,o=ti(i.fontColor,J.global.defaultFontColor),s=ot.options._parseFont(i),l=ot.options.toPadding(i.padding),u=s.lineHeight/2,d=n.position,c=0;if(t.isHorizontal())a=t.left+t.width/2,r="bottom"===d?t.bottom-u-l.bottom:t.top+u+l.top;else{var h="left"===d;a=h?t.left+u+l.top:t.right-u-l.top,r=t.top+t.height/2,c=h?-.5*Math.PI:.5*Math.PI}e.save(),e.translate(a,r),e.rotate(c),e.textAlign="center",e.textBaseline="middle",e.fillStyle=o,e.font=s.string,e.fillText(i.labelString,0,0),e.restore()}},draw:function(t){var e=this;e._isVisible()&&(e._drawGrid(t),e._drawTitle(),e._drawLabels())},_layers:function(){var t=this,e=t.options,n=e.ticks&&e.ticks.z||0,i=e.gridLines&&e.gridLines.z||0;return t._isVisible()&&n!==i&&t.draw===t._draw?[{z:i,draw:function(){t._drawGrid.apply(t,arguments),t._drawTitle.apply(t,arguments)}},{z:n,draw:function(){t._drawLabels.apply(t,arguments)}}]:[{z:n,draw:function(){t.draw.apply(t,arguments)}}]},_getMatchingVisibleMetas:function(t){var e=this,n=e.isHorizontal();return e.chart._getSortedVisibleDatasetMetas().filter((function(i){return(!t||i.type===t)&&(n?i.xAxisID===e.id:i.yAxisID===e.id)}))}});pi.prototype._draw=pi.prototype.draw;var vi=pi,bi=ot.isNullOrUndef,yi={position:"bottom"},xi=vi.extend({determineDataLimits:function(){var t,e=this,n=e._getLabels(),i=e.options.ticks,a=i.min,r=i.max,o=0,s=n.length-1;void 0!==a&&(t=n.indexOf(a))>=0&&(o=t),void 0!==r&&(t=n.indexOf(r))>=0&&(s=t),e.minIndex=o,e.maxIndex=s,e.min=n[o],e.max=n[s]},buildTicks:function(){var t=this,e=t._getLabels(),n=t.minIndex,i=t.maxIndex;t.ticks=0===n&&i===e.length-1?e:e.slice(n,i+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart;return i.getDatasetMeta(e).controller._getValueScaleId()===n.id?n.getRightValue(i.data.datasets[e].data[t]):n._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,n=t.ticks;vi.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),n&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(n.length-(e?0:1),1))},getPixelForValue:function(t,e,n){var i,a,r,o=this;return bi(e)||bi(n)||(t=o.chart.data.datasets[n].data[e]),bi(t)||(i=o.isHorizontal()?t.x:t.y),(void 0!==i||void 0!==t&&isNaN(e))&&(a=o._getLabels(),t=ot.valueOrDefault(i,t),e=-1!==(r=a.indexOf(t))?r:e,isNaN(e)&&(e=t)),o.getPixelForDecimal((e-o._startValue)/o._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=this,n=Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange);return Math.min(Math.max(n,0),e.ticks.length-1)},getBasePixel:function(){return this.bottom}}),_i=yi;xi._defaults=_i;var wi=ot.noop,ki=ot.isNullOrUndef;function Mi(t,e){var n,i,a,r,o=[],s=1e-14,l=t.stepSize,u=l||1,d=t.maxTicks-1,c=t.min,h=t.max,f=t.precision,g=e.min,m=e.max,p=ot.niceNum((m-g)/d/u)*u;if(p<s&&ki(c)&&ki(h))return[g,m];(r=Math.ceil(m/p)-Math.floor(g/p))>d&&(p=ot.niceNum(r*p/d/u)*u),l||ki(f)?n=Math.pow(10,ot._decimalPlaces(p)):(n=Math.pow(10,f),p=Math.ceil(p*n)/n),i=Math.floor(g/p)*p,a=Math.ceil(m/p)*p,l&&(!ki(c)&&ot.almostWhole(c/p,p/1e3)&&(i=c),!ki(h)&&ot.almostWhole(h/p,p/1e3)&&(a=h)),r=(a-i)/p,r=ot.almostEquals(r,Math.round(r),p/1e3)?Math.round(r):Math.ceil(r),i=Math.round(i*n)/n,a=Math.round(a*n)/n,o.push(ki(c)?i:c);for(var v=1;v<r;++v)o.push(Math.round((i+v*p)*n)/n);return o.push(ki(h)?a:h),o}var Si=vi.extend({getRightValue:function(t){return"string"==typeof t?+t:vi.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=ot.sign(t.min),i=ot.sign(t.max);n<0&&i<0?t.max=0:n>0&&i>0&&(t.min=0)}var a=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),a!==r&&t.min>=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this,n=e.options.ticks,i=n.stepSize,a=n.maxTicksLimit;return i?t=Math.ceil(e.max/i)-Math.floor(e.min/i)+1:(t=e._computeTickLimit(),a=a||11),a&&(t=Math.min(a,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:wi,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:ot.valueOrDefault(e.fixedStepSize,e.stepSize)},a=t.ticks=Mi(i,t);t.handleDirectionalChanges(),t.max=ot.max(a),t.min=ot.min(a),e.reverse?(a.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),vi.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,n=e.getTicks(),i=e.min,a=e.max;vi.prototype._configure.call(e),e.options.offset&&n.length&&(i-=t=(a-i)/Math.max(n.length-1,1)/2,a+=t),e._startValue=i,e._endValue=a,e._valueRange=a-i}}),Di={position:"left",ticks:{callback:Kn.formatters.linear}},Ci=0,Ti=1;function Pi(t,e,n){var i=[n.type,void 0===e&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===t[i]&&(t[i]={pos:[],neg:[]}),t[i]}function Oi(t,e,n,i){var a,r,o=t.options,s=Pi(e,o.stacked,n),l=s.pos,u=s.neg,d=i.length;for(a=0;a<d;++a)r=t._parseValue(i[a]),isNaN(r.min)||isNaN(r.max)||n.data[a].hidden||(l[a]=l[a]||0,u[a]=u[a]||0,o.relativePoints?l[a]=100:r.min<0||r.max<0?u[a]+=r.min:l[a]+=r.max)}function Ai(t,e,n){var i,a,r=n.length;for(i=0;i<r;++i)a=t._parseValue(n[i]),isNaN(a.min)||isNaN(a.max)||e.data[i].hidden||(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}var Ii=Si.extend({determineDataLimits:function(){var t,e,n,i,a=this,r=a.options,o=a.chart.data.datasets,s=a._getMatchingVisibleMetas(),l=r.stacked,u={},d=s.length;if(a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,void 0===l)for(t=0;!l&&t<d;++t)l=void 0!==(e=s[t]).stack;for(t=0;t<d;++t)n=o[(e=s[t]).index].data,l?Oi(a,u,e,n):Ai(a,e,n);ot.each(u,(function(t){i=t.pos.concat(t.neg),a.min=Math.min(a.min,ot.min(i)),a.max=Math.max(a.max,ot.max(i))})),a.min=ot.isFinite(a.min)&&!isNaN(a.min)?a.min:Ci,a.max=ot.isFinite(a.max)&&!isNaN(a.max)?a.max:Ti,a.handleTickRangeOptions()},_computeTickLimit:function(){var t,e=this;return e.isHorizontal()?Math.ceil(e.width/40):(t=ot.options._parseFont(e.options.ticks),Math.ceil(e.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this;return e.getPixelForDecimal((+e.getRightValue(t)-e._startValue)/e._valueRange)},getValueForPixel:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange},getPixelForTick:function(t){var e=this.ticksAsNumbers;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])}}),Fi=Di;Ii._defaults=Fi;var Ni=ot.valueOrDefault,Ri=ot.math.log10;function Li(t,e){var n,i,a=[],r=Ni(t.min,Math.pow(10,Math.floor(Ri(e.min)))),o=Math.floor(Ri(e.max)),s=Math.ceil(e.max/Math.pow(10,o));0===r?(n=Math.floor(Ri(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(r),r=i*Math.pow(10,n)):(n=Math.floor(Ri(r)),i=Math.floor(r/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(r),10==++i&&(i=1,l=++n>=0?1:l),r=Math.round(i*Math.pow(10,n)*l)/l}while(n<o||n===o&&i<s);var u=Ni(t.max,r);return a.push(u),a}var Yi={position:"left",ticks:{callback:Kn.formatters.logarithmic}};function Wi(t,e){return ot.isFinite(t)&&t>=0?t:e}var Ei=vi.extend({determineDataLimits:function(){var t,e,n,i,a,r,o=this,s=o.options,l=o.chart,u=l.data.datasets,d=o.isHorizontal();function c(t){return d?t.xAxisID===o.id:t.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(t=0;t<u.length;t++)if(e=l.getDatasetMeta(t),l.isDatasetVisible(t)&&c(e)&&void 0!==e.stack){h=!0;break}if(s.stacked||h){var f={};for(t=0;t<u.length;t++){var g=[(e=l.getDatasetMeta(t)).type,void 0===s.stacked&&void 0===e.stack?t:"",e.stack].join(".");if(l.isDatasetVisible(t)&&c(e))for(void 0===f[g]&&(f[g]=[]),a=0,r=(i=u[t].data).length;a<r;a++){var m=f[g];n=o._parseValue(i[a]),isNaN(n.min)||isNaN(n.max)||e.data[a].hidden||n.min<0||n.max<0||(m[a]=m[a]||0,m[a]+=n.max)}}ot.each(f,(function(t){if(t.length>0){var e=ot.min(t),n=ot.max(t);o.min=Math.min(o.min,e),o.max=Math.max(o.max,n)}}))}else for(t=0;t<u.length;t++)if(e=l.getDatasetMeta(t),l.isDatasetVisible(t)&&c(e))for(a=0,r=(i=u[t].data).length;a<r;a++)n=o._parseValue(i[a]),isNaN(n.min)||isNaN(n.max)||e.data[a].hidden||n.min<0||n.max<0||(o.min=Math.min(n.min,o.min),o.max=Math.max(n.max,o.max),0!==n.min&&(o.minNotZero=Math.min(n.min,o.minNotZero)));o.min=ot.isFinite(o.min)?o.min:null,o.max=ot.isFinite(o.max)?o.max:null,o.minNotZero=ot.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=1,i=10;t.min=Wi(e.min,t.min),t.max=Wi(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(Ri(t.min))-1),t.max=Math.pow(10,Math.floor(Ri(t.max))+1)):(t.min=n,t.max=i)),null===t.min&&(t.min=Math.pow(10,Math.floor(Ri(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(Ri(t.min))+1):i),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(Ri(t.max))):t.minNotZero=n)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:Wi(e.min),max:Wi(e.max)},a=t.ticks=Li(i,t);t.max=ot.max(a),t.min=ot.min(a),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),vi.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(Ri(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;vi.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=Ni(t.options.ticks.fontSize,J.global.defaultFontSize)/t._length),t._startValue=Ri(e),t._valueOffset=n,t._valueRange=(Ri(t.max)-Ri(e))/(1-n)},getPixelForValue:function(t){var e=this,n=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(n=(Ri(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(n)},getValueForPixel:function(t){var e=this,n=e.getDecimalForPixel(t);return 0===n&&0===e.min?0:Math.pow(10,e._startValue+(n-e._valueOffset)*e._valueRange)}}),zi=Yi;Ei._defaults=zi;var Vi=ot.valueOrDefault,Hi=ot.valueAtIndexOrDefault,Bi=ot.options.resolve,ji={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Kn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Ui(t){var e=t.ticks;return e.display&&t.display?Vi(e.fontSize,J.global.defaultFontSize)+2*e.backdropPaddingY:0}function $i(t,e,n){return ot.isArray(n)?{w:ot.longestText(t,t.font,n),h:n.length*e}:{w:t.measureText(n).width,h:e}}function Gi(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||t>a?{start:e-n,end:e}:{start:e,end:e+n}}function qi(t){var e,n,i,a=ot.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=a.string,t._pointLabelSizes=[];var s=t.chart.data.labels.length;for(e=0;e<s;e++){i=t.getPointPosition(e,t.drawingArea+5),n=$i(t.ctx,a.lineHeight,t.pointLabels[e]),t._pointLabelSizes[e]=n;var l=t.getIndexAngle(e),u=ot.toDegrees(l)%360,d=Gi(u,i.x,n.w,0,180),c=Gi(u,i.y,n.h,90,270);d.start<r.l&&(r.l=d.start,o.l=l),d.end>r.r&&(r.r=d.end,o.r=l),c.start<r.t&&(r.t=c.start,o.t=l),c.end>r.b&&(r.b=c.end,o.b=l)}t.setReductions(t.drawingArea,r,o)}function Zi(t){return 0===t||180===t?"center":t<180?"left":"right"}function Xi(t,e,n,i){var a,r,o=n.y+i/2;if(ot.isArray(e))for(a=0,r=e.length;a<r;++a)t.fillText(e[a],n.x,o),o+=i;else t.fillText(e,n.x,o)}function Ki(t,e,n){90===t||270===t?n.y-=e.h/2:(t>270||t<90)&&(n.y-=e.h)}function Ji(t){var e=t.ctx,n=t.options,i=n.pointLabels,a=Ui(n),r=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),o=ot.options._parseFont(i);e.save(),e.font=o.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?a/2:0,u=t.getPointPosition(s,r+l+5),d=Hi(i.fontColor,s,J.global.defaultFontColor);e.fillStyle=d;var c=t.getIndexAngle(s),h=ot.toDegrees(c);e.textAlign=Zi(h),Ki(h,t._pointLabelSizes[s],u),Xi(e,t.pointLabels[s],u,o.lineHeight)}e.restore()}function Qi(t,e,n,i){var a,r=t.ctx,o=e.circular,s=t.chart.data.labels.length,l=Hi(e.color,i-1),u=Hi(e.lineWidth,i-1);if((o||s)&&l&&u){if(r.save(),r.strokeStyle=l,r.lineWidth=u,r.setLineDash&&(r.setLineDash(e.borderDash||[]),r.lineDashOffset=e.borderDashOffset||0),r.beginPath(),o)r.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{a=t.getPointPosition(0,n),r.moveTo(a.x,a.y);for(var d=1;d<s;d++)a=t.getPointPosition(d,n),r.lineTo(a.x,a.y)}r.closePath(),r.stroke(),r.restore()}}function ta(t){return ot.isNumber(t)?t:0}var ea=Si.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Ui(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;ot.each(e.data.datasets,(function(a,r){if(e.isDatasetVisible(r)){var o=e.getDatasetMeta(r);ot.each(a.data,(function(e,a){var r=+t.getRightValue(e);isNaN(r)||o.data[a].hidden||(n=Math.min(r,n),i=Math.max(r,i))}))}})),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Ui(this.options))},convertTicksToLabels:function(){var t=this;Si.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map((function(){var e=ot.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""}))},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this,e=t.options;e.display&&e.pointLabels.display?qi(t):t.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var i=this,a=e.l/Math.sin(n.l),r=Math.max(e.r-i.width,0)/Math.sin(n.r),o=-e.t/Math.cos(n.t),s=-Math.max(e.b-(i.height-i.paddingTop),0)/Math.cos(n.b);a=ta(a),r=ta(r),o=ta(o),s=ta(s),i.drawingArea=Math.min(Math.floor(t-(a+r)/2),Math.floor(t-(o+s)/2)),i.setCenterPoint(a,r,o,s)},setCenterPoint:function(t,e,n,i){var a=this,r=a.width-e-a.drawingArea,o=t+a.drawingArea,s=n+a.drawingArea,l=a.height-a.paddingTop-i-a.drawingArea;a.xCenter=Math.floor((o+r)/2+a.left),a.yCenter=Math.floor((s+l)/2+a.top+a.paddingTop)},getIndexAngle:function(t){var e=this.chart,n=(t*(360/e.data.labels.length)+((e.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(ot.isNullOrUndef(t))return NaN;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,i=n.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(i)*e+n.xCenter,y:Math.sin(i)*e+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this,n=e.min,i=e.max;return e.getPointPositionForValue(t||0,e.beginAtZero?0:n<0&&i<0?i:n>0&&i>0?n:0)},_drawGrid:function(){var t,e,n,i=this,a=i.ctx,r=i.options,o=r.gridLines,s=r.angleLines,l=Vi(s.lineWidth,o.lineWidth),u=Vi(s.color,o.color);if(r.pointLabels.display&&Ji(i),o.display&&ot.each(i.ticks,(function(t,n){0!==n&&(e=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),Qi(i,o,e,n))})),s.display&&l&&u){for(a.save(),a.lineWidth=l,a.strokeStyle=u,a.setLineDash&&(a.setLineDash(Bi([s.borderDash,o.borderDash,[]])),a.lineDashOffset=Bi([s.borderDashOffset,o.borderDashOffset,0])),t=i.chart.data.labels.length-1;t>=0;t--)e=i.getDistanceFromCenterForValue(r.ticks.reverse?i.min:i.max),n=i.getPointPosition(t,e),a.beginPath(),a.moveTo(i.xCenter,i.yCenter),a.lineTo(n.x,n.y),a.stroke();a.restore()}},_drawLabels:function(){var t=this,e=t.ctx,n=t.options.ticks;if(n.display){var i,a,r=t.getIndexAngle(0),o=ot.options._parseFont(n),s=Vi(n.fontColor,J.global.defaultFontColor);e.save(),e.font=o.string,e.translate(t.xCenter,t.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",ot.each(t.ticks,(function(r,l){(0!==l||n.reverse)&&(i=t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),n.showLabelBackdrop&&(a=e.measureText(r).width,e.fillStyle=n.backdropColor,e.fillRect(-a/2-n.backdropPaddingX,-i-o.size/2-n.backdropPaddingY,a+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),e.fillStyle=s,e.fillText(r,0,-i))})),e.restore()}},_drawTitle:ot.noop}),na=ji;ea._defaults=na;var ia=ot._deprecated,aa=ot.options.resolve,ra=ot.valueOrDefault,oa=Number.MIN_SAFE_INTEGER||-9007199254740991,sa=Number.MAX_SAFE_INTEGER||9007199254740991,la={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ua=Object.keys(la);function da(t,e){return t-e}function ca(t){var e,n,i,a={},r=[];for(e=0,n=t.length;e<n;++e)a[i=t[e]]||(a[i]=!0,r.push(i));return r}function ha(t){return ot.valueOrDefault(t.time.min,t.ticks.min)}function fa(t){return ot.valueOrDefault(t.time.max,t.ticks.max)}function ga(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var a,r,o,s,l,u=[],d=[e];for(a=0,r=t.length;a<r;++a)(s=t[a])>e&&s<n&&d.push(s);for(d.push(n),a=0,r=d.length;a<r;++a)l=d[a+1],o=d[a-1],s=d[a],void 0!==o&&void 0!==l&&Math.round((l+o)/2)===s||u.push({time:s,pos:a/(r-1)});return u}function ma(t,e,n){for(var i,a,r,o=0,s=t.length-1;o>=0&&o<=s;){if(a=t[(i=o+s>>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]<n)o=i+1;else{if(!(a[e]>n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}function pa(t,e,n,i){var a=ma(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],o=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=o[e]-r[e],l=s?(n-r[e])/s:0,u=(o[i]-r[i])*l;return r[i]+u}function va(t,e){var n=t._adapter,i=t.options.time,a=i.parser,r=a||i.format,o=e;return"function"==typeof a&&(o=a(o)),ot.isFinite(o)||(o="string"==typeof r?n.parse(o,r):n.parse(o)),null!==o?+o:(a||"function"!=typeof r||(o=r(e),ot.isFinite(o)||(o=n.parse(o))),o)}function ba(t,e){if(ot.isNullOrUndef(e))return null;var n=t.options.time,i=va(t,t.getRightValue(e));return null===i||n.round&&(i=+t._adapter.startOf(i,n.round)),i}function ya(t,e,n,i){var a,r,o,s=ua.length;for(a=ua.indexOf(t);a<s-1;++a)if(o=(r=la[ua[a]]).steps?r.steps:sa,r.common&&Math.ceil((n-e)/(o*r.size))<=i)return ua[a];return ua[s-1]}function xa(t,e,n,i,a){var r,o;for(r=ua.length-1;r>=ua.indexOf(n);r--)if(o=ua[r],la[o].common&&t._adapter.diff(a,i,o)>=e-1)return o;return ua[n?ua.indexOf(n):0]}function _a(t){for(var e=ua.indexOf(t)+1,n=ua.length;e<n;++e)if(la[ua[e]].common)return ua[e]}function wa(t,e,n,i){var a,r=t._adapter,o=t.options,s=o.time,l=s.unit||ya(s.minUnit,e,n,i),u=aa([s.stepSize,s.unitStepSize,1]),d="week"===l&&s.isoWeekday,c=e,h=[];if(d&&(c=+r.startOf(c,"isoWeek",d)),c=+r.startOf(c,d?"day":l),r.diff(n,e,l)>1e5*u)throw e+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(a=c;a<n;a=+r.add(a,u,l))h.push(a);return a!==n&&"ticks"!==o.bounds||h.push(a),h}function ka(t,e,n,i,a){var r,o,s=0,l=0;return a.offset&&e.length&&(r=pa(t,"time",e[0],"pos"),s=1===e.length?1-r:(pa(t,"time",e[1],"pos")-r)/2,o=pa(t,"time",e[e.length-1],"pos"),l=1===e.length?o:(o-pa(t,"time",e[e.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}function Ma(t,e,n,i){var a,r,o=t._adapter,s=+o.startOf(e[0].value,i),l=e[e.length-1].value;for(a=s;a<=l;a=+o.add(a,1,i))(r=n[a])>=0&&(e[r].major=!0);return e}function Sa(t,e,n){var i,a,r=[],o={},s=e.length;for(i=0;i<s;++i)o[a=e[i]]=i,r.push({value:a,major:!1});return 0!==s&&n?Ma(t,r,o,n):r}var Da={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Ca=vi.extend({initialize:function(){this.mergeTicksOptions(),vi.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,n=e.time||(e.time={}),i=t._adapter=new Xn._date(e.adapters.date);return ia("time scale",n.format,"time.format","time.parser"),ia("time scale",n.min,"time.min","ticks.min"),ia("time scale",n.max,"time.max","ticks.max"),ot.mergeIf(n.displayFormats,i.formats()),vi.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),vi.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,n,i,a,r,o,s=this,l=s.chart,u=s._adapter,d=s.options,c=d.time.unit||"day",h=sa,f=oa,g=[],m=[],p=[],v=s._getLabels();for(t=0,n=v.length;t<n;++t)p.push(ba(s,v[t]));for(t=0,n=(l.data.datasets||[]).length;t<n;++t)if(l.isDatasetVisible(t))if(a=l.data.datasets[t].data,ot.isObject(a[0]))for(m[t]=[],e=0,i=a.length;e<i;++e)r=ba(s,a[e]),g.push(r),m[t][e]=r;else m[t]=p.slice(0),o||(g=g.concat(p),o=!0);else m[t]=[];p.length&&(h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),g.length&&(g=n>1?ca(g).sort(da):g.sort(da),h=Math.min(h,g[0]),f=Math.max(f,g[g.length-1])),h=ba(s,ha(d))||h,f=ba(s,fa(d))||f,h=h===sa?+u.startOf(Date.now(),c):h,f=f===oa?+u.endOf(Date.now(),c)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:g,datasets:m,labels:p}},buildTicks:function(){var t,e,n,i=this,a=i.min,r=i.max,o=i.options,s=o.ticks,l=o.time,u=i._timestamps,d=[],c=i.getLabelCapacity(a),h=s.source,f=o.distribution;for(u="data"===h||"auto"===h&&"series"===f?u.data:"labels"===h?u.labels:wa(i,a,r,c),"ticks"===o.bounds&&u.length&&(a=u[0],r=u[u.length-1]),a=ba(i,ha(o))||a,r=ba(i,fa(o))||r,t=0,e=u.length;t<e;++t)(n=u[t])>=a&&n<=r&&d.push(n);return i.min=a,i.max=r,i._unit=l.unit||(s.autoSkip?ya(l.minUnit,i.min,i.max,c):xa(i,d.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?_a(i._unit):void 0,i._table=ga(i._timestamps.data,a,r,f),i._offsets=ka(i._table,d,a,r,o),s.reverse&&d.reverse(),Sa(i,d,i._majorUnit)},getLabelForIndex:function(t,e){var n=this,i=n._adapter,a=n.chart.data,r=n.options.time,o=a.labels&&t<a.labels.length?a.labels[t]:"",s=a.datasets[e].data[t];return ot.isObject(s)&&(o=n.getRightValue(s)),r.tooltipFormat?i.format(va(n,o),r.tooltipFormat):"string"==typeof o?o:i.format(va(n,o),r.displayFormats.datetime)},tickFormatFunction:function(t,e,n,i){var a=this,r=a._adapter,o=a.options,s=o.time.displayFormats,l=s[a._unit],u=a._majorUnit,d=s[u],c=n[e],h=o.ticks,f=u&&d&&c&&c.major,g=r.format(t,i||(f?d:l)),m=f?h.major:h.minor,p=aa([m.callback,m.userCallback,h.callback,h.userCallback]);return p?p(g,e,n):g},convertTicksToLabels:function(t){var e,n,i=[];for(e=0,n=t.length;e<n;++e)i.push(this.tickFormatFunction(t[e].value,e,t));return i},getPixelForOffset:function(t){var e=this,n=e._offsets,i=pa(e._table,"time",t,"pos");return e.getPixelForDecimal((n.start+i)*n.factor)},getPixelForValue:function(t,e,n){var i=this,a=null;if(void 0!==e&&void 0!==n&&(a=i._timestamps.datasets[n][e]),null===a&&(a=ba(i,t)),null!==a)return i.getPixelForOffset(a)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._offsets,i=e.getDecimalForPixel(t)/n.factor-n.end,a=pa(e._table,"pos",i,"time");return e._adapter._create(a)},_getLabelSize:function(t){var e=this,n=e.options.ticks,i=e.ctx.measureText(t).width,a=ot.toRadians(e.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(a),o=Math.sin(a),s=ra(n.fontSize,J.global.defaultFontSize);return{w:i*r+s*o,h:i*o+s*r}},getLabelWidth:function(t){return this._getLabelSize(t).w},getLabelCapacity:function(t){var e=this,n=e.options.time,i=n.displayFormats,a=i[n.unit]||i.millisecond,r=e.tickFormatFunction(t,0,Sa(e,[t],e._majorUnit),a),o=e._getLabelSize(r),s=Math.floor(e.isHorizontal()?e.width/o.w:e.height/o.h);return e.options.offset&&s--,s>0?s:1}}),Ta=Da;Ca._defaults=Ta;var Pa={category:xi,linear:Ii,logarithmic:Ei,radialLinear:ea,time:Ca},Oa={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Xn._date.override("function"==typeof t?{_id:"moment",formats:function(){return Oa},parse:function(e,n){return"string"==typeof e&&"string"==typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,i){return t(e).add(n,i).valueOf()},diff:function(e,n,i){return t(e).diff(t(n),i)},startOf:function(e,n,i){return e=t(e),"isoWeek"===n?e.isoWeekday(i).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),J._set("global",{plugins:{filler:{propagate:!0}}});var Aa={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),a=i&&n.isDatasetVisible(e)&&i.dataset._children||[],r=a.length||0;return r?function(t,e){return e<r&&a[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,i=e?e.y:null;return ot.isArray(e)?function(t,n){return e[n]}:function(t){return{x:null===n?t.x:n,y:null===i?t.y:i}}}};function Ia(t,e,n){var i,a=t._model||{},r=a.fill;if(void 0===r&&(r=!!a.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(i=parseFloat(r,10),isFinite(i)&&Math.floor(i)===i)return"-"!==r[0]&&"+"!==r[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function Fa(t){var e,n=t.el._model||{},i=t.el._scale||{},a=t.fill,r=null;if(isFinite(a))return null;if("start"===a?r=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===a?r=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:i.getBasePixel&&(r=i.getBasePixel()),null!=r){if(void 0!==r.x&&void 0!==r.y)return r;if(ot.isFinite(r))return{x:(e=i.isHorizontal())?r:null,y:e?null:r}}return null}function Na(t){var e,n,i,a,r,o=t.el._scale,s=o.options,l=o.chart.data.labels.length,u=t.fill,d=[];if(!l)return null;for(e=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,i=o.getPointPositionForValue(0,e),a=0;a<l;++a)r="start"===u||"end"===u?o.getPointPositionForValue(a,"start"===u?e:n):o.getBasePosition(a),s.gridLines.circular&&(r.cx=i.x,r.cy=i.y,r.angle=o.getIndexAngle(a)-Math.PI/2),d.push(r);return d}function Ra(t){return(t.el._scale||{}).getPointPositionForValue?Na(t):Fa(t)}function La(t,e,n){var i,a=t[e].fill,r=[e];if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}function Ya(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),Aa[n](t))}function Wa(t){return t&&!t.skip}function Ea(t,e,n,i,a){var r,o,s,l;if(i&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r<i;++r)ot.canvas.lineTo(t,e[r-1],e[r]);if(void 0===n[0].angle)for(t.lineTo(n[a-1].x,n[a-1].y),r=a-1;r>0;--r)ot.canvas.lineTo(t,n[r],n[r-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),r=a-1;r>0;--r)t.arc(o,s,l,n[r].angle,n[r-1].angle,!0)}}function za(t,e,n,i,a,r){var o,s,l,u,d,c,h,f,g=e.length,m=i.spanGaps,p=[],v=[],b=0,y=0;for(t.beginPath(),o=0,s=g;o<s;++o)d=n(u=e[l=o%g]._view,l,i),c=Wa(u),h=Wa(d),r&&void 0===f&&c&&(s=g+(f=o+1)),c&&h?(b=p.push(u),y=v.push(d)):b&&y&&(m?(c&&p.push(u),h&&v.push(d)):(Ea(t,p,v,b,y),b=y=0,p=[],v=[]));Ea(t,p,v,b,y),t.closePath(),t.fillStyle=a,t.fill()}var Va={id:"filler",afterDatasetsUpdate:function(t,e){var n,i,a,r,o=(t.data.datasets||[]).length,s=e.propagate,l=[];for(i=0;i<o;++i)r=null,(a=(n=t.getDatasetMeta(i)).dataset)&&a._model&&a instanceof $t.Line&&(r={visible:t.isDatasetVisible(i),fill:Ia(a,i,o),chart:t,el:a}),n.$filler=r,l.push(r);for(i=0;i<o;++i)(r=l[i])&&(r.fill=La(l,i,s),r.boundary=Ra(r),r.mapper=Ya(r))},beforeDatasetsDraw:function(t){var e,n,i,a,r,o,s,l=t._getSortedVisibleDatasetMetas(),u=t.ctx;for(n=l.length-1;n>=0;--n)(e=l[n].$filler)&&e.visible&&(a=(i=e.el)._view,r=i._children||[],o=e.mapper,s=a.backgroundColor||J.global.defaultColor,o&&s&&r.length&&(ot.canvas.clipArea(u,t.chartArea),za(u,r,o,a,s,i._loop),ot.canvas.unclipArea(u)))}},Ha=ot.rtl.getRtlAdapter,Ba=ot.noop,ja=ot.valueOrDefault;function Ua(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}J._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,a=i.getDatasetMeta(n);a.hidden=null===a.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.options.legend||{},i=n.labels&&n.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(n){var a=n.controller.getStyle(i?0:void 0);return{text:e[n.index].label,fillStyle:a.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(t){var e,n,i,a=document.createElement("ul"),r=t.data.datasets;for(a.setAttribute("class",t.id+"-legend"),e=0,n=r.length;e<n;e++)(i=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=r[e].backgroundColor,r[e].label&&i.appendChild(document.createTextNode(r[e].label));return a.outerHTML}});var $a=gt.extend({initialize:function(t){var e=this;ot.extend(e,t),e.legendHitBoxes=[],e._hoveredItem=null,e.doughnutMode=!1},beforeUpdate:Ba,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Ba,beforeSetDimensions:Ba,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:Ba,beforeBuildLabels:Ba,buildLabels:function(){var t=this,e=t.options.labels||{},n=ot.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:Ba,beforeFit:Ba,fit:function(){var t=this,e=t.options,n=e.labels,i=e.display,a=t.ctx,r=ot.options._parseFont(n),o=r.size,s=t.legendHitBoxes=[],l=t.minSize,u=t.isHorizontal();if(u?(l.width=t.maxWidth,l.height=i?10:0):(l.width=i?10:0,l.height=t.maxHeight),i){if(a.font=r.string,u){var d=t.lineWidths=[0],c=0;a.textAlign="left",a.textBaseline="middle",ot.each(t.legendItems,(function(t,e){var i=Ua(n,o)+o/2+a.measureText(t.text).width;(0===e||d[d.length-1]+i+2*n.padding>l.width)&&(c+=o+n.padding,d[d.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:i,height:o},d[d.length-1]+=i+n.padding})),l.height+=c}else{var h=n.padding,f=t.columnWidths=[],g=t.columnHeights=[],m=n.padding,p=0,v=0;ot.each(t.legendItems,(function(t,e){var i=Ua(n,o)+o/2+a.measureText(t.text).width;e>0&&v+o+2*h>l.height&&(m+=p+n.padding,f.push(p),g.push(v),p=0,v=0),p=Math.max(p,i),v+=o+h,s[e]={left:0,top:0,width:i,height:o}})),m+=p,f.push(p),g.push(v),l.width+=m}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:Ba,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,i=J.global,a=i.defaultColor,r=i.elements.line,o=t.height,s=t.columnHeights,l=t.width,u=t.lineWidths;if(e.display){var d,c=Ha(e.rtl,t.left,t.minSize.width),h=t.ctx,f=ja(n.fontColor,i.defaultFontColor),g=ot.options._parseFont(n),m=g.size;h.textAlign=c.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=g.string;var p=Ua(n,m),v=t.legendHitBoxes,b=function(t,e,i){if(!(isNaN(p)||p<=0)){h.save();var o=ja(i.lineWidth,r.borderWidth);if(h.fillStyle=ja(i.fillStyle,a),h.lineCap=ja(i.lineCap,r.borderCapStyle),h.lineDashOffset=ja(i.lineDashOffset,r.borderDashOffset),h.lineJoin=ja(i.lineJoin,r.borderJoinStyle),h.lineWidth=o,h.strokeStyle=ja(i.strokeStyle,a),h.setLineDash&&h.setLineDash(ja(i.lineDash,r.borderDash)),n&&n.usePointStyle){var s=p*Math.SQRT2/2,l=c.xPlus(t,p/2),u=e+m/2;ot.canvas.drawPoint(h,i.pointStyle,s,l,u,i.rotation)}else h.fillRect(c.leftForLtr(t,p),e,p,m),0!==o&&h.strokeRect(c.leftForLtr(t,p),e,p,m);h.restore()}},y=function(t,e,n,i){var a=m/2,r=c.xPlus(t,p+a),o=e+a;h.fillText(n.text,r,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(r,o),h.lineTo(c.xPlus(r,i),o),h.stroke())},x=function(t,i){switch(e.align){case"start":return n.padding;case"end":return t-i;default:return(t-i+n.padding)/2}},_=t.isHorizontal();d=_?{x:t.left+x(l,u[0]),y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+x(o,s[0]),line:0},ot.rtl.overrideTextDirection(t.ctx,e.textDirection);var w=m+n.padding;ot.each(t.legendItems,(function(e,i){var a=h.measureText(e.text).width,r=p+m/2+a,f=d.x,g=d.y;c.setWidth(t.minSize.width),_?i>0&&f+r+n.padding>t.left+t.minSize.width&&(g=d.y+=w,d.line++,f=d.x=t.left+x(l,u[d.line])):i>0&&g+w>t.top+t.minSize.height&&(f=d.x=f+t.columnWidths[d.line]+n.padding,d.line++,g=d.y=t.top+x(o,s[d.line]));var k=c.x(f);b(k,g,e),v[i].left=c.leftForLtr(k,v[i].width),v[i].top=g,y(k,g,e,a),_?d.x+=r+n.padding:d.y+=w})),ot.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var n,i,a,r=this;if(t>=r.left&&t<=r.right&&e>=r.top&&e<=r.bottom)for(a=r.legendHitBoxes,n=0;n<a.length;++n)if(t>=(i=a[n]).left&&t<=i.left+i.width&&e>=i.top&&e<=i.top+i.height)return r.legendItems[n];return null},handleEvent:function(t){var e,n=this,i=n.options,a="mouseup"===t.type?"click":t.type;if("mousemove"===a){if(!i.onHover&&!i.onLeave)return}else{if("click"!==a)return;if(!i.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===a?e&&i.onClick&&i.onClick.call(n,t.native,e):(i.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),i.onHover&&e&&i.onHover.call(n,t.native,e))}});function Ga(t,e){var n=new $a({ctx:t.ctx,options:e,chart:t});je.configure(t,n,e),je.addBox(t,n),t.legend=n}var qa={id:"legend",_element:$a,beforeInit:function(t){var e=t.options.legend;e&&Ga(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(ot.mergeIf(e,J.global.legend),n?(je.configure(t,n,e),n.options=e):Ga(t,e)):n&&(je.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},Za=ot.noop;J._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Xa=gt.extend({initialize:function(t){var e=this;ot.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:Za,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Za,beforeSetDimensions:Za,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:Za,beforeBuildLabels:Za,buildLabels:Za,afterBuildLabels:Za,beforeFit:Za,fit:function(){var t,e=this,n=e.options,i=e.minSize={},a=e.isHorizontal();n.display?(t=(ot.isArray(n.text)?n.text.length:1)*ot.options._parseFont(n).lineHeight+2*n.padding,e.width=i.width=a?e.maxWidth:t,e.height=i.height=a?t:e.maxHeight):e.width=i.width=e.height=i.height=0},afterFit:Za,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var i,a,r,o=ot.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,u=0,d=t.top,c=t.left,h=t.bottom,f=t.right;e.fillStyle=ot.valueOrDefault(n.fontColor,J.global.defaultFontColor),e.font=o.string,t.isHorizontal()?(a=c+(f-c)/2,r=d+l,i=f-c):(a="left"===n.position?c+l:f-l,r=d+(h-d)/2,i=h-d,u=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(a,r),e.rotate(u),e.textAlign="center",e.textBaseline="middle";var g=n.text;if(ot.isArray(g))for(var m=0,p=0;p<g.length;++p)e.fillText(g[p],0,m,i),m+=s;else e.fillText(g,0,0,i);e.restore()}}});function Ka(t,e){var n=new Xa({ctx:t.ctx,options:e,chart:t});je.configure(t,n,e),je.addBox(t,n),t.titleBlock=n}var Ja={},Qa=Va,tr=qa,er={id:"title",_element:Xa,beforeInit:function(t){var e=t.options.title;e&&Ka(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(ot.mergeIf(e,J.global.title),n?(je.configure(t,n,e),n.options=e):Ka(t,e)):n&&(je.removeBox(t,n),delete t.titleBlock)}};for(var nr in Ja.filler=Qa,Ja.legend=tr,Ja.title=er,$n.helpers=ot,Gn(),$n._adapters=Xn,$n.Animation=pt,$n.animationService=vt,$n.controllers=Me,$n.DatasetController=kt,$n.defaults=J,$n.Element=gt,$n.elements=$t,$n.Interaction=Ae,$n.layouts=je,$n.platform=yn,$n.plugins=xn,$n.Scale=vi,$n.scaleService=_n,$n.Ticks=Kn,$n.Tooltip=Ln,$n.helpers.each(Pa,(function(t,e){$n.scaleService.registerScaleType(e,t,t._defaults)})),Ja)Ja.hasOwnProperty(nr)&&$n.plugins.register(Ja[nr]);$n.platform.initialize();var ir=$n;return"undefined"!=typeof window&&(window.Chart=$n),$n.Chart=$n,$n.Legend=Ja.legend._element,$n.Title=Ja.title._element,$n.pluginService=$n.plugins,$n.PluginBase=$n.Element.extend({}),$n.canvasHelpers=$n.helpers.canvas,$n.layoutService=$n.layouts,$n.LinearScaleBase=Si,$n.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(t){$n[t]=function(e,n){return new $n(e,$n.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}})),ir}(function(){try{return rt}catch(t){}}())}));
|
|
/*!
|
|
* Chart.js v2.9.4
|
|
* https://www.chartjs.org
|
|
* (c) 2020 Chart.js Contributors
|
|
* Released under the MIT License
|
|
*/function st(t){let e,n=[t[1]],l={};for(let t=0;t<n.length;t+=1)l=P(l,n[t]);return{c(){e=i("canvas"),this.h()},l(t){e=a(t,"CANVAS",{}),r(e).forEach(o),this.h()},h(){O(e,l)},m(n,i){s(n,e,i),t[6](e)},p(t,[i]){O(e,l=A(n,[t[1]]))},i:w,o:w,d(n){n&&o(e),t[6](null)}}}function lt(t,e,n){let i,{data:a={labels:[],datasets:[{values:[]}],yMarkers:{},yRegions:[]}}=e,{type:r="line"}=e,{options:o={}}=e,{plugins:s={}}=e,l=null,u=function(t,e){let n=["children","$$scope","$$slots"].concat(e);const i={};for(const e of Object.keys(t))n.includes(e)||(i[e]=t[e]);return i}(e,["data","type","options","plugins"]);return h((()=>{l=new ot(i,{type:r,data:a,options:o,plugins:s})})),I((()=>{l.data=a,l.type=r,l.options=o,l.plugins=s,l.update()})),F((()=>{l=null})),t.$$set=t=>{n(8,e=P(P({},e),N(t))),"data"in t&&n(2,a=t.data),"type"in t&&n(3,r=t.type),"options"in t&&n(4,o=t.options),"plugins"in t&&n(5,s=t.plugins)},e=N(e),[i,u,a,r,o,s,function(t){R[t?"unshift":"push"]((()=>{i=t,n(0,i)}))}]}class ut extends t{constructor(t){super(),e(this,t,lt,st,n,{data:2,type:3,options:4,plugins:5})}}function dt(t){let e,n;const i=[t[0],{type:"line"}];let a={};for(let t=0;t<i.length;t+=1)a=P(a,i[t]);return e=new ut({props:a}),{c(){k(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,i){S(e,t,i),n=!0},p(t,[n]){const a=1&n?A(i,[L(t[0]),i[1]]):{};e.$set(a)},i(t){n||(c(e.$$.fragment,t),n=!0)},o(t){u(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function ct(t,e,n){return t.$$set=t=>{n(0,e=P(P({},e),N(t)))},[e=N(e)]}class ht extends t{constructor(t){super(),e(this,t,ct,dt,n,{})}}function ft(t){let e,n,l,d,h,b=f.i18n.sevelDayResponseTime+"";return d=new ht({props:{data:{labels:t[1],datasets:[{label:f.i18n.responseTimeMs,backgroundColor:"#89e0cf",borderColor:"#1abc9c",data:t[2]}]},width:t[3],height:400,options:{responsive:!0,maintainAspectRatio:!0,scales:{xAxes:[{display:!1,gridLines:{display:!1}}]}}}}),{c(){e=i("h2"),n=g(b),l=m(),k(d.$$.fragment)},l(t){e=a(t,"H2",{});var i=r(e);n=p(i,b),i.forEach(o),l=v(t),M(d.$$.fragment,t)},m(t,i){s(t,e,i),x(e,n),s(t,l,i),S(d,t,i),h=!0},p(t,e){const n={};6&e&&(n.data={labels:t[1],datasets:[{label:f.i18n.responseTimeMs,backgroundColor:"#89e0cf",borderColor:"#1abc9c",data:t[2]}]}),8&e&&(n.width=t[3]),d.$set(n)},i(t){h||(c(d.$$.fragment,t),h=!0)},o(t){u(d.$$.fragment,t),h=!1},d(t){t&&o(e),t&&o(l),D(d,t)}}}function gt(t){let e,n;return e=new z({}),{c(){k(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,i){S(e,t,i),n=!0},p:w,i(t){n||(c(e.$$.fragment,t),n=!0)},o(t){u(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function mt(t){let e,n,h,f,g;const m=[gt,ft],p=[];function v(t,e){return t[0]?0:t[2].length?1:-1}return~(n=v(t))&&(h=p[n]=m[n](t)),{c(){e=i("section"),h&&h.c(),this.h()},l(t){e=a(t,"SECTION",{});var n=r(e);h&&h.l(n),n.forEach(o),this.h()},h(){Y((()=>t[5].call(e)))},m(i,a){s(i,e,a),~n&&p[n].m(e,null),f=W(e,t[5].bind(e)),g=!0},p(t,[i]){let a=n;n=v(t),n===a?~n&&p[n].p(t,i):(h&&(l(),u(p[a],1,1,(()=>{p[a]=null})),d()),~n?(h=p[n],h?h.p(t,i):(h=p[n]=m[n](t),h.c()),c(h,1),h.m(e,null)):h=null)},i(t){g||(c(h),g=!0)},o(t){u(h),g=!1},d(t){t&&o(e),~n&&p[n].d(),f()}}}function pt(t,e,n){let{slug:i}=e,a=!0;const r=V(),o=f.owner,s=f.repo;let l=[],u=[],d=[],c=800;return h((async()=>{try{l=(await H(`commits-${o}-${s}-${i}`,(()=>r.repos.listCommits({owner:o,repo:s,path:`history/${i}.yml`,per_page:28})))).data.reverse()}catch(t){E(t)}l=l.map(((t,e)=>(t.showHeading=0===e||new Date(l[e-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t))),n(2,d=l.filter((t=>t.commit.message.includes("ms) [skip ci]"))).map((t=>parseInt(t.commit.message.split(" in ")[1].split("ms")[0])))),n(1,u=l.filter((t=>t.commit.message.includes("ms) [skip ci]"))).map((t=>new Date(t.commit.committer.date).toLocaleString()))),n(0,a=!1)})),t.$$set=t=>{"slug"in t&&n(4,i=t.slug)},[a,u,d,c,i,function(){c=this.clientWidth,n(3,c)}]}class vt extends t{constructor(t){super(),e(this,t,pt,mt,n,{slug:4})}}function bt(t){let e,n,i,a,r,l;return e=new X({props:{slug:t[0]}}),i=new vt({props:{slug:t[0]}}),r=new at({props:{slug:t[0]}}),{c(){k(e.$$.fragment),n=m(),k(i.$$.fragment),a=m(),k(r.$$.fragment)},l(t){M(e.$$.fragment,t),n=v(t),M(i.$$.fragment,t),a=v(t),M(r.$$.fragment,t)},m(t,o){S(e,t,o),s(t,n,o),S(i,t,o),s(t,a,o),S(r,t,o),l=!0},p(t,[n]){const a={};1&n&&(a.slug=t[0]),e.$set(a);const o={};1&n&&(o.slug=t[0]),i.$set(o);const s={};1&n&&(s.slug=t[0]),r.$set(s)},i(t){l||(c(e.$$.fragment,t),c(i.$$.fragment,t),c(r.$$.fragment,t),l=!0)},o(t){u(e.$$.fragment,t),u(i.$$.fragment,t),u(r.$$.fragment,t),l=!1},d(t){D(e,t),t&&o(n),D(i,t),t&&o(a),D(r,t)}}}async function yt(t){const{number:e}=t.params;return{slug:e}}function xt(t,e,n){let{slug:i}=e;return t.$$set=t=>{"slug"in t&&n(0,i=t.slug)},[i]}export default class extends t{constructor(t){super(),e(this,t,xt,bt,n,{slug:0})}}export{yt as preload};
|