!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).chart=t()}}(function(){return function o(r,s,l){function u(i,t){if(!s[i]){if(!r[i]){var e="function"==typeof require&&require;if(!t&&e)return e(i,!0);if(d)return d(i,!0);var n=new error("cannot find module '"+i+"'");throw n.code="module_not_found",n}var a=s[i]={exports:{}};r[i][0].call(a.exports,function(t){var e=r[i][1][t];return u(e||t)},a,a.exports,o,r,s,l)}return s[i].exports}for(var d="function"==typeof require&&require,t=0;t');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var o=0;o'),a[o]&&e.push(a[o]),e.push("");return e.push(""),e.join("")},legend:{labels:{generatelabels:function(l){var u=l.data;return u.labels.length&&u.datasets.length?u.labels.map(function(t,e){var i=l.getdatasetmeta(0),n=u.datasets[0],a=i.data[e],o=a&&a.custom||{},r=a.valueatindexordefault,s=l.options.elements.arc;return{text:t,fillstyle:o.backgroundcolor?o.backgroundcolor:r(n.backgroundcolor,e,s.backgroundcolor),strokestyle:o.bordercolor?o.bordercolor:r(n.bordercolor,e,s.bordercolor),linewidth:o.borderwidth?o.borderwidth:r(n.borderwidth,e,s.borderwidth),hidden:isnan(n.data[e])||i.data[e].hidden,index:e}}):[]}},onclick:function(t,e){var i,n,a,o=e.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;i=math.pi?-1:f<-math.pi?1:0))+h,p=math.cos(f),m=math.sin(f),v=math.cos(g),b=math.sin(g),x=f<=0&&0<=g||f<=2*math.pi&&2*math.pi<=g,y=f<=.5*math.pi&&.5*math.pi<=g||f<=2.5*math.pi&&2.5*math.pi<=g,k=f<=-math.pi&&-math.pi<=g||f<=math.pi&&math.pi<=g,w=f<=.5*-math.pi&&.5*-math.pi<=g||f<=1.5*math.pi&&1.5*math.pi<=g,m=c/100,s=k?-1:math.min(p*(p<0?1:m),v*(v<0?1:m)),c=w?-1:math.min(m*(m<0?1:m),b*(b<0?1:m)),_=x?1:math.max(p*(0');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var o=0;o'),a[o]&&e.push(a[o]),e.push("");return e.push(""),e.join("")},legend:{labels:{generatelabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var i=s.getdatasetmeta(0),n=l.datasets[0],a=i.data[e].custom||{},o=k.valueatindexordefault,r=s.options.elements.arc;return{text:t,fillstyle:a.backgroundcolor?a.backgroundcolor:o(n.backgroundcolor,e,r.backgroundcolor),strokestyle:a.bordercolor?a.bordercolor:o(n.bordercolor,e,r.bordercolor),linewidth:a.borderwidth?a.borderwidth:o(n.borderwidth,e,r.borderwidth),hidden:isnan(n.data[e])||i.data[e].hidden,index:e}}):[]}},onclick:function(t,e){var i,n,a,o=e.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;i=e.numsteps?(o.callback(e.onanimationcomplete,[e],i),i.animating=!1,n.splice(a,1)):++a}},object.defineproperty(t.animation.prototype,"animationobject",{get:function(){return this}}),object.defineproperty(t.animation.prototype,"chartinstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,i){"use strict";var d=t(25),c=t(45),a=t(28),h=t(48);e.exports=function(u){var l=u.plugins;function s(t){return"top"===t||"bottom"===t}u.types={},u.instances={},u.controllers={},c.extend(u.prototype,{construct:function(t,e){var i,n,a=this;(n=(i=(i=e)||{}).data=i.data||{}).datasets=n.datasets||[],n.labels=n.labels||[],i.options=c.configmerge(d.global,d[i.type],i.options||{}),e=i;var o=h.acquirecontext(t,e),r=o&&o.canvas,s=r&&r.height,l=r&&r.width;a.id=c.uid(),a.ctx=o,a.canvas=r,a.config=e,a.width=l,a.height=s,a.aspectratio=s?l/s:null,a.options=e.options,a._bufferedrender=!1,(a.chart=a).controller=a,u.instances[a.id]=a,object.defineproperty(a,"data",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),o&&r&&(a.initialize(),a.update())},initialize:function(){var t=this;return l.notify(t,"beforeinit"),c.retinascale(t,t.options.devicepixelratio),t.bindevents(),t.options.responsive&&t.resize(!0),t.ensurescaleshaveids(),t.buildscales(),t.inittooltip(),l.notify(t,"afterinit"),t},clear:function(){return c.canvas.clear(this),this},stop:function(){return u.animationservice.cancelanimation(this),this},resize:function(t){var e=this,i=e.options,n=e.canvas,a=i.maintainaspectratio&&e.aspectratio||null,o=math.max(0,math.floor(c.getmaximumwidth(n))),r=math.max(0,math.floor(a?o/a:c.getmaximumheight(n)));if((e.width!==o||e.height!==r)&&(n.width=e.width=o,n.height=e.height=r,n.style.width=o+"px",n.style.height=r+"px",c.retinascale(e,i.devicepixelratio),!t)){var s={width:o,height:r};l.notify(e,"resize",[s]),e.options.onresize&&e.options.onresize(e,s),e.stop(),e.update(e.options.responsiveanimationduration)}},ensurescaleshaveids:function(){var t=this.options,e=t.scales||{},i=t.scale;c.each(e.xaxes,function(t,e){t.id=t.id||"x-axis-"+e}),c.each(e.yaxes,function(t,e){t.id=t.id||"y-axis-"+e}),i&&(i.id=i.id||"scale")},buildscales:function(){var o=this,t=o.options,r=o.scales={},e=[];t.scales&&(e=e.concat((t.scales.xaxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yaxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radiallinear",isdefault:!0,dposition:"chartarea"}),c.each(e,function(t){var e=t.options,i=c.valueordefault(e.type,t.dtype),n=u.scaleservice.getscaleconstructor(i);if(n){s(e.position)!==s(t.dposition)&&(e.position=t.dposition);var a=new n({id:e.id,options:e,ctx:o.ctx,chart:o});(r[a.id]=a).mergeticksoptions(),t.isdefault&&(o.scale=a)}}),u.scaleservice.addscalestolayout(this)},buildorupdatecontrollers:function(){var o=this,r=[],s=[];return c.each(o.data.datasets,function(t,e){var i=o.getdatasetmeta(e),n=t.type||o.config.type;if(i.type&&i.type!==n&&(o.destroydatasetmeta(e),i=o.getdatasetmeta(e)),i.type=n,r.push(i.type),i.controller)i.controller.updateindex(e);else{var a=u.controllers[i.type];if(void 0===a)throw new error('"'+i.type+'" is not a chart type.');i.controller=new a(o,e),s.push(i.controller)}},o),s},resetelements:function(){var i=this;c.each(i.data.datasets,function(t,e){i.getdatasetmeta(e).controller.reset()},i)},reset:function(){this.resetelements(),this.tooltip.initialize()},update:function(t){var e,i,n=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),(i=(e=n).options).scale?e.scale.options=i.scale:i.scales&&i.scales.xaxes.concat(i.scales.yaxes).foreach(function(t){e.scales[t.id].options=t}),e.tooltip._options=i.tooltips,!1!==l.notify(n,"beforeupdate")){n.tooltip._data=n.data;var a=n.buildorupdatecontrollers();c.each(n.data.datasets,function(t,e){n.getdatasetmeta(e).controller.buildorupdateelements()},n),n.updatelayout(),c.each(a,function(t){t.reset()}),n.updatedatasets(),n.tooltip.initialize(),n.lastactive=[],l.notify(n,"afterupdate"),n._bufferedrender?n._bufferedrequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:n.render(t)}},updatelayout:function(){!1!==l.notify(this,"beforelayout")&&(u.layoutservice.update(this,this.width,this.height),l.notify(this,"afterscaleupdate"),l.notify(this,"afterlayout"))},updatedatasets:function(){if(!1!==l.notify(this,"beforedatasetsupdate")){for(var t=0,e=this.data.datasets.length;t=e[t].length&&e[t].push({}),!e[t][a].type||r.type&&r.type!==e[t][a].type?g.merge(e[t][a],[l.scaleservice.getscaledefaults(o),r]):g.merge(e[t][a],r)}else g._merger(t,e,i,n)}})},g.where=function(t,e){if(g.isarray(t)&&array.prototype.filter)return t.filter(e);var i=[];return g.each(t,function(t){e(t)&&i.push(t)}),i},g.findindex=array.prototype.findindex?function(t,e,i){return t.findindex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,a=t.length;n=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},g.previousitem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},g.nicenum=function(t,e){var i=math.floor(g.log10(t)),n=t/math.pow(10,i);return(e?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*math.pow(10,i)},g.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)},g.getrelativeposition=function(t,e){var i,n,a=t.originalevent||t,o=t.currenttarget||t.srcelement,r=o.getboundingclientrect(),s=a.touches;s&&0i.length){for(var l=0;le&&(e=t.length)}),e},g.color=n?function(t){return t instanceof canvasgradient&&(t=a.global.defaultcolor),n(t)}:function(t){return t},g.gethovercolor=function(t){return t instanceof canvaspattern?t:g.color(t).saturate(.5).darken(.1).rgbstring()}}},{25:25,3:3,45:45}],28:[function(t,e,i){"use strict";var n=t(45);function s(t,e){return t.native?{x:t.x,y:t.y}:n.getrelativeposition(t,e)}function l(t,e){var i,n,a,o,r;for(n=0,o=t.data.datasets.length;nt.maxheight){o--;break}o++,l=r*s}t.labelrotation=o},aftercalculatetickrotation:function(){e.callback(this.options.aftercalculatetickrotation,[this])},beforefit:function(){e.callback(this.options.beforefit,[this])},fit:function(){var t=this,e=t.minsize={width:0,height:0},i=s(t._ticks),n=t.options,a=n.ticks,o=n.scalelabel,r=n.gridlines,s=n.display,l=t.ishorizontal(),u=w(a),d=n.gridlines.tickmarklength;if(e.width=l?t.isfullwidth()?t.maxwidth-t.margins.left-t.margins.right:t.maxwidth:s&&r.drawticks?d:0,e.height=l?s&&r.drawticks?d:0:t.maxheight,o.display&&s){var c=m(o)+e.options.topadding(o.padding).height;l?e.height+=c:e.width+=c}if(a.display&&s){var h=e.longesttext(t.ctx,u.font,i,t.longesttextcache),f=e.numberoflabellines(i),g=.5*u.size,p=t.options.ticks.padding;if(l){t.longestlabelwidth=h;var m=e.toradians(t.labelrotation),v=math.cos(m),b=math.sin(m)*h+u.size*f+g*(f-1)+g;e.height=math.min(t.maxheight,e.height+b+p),t.ctx.font=u.font;var x=k(t.ctx,i[0],u.font),y=k(t.ctx,i[i.length-1],u.font);0!==t.labelrotation?(t.paddingleft="bottom"===n.position?v*x+3:v*g+3,t.paddingright="bottom"===n.position?v*g+3:v*y+3):(t.paddingleft=x/2+3,t.paddingright=y/2+3)}else a.mirror?h=0:h+=p+g,e.width=math.min(t.maxwidth,e.width+h),t.paddingtop=u.size/2,t.paddingbottom=u.size/2}t.handlemargins(),t.width=e.width,t.height=e.height},handlemargins:function(){var t=this;t.margins&&(t.paddingleft=math.max(t.paddingleft-t.margins.left,0),t.paddingtop=math.max(t.paddingtop-t.margins.top,0),t.paddingright=math.max(t.paddingright-t.margins.right,0),t.paddingbottom=math.max(t.paddingbottom-t.margins.bottom,0))},afterfit:function(){e.callback(this.options.afterfit,[this])},ishorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isfullwidth:function(){return this.options.fullwidth},getrightvalue:function(t){if(e.isnullorundef(t))return nan;if("number"==typeof t&&!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},getlabelforindex:e.noop,getpixelforvalue:e.noop,getvalueforpixel:e.noop,getpixelfortick:function(t){var e=this,i=e.options.offset;if(e.ishorizontal()){var n=(e.width-(e.paddingleft+e.paddingright))/math.max(e._ticks.length-(i?0:1),1),a=n*t+e.paddingleft;i&&(a+=n/2);var o=e.left+math.round(a);return o+=e.isfullwidth()?e.margins.left:0}var r=e.height-(e.paddingtop+e.paddingbottom);return e.top+t*(r/(e._ticks.length-1))},getpixelfordecimal:function(t){var e=this;if(e.ishorizontal()){var i=(e.width-(e.paddingleft+e.paddingright))*t+e.paddingleft,n=e.left+math.round(i);return n+=e.isfullwidth()?e.margins.left:0}return e.top+t*e.height},getbasepixel:function(){return this.getpixelforvalue(this.getbasevalue())},getbasevalue:function(){var t=this.min,e=this.max;return this.beginatzero?0:t<0&&e<0?e:0o.width-(o.paddingleft+o.paddingright)&&(e=1+math.floor((c+s.autoskippadding)*l/(o.width-(o.paddingleft+o.paddingright)))),a&&al.height-e.height&&(c="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===c?(i=function(t){return t<=h},n=function(t){return h=l.width-e.width/2}),a=function(t){return t+e.width>l.width},o=function(t){return t-e.width<0},r=function(t){return t<=f?"top":"bottom"},i(s.x)?(d="left",a(s.x)&&(d="center",c=r(s.y))):n(s.x)&&(d="right",o(s.x)&&(d="center",c=r(s.y)));var g=t._options;return{xalign:g.xalign?g.xalign:d,yalign:g.yalign?g.yalign:c}}(this,i=function(t,e){var i=t._chart.ctx,n=2*e.ypadding,a=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=e.beforebody.length+e.afterbody.length;var s=e.title.length,l=e.footer.length,u=e.titlefontsize,d=e.bodyfontsize,c=e.footerfontsize;n+=s*u,n+=s?(s-1)*e.titlespacing:0,n+=s?e.titlemarginbottom:0,n+=r*d,n+=r?(r-1)*e.bodyspacing:0,n+=l?e.footermargintop:0,n+=l*c,n+=l?(l-1)*e.footerspacing:0;var h=0,f=function(t){a=math.max(a,i.measuretext(t).width+h)};return i.font=l.fontstring(u,e._titlefontstyle,e._titlefontfamily),l.each(e.title,f),i.font=l.fontstring(d,e._bodyfontstyle,e._bodyfontfamily),l.each(e.beforebody.concat(e.afterbody),f),h=e.displaycolors?d+2:0,l.each(o,function(t){l.each(t.before,f),l.each(t.lines,f),l.each(t.after,f)}),h=0,i.font=l.fontstring(c,e._footerfontstyle,e._footerfontfamily),l.each(e.footer,f),{width:a+=2*e.xpadding,height:n}}(this,m)),a=i,o=_,r=(n=m).x,s=n.y,l=n.caretsize,u=n.caretpadding,d=n.cornerradius,c=o.xalign,h=o.yalign,f=l+u,g=d+u,"right"===c?r-=a.width:"center"===c&&(r-=a.width/2),"top"===h?s+=f:s-="bottom"===h?a.height+f:a.height/2,"center"===h?"left"===c?r+=f:"right"===c&&(r-=f):"left"===c?r-=g:"right"===c&&(r+=g),d={x:r,y:s}}else m.opacity=0;return m.xalign=_.xalign,m.yalign=_.yalign,m.x=d.x,m.y=d.y,m.width=i.width,m.height=i.height,m.caretx=p.x,m.carety=p.y,y._model=m,t&&k.custom&&k.custom.call(y,m),y},drawcaret:function(t,e){var i=this._chart.ctx,n=this._view,a=this.getcaretposition(t,e,n);i.lineto(a.x1,a.y1),i.lineto(a.x2,a.y2),i.lineto(a.x3,a.y3)},getcaretposition:function(t,e,i){var n,a,o,r,s,l,u=i.caretsize,d=i.cornerradius,c=i.xalign,h=i.yalign,f=t.x,g=t.y,p=e.width,m=e.height;if("center"===h)s=g+m/2,"left"===c?(a=(n=f)-u,o=n,r=s+u,l=s-u):(a=(n=f+p)+u,o=n,r=s-u,l=s+u);else if(n="left"===c?(a=f+d+u)-u:"right"===c?(a=f+p-d-u)-u:(a=f+p/2)-u,o=a+u,"top"===h)s=(r=g)-u,l=r;else{s=(r=g+m)+u,l=r;var v=o;o=n,n=v}return{x1:n,x2:a,x3:o,y1:r,y2:s,y3:l}},drawtitle:function(t,e,i,n){var a=e.title;if(a.length){i.textalign=e._titlealign,i.textbaseline="top";var o,r,s=e.titlefontsize,l=e.titlespacing;for(i.fillstyle=h(e.titlefontcolor,n),i.font=l.fontstring(s,e._titlefontstyle,e._titlefontfamily),o=0,r=a.length;o=i.innerradius&&o<=i.outerradius;return l&&u}return!1},getcenterpoint:function(){var t=this._view,e=(t.startangle+t.endangle)/2,i=(t.innerradius+t.outerradius)/2;return{x:t.x+math.cos(e)*i,y:t.y+math.sin(e)*i}},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,i=(t.outerradius-t.innerradius)/2+t.innerradius;return{x:t.x+math.cos(e)*i,y:t.y+math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startangle,n=e.endangle;t.beginpath(),t.arc(e.x,e.y,e.outerradius,i,n),t.arc(e.x,e.y,e.innerradius,n,i,!0),t.closepath(),t.strokestyle=e.bordercolor,t.linewidth=e.borderwidth,t.fillstyle=e.backgroundcolor,t.fill(),t.linejoin="bevel",e.borderwidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,i){"use strict";var n=t(25),a=t(26),d=t(45),c=n.global;n._set("global",{elements:{line:{tension:.4,backgroundcolor:c.defaultcolor,borderwidth:3,bordercolor:c.defaultcolor,bordercapstyle:"butt",borderdash:[],borderdashoffset:0,borderjoinstyle:"miter",capbezierpoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,i,n,a=this._view,o=this._chart.ctx,r=a.spangaps,s=this._children.slice(),l=c.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.linecap=a.bordercapstyle||l.bordercapstyle,o.setlinedash&&o.setlinedash(a.borderdash||l.borderdash),o.linedashoffset=a.borderdashoffset||l.borderdashoffset,o.linejoin=a.borderjoinstyle||l.borderjoinstyle,o.linewidth=a.borderwidth||l.borderwidth,o.strokestyle=a.bordercolor||c.defaultcolor,o.beginpath(),u=-1,t=0;t=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}return i},inlabelrange:function(t,e){if(!this._view)return!1;var i=o(this);return l(this)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inxrange:function(t){var e=o(this);return t>=e.left&&t<=e.right},inyrange:function(t){var e=o(this);return t>=e.top&&t<=e.bottom},getcenterpoint:function(){var t,e,i=this._view;return l(this)?(t=i.x,e=(i.y+i.base)/2):(t=(i.x+i.base)/2,e=i.y),{x:t,y:e}},getarea:function(){var t=this._view;return t.width*math.abs(t.y-t.base)},tooltipposition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,i){"use strict";e.exports={},e.exports.arc=t(36),e.exports.line=t(37),e.exports.point=t(38),e.exports.rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,i){"use strict";var n=t(42);i=e.exports={clear:function(t){t.ctx.clearrect(0,0,t.width,t.height)},roundedrect:function(t,e,i,n,a,o){if(o){var r=math.min(o,n/2),s=math.min(o,a/2);t.moveto(e+r,i),t.lineto(e+n-r,i),t.quadraticcurveto(e+n,i,e+n,i+s),t.lineto(e+n,i+a-s),t.quadraticcurveto(e+n,i+a,e+n-r,i+a),t.lineto(e+r,i+a),t.quadraticcurveto(e,i+a,e,i+a-s),t.lineto(e,i+s),t.quadraticcurveto(e,i,e+r,i)}else t.rect(e,i,n,a)},drawpoint:function(t,e,i,n,a){var o,r,s,l,u,d;if(!e||"object"!=typeof e||"[object htmlimageelement]"!==(o=e.tostring())&&"[object htmlcanvaselement]"!==o){if(!(isnan(i)||i<=0)){switch(e){default:t.beginpath(),t.arc(n,a,i,0,2*math.pi),t.closepath(),t.fill();break;case"triangle":t.beginpath(),u=(r=3*i/math.sqrt(3))*math.sqrt(3)/2,t.moveto(n-r/2,a+u/3),t.lineto(n+r/2,a+u/3),t.lineto(n,a-2*u/3),t.closepath(),t.fill();break;case"rect":d=1/math.sqrt2*i,t.beginpath(),t.fillrect(n-d,a-d,2*d,2*d),t.strokerect(n-d,a-d,2*d,2*d);break;case"rectrounded":var c=i/math.sqrt2,h=n-c,f=a-c,g=math.sqrt2*i;t.beginpath(),this.roundedrect(t,h,f,g,g,i/2),t.closepath(),t.fill();break;case"rectrot":d=1/math.sqrt2*i,t.beginpath(),t.moveto(n-d,a),t.lineto(n,a+d),t.lineto(n+d,a),t.lineto(n,a-d),t.closepath(),t.fill();break;case"cross":t.beginpath(),t.moveto(n,a+i),t.lineto(n,a-i),t.moveto(n-i,a),t.lineto(n+i,a),t.closepath();break;case"crossrot":t.beginpath(),s=math.cos(math.pi/4)*i,l=math.sin(math.pi/4)*i,t.moveto(n-s,a-l),t.lineto(n+s,a+l),t.moveto(n-s,a+l),t.lineto(n+s,a-l),t.closepath();break;case"star":t.beginpath(),t.moveto(n,a+i),t.lineto(n,a-i),t.moveto(n-i,a),t.lineto(n+i,a),s=math.cos(math.pi/4)*i,l=math.sin(math.pi/4)*i,t.moveto(n-s,a-l),t.lineto(n+s,a+l),t.moveto(n-s,a+l),t.lineto(n+s,a-l),t.closepath();break;case"line":t.beginpath(),t.moveto(n-i,a),t.lineto(n+i,a),t.closepath();break;case"dash":t.beginpath(),t.moveto(n,a),t.lineto(n+i,a),t.closepath()}t.stroke()}}else t.drawimage(e,n-e.width/2,a-e.height/2,e.width,e.height)},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,i,n){if(i.steppedline)return"after"===i.steppedline&&!n||"after"!==i.steppedline&&n?t.lineto(e.x,i.y):t.lineto(i.x,e.y),void t.lineto(i.x,i.y);i.tension?t.beziercurveto(n?e.controlpointpreviousx:e.controlpointnextx,n?e.controlpointpreviousy:e.controlpointnexty,n?i.controlpointnextx:i.controlpointpreviousx,n?i.controlpointnexty:i.controlpointpreviousy,i.x,i.y):t.lineto(i.x,i.y)}};n.clear=i.clear,n.drawroundedrectangle=function(t){t.beginpath(),i.roundedrect.apply(i,arguments),t.closepath()}},{42:42}],42:[function(t,e,i){"use strict";var n,d={noop:function(){},uid:(n=0,function(){return n++}),isnullorundef:function(t){return null==t},isarray:array.isarray?array.isarray:function(t){return"[object array]"===object.prototype.tostring.call(t)},isobject:function(t){return null!==t&&"[object object]"===object.prototype.tostring.call(t)},valueordefault:function(t,e){return void 0===t?e:t},valueatindexordefault:function(t,e,i){return d.valueordefault(d.isarray(t)?t[e]:t,i)},callback:function(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)},each:function(t,e,i,n){var a,o,r;if(d.isarray(t))if(o=t.length,n)for(a=o-1;0<=a;a--)e.call(i,t[a],a);else for(a=0;a
';var a=e.childnodes[0],o=e.childnodes[1];e._reset=function(){a.scrollleft=1e6,a.scrolltop=1e6,o.scrollleft=1e6,o.scrolltop=1e6};var r=function(){e._reset(),t()};return x(a,"scroll",r.bind(a,"expand")),x(o,"scroll",r.bind(o,"shrink")),e}((o=!(n=function(){if(c.resizer)return t(y("resize",i))}),r=[],function(){r=array.prototype.slice.call(arguments),a=a||this,o||(o=!0,f.requestanimframe.call(window,function(){o=!1,n.apply(a,r)}))}));l=function(){if(c.resizer){var t=e.parentnode;t&&t!==h.parentnode&&t.insertbefore(h,t.firstchild),h._reset()}},u=(s=e)[g]||(s[g]={}),d=u.renderproxy=function(t){t.animationname===v&&l()},f.each(b,function(t){x(s,t,d)}),u.reflow=!!s.offsetparent,s.classlist.add(m)}function o(t){var e,i,n,a=t[g]||{},o=a.resizer;delete a.resizer,i=(e=t)[g]||{},(n=i.renderproxy)&&(f.each(b,function(t){r(e,t,n)}),delete i.renderproxy),e.classlist.remove(m),o&&o.parentnode&&o.parentnode.removechild(o)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,i,n="from{opacity:0.99}to{opacity:1}";e="@-webkit-keyframes "+v+"{"+n+"}@keyframes "+v+"{"+n+"}."+m+"{-webkit-animation:"+v+" 0.001s;animation:"+v+" 0.001s;}",i=(t=this)._style||document.createelement("style"),t._style||(e="/* chart.js */\n"+e,(t._style=i).setattribute("type","text/css"),document.getelementsbytagname("head")[0].appendchild(i)),i.appendchild(document.createtextnode(e))},acquirecontext:function(t,e){"string"==typeof t?t=document.getelementbyid(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var i=t&&t.getcontext&&t.getcontext("2d");return i&&i.canvas===t?(function(t,e){var i=t.style,n=t.getattribute("height"),a=t.getattribute("width");if(t[g]={initial:{height:n,width:a,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null===a||""===a){var o=l(t,"width");void 0!==o&&(t.width=o)}if(null===n||""===n)if(""===t.style.height)t.height=t.width/(e.options.aspectratio||2);else{var r=l(t,"height");void 0!==o&&(t.height=r)}}(t,e),i):null},releasecontext:function(t){var i=t.canvas;if(i[g]){var n=i[g].initial;["height","width"].foreach(function(t){var e=n[t];f.isnullorundef(e)?i.removeattribute(t):i.setattribute(t,e)}),f.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[g]}},addeventlistener:function(o,t,r){var e=o.canvas;if("resize"!==t){var i=r[g]||(r[g]={});x(e,t,(i.proxies||(i.proxies={}))[o.id+"_"+t]=function(t){var e,i,n,a;r((i=o,n=s[(e=t).type]||e.type,a=f.getrelativeposition(e,i),y(n,i,a.x,a.y,e)))})}else a(e,r,o)},removeeventlistener:function(t,e,i){var n=t.canvas;if("resize"!==e){var a=((i[g]||{}).proxies||{})[t.id+"_"+e];a&&r(n,e,a)}else o(n)}},f.addevent=x,f.removeevent=r},{45:45}],48:[function(t,e,i){"use strict";var n=t(45),a=t(46),o=t(47),r=o._enabled?o:a;e.exports=n.extend({initialize:function(){},acquirecontext:function(){},releasecontext:function(){},addeventlistener:function(){},removeeventlistener:function(){}},r)},{45:45,46:46,47:47}],49:[function(t,e,i){"use strict";var u=t(25),m=t(40),d=t(45);u._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){var h={dataset:function(t){var e=t.fill,i=t.chart,n=i.getdatasetmeta(e),a=n&&i.isdatasetvisible(e)&&n.dataset._children||[],o=a.length||0;return o?function(t,e){return e');for(var i=0;i'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(n){var a=n.layoutservice,t=i.noop;function _(t,e){return t.usepointstyle?e*math.sqrt2:t.boxwidth}function o(t,e){var i=new n.legend({ctx:t.ctx,options:e,chart:t});a.configure(t,i,e),a.addbox(t,i),t.legend=i}return n.legend=r.extend({initialize:function(t){i.extend(this,t),this.legendhitboxes=[],this.doughnutmode=!1},beforeupdate:t,update:function(t,e,i){var n=this;return n.beforeupdate(),n.maxwidth=t,n.maxheight=e,n.margins=i,n.beforesetdimensions(),n.setdimensions(),n.aftersetdimensions(),n.beforebuildlabels(),n.buildlabels(),n.afterbuildlabels(),n.beforefit(),n.fit(),n.afterfit(),n.afterupdate(),n.minsize},afterupdate:t,beforesetdimensions:t,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:t,beforebuildlabels:t,buildlabels:function(){var e=this,i=e.options.labels||{},t=i.callback(i.generatelabels,[e.chart],e)||[];i.filter&&(t=t.filter(function(t){return i.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legenditems=t},afterbuildlabels:t,beforefit:t,fit:function(){var n=this,t=n.options,a=t.labels,e=t.display,o=n.ctx,i=d.global,r=i.valueordefault,s=r(a.fontsize,i.defaultfontsize),l=r(a.fontstyle,i.defaultfontstyle),u=r(a.fontfamily,i.defaultfontfamily),d=i.fontstring(s,l,u),c=n.legendhitboxes=[],h=n.minsize,f=n.ishorizontal();if(f?(h.width=n.maxwidth,h.height=e?10:0):(h.width=e?10:0,h.height=n.maxheight),e)if(o.font=d,f){var g=n.linewidths=[0],p=n.legenditems.length?s+a.padding:0;o.textalign="left",o.textbaseline="top",i.each(n.legenditems,function(t,e){var i=_(a,s)+s/2+o.measuretext(t.text).width;g[g.length-1]+i+a.padding>=n.width&&(p+=s+a.padding,g[g.length]=n.left),c[e]={left:0,top:0,width:i,height:s},g[g.length-1]+=i+a.padding}),h.height+=p}else{var m=a.padding,v=n.columnwidths=[],b=a.padding,x=0,y=0,k=s+m;i.each(n.legenditems,function(t,e){var i=_(a,s)+s/2+o.measuretext(t.text).width;y+k>h.height&&(b+=x+a.padding,v.push(x),y=x=0),x=math.max(x,i),y+=k,c[e]={left:0,top:0,width:i,height:s}}),b+=x,v.push(x),h.width+=b}n.width=h.width,n.height=h.height},afterfit:t,ishorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c=this,h=c.options,f=h.labels,g=d.global,p=g.elements.line,m=c.width,v=c.linewidths;if(h.display){var b,x=c.ctx,y=i.valueordefault,t=y(f.fontcolor,g.defaultfontcolor),k=y(f.fontsize,g.defaultfontsize),e=y(f.fontstyle,g.defaultfontstyle),i=y(f.fontfamily,g.defaultfontfamily),n=i.fontstring(k,e,i);x.textalign="left",x.textbaseline="middle",x.linewidth=.5,x.strokestyle=t,x.fillstyle=t,x.font=n;var w=_(f,k),m=c.legendhitboxes,s=c.ishorizontal();b=s?{x:c.left+(m-v[0])/2,y:c.top+f.padding,line:0}:{x:c.left+f.padding,y:c.top+f.padding,line:0};var c=k+f.padding;i.each(c.legenditems,function(t,e){var i,n,a,o,r,s=x.measuretext(t.text).width,l=w+k/2+s,u=b.x,d=b.y;s?m<=u+l&&(d=b.y+=c,b.line++,u=b.x=c.left+(m-v[b.line])/2):d+c>c.bottom&&(u=b.x=u+c.columnwidths[b.line]+f.padding,d=b.y=c.top+f.padding,b.line++),function(t,e,i){if(!(isnan(w)||w<=0)){x.save(),x.fillstyle=y(i.fillstyle,g.defaultcolor),x.linecap=y(i.linecap,p.bordercapstyle),x.linedashoffset=y(i.linedashoffset,p.borderdashoffset),x.linejoin=y(i.linejoin,p.borderjoinstyle),x.linewidth=y(i.linewidth,p.borderwidth),x.strokestyle=y(i.strokestyle,g.defaultcolor);var n=0===y(i.linewidth,p.borderwidth);if(x.setlinedash&&x.setlinedash(y(i.linedash,p.borderdash)),h.labels&&h.labels.usepointstyle){var a=k*math.sqrt2/2,o=a/math.sqrt2,r=t+o,s=e+o;i.canvas.drawpoint(x,i.pointstyle,a,r,s)}else n||x.strokerect(t,e,w,k),x.fillrect(t,e,w,k);x.restore()}}(u,d,t),m[e].left=u,m[e].top=d,i=t,n=s,o=w+(a=k/2)+u,r=d+a,x.filltext(i.text,o,r),i.hidden&&(x.beginpath(),x.linewidth=2,x.moveto(o,r),x.lineto(o+n,r),x.stroke()),s?b.x+=l+f.padding:b.y+=c})}},handleevent:function(t){var e=this,i=e.options,n="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===n){if(!i.onhover)return}else{if("click"!==n)return;if(!i.onclick)return}var o=t.x,r=t.y;if(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendhitboxes,l=0;l=u.left&&o<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===n){i.onclick.call(e,t.native,e.legenditems[l]),a=!0;break}if("mousemove"===n){i.onhover.call(e,t.native,e.legenditems[l]),a=!0;break}}}return a}}),{id:"legend",beforeinit:function(t){var e=t.options.legend;e&&o(t,e)},beforeupdate:function(t){var e=t.options.legend,i=t.legend;e?(i.mergeif(e,d.global.legend),i?(a.configure(t,i,e),i.options=e):o(t,e)):i&&(a.removebox(t,i),delete t.legend)},afterevent:function(t,e){var i=t.legend;i&&i.handleevent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,i){"use strict";var w=t(25),r=t(26),m=t(45);w._set("global",{title:{display:!1,fontstyle:"bold",fullwidth:!0,lineheight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(n){var a=n.layoutservice,t=m.noop;function o(t,e){var i=new n.title({ctx:t.ctx,options:e,chart:t});a.configure(t,i,e),a.addbox(t,i),t.titleblock=i}return n.title=r.extend({initialize:function(t){m.extend(this,t),this.legendhitboxes=[]},beforeupdate:t,update:function(t,e,i){var n=this;return n.beforeupdate(),n.maxwidth=t,n.maxheight=e,n.margins=i,n.beforesetdimensions(),n.setdimensions(),n.aftersetdimensions(),n.beforebuildlabels(),n.buildlabels(),n.afterbuildlabels(),n.beforefit(),n.fit(),n.afterfit(),n.afterupdate(),n.minsize},afterupdate:t,beforesetdimensions:t,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:t,beforebuildlabels:t,buildlabels:t,afterbuildlabels:t,beforefit:t,fit:function(){var t=this,e=m.valueordefault,i=t.options,n=i.display,a=e(i.fontsize,w.global.defaultfontsize),o=t.minsize,r=m.isarray(i.text)?i.text.length:1,s=m.options.tolineheight(i.lineheight,a),l=n?r*s+2*i.padding:0;t.ishorizontal()?(o.width=t.maxwidth,o.height=l):(o.width=l,o.height=t.maxheight),t.width=o.width,t.height=o.height},afterfit:t,ishorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,i=m.valueordefault,n=t.options,a=w.global;if(n.display){var o,r,s,l=i(n.fontsize,a.defaultfontsize),u=i(n.fontstyle,a.defaultfontstyle),d=i(n.fontfamily,a.defaultfontfamily),c=m.fontstring(l,u,d),h=m.options.tolineheight(n.lineheight,l),f=h/2+n.padding,g=0,p=t.top,m=t.left,v=t.bottom,b=t.right;e.fillstyle=i(n.fontcolor,a.defaultfontcolor),e.font=c,t.ishorizontal()?(r=m+(b-m)/2,s=p+f,o=b-m):(r="left"===n.position?m+f:b-f,s=p+(v-p)/2,o=v-p,g=math.pi*("left"===n.position?-.5:.5)),e.save(),e.translate(r,s),e.rotate(g),e.textalign="center",e.textbaseline="middle";var x=n.text;if(m.isarray(x))for(var y=0,k=0;kr.max&&(r.max=i))})});r.min=isfinite(r.min)&&!isnan(r.min)?r.min:0,r.max=isfinite(r.max)&&!isnan(r.max)?r.max:1,this.handletickrangeoptions()},getticklimit:function(){var t,e=this.options.ticks;if(this.ishorizontal())t=math.min(e.maxtickslimit?e.maxtickslimit:11,math.ceil(this.width/50));else{var i=c.valueordefault(e.fontsize,n.global.defaultfontsize);t=math.min(e.maxtickslimit?e.maxtickslimit:11,math.ceil(this.height/(2*i)))}return t},handledirectionalchanges:function(){this.ishorizontal()||this.ticks.reverse()},getlabelforindex:function(t,e){return+this.getrightvalue(this.chart.data.datasets[e].data[t])},getpixelforvalue:function(t){var e,i=this,n=i.start,a=+i.getrightvalue(t),o=i.end-n;return e=i.ishorizontal()?i.left+i.width/o*(a-n):i.bottom-i.height/o*(a-n),math.round(e)},getvalueforpixel:function(t){var e=this,i=e.ishorizontal(),n=i?e.width:e.height,a=(i?t-e.left:e.bottom-t)/n;return e.start+(e.end-e.start)*a},getpixelfortick:function(t){return this.getpixelforvalue(this.ticksasnumbers[t])}});t.scaleservice.registerscaletype("linear",i,e)}},{25:25,34:34,45:45}],54:[function(t,e,i){"use strict";var r=t(45),o=t(34);e.exports=function(e){var t=r.noop;e.linearscalebase=e.scale.extend({getrightvalue:function(t){return"string"==typeof t?+t:e.scale.prototype.getrightvalue.call(this,t)},handletickrangeoptions:function(){var t=this,e=t.options.ticks;if(e.beginatzero){var i=r.sign(t.min),n=r.sign(t.max);i<0&&n<0?t.max=0:0=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginatzero||t.min--)},getticklimit:t,handledirectionalchanges:t,buildticks:function(){var t=this,e=t.options.ticks,i=t.getticklimit(),n={maxticks:i=math.max(2,i),min:e.min,max:e.max,stepsize:r.valueordefault(e.fixedstepsize,e.stepsize)},a=t.ticks=o.generators.linear(n,t);t.handledirectionalchanges(),t.max=r.max(a),t.min=r.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),e.scale.prototype.converttickstolabels.call(t)}})}},{34:34,45:45}],55:[function(t,e,i){"use strict";var c=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},i=t.scale.extend({determinedatalimits:function(){var r=this,s=r.options,t=s.ticks,l=r.chart,e=l.data.datasets,i=c.valueordefault,n=r.ishorizontal();function u(t){return n?t.xaxisid===r.id:t.yaxisid===r.id}r.min=null,r.max=null,r.minnotzero=null;var a=s.stacked;if(void 0===a&&c.each(e,function(t,e){if(!a){var i=l.getdatasetmeta(e);l.isdatasetvisible(e)&&u(i)&&void 0!==i.stack&&(a=!0)}}),s.stacked||a){var d={};c.each(e,function(t,e){var a=l.getdatasetmeta(e),o=[a.type,void 0===s.stacked&&void 0===a.stack?e:"",a.stack].join(".");l.isdatasetvisible(e)&&u(a)&&(void 0===d[o]&&(d[o]=[]),c.each(t.data,function(t,e){var i=d[o],n=+r.getrightvalue(t);isnan(n)||a.data[e].hidden||(i[e]=i[e]||0,s.relativepoints?i[e]=100:i[e]+=n)}))}),c.each(d,function(t){var e=c.min(t),i=c.max(t);r.min=null===r.min?e:math.min(r.min,e),r.max=null===r.max?i:math.max(r.max,i)})}else c.each(e,function(t,e){var n=l.getdatasetmeta(e);l.isdatasetvisible(e)&&u(n)&&c.each(t.data,function(t,e){var i=+r.getrightvalue(t);isnan(i)||n.data[e].hidden||(null===r.min?r.min=i:ir.max&&(r.max=i),0!==i&&(null===r.minnotzero||ir.r&&(r.r=g.end,s.r=h),p.startr.b&&(r.b=p.end,s.b=h)}t.setreductions(o,r,s)}(this):(t=this,e=math.min(t.height/2,t.width/2),t.drawingarea=math.round(e),t.setcenterpoint(0,0,0,0))},setreductions:function(t,e,i){var n=e.l/math.sin(i.l),a=math.max(e.r-this.width,0)/math.sin(i.r),o=-e.t/math.cos(i.t),r=-math.max(e.b-this.height,0)/math.cos(i.b);n=s(n),a=s(a),o=s(o),r=s(r),this.drawingarea=math.min(math.round(t-(n+a)/2),math.round(t-(o+r)/2)),this.setcenterpoint(n,a,o,r)},setcenterpoint:function(t,e,i,n){var a=this,o=a.width-e-a.drawingarea,r=t+a.drawingarea,s=i+a.drawingarea,l=a.height-n-a.drawingarea;a.xcenter=math.round((r+o)/2+a.left),a.ycenter=math.round((s+l)/2+a.top)},getindexangle:function(t){return t*(2*math.pi/x(this))+(this.chart.options&&this.chart.options.startangle?this.chart.options.startangle:0)*math.pi*2/360},getdistancefromcenterforvalue:function(t){var e=this;if(null===t)return 0;var i=e.drawingarea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*i:(t-e.min)*i},getpointposition:function(t,e){var i=this.getindexangle(t)-math.pi/2;return{x:math.round(math.cos(i)*e)+this.xcenter,y:math.round(math.sin(i)*e)+this.ycenter}},getpointpositionforvalue:function(t,e){return this.getpointposition(t,this.getdistancefromcenterforvalue(e))},getbaseposition:function(){var t=this.min,e=this.max;return this.getpointpositionforvalue(0,this.beginatzero?0:t<0&&e<0?e:0>1)-1]||null,o=t[n],!a)return{lo:null,hi:o};if(o[e]i))return{lo:a,hi:o};s=n-1}}return{lo:o,hi:null}}(t,e,i),o=a.lo?a.hi?a.lo:t[t.length-2]:t[0],r=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=r[e]-o[e],l=s?(i-o[e])/s:0,u=(r[n]-o[n])*l;return o[n]+u}function s(t,e){var i=e.parser,n=e.parser||e.format;return"function"==typeof i?i(t):"string"==typeof t&&"string"==typeof n?x(t,n):(t instanceof x||(t=x(t)),t.isvalid()?t:"function"==typeof n?n(t):t)}function m(t,e){if(m.isnullorundef(t))return null;var i=e.options.time,n=s(e.getrightvalue(t),i);return n.isvalid()?(i.round&&n.startof(i.round),n.valueof()):null}function s(t){for(var e=k.indexof(t)+1,i=k.length;e=k.indexof(e);a--)if(o=k[a],y[o].common&&r.as(o)>=t.length)return o;return k[e?k.indexof(e):0]}(b,m.minunit,h.min,h.max),h._majorunit=s(h._unit),h._table=function(t,e,i,n){if("linear"===n||!t.length)return[{time:e,pos:0},{time:i,pos:1}];var a,o,r,s,l,u=[],d=[e];for(a=0,o=t.length;a